Click here to Skip to main content
15,901,505 members
Home / Discussions / C#
   

C#

 
GeneralRe: GUID Conversion Pin
leppie7-Feb-04 23:23
leppie7-Feb-04 23:23 
GeneralRe: GUID Conversion Pin
Heath Stewart8-Feb-04 5:32
protectorHeath Stewart8-Feb-04 5:32 
GeneralRe: GUID Conversion Pin
Tristan Rhodes8-Feb-04 8:36
Tristan Rhodes8-Feb-04 8:36 
GeneralRe: GUID Conversion Pin
Nick Parker8-Feb-04 5:45
protectorNick Parker8-Feb-04 5:45 
GeneralCreating an instance of an object ... Pin
Andres Coder7-Feb-04 7:36
Andres Coder7-Feb-04 7:36 
GeneralRe: Creating an instance of an object ... Pin
Nick Parker7-Feb-04 7:56
protectorNick Parker7-Feb-04 7:56 
GeneralRe: Creating an instance of an object ... Pin
Charlie Williams7-Feb-04 8:26
Charlie Williams7-Feb-04 8:26 
GeneralRe: Creating an instance of an object ... Pin
John Kuhn7-Feb-04 8:34
John Kuhn7-Feb-04 8:34 
GeneralRe: Creating an instance of an object ... Pin
Heath Stewart7-Feb-04 19:23
protectorHeath Stewart7-Feb-04 19:23 
GeneralRe: Creating an instance of an object ... Pin
Andres Coder7-Feb-04 19:48
Andres Coder7-Feb-04 19:48 
GeneralRe: Creating an instance of an object ... Pin
Heath Stewart7-Feb-04 19:51
protectorHeath Stewart7-Feb-04 19:51 
GeneralDynamic attributes in datagrid. Pin
Andrlage7-Feb-04 3:05
Andrlage7-Feb-04 3:05 
GeneralRe: Dynamic attributes in datagrid. Pin
Mazdak7-Feb-04 3:46
Mazdak7-Feb-04 3:46 
GeneralRe: Dynamic attributes in datagrid. Pin
Bill Dean7-Feb-04 4:01
Bill Dean7-Feb-04 4:01 
GeneralHelp with MSComm serial port communications Pin
maria_p6-Feb-04 19:37
maria_p6-Feb-04 19:37 
GeneralConversion From VB Pin
Josh Koppang6-Feb-04 17:42
Josh Koppang6-Feb-04 17:42 
GeneralRe: Conversion From VB Pin
Bill Dean6-Feb-04 18:12
Bill Dean6-Feb-04 18:12 
Questionis their any way to ..................? Pin
6-Feb-04 13:27
suss6-Feb-04 13:27 
AnswerRe: is their any way to ..................? Pin
Colin Angus Mackay7-Feb-04 3:05
Colin Angus Mackay7-Feb-04 3:05 
AnswerRe: is their any way to ..................? Pin
Heath Stewart7-Feb-04 19:28
protectorHeath Stewart7-Feb-04 19:28 
AnswerRe: is their any way to ..................? Pin
13-Feb-04 6:39
suss13-Feb-04 6:39 
GeneralIncrementally create user controls Pin
Andrlage6-Feb-04 12:16
Andrlage6-Feb-04 12:16 
GeneralRe: Incrementally create user controls Pin
Colin Angus Mackay7-Feb-04 3:13
Colin Angus Mackay7-Feb-04 3:13 
I'm not sure I fully understand what you are looking for, but here's my best shot at the information you might find useful.

Because ASP.NET is stateless it doesn't remember from one page request to the next what happened. That is why there are various mechanisms to help it remember. (like Viewstate, Session and Application variables).

When you create any control dynamically on a page you have to manually create a mechanism to remember it was created, so than on the postback you can dynamically re-create it again. (This sounds like a real pain - and believe me it can be a great source of bugs if care is not taken).

So, what can you do? One way might be to store the information about the control in to the Session object, then in the page load you can extract that information and recreate all the dynamic controls you created the last time so that the page is back to the way it was before. Then when the button click event is fired and you go to create a new dynamic control all the other previously created dynamic controls are already there so you get the effect that it is adding more controls.

--Colin Mackay--

EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar


GeneralRe: Incrementally create user controls Pin
Andres Coder7-Feb-04 7:41
Andres Coder7-Feb-04 7:41 
GeneralRe: Incrementally create user controls Pin
Andres Coder7-Feb-04 7:42
Andres Coder7-Feb-04 7:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.