Passing Arguments when a Button is Clicked

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cday119
    New Member
    • Mar 2008
    • 29

    Passing Arguments when a Button is Clicked

    Hey,

    I have a button that shows another form. What is the best way to pass an argument to the form that is called when I click that button.

    Thanks.
  • malav123
    New Member
    • Feb 2008
    • 217

    #2
    Hi,
    If you want to pass the argument to the another page of your project than query string is the best way....

    Comment

    • kunal pawar
      Contributor
      • Oct 2007
      • 297

      #3
      Yes, he is right. using querystring you can pass value to next page but it is not secure method. so u can use hidden control or viewstate

      Comment

      • malav123
        New Member
        • Feb 2008
        • 217

        #4
        Originally posted by kunal pawar
        Yes, he is right. using querystring you can pass value to next page but it is not secure method. so u can use hidden control or viewstate
        Yes it is not secured but we can pass the query string in encrypted form and it can be received as decrypted form in another page, you said about viewstate but how to access the value of viewstate in another page of project...?

        Comment

        Working...