Protected Sub Update_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Update.Click
Dim PageNam As String = Request.QueryString("PageName")
Dim ds As DataSet = GetInspired.GetPageContent(PageNam)
Dim MeCount As Integer = ds.Tables(0).Rows.Count()
Dim success As Integer
Dim id, content, id2 As String
For i = 0 To MeCount - 1
id = ds.Tables(0).Rows(i).Item(0)
Dim LastTextBoxId As String = " Txt-" & id
id2 = "ctl00$InnerContent$" & id
content = Request(id2)
'Response.Write(content)
trekie86
Member
290 Points
76 Posts
Re: how to get value from dynamic created text box
Apr 04, 2012 04:58 PM|LINK
DOH! good call. if its the postback, the server doesn't know what the client side name of the control was.
Smadhu
Member
510 Points
985 Posts
Re: how to get value from dynamic created text box
Apr 05, 2012 05:11 AM|LINK
Thnx alot guys d for all ur support n help
here is the code .......it works perfect now
Protected Sub Update_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Update.Click
Dim PageNam As String = Request.QueryString("PageName")
Dim ds As DataSet = GetInspired.GetPageContent(PageNam)
Dim MeCount As Integer = ds.Tables(0).Rows.Count()
Dim success As Integer
Dim id, content, id2 As String
For i = 0 To MeCount - 1
id = ds.Tables(0).Rows(i).Item(0)
Dim LastTextBoxId As String = " Txt-" & id
id2 = "ctl00$InnerContent$" & id
content = Request(id2)
'Response.Write(content)
Next
End Sub
thnx every 1..........thnx alot