How to use frame in asp.net
-
I will like to have the effect like where there is 2 frame. left is my hyperlink and right side is my display. My hyperlink code is as below. How can i employ it to have the effect liek frame? Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then Dim conTutorial As SqlConnection Dim cmdSelect As SqlCommand Dim cmdSelect2 As SqlCommand Dim SqlDataAdapter1 As SqlDataAdapter Dim SqlDataAdapter2 As SqlDataAdapter Dim ds As New DataSet() Dim relation As DataRelation Dim Chapter As DataRow Dim Title As DataRow Dim arrRows() As DataRow conTutorial = New SqlConnection("server=localhost;UID=sa;pwd=;database=user") conTutorial.Open() ' call the link_chapter and link_title table cmdSelect = New SqlCommand("select * from t_linkChapter", conTutorial) SqlDataAdapter1 = New SqlDataAdapter(cmdSelect) SqlDataAdapter1.Fill(ds, "t_linkChapter") cmdSelect2 = New SqlCommand("select [link_url],[link_title],[link_titleid],[link_chapterid] from t_linkTitle", conTutorial) SqlDataAdapter2 = New SqlDataAdapter(cmdSelect2) SqlDataAdapter2.Fill(ds, "t_linkTitle") 'call the relationship of two table relation = New DataRelation("linkChapterTitle", ds.Tables("t_linkChapter").Columns("link_chapterid"), ds.Tables("t_linkTitle").Columns("link_chapterid")) ds.Relations.Add(relation) For Each Chapter In ds.Tables("t_linkChapter").Rows arrRows = Chapter.GetChildRows(ds.Relations("linkChapterTitle")) If arrRows.Length > 0 Then hyperlink.Text += "
" hyperlink.Text += "" + Chapter("link_chapter") + "
" hyperlink.Text += "" For Each Title In arrRows hyperlink.Text += "* [" + Title("link_title") + "](" + Title("link_url") + ")
" Next hyperlink.Text += "
" End If Next
-
I will like to have the effect like where there is 2 frame. left is my hyperlink and right side is my display. My hyperlink code is as below. How can i employ it to have the effect liek frame? Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then Dim conTutorial As SqlConnection Dim cmdSelect As SqlCommand Dim cmdSelect2 As SqlCommand Dim SqlDataAdapter1 As SqlDataAdapter Dim SqlDataAdapter2 As SqlDataAdapter Dim ds As New DataSet() Dim relation As DataRelation Dim Chapter As DataRow Dim Title As DataRow Dim arrRows() As DataRow conTutorial = New SqlConnection("server=localhost;UID=sa;pwd=;database=user") conTutorial.Open() ' call the link_chapter and link_title table cmdSelect = New SqlCommand("select * from t_linkChapter", conTutorial) SqlDataAdapter1 = New SqlDataAdapter(cmdSelect) SqlDataAdapter1.Fill(ds, "t_linkChapter") cmdSelect2 = New SqlCommand("select [link_url],[link_title],[link_titleid],[link_chapterid] from t_linkTitle", conTutorial) SqlDataAdapter2 = New SqlDataAdapter(cmdSelect2) SqlDataAdapter2.Fill(ds, "t_linkTitle") 'call the relationship of two table relation = New DataRelation("linkChapterTitle", ds.Tables("t_linkChapter").Columns("link_chapterid"), ds.Tables("t_linkTitle").Columns("link_chapterid")) ds.Relations.Add(relation) For Each Chapter In ds.Tables("t_linkChapter").Rows arrRows = Chapter.GetChildRows(ds.Relations("linkChapterTitle")) If arrRows.Length > 0 Then hyperlink.Text += "
" hyperlink.Text += "" + Chapter("link_chapter") + "
" hyperlink.Text += "" For Each Title In arrRows hyperlink.Text += "* [" + Title("link_title") + "](" + Title("link_url") + ")
" Next hyperlink.Text += "
" End If Next
this article[^] will help you out. regards, Mircea Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.