Click here to Skip to main content
15,902,635 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalwebsite name Pin
kavinnagarajan13-Aug-09 21:30
kavinnagarajan13-Aug-09 21:30 
GeneralRe: website name Pin
Abhijit Jana13-Aug-09 21:33
professionalAbhijit Jana13-Aug-09 21:33 
Generalwebsite name Pin
kavinnagarajan13-Aug-09 21:36
kavinnagarajan13-Aug-09 21:36 
GeneralRe: website name Pin
Abhijit Jana13-Aug-09 21:39
professionalAbhijit Jana13-Aug-09 21:39 
Generalwebsite name Pin
kavinnagarajan13-Aug-09 21:44
kavinnagarajan13-Aug-09 21:44 
GeneralRe: website name Pin
Abhijit Jana13-Aug-09 21:52
professionalAbhijit Jana13-Aug-09 21:52 
Generalwebsite name Pin
kavinnagarajan13-Aug-09 22:31
kavinnagarajan13-Aug-09 22:31 
QuestionDynamically Creating Text boxes Pin
sekannak13-Aug-09 20:11
sekannak13-Aug-09 20:11 
Hi,

I am creating 5 dynamical text box in my page_init event - After cteating i can enter value to the Text boxes .. Then when i click the button i cannot take the id of the dynamically cteating text ... How to resolve this problem.. i ll write my code below

Dim txtEmpty(10) As TextBox

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

If Page.IsPostBack = False Then
Dim tbl As New HtmlTable
Dim tr As New HtmlTableRow
plc.Controls.Add(tbl)
tbl.Rows.Add(tr)
dim i as new integer
For i = 0 To 6
Dim tc2 As New HtmlTableCell
Dim txt As New TextBox
txt.ID = i & "txt"
txtEmpty(i) = txt
tc2.Controls.Add(txt)
tr2.Cells.Add(tc2)
Session("txt") = txtEmpty
Next
end if
End Sub

Note: After Loading the page 6 text boxes are sucessfully created then am entering some text of the textboxes...Then am click the Button i cannot take the value of the text box...


Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim txt1(7) As Object
For intFile = 0 To 10
txt1(intFile) = CType(Session("txt"), Object)
Next
End sub

There NO Text property of boject so How can i take the text value from the respective textboxes?????????


Thanks & Regards,
Kannak.....>

kannak

AnswerRe: Dynamically Creating Text boxes Pin
Suresh Suthar13-Aug-09 21:12
professionalSuresh Suthar13-Aug-09 21:12 
GeneralRe: Dynamically Creating Text boxes Pin
sekannak13-Aug-09 22:56
sekannak13-Aug-09 22:56 
Questionselect the any control at run time Pin
ritasaumya13-Aug-09 19:58
ritasaumya13-Aug-09 19:58 
AnswerRe: select the any control at run time Pin
padmanabhan N13-Aug-09 20:01
padmanabhan N13-Aug-09 20:01 
AnswerRe: select the any control at run time Pin
Vimalsoft(Pty) Ltd13-Aug-09 20:05
professionalVimalsoft(Pty) Ltd13-Aug-09 20:05 
AnswerRe: select the any control at run time Pin
Abhijit Jana13-Aug-09 20:10
professionalAbhijit Jana13-Aug-09 20:10 
QuestionSys.WebForms.PageRequestManagerParserErrorException: The message received Pin
md_azy13-Aug-09 18:40
md_azy13-Aug-09 18:40 
AnswerRe: Sys.WebForms.PageRequestManagerParserErrorException: The message received Pin
Abhijit Jana13-Aug-09 19:07
professionalAbhijit Jana13-Aug-09 19:07 
GeneralRe: Sys.WebForms.PageRequestManagerParserErrorException: The message received Pin
giribabu23413-Aug-09 22:00
giribabu23413-Aug-09 22:00 
GeneralRe: Sys.WebForms.PageRequestManagerParserErrorException: The message received Pin
md_azy14-Aug-09 0:37
md_azy14-Aug-09 0:37 
AnswerRe: Sys.WebForms.PageRequestManagerParserErrorException: The message received Pin
Vimalsoft(Pty) Ltd15-Feb-10 20:51
professionalVimalsoft(Pty) Ltd15-Feb-10 20:51 
AnswerRe: Sys.WebForms.PageRequestManagerParserErrorException: The message received Pin
arsal2004131-Aug-10 0:40
arsal2004131-Aug-10 0:40 
AnswerRe: Sys.WebForms.PageRequestManagerParserErrorException: The message received Pin
Morteza Karimian Kelishadrokhi4-Oct-11 3:00
Morteza Karimian Kelishadrokhi4-Oct-11 3:00 
Questionconvert vb.net code to c# Pin
IMQ13-Aug-09 17:30
IMQ13-Aug-09 17:30 
AnswerRe: convert vb.net code to c# Pin
padmanabhan N13-Aug-09 18:17
padmanabhan N13-Aug-09 18:17 
AnswerRe: convert vb.net code to c# Pin
Vimalsoft(Pty) Ltd13-Aug-09 20:06
professionalVimalsoft(Pty) Ltd13-Aug-09 20:06 
AnswerRe: convert vb.net code to c# Pin
asmaqureshi821114-Aug-09 2:36
asmaqureshi821114-Aug-09 2:36 

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.