hi ,, My Coding Like
Partial Class Default2
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Session("UserName") IsNot Nothing Then
lbl1.Text = "Welcome " & Convert.ToString(Session("UserName"))
End If
Dim cmd As New SqlCommand
Dim data As New SqlDataAdapter
Dim ds As New DataSet
Dim strcon As String = ConfigurationManager.ConnectionStrings("sample").ConnectionString
Dim con As New SqlConnection(strcon)
Dim da As New SqlDataAdapter("Select MenuID, Menus from PagesDetails", con)
Dim dttc As New DataTable()
da.Fill(dttc)
Dim main As HtmlGenericControl = UList("Menuid", "menu")
Dim dtDist As New DataTable()
Dim Flag As Integer = 0
For Each row As DataRow In dttc.Rows
cmd.Parameters.Clear()
dtDist.Clear()
cmd.CommandText = &qu ...
Go to the complete details ...