Results 1 to 2 of 2

Thread: Load web page within table

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    243

    Load web page within table

    I created a table and I have it set to run as a server control. My reason for doing this is to let the user select a page from a combobox. I have 1 column and 3 rows. The first row has the combobox with the page selections loaded. The second row is where I want the page to load. The third row has a label that will display a error message if something goes wrong.
    When I run the program, the combo selection takes me to the correct page, BUT, it is not loaded into the table row. The page is loaded as a new page. How do I get the page to be loaded inside the table row?

    VB Code:
    1. Private Sub cboselectpage_SelectedIndexChanged
    2. (ByVal sender As System.Object, ByVal e As System.EventArgs)
    3. Handles cboSelectPage.SelectedIndexChanged
    4.  
    5.         If cboSelectPage.SelectedIndex = 0 Then
    6.             tblMain.Rows(1).Page.Response.Redirect("Attendance.aspx")
    7.         ElseIf cboSelectPage.SelectedIndex = 1 Then
    8.             tblMain.Rows(1).Page.Response.Redirect("Profile_Report.aspx")
    9.         ElseIf cboSelectPage.SelectedIndex = 2 Then
    10.             tblMain.Rows(1).Page.Response.Redirect("Area_Progress.aspx")
    11.         ElseIf cboSelectPage.SelectedIndex = 3 Then
    12.             tblMain.Rows(1).Page.Response.Redirect("PYP_Inquiry.aspx")
    13.  
    14.             'Check for proper role.  If user has role, add to list in Page_Load
    15.         ElseIf cboSelectPage.SelectedIndex = 4 Then
    16.             tblMain.Rows(1).Page.Response.Redirect("Enter_PYP.aspx")
    17.         ElseIf cboSelectPage.SelectedIndex = 5 Then
    18.             tblMain.Rows(1).Page.Response.Redirect("Edit_PYP.aspx")
    19.         End If
    20.     End Sub

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: Load web page within table

    Simply put you can't load pages within a table. The only control that you can load pages in is an IFRAME control. Perhaps place an IFRAME within the table cell? Limitations of HTML I'm afraid.

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width