Ask a Question related to ASP.NET General, Design and Development.
-
Null #1
Re: Dynamic Controls & Event Notifications
Here's a reply to another, related post:
The subject of the post is "viewstate question", if you want to find the
thread...
HTH.
----- Original Message -----
From: "Steve C. Orr, MCSD" <Steve@Orr.net>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Friday, May 16, 2003 5:23 PM
Subject: Re: viewstate question
the> It's complicated. Viewstate also does some other things for you.
> For instance it ensures that some events get raised as they should.
> One example is a Changed event. If ASP.NET does not store the value ofso> control in viewstate as it normally does, then it cannot tell if the value
> has changed, so it cannot properly raise the event for many controls.
> (Some controls like textboxes don't use viewstate for the event mechanism"Jason Turim" <leisuretimeindustries@hotmail.com> wrote in message> it isn't an issue in such cases.)
> [url]http://www.mail-archive.com/aspx@p2p.wrox.com/msg04594.html[/url]
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "Abel" <farthumstill@hotmail.com> wrote in message
> news:ey2WF8%23GDHA.2220@TK2MSFTNGP11.phx.gbl...> that?> > When is it okay to turn viewstate off?
> >
> > My understanding was that viewstate is for handling/maintaining the
> > contents(state) of web form fields on postback...Does it do more than>> >
> > Thanks.
> >
> >
> >
>
news:uVWAZX%23SDHA.3088@TK2MSFTNGP10.phx.gbl...rows.> Hello All,
> I'm working in C# and I've created a set of checkboxes that adds tablebut> In each of the table rows there is a TextBox control.
>
> I've a couple of questions:
> 1. I'm trying to add an eventhandler to the TextChanged event:
> oTxtBox = System.EventHandler(this.HandleTextChanged);
>
> the signature for the EventHandler is:
> protected void HandleTextChanged(object sender, System.EventArgs e)
>
> if i set oTxtBox.AutoPostBack = true, the form does in fact post-back,textboxes> my handler never gets called. any ideas?
>
> 2. Why do the dynamically created controls cease to exist between
> post-backs. Basically if i enter some text into the dynamically generated
> textboxes, I'd like it to propogate between post-backs. Now, I have to
> rebuild the entire table on each post-back, and the data in those> are lost.
>
> tia,
> jason
>
>
Null Guest
-
Dynamic controls button event in vb.net 2005
I have created a control with some label, textbox and Button. On the click of the button the entries in textbox on the control is validated and a... -
Dynamic User Controls Event Handling
In my web form to the place holder i'm loading different User Controls depends on some conditions for the user control which is loaded first time... -
Dynamic User Controls Event Handling Problem
I've three user control 1,2 in the web form i had a place holder control to that place holder i'm loading either 1 or 2 depending on some... -
Event not firing.adding dynamic controls to Usercontrol.
I am adding controls to the UserControl dynamically and then loading the UserControl Dynamically.But I am facing problem with firing of click event... -
Dynamic Controls & Event Notifications -- Correction
"Jason Turim" <leisuretimeindustries@hotmail.com> wrote in message news:uVWAZX%23SDHA.3088@TK2MSFTNGP10.phx.gbl... rows. but textboxes



Reply With Quote

