473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

hyperlink posts back

Ok this is very odd. I have a hyperlink server control (not a linkbutton)
on my .aspx page. When the navigateurl property is set to a file
(blah.aspx) in the same directory as the current page, the page posts back
BEFORE redirecting to the next page. If I change the navigateurl property
to go to a page in a subfolder (foo\bar.aspx) it does not do a postback.

I swear I'm not messing with it - I did the experiment 3 times in a row ...
once to the same folder, one to a subfolder, one to the same folder, once to
a subfolder, etc., and it did this each time. I confirmed this by putting a
break point on a trivial Response.Write("blah") line in my Page_Load event.
For example, the first line below does NOT postback. The second does. ???

<asp:hyperlink id="HyperLink4" runat="server"
NavigateUrl="somefolder/whatever.aspx">HyperLink Text</asp:hyperlink>
<asp:hyperlink id="HyperLink5" runat="server"
NavigateUrl="blah.aspx">HyperLink Text</asp:hyperlink>

I do NOT want it to postback which is the expected behavior of a hyperlink
server control. Any suggestions?

Thanks in advance!
Mark
Nov 18 '05 #1
1 6920
Set the AutoPostBack property to "False" See if that helps. Can you
create the hyperlink dynamically? Try doing it with simple HTMLAnchor
object.

Neil

"Mark" <fi**************@umn.edu> wrote in message news:<OB**************@TK2MSFTNGP11.phx.gbl>...
Ok this is very odd. I have a hyperlink server control (not a linkbutton)
on my .aspx page. When the navigateurl property is set to a file
(blah.aspx) in the same directory as the current page, the page posts back
BEFORE redirecting to the next page. If I change the navigateurl property
to go to a page in a subfolder (foo\bar.aspx) it does not do a postback.

I swear I'm not messing with it - I did the experiment 3 times in a row ...
once to the same folder, one to a subfolder, one to the same folder, once to
a subfolder, etc., and it did this each time. I confirmed this by putting a
break point on a trivial Response.Write("blah") line in my Page_Load event.
For example, the first line below does NOT postback. The second does. ???

<asp:hyperlink id="HyperLink4" runat="server"
NavigateUrl="somefolder/whatever.aspx">HyperLink Text</asp:hyperlink>
<asp:hyperlink id="HyperLink5" runat="server"
NavigateUrl="blah.aspx">HyperLink Text</asp:hyperlink>

I do NOT want it to postback which is the expected behavior of a hyperlink
server control. Any suggestions?

Thanks in advance!
Mark

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: deko | last post by:
I have a subform in my Access 2002 mdb that holds Hyperlinks to documents (.pdfs) that are associated with each record in the database. The datasheet subform is simply a list of Hyperlinks to...
6
by: dog | last post by:
Does anyone know how to use a hyperlink in MS Access (I'm using 97) to open a report or form within the same database? I have a form in my database, I have put a label on it, some text, and when...
2
by: Paul Sullivan | last post by:
I need an "Exit" button on my intranet web app that would direct the user to the opening page of our intranet. The HyperLink control provides that function, but its visual presentation is not a...
1
by: mschoup | last post by:
I have a simple aspx page(WebForm1.aspx) with a HyperLink, LinkButton, and two CheckBoxes. When I select a CheckBox and then click the LinkButton, the CheckBox retains state. When I select the...
19
by: Joe | last post by:
I have an aspx page (referred to here as page_1) with a datagrid whose first column contains hyperlinks. When a user clicks one of these hyperlinks, he will navigate to another aspx page (referred...
7
by: Arpan | last post by:
Both the Hyperlink web server control & the LinkButton web server control display text as links; so what are the differences between the 2 web server controls? Thanks, Arpan
10
by: David Thielen | last post by:
Hi; I have help html pages for each page of my ASP.NET webapp. So for the page datasource.aspx, I have help\datasource.htm. Bu what I want when the hyperlink is clicked, for it to look for the...
2
by: nani | last post by:
Hi friends I am creating one web application in that i take one hyperlink control.when i click hyperlink control.how to split the page in two parts and display the result in that secound part If...
20
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.