p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET AJAX Programmer's Reference : with ASP.NET 2.0 or ASP.NET 3.5 ISBN: 978-0-470-10998-4
This is the forum to discuss the Wrox book ASP.NET AJAX Programmer's Reference: with ASP.NET 2.0 or ASP.NET 3.5 by Dr. Shahram Khosravi ; ISBN: 978-0-470-10998-4

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET AJAX Programmer's Reference : with ASP.NET 2.0 or ASP.NET 3.5 ISBN: 978-0-470-10998-4 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 29th, 2009, 02:33 AM
Friend of Wrox
Points: 829, Level: 11
Points: 829, Level: 11 Points: 829, Level: 11 Points: 829, Level: 11
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Jan 2006
Location: Hardwar, Uttranchal, India.
Posts: 178
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna Send a message via Skype™ to dpkbahuguna
Default add AJAX dynamically

hello fiends,


I have A table in my page with tow columns in 1st I have a GRID and in 2nd col I am a label.
I have a LINKBUTTON in first cell of GRID and I am displaying the the data in Label when I click on LINKBUTTON. I have to make asynchronize call through LINKBUTTON. So what I am doing is:


aspx.cs
protected void gvFiles_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex != -1)
{
//Adding AJAX to asynchronize call.
UpdatePanel UP = new UpdatePanel();
AsyncPostBackTrigger AT = new AsyncPostBackTrigger();
LinkButton lnkbt_show = (LinkButton)(e.Row.Cells[0].FindControl("B1"));
AT.ControlID = "lnkbt_show";
AT.EventName = "RowCommand";
UP.Triggers.Add(AT);
UP.ContentTemplateContainer.Controls.Add(lbl_FileC ontents);
e.Row.Cells[0].Controls.Add(UP);
}
}


Thanks
__________________
DPK..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to dynamically add propery in a Class in C#? coolcoder2007 C# 2005 8 January 5th, 2009 09:29 PM
How add data into DataGrid dynamically AccessAasif@aol.com C# 2005 1 October 24th, 2007 04:27 AM
Dynamically Add Columns jap ASP.NET 1.1 3 May 23rd, 2005 08:27 AM
how to add a button dynamically? Robin1 ASP Forms 4 October 2nd, 2004 07:25 AM
Dynamically Add input tags Jstmehr4u3 Javascript How-To 2 July 29th, 2003 05:03 AM



All times are GMT -4. The time now is 08:06 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc