Click here to Skip to main content
15,901,035 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralCustom Control Web Projects [modified] Pin
chaitramk4-Apr-08 18:45
chaitramk4-Apr-08 18:45 
GeneralRe: Custom Control Web Projects Pin
N a v a n e e t h4-Apr-08 21:27
N a v a n e e t h4-Apr-08 21:27 
GeneralInvalidating page contents Pin
Mohammad A Gdeisat4-Apr-08 12:06
Mohammad A Gdeisat4-Apr-08 12:06 
AnswerRe: Invalidating page contents Pin
Ashish Sehajpal4-Apr-08 21:27
Ashish Sehajpal4-Apr-08 21:27 
GeneralDatabind image from database Pin
Paul McGann4-Apr-08 10:44
professionalPaul McGann4-Apr-08 10:44 
GeneralRe: Databind image from database Pin
Ashish Sehajpal4-Apr-08 21:30
Ashish Sehajpal4-Apr-08 21:30 
QuestionHOW TO MAINTAIN DYNAMICALLY CREATED CONTROLS AFTER POSTBACK C# Pin
Phivos Stylianides4-Apr-08 10:14
Phivos Stylianides4-Apr-08 10:14 
AnswerRe: HOW TO MAINTAIN DYNAMICALLY CREATED CONTROLS AFTER POSTBACK C# Pin
Ashish Sehajpal4-Apr-08 23:43
Ashish Sehajpal4-Apr-08 23:43 
hi phivos,

the concept here is that the server recognizes the controls that are present in the design view of the page... and produces the HTML code for those.

the control you created is dynamic and will be maintained only if their is some logic to add that control every time. we can a collection object declared and add a key value pair for that control i.e. "textbox1" , "value in textbox entered by user"
and add it to that collection and keep that collection object in viewstate. everytime in page load, check for number of key-value pairs in that object and run a loop to add that much controls with id as key and TEXT as value for that key...



simple solution Wink | ;)

cheers..!

Ashish Sehajpal

GeneralRe: HOW TO MAINTAIN DYNAMICALLY CREATED CONTROLS AFTER POSTBACK C# Pin
kontax5-Apr-08 2:54
kontax5-Apr-08 2:54 
AnswerRe: HOW TO MAINTAIN DYNAMICALLY CREATED CONTROLS AFTER POSTBACK C# Pin
Fatania Dipak2-Feb-09 1:09
Fatania Dipak2-Feb-09 1:09 
GeneralWindows Services and ASP.NET Pin
ffowler4-Apr-08 10:06
ffowler4-Apr-08 10:06 
GeneralRe: Windows Services and ASP.NET Pin
ffowler5-Apr-08 16:44
ffowler5-Apr-08 16:44 
Generalhttpwebrequest multipart/form data boundary Pin
n3w8134-Apr-08 9:59
n3w8134-Apr-08 9:59 
GeneralRe: httpwebrequest multipart/form data boundary Pin
led mike4-Apr-08 11:44
led mike4-Apr-08 11:44 
AnswerRe: httpwebrequest multipart/form data boundary Pin
n3w8135-Apr-08 16:21
n3w8135-Apr-08 16:21 
QuestionGrey Out Check Box in GridView ItemTemplate? Pin
Cyndie4-Apr-08 8:37
Cyndie4-Apr-08 8:37 
AnswerRe: Grey Out Check Box in GridView ItemTemplate? Pin
Cyndie10-Apr-08 10:17
Cyndie10-Apr-08 10:17 
GeneralGrid alignment within table Pin
JacquesDP4-Apr-08 8:34
JacquesDP4-Apr-08 8:34 
GeneralRe: Grid alignment within table Pin
led mike4-Apr-08 11:23
led mike4-Apr-08 11:23 
GeneralRe: Grid alignment within table Pin
Guffa4-Apr-08 17:18
Guffa4-Apr-08 17:18 
GeneralRe: Grid alignment within table Pin
JacquesDP5-Apr-08 1:01
JacquesDP5-Apr-08 1:01 
GeneralRe: Grid alignment within table Pin
Ashish Sehajpal4-Apr-08 21:24
Ashish Sehajpal4-Apr-08 21:24 
GeneralRe: Grid alignment within table Pin
JacquesDP5-Apr-08 1:03
JacquesDP5-Apr-08 1:03 
QuestionCascading Dropdownlists Pin
PaaKay4-Apr-08 7:22
PaaKay4-Apr-08 7:22 
GeneralProblem Getting while building project Pin
hari4ur4-Apr-08 5:01
hari4ur4-Apr-08 5:01 

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.