Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - LinkButton control variable and use in VB function
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

LinkButton control variable and use in VB function

 Post Reply Post Reply
Author
webpaws View Drop Down
Newbie
Newbie
Avatar

Joined: 20 August 2008
Location: Boston
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote webpaws Quote  Post ReplyReply Direct Link To This Post Topic: LinkButton control variable and use in VB function
    Posted: 20 August 2008 at 5:46am
I am new to asp.net/VB and have been trying to make an HTML control (LinkButton or RadioButton) set a variable in the behind code in VB and run in a paging function to display a certain number of items in a datalist.

I can get the radiobutton values assigned to a variable and post back through a Response.Write, but the variable is null within the behind VB code function.  Is there a way to set a global variable to be passed into a VB function created from a radio button submit or linkbutton submit?
Back to Top
webpaws View Drop Down
Newbie
Newbie
Avatar

Joined: 20 August 2008
Location: Boston
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote webpaws Quote  Post ReplyReply Direct Link To This Post Posted: 27 August 2008 at 6:57pm
This problem was solved using a URL variable and pulling the info (URL variable) via a Request.QueryString("variable") command.

e.g., the page being called:  http://www.mywebsite.com?variable=mydata

The VB code behind:
 variable = Request.QueryString("variable") 'which equals "mydata"
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.