How to use variable on aspx which is declared in .vb ???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nishant Deep
    New Member
    • Mar 2010
    • 2

    How to use variable on aspx which is declared in .vb ???

    Hi ,

    I am getting some value from another form using Request.QuerySt ring.Get(" test") and then i need to use this value on aspx page.


    Dim strTest as string = Request.QuerySt ring.Get("test" )


    and on aspx page if am using
    Var vartest = <%= strProductBU %>

    but it gives comilation error.......... ...

    Please help me out

    Thanks in advance.......

    Nishant
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    but it gives comilation error.......... ...
    What is the error?
    Can you provide the entire method where the error occurs?

    Comment

    • searock
      New Member
      • Mar 2010
      • 9

      #3
      Instead of using <%= strProductBU %> use a label, I mean insert a label over there, lets say label1. In the form load use
      Code:
      label1.Text=Request.QueryString.Get("test")

      Comment

      • Nishant Deep
        New Member
        • Mar 2010
        • 2

        #4
        I need to use as parameter for filtering values to the another form

        Comment

        Working...