Click here to Skip to main content
15,912,400 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionASP.net web administrator tool error Pin
Hum Dum8-Sep-09 1:48
Hum Dum8-Sep-09 1:48 
AnswerRe: ASP.net web administrator tool error Pin
janani138-Sep-09 2:38
janani138-Sep-09 2:38 
GeneralRe: ASP.net web administrator tool error Pin
Hum Dum8-Sep-09 19:30
Hum Dum8-Sep-09 19:30 
AnswerRe: ASP.net web administrator tool error Pin
sashidhar8-Sep-09 23:46
sashidhar8-Sep-09 23:46 
Questiondynamic control Pin
mylogics8-Sep-09 1:44
professionalmylogics8-Sep-09 1:44 
AnswerRe: dynamic control Pin
Manas Bhardwaj8-Sep-09 1:56
professionalManas Bhardwaj8-Sep-09 1:56 
AnswerRe: dynamic control Pin
Abhishek Sur8-Sep-09 2:04
professionalAbhishek Sur8-Sep-09 2:04 
AnswerRe: dynamic control Pin
Abhijit Jana8-Sep-09 2:17
professionalAbhijit Jana8-Sep-09 2:17 
mylogics wrote:
ow to generate the textbox and labels dynamically.

Manash and Abhishek has already give you the answer.

I just wanted to add one more point that you should now at the time of creating dynamic control.

The control which you are creating, you need to created before Page_Load(), other wise, it will not able to maintain the View State Data or will not load the Postback Data.

If you deeply look inside ASP.NET Page Life Cycle, Before Page_Load(), there are two different methods calls. 1) LoadViewState() and 2)LoadPostbackData().

So, if you create any control on Page_Load(), or after that it will not able to load the data.
So you need to create such control either in Pre_Init() or Init() method.

Though there are workaround to add the Control which are created after page_load into Control Tree for maintaining viewstate and Postback, using Catch up. I am not discussing that over here. Smile | :)

Hope this will help you in longer run Smile | :)

Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.

GeneralRe: dynamic control Pin
Abhishek Sur8-Sep-09 10:06
professionalAbhishek Sur8-Sep-09 10:06 
GeneralRe: dynamic control Pin
Abhijit Jana8-Sep-09 11:11
professionalAbhijit Jana8-Sep-09 11:11 
QuestionFailed to access IIS metabase. Pin
GauravKP8-Sep-09 1:12
professionalGauravKP8-Sep-09 1:12 
AnswerRe: Failed to access IIS metabase. Pin
Abhijit Jana8-Sep-09 1:26
professionalAbhijit Jana8-Sep-09 1:26 
QuestionFindcontrol of dynamically created html control Pin
yesu prakash8-Sep-09 0:18
yesu prakash8-Sep-09 0:18 
AnswerRe: Findcontrol of dynamically created html control Pin
N a v a n e e t h8-Sep-09 1:10
N a v a n e e t h8-Sep-09 1:10 
AnswerRe: Findcontrol of dynamically created html control Pin
Abhishek Sur8-Sep-09 1:46
professionalAbhishek Sur8-Sep-09 1:46 
QuestionUploading the file to the same path on the server. Pin
Chesnokov Yuriy7-Sep-09 23:14
professionalChesnokov Yuriy7-Sep-09 23:14 
AnswerRe: Uploading the file to the same path on the server. Pin
Elayaraja Sambasivam7-Sep-09 23:29
Elayaraja Sambasivam7-Sep-09 23:29 
AnswerRe: Uploading the file to the same path on the server. Pin
Arun Jacob7-Sep-09 23:47
Arun Jacob7-Sep-09 23:47 
AnswerRe: Uploading the file to the same path on the server. Pin
N a v a n e e t h7-Sep-09 23:54
N a v a n e e t h7-Sep-09 23:54 
QuestionStored procedure Pin
mylogics7-Sep-09 23:10
professionalmylogics7-Sep-09 23:10 
AnswerRe: Stored procedure Pin
Greg Chelstowski7-Sep-09 23:21
Greg Chelstowski7-Sep-09 23:21 
GeneralRe: Stored procedure Pin
mylogics7-Sep-09 23:24
professionalmylogics7-Sep-09 23:24 
GeneralRe: Stored procedure Pin
Greg Chelstowski7-Sep-09 23:28
Greg Chelstowski7-Sep-09 23:28 
GeneralRe: Stored procedure Pin
mylogics7-Sep-09 23:37
professionalmylogics7-Sep-09 23:37 
GeneralRe: Stored procedure Pin
Elayaraja Sambasivam7-Sep-09 23:34
Elayaraja Sambasivam7-Sep-09 23:34 

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.