CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> .NET

 selected index html control

Print topic Send  topic

Author Message
Posted: 12/07/2004, 1:25 AM

how can i set an item in my select control to "selected" depending on a querystring parameter

Posted: 12/07/2004, 2:36 AM


in before show event of the ListBox you can try the following

If Not Request.QueryString("someparam") Is Nothing Then  
  <FormName><ListBoxName>.SelectedIndex = -1  
  <FormName><ListBoxName>.Value = "somevalue"   
' for example <FormName><ListBoxName>.Value = Request.QueryString("someparam")  
End If  

Posted: 12/07/2004, 3:26 AM

thanks, stan

i found the same way in the online documentation .

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.