C#-WEB: Cross page postback and HTML Hyperlink

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pechar
    New Member
    • Jan 2008
    • 56

    C#-WEB: Cross page postback and HTML Hyperlink

    Hi all,

    I'm trying to avoid querystrings since they require further validation due to nosy users. I found what is called Cross-Page postbacks and really like them but I have one problem I need to use a plain hyperlink not an asp:LinkButton. This is because the site has to work even with javascript disabled.

    In other words: I dont want to use session/viewstate/context/cache/hidden fields/cache and I want to pass data from one aspx page to another using a hyperlink or similar control (and this has to be javascript free).

    Is there any way of doing this?

    Thanks
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Can you use a regular old html form, POST style?
    Can you retain values in the Session object?

    Comment

    • pechar
      New Member
      • Jan 2008
      • 56

      #3
      Originally posted by Plater
      Can you use a regular old html form, POST style?
      Can you retain values in the Session object?
      Unfortunately not, since for cross-page postbacks I am required to set the PostBackUrl of the control I use to submit the form. And I cant find a control that looks like a link that does this. I wish the LinkButton worked on server side if the client side fails like with Validators. Maybe someone could give me a guide on how to modify it and add this functionality?

      I suppose I'm stuck with query strings :(

      Thanks anyway

      Comment

      Working...