Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
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 
Generalenter Pin
heba_zien6-Feb-04 11:14
heba_zien6-Feb-04 11:14 
GeneralRe: enter Pin
Bill Dean6-Feb-04 17:01
Bill Dean6-Feb-04 17:01 
QuestionIs implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Anonymous6-Feb-04 10:34
Anonymous6-Feb-04 10:34 
AnswerRe: Is implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Heath Stewart7-Feb-04 19:32
protectorHeath Stewart7-Feb-04 19:32 
GeneralRe: Is implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Anonymous7-Feb-04 22:38
Anonymous7-Feb-04 22:38 
GeneralRe: Is implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Heath Stewart8-Feb-04 5:41
protectorHeath Stewart8-Feb-04 5:41 
QuestionAny Articles on Delta values (saving only what has changed)? Pin
Grav-Vt6-Feb-04 9:49
Grav-Vt6-Feb-04 9:49 
AnswerRe: Any Articles on Delta values (saving only what has changed)? Pin
Daniel Turini6-Feb-04 10:20
Daniel Turini6-Feb-04 10:20 
GeneralRe: Any Articles on Delta values (saving only what has changed)? Pin
Kentamanos6-Feb-04 11:05
Kentamanos6-Feb-04 11:05 
GeneralConsume a Web Service Pin
hxxbin6-Feb-04 8:44
hxxbin6-Feb-04 8:44 
GeneralRe: Consume a Web Service Pin
Mazdak6-Feb-04 8:54
Mazdak6-Feb-04 8:54 
GeneralMarshaling Type of Unknown Size (SHItemID) Pin
Tristan Rhodes6-Feb-04 7:56
Tristan Rhodes6-Feb-04 7:56 
GeneralRe: Marshaling Type of Unknown Size (SHItemID) Pin
Nick Parker7-Feb-04 8:23
protectorNick Parker7-Feb-04 8:23 
Questionhow do I map a network drive in C# Pin
laptop_016-Feb-04 6:59
laptop_016-Feb-04 6:59 
AnswerRe: how do I map a network drive in C# Pin
Bill Dean6-Feb-04 7:13
Bill Dean6-Feb-04 7:13 

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.