Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8339737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:57:43+00:00 2026-06-09T04:57:43+00:00

I am working a fairly basic web based KPI system and am struggling to

  • 0

I am working a fairly basic web based KPI system and am struggling to get my head round this problem.

I have a top level page which has Gridview containing various items we are tracking and their current status. There is also a Hyperlink field that provides links to external pages / data. I need to open these links within a frame in the current site to maintain the look and feel of it.

If I hard code the src value for the iFrame it works fine but what I need to do is pass the URL contained in the LeafURL field into the KPIFrame.Attributes(“SRC”) = “Need something here”

so the question is how do I call the URL details from the previous page and inject it into the iFrame src field on the new page.

This is the code on my main page. Somehow I need the next page to pick up the linktext(LeafURL) value from the Gridview on this page.

 Protected Sub GridView1_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated

    If e.Row.RowType = DataControlRowType.DataRow Then

        Dim linknew As HyperLink
        Dim linktext as String

        linktext = e.Row.DataItem("LeafURL")
        linknew = e.Row.FindControl("Hyperlink1")

                  If e.Row.DataItem("Status") = "0" Or "1" Then
            linknew.NavigateUrl = ("~/leaf.aspx")

        End If
    End If
End Sub

Any guidance would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:57:46+00:00Added an answer on June 9, 2026 at 4:57 am

    All sorted now. The solution lay in correctly constructing the querystring on the 1st page so that is could be referenced on the 2nd page. As shown below:

    Code on 1st Page:

    If e.Row.RowType = DataControlRowType.DataRow Then
        Dim linktext As String = e.Row.DataItem("URL")
        Dim linknew As HyperLink = e.Row.FindControl("HyperLink1")
    
        linknew.Text = linktext
    
        linknew.NavigateUrl = "~/Leaf.aspx?URL=" + e.Row.DataItem("URL")
    

    Code on 2nd Page:

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    
        KPIframe.Attributes("SRC") = Request.QueryString("URL")
    
        Label1.Text = Request.QueryString("URL")
    
    End Sub
    

    Turned out to be much simpler than it first appeared to solve this problem.

    Now have system working where the URL value in the GridView on page 1 is passed to page 2 and used to determine the src value for the iframe on that page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm fairly new to directx so this may sound really basic. I have started
I have a problem where I have a fairly basic crud application website. I'm
I am working on a fairly basic screen layout for my first Android application
I have a menu working fairly well but can't figure out how to make
I am working with a fairly old web app that uses MySQL as the
I'm working on a fairly large web site built in PHP that will potentially
I am working on a fairly complicated project. We have a c# forms app
I have a fairly basic dialog maker for jquery that works in 2 out
I've been working on a Javascript library, one with basic functionality. I'm fairly new
I have a vertical drop-down menu that is working fairly well. I have one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.