Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to use frame in asp.net

How to use frame in asp.net

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdatabasesysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LovelyHelp
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • L LovelyHelp

      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

      M Offline
      M Offline
      Mircea Grelus
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups