473,404 Members | 2,178 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,404 software developers and data experts.

Can a Hyperlink control be forced to Post as well as navigate?

Hi all,
I have an asp:HyperLink control on a page which also contains a hidden form
field. I want the target page specified in the NavigateURL to be able read
the contents of the hidden form field but I also want to keep the look and
feel of a standard Hyperlink. I do not want the contents of the hidden field
passed in the QueryString.

I have seen posts where many developers have suggested using User Session
variables for that purpose. I want to keep server resource use to a minimum
and for some reason think that Session variables use more resources than
posting a hidden field.

TIA
Dec 12 '07 #1
5 1240
I would try a LinkButton with a postback url property...

--
Patrice

"John Kotuby" <Jo********@discussions.microsoft.coma écrit dans le message
de news: uP*************@TK2MSFTNGP06.phx.gbl...
Hi all,
I have an asp:HyperLink control on a page which also contains a hidden
form field. I want the target page specified in the NavigateURL to be able
read the contents of the hidden form field but I also want to keep the
look and feel of a standard Hyperlink. I do not want the contents of the
hidden field passed in the QueryString.

I have seen posts where many developers have suggested using User Session
variables for that purpose. I want to keep server resource use to a
minimum and for some reason think that Session variables use more
resources than posting a hidden field.

TIA

Dec 12 '07 #2
A single field value stored in a Session variable isn't going to use up much
memory.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"John Kotuby" wrote:
Hi all,
I have an asp:HyperLink control on a page which also contains a hidden form
field. I want the target page specified in the NavigateURL to be able read
the contents of the hidden form field but I also want to keep the look and
feel of a standard Hyperlink. I do not want the contents of the hidden field
passed in the QueryString.

I have seen posts where many developers have suggested using User Session
variables for that purpose. I want to keep server resource use to a minimum
and for some reason think that Session variables use more resources than
posting a hidden field.

TIA
Dec 12 '07 #3
Peter,
Thanks for your input.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.NoSpamMaam.comwrote in message
news:3A**********************************@microsof t.com...
>A single field value stored in a Session variable isn't going to use up
much
memory.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"John Kotuby" wrote:
>Hi all,
I have an asp:HyperLink control on a page which also contains a hidden
form
field. I want the target page specified in the NavigateURL to be able
read
the contents of the hidden form field but I also want to keep the look
and
feel of a standard Hyperlink. I do not want the contents of the hidden
field
passed in the QueryString.

I have seen posts where many developers have suggested using User Session
variables for that purpose. I want to keep server resource use to a
minimum
and for some reason think that Session variables use more resources than
posting a hidden field.

TIA

Dec 12 '07 #4
Patrice,
Thanks for the suggestion...I will try it.

"Patrice" <http://www.chez.com/scribe/wrote in message
news:OT**************@TK2MSFTNGP03.phx.gbl...
>I would try a LinkButton with a postback url property...

--
Patrice

"John Kotuby" <Jo********@discussions.microsoft.coma écrit dans le
message de news: uP*************@TK2MSFTNGP06.phx.gbl...
>Hi all,
I have an asp:HyperLink control on a page which also contains a hidden
form field. I want the target page specified in the NavigateURL to be
able read the contents of the hidden form field but I also want to keep
the look and feel of a standard Hyperlink. I do not want the contents of
the hidden field passed in the QueryString.

I have seen posts where many developers have suggested using User Session
variables for that purpose. I want to keep server resource use to a
minimum and for some reason think that Session variables use more
resources than posting a hidden field.

TIA


Dec 12 '07 #5
Yeah. Just use a LinkButton instead then in the redirect after you're done
handling the event do a Response.Redirect.

Scott Lloyd
Lloyd Software

"Patrice" <http://www.chez.com/scribe/wrote in message
news:OT**************@TK2MSFTNGP03.phx.gbl...
>I would try a LinkButton with a postback url property...

--
Patrice

"John Kotuby" <Jo********@discussions.microsoft.coma écrit dans le
message de news: uP*************@TK2MSFTNGP06.phx.gbl...
>Hi all,
I have an asp:HyperLink control on a page which also contains a hidden
form field. I want the target page specified in the NavigateURL to be
able read the contents of the hidden form field but I also want to keep
the look and feel of a standard Hyperlink. I do not want the contents of
the hidden field passed in the QueryString.

I have seen posts where many developers have suggested using User Session
variables for that purpose. I want to keep server resource use to a
minimum and for some reason think that Session variables use more
resources than posting a hidden field.

TIA

Dec 18 '07 #6

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

Similar topics

4
by: Salad | last post by:
If I create a field as a hyperlink, Access will open the hyperlink if I single click it. Is there a method within the operating system that would tell access to only open the hyperlink if...
1
by: ashoo | last post by:
Guys! I am trying to use a dropdownlist click event in my header page to link to my main page in a frameset type of form. I try to link to my main page with a hyperlink control.It works fine....
4
by: | last post by:
Does anyone know how to trigger the click event of a hyperlink control programmatically? Thanks for helping.
4
by: Amir Eshterayeh | last post by:
Dear Friends My asp hyperlink goes to relative address instead of absolute. I like navigate url goes to outsite link like www.asp.net but now, it goes to www.mysite/www.asp.net please help....
2
by: Amir Eshterayeh | last post by:
Dear Friends I put a asp.net hyperlink control inside a datagrid as even a template column or hyperlink column but can not force datagrid to open a new window when I clicked on the hyperlink. I...
5
by: Martin Dew | last post by:
Having some problems getting a hyperlink object to work in my repeater control, It displays the text I have asked it to for the hyperlink, but it does not act as a link. My repeater code is below...
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...
3
by: sloesch | last post by:
I am working with VS.net 2003, framework 1.1, developing with VB.net, and ASP.net, and I would like to know how you can create a dynamic hyperlink on the fly to a document stored in a SQL database?...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.