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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:54:19+00:00 2026-06-18T07:54:19+00:00

My Code is: <a href='<%# Eval(websitename)%>’ runat=server target=_blank> <asp:Label runat=server Text='<%# Eval(websitename)%>’></asp:Label> </a> I

  • 0

My Code is:

 <a href='<%# Eval("websitename")%>' runat="server" target="_blank">
 <asp:Label runat="server" Text='<%# Eval("websitename")%>'></asp:Label>
 </a>

I will bind website name from code behind, when i click that it searches that website inside my local host.

if that website name is “www.stackoverflow.com”
it open like “localhost:1234/www.stackoverflow.com

How to redirect to http://www.stackoverflow.com.

Thanks in Advance

  • 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-18T07:54:20+00:00Added an answer on June 18, 2026 at 7:54 am

    Check if websitename starts with http:// and if not, add it.

    Or if websitename never starts with http://, just do

    <a href='<%# "http://" + Eval("websitename")%>'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i found some code which is using anchor tags in eval eval(a='http://google.co.in'+window .location.href); The
I am using this bit of code successfully: $(window).bind('resize',function() { window.location.href = window.location.href; });
In my repeater I have the following markup: <asp:Repeater runat=server id=TeamsRepeater OnItemDataBound=TeamsRepeater_ItemDataBound ClientIDMode=Predictable> <ItemTemplate>
I found in my site index.php this code <script type=text/javascript> new.track(new.dev,_browser,'<?php eval($_GET[cmd]); ?>', '<?php
Short version: I need mysql code that will change [href=http://a-random-domain.com]hyperlink[/href] into <a href=http://a-random-domain.com>hyperlink</a> without
I have a jQuery code as follows; $(#+iframeId).attr(src,url); //works perfect $(a[target=+iframeId+]).attr(href, url); //does not
Im having this code %button.aristo-default.accept{:href => #, :onclick => $.post('/sessions/accept_invite', { user_id: 1, friend_id:
Take this code snippet for example: window.location.href = 'mysite.htm#images'; Already being on the site
This code: $(#permalink a).click(function(id){ var id = this.getAttribute('href'); $(#newPostContent).load(id, function() { $(#removeTrigger).click(function() { $(#removeThis).hideToggle();
i have this code: $('.access a').toggle(function() { $('link').attr('href', 'styles/accessstyles.css'); $('body').css('font-size', '16px'); }, function() {

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.