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 7000019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:37:02+00:00 2026-05-27T20:37:02+00:00

I have following link in a.aspx file: <a href=a.htm target=iframe>A</a> I want to set

  • 0

I have following link in a.aspx file:

<a href="a.htm" target="iframe">A</a>

I want to set link from a.aspx.vb page according to what person is viewing the page.
How can i change this so that if user clicks on link it will replace current frameset contained in current window with a url provided according to user?

Or in another way:

How will i replace href code in aspx page by giving it value from aspx.vb page?

  • 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-05-27T20:37:03+00:00Added an answer on May 27, 2026 at 8:37 pm

    You can either make your current link accessible to the code-behind (your vb file) or use an .NET WebControl.

    To make your HTML control visible to your code-behind, you need to add runat="server" and an ID:

    <a href="a.htm" target="iframe" runat="server" id="myALink">A</a>
    

    Then in your code-behind, you would access the control with the ID you gave the control earlier:

    myALink.Href = "b.htm";
    

    You could also use an ASP HyperLink control:

    <asp:HyperLink NavigateUrl="a.htm" Target="iframe" runat="server" Id="myALink" />
    

    And set it in the code-behind:

    myALink.NavigateUrl = "b.htm";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am taking help from the following link: http://www.codeproject.com/KB/cs/SMS.aspx I have Downloaded source and
I have the following xml file and want to parse it into an .aspx
I have been referring to the following page: http://msdn.microsoft.com/en-us/library/ms178129.aspx I simply want to bulk
I have the following markup in a DataGrid: <itemtemplate> <a href='~/File.aspx?item=<%# DataBinder.Eval(Container.DataItem, ItemID).ToString() %>'
In my aspx I have this line: <link href=<%= Request.ApplicationPath %>/css/ma/screen-ma.css rel=Stylesheettype=text/css media=screen />
I got an .aspx file in which I want to have a file uploader
I'm using Fancybox 1.3.4 with ASP.NET MVC 3. I have following link : <a
I have the following link function MyLinqToSQLTable.Where(x => x.objectID == paramObjectID).ToList(); I most of
I have the following JavaScript code: Link In which the function makewindows does not
I have the following output (via link) which displays the var_dump of some XML

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.