Print
Add To Favorites
Email To Friend
Rate This Article
|
Tips and Tricks: ASP.NET AJAX 1.0 and User Controls
|
by Bilal Haidar
Feedback
|
Average Rating:  
Views (Total / Last 10 Days):
56228/
440
|
|
|
|
| What to choose? |
We have seen several scenarios throughout this article that
discuss how to handle UserControls when AJAX is to be added to a website. One
would ask which scenario is best to follow. Well the normal answer would be it
depends on the situation you are experiencing. However, we do not like normal
answers and we would be strict in saying that, it is recommended to leave the
UserControls intact and add your AJAX controls to the host pages themselves.
Then you can either use Triggers or a programmatic call to update method of the
UpdatePanel for refreshing the content of any UpdatePanels.
|
|
|
|
|
|
Article Feedback
User Comments
Title:
very nice
Name:
Serif Emek
Date:
7/28/2009 5:32:09 PM
Comment:
That is just what I was looking for. Thanks
|
Title:
Re: Vbman
Name:
Bilal Haidar [MVP]
Date:
3/27/2008 10:38:17 AM
Comment:
Hello, Try to show me the code behind of the usercontrol and how you are setting it on the page!
Thanks
|
Title:
Object reference not set to an instance of an object.
Name:
Vbman
Date:
3/27/2008 10:05:40 AM
Comment:
Great Article! I have the update panel on the page and the user controls inside the update panel. I create a property inside the usercontrol that accesses a control, Say the gridviews Tooltip or Pagesize or ... When I try to set the property on page declaratively I get an error: Object reference not set to an instance of an object.
I've seen this problem posted in other places but no solution. Have you run into this and do you have a work around.
Thanks!
|
Title:
Re:
Name:
Bilal Haidar
Date:
10/30/2007 10:43:12 AM
Comment:
Hello, You can use this converter: http://bhaidar.net/cs/archive/2007/04/18/telerik-c-vb-net-converter.aspx
Regards
|
Title:
VB.Net
Name:
Jo
Date:
10/30/2007 5:51:05 AM
Comment:
Article is so good. If it is available in vb.net also it will be helpful for the beginners.
|
Title:
Well explained
Name:
Jose
Date:
8/9/2007 4:44:16 AM
Comment:
As usual, you did a great job!
I loved the fact that you showed all the possible combinations you can have with a gridview user control and AJAX. And the sample works really fine!
Jose
|
Title:
Great
Name:
Mark W
Date:
6/25/2007 9:24:07 PM
Comment:
Very well summarized, thanks. I agree, good use of events and generics.
Also, there's a small typo in Listing 5: OrderList UC's UpdatePanel ID should be 'AjaxPanel'.
|
Title:
Nice one
Name:
Wesley Bakker
Date:
6/24/2007 4:32:51 AM
Comment:
Nice article. Decent use of events, AJAX, generics, datasourcecontrols etc. etc.
Cheers, Wes
|
|
|
|
|
|