C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Calling that Javacript in Row Created Event


Posted Date: 06 Oct 2008    Resource Type: Articles    Category: Web Applications

Posted By: vijay arul lourdu       Member Level: Silver
Rating:     Points: 10



This code describe show to call javascript function on rowcreated event

protected void grdIssue_RowCreated(object sender, GridViewRowEventArgs e)
{
CheckBox chkHead = new CheckBox();
if (e.Row.RowType.ToString().Trim() == "Header")
{
chkHead = (CheckBox)e.Row.FindControl("chkbxHeader");
chkHead.Attributes.Add("onClick", "chkBocHeader(" + chkHead.ClientID + ",'H')");
}
else if (e.Row.RowType.ToString().Trim() == "DataRow")
{
CheckBox chkRow = new CheckBox();
chkRow = (CheckBox)e.Row.FindControl("chkboxRow");
chkRow.Attributes.Add("onClick", "chkBocHeader(this,'R')");
}
}




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
To Check and uncheck the check boxes in Row Created Event  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to Check all the check boxes in header
Previous Resource: To Passs the Querystring Parameters using Post Method
Return to Discussion Resource Index
Post New Resource
Category: Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

teleconferencing service

Contact Us    Privacy Policy    Terms Of Use