Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Kotuby - 12 Dec 2007 15:31 GMT
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
Patrice - 12 Dec 2007 15:42 GMT
I would try a LinkButton with a postback url property...

--
Patrice

> Hi all,
> I have an asp:HyperLink control on a page which also contains a hidden
[quoted text clipped - 9 lines]
>
> TIA
John Kotuby - 12 Dec 2007 16:20 GMT
Patrice,
Thanks for the suggestion...I will try it.

>I would try a LinkButton with a postback url property...
>
[quoted text clipped - 14 lines]
>>
>> TIA
Scott Lloyd - 18 Dec 2007 21:03 GMT
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

>I would try a LinkButton with a postback url property...
>
[quoted text clipped - 14 lines]
>>
>> TIA
Peter Bromberg [C# MVP] - 12 Dec 2007 15:55 GMT
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 

> Hi all,
> I have an asp:HyperLink control on a page which also contains a hidden form
[quoted text clipped - 9 lines]
>
> TIA
John Kotuby - 12 Dec 2007 16:19 GMT
Peter,
Thanks for your input.

>A single field value stored in a Session variable isn't going to use up
>much
[quoted text clipped - 22 lines]
>>
>> TIA

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.