|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
usercontrols and postbackHi
I have a page with several ascx (user controls) on it. The first few user-controls are dropdowns and so on, which initialise themselves from a database. The last user-control has some "<a href>" tags in it, which link back to the same page and should cause this last user-control to perform specific actions on itself. The problem is that these links do not cause a so-called "post-back", and therefore the other user-controls re-initialise themselves (which the do on !IsPostBack). How do I prevent the other user-controls on the page from reacting to the links in the last user-control? Thanks, Peter Use LinkButtons which render as anchors and support event handlers.
<%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL http://www.metromilwaukee.com/clintongallagher/ Show quoteHide quote "Peter Kirk" <p*@alpha-solutions.dk> wrote in message news:%237ZIGW6vGHA.2436@TK2MSFTNGP06.phx.gbl... > Hi > > I have a page with several ascx (user controls) on it. The first few > user-controls are dropdowns and so on, which initialise themselves from a > database. > > The last user-control has some "<a href>" tags in it, which link back to > the same page and should cause this last user-control to perform specific > actions on itself. > > The problem is that these links do not cause a so-called "post-back", and > therefore the other user-controls re-initialise themselves (which the do > on !IsPostBack). How do I prevent the other user-controls on the page from > reacting to the links in the last user-control? > > > Thanks, > Peter >
TemplateBuilder
Nested Properties in a GridView ASP.Net 2.0 remove border around checkboxes Need Help with Control Selection Help... options added to Select element from clientside automation not working properly with Code Be 'Select' control problem using code behind class to trap 'Submit' button click Custom DropdownList Control View state Rendering the ItemStyle of a GridView row GridView Nested in Repeater: How can i capture the RowCommand |
|||||||||||||||||||||||