473,545 Members | 2,679 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:hyperlin k id="HyperLink4 " runat="server"
NavigateUrl="so mefolder/whatever.aspx"> HyperLink Text</asp:hyperlink>
<asp:hyperlin k id="HyperLink5 " runat="server"
NavigateUrl="bl ah.aspx">HyperL ink 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 6943
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******* *******@TK2MSFT NGP11.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:hyperlin k id="HyperLink4 " runat="server"
NavigateUrl="so mefolder/whatever.aspx"> HyperLink Text</asp:hyperlink>
<asp:hyperlin k id="HyperLink5 " runat="server"
NavigateUrl="bl ah.aspx">HyperL ink 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
6375
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 previous invoices for each client. The problem is that other workstations on the LAN cannot open the documents (they can connect to the database okay)....
6
6213
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 the user clicks on it I want it to open one of the reports. It's easy enough to use the 'On Click' Event procedure to open another object,...
2
1353
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 button. How I can I have a submit button that works as a hyperlink out of my ASP.NET app??
1
2609
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 CheckBox and click the HyperLink (NavigateURL set to WebForm1.aspx), the CheckBox lost it's state. I would assume that this is by design (now that...
19
3467
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 to here as page_2). I need to cache the value of the link's text (hyperlink.text property) so that I can use it in the page_load event of page_2....
7
1819
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
2267
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 following files in order (assuming I am running from the us): help\datasource_en_US.htm help\datasource_en.htm help\datasource.htm
2
1625
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 the result is not there again in orginal format How to create it plz tell
20
2977
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 a control. I have 2 files "displayCompanyJobs.aspx" and "displayCompanyOverview.aspx" which are in both the folder "/jobseeker/" and "/employer/"....
0
7428
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7685
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7941
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7784
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5354
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5071
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1916
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1039
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.