How to get the id of textbox dynamically?

Imports System.Data.SqlClient
Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim x As String
x = TextBox1.ID
MsgBox(x)
End Sub
End Class

No comments:

Post a Comment

Plz Share your comments...