Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 21st, 2011, 01:14 PM
Registered User
 
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to get value of combobox during Combobox index change in server side

Hi,

I have one asp code like this

HTML Code:
<tr>
	<td  style="WIDTH:430px"><b>Release type</td>
	<td><SELECT style="LEFT: 454px; WIDTH: 220px; TOP: 413px" name="txtrt" id="txtrt">
	<OPTION value="" selected></OPTION>
<OPTION value="Kernel">Kernel</OPTION>
	<OPTION value="Cluster">Cluster</OPTION>
	<OPTION value="Custom">Custom</OPTION>
	</SELECT></td>

	<tr><td><b>Release Version</td>
<td>
	<%    
	rtyp=Request.Form("txtrt")
	  Set con=server.CreateObject("adodb.connection")
			con.Open session("Psrconnect")
			Set rs=server.CreateObject("Adodb.Recordset")
	
			
			rs.Open "select release_name from release_statistics where release_type='"&rtyp&"'",con
			
			
	%>				
	<SELECT style="LEFT: 454px; WIDTH: 220px; TOP: 413px" name="txtconsol2" id="txtconsol2">
	<OPTION value="Select Release" >Select Release</OPTION>
	<% do while rs.eof<>true
					
	%>
	<OPTION value="<%=rs.fields(0)%>" ><%=rs.fields(0)%>  </OPTION>
	
	<%
	rs.movenext 
	loop
	%>
Here, I am not able to get the value of 'txtrt' to rtyp. request.Form is working in other parts of the page. Why this is happening. how can get the value of 'txtrt', so that I can retrieve values from database based on that. Please help. I am playing around the problem for the last 2days. Is there is any alternate way to do this. I can get the value of txtrt using vb script. But,how can i pass that value to server side so that i can retrieve values from database





Similar Threads
Thread Thread Starter Forum Replies Last Post
Change top position of an asp image control on server side ceboc ASP.NET 4 General Discussion 3 September 30th, 2010 08:42 AM
Change of event using 2 combobox yogeshyl Excel VBA 0 July 31st, 2007 05:02 AM
Filling Combobox with value from other Combobox ayazhoda Access VBA 6 June 5th, 2007 04:58 AM
Change stylesheet file on the server side jdang67 ASP.NET 1.0 and 1.1 Professional 0 October 25th, 2005 10:29 AM
ComboBox BackColor change LoorD C# 4 October 6th, 2005 12:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.