I have a form with 6 fields. 3 of fields have their own submit button (using button element). I have a select case conditional to capture what button was used. My "Case"'s do not catch the value. I use a request.form("v ariable") to catch the value of the button.
line 100 is where I catch the value, line 72 is the first of the 3 buttons. would be easier with javascript and onclick functions, but trying to learn ASP Classic. The purpose of this form is to build a query based on what they enter, so each case statement would assign the correct sql based on what they were using to search. 2 6785 jhardman 3,406
Recognized Expert Specialist
is this going to the case else every time?
syntax should be: - Case "sicDescrSubmit"
-
myQuery="sicDescrSubmit"
-
Case "SicSubmit"
-
myQuery="SicSubmit"
value should be in quotes. but I'm not sure that is the only issue.
Thank you Jhardman. I did give up and put them all in one form instead, but now I see what I did wrong. Thanks
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Amadelle |
last post by:
Hi all and thanks in advance,
I am stuck! I can't figure out how to identify which button was clicked on my ASP.NET page in the PostBack event? So what I am trying to do is to is to have an if statement like as follows in the PageLoad:
private void Page_Load(object sender, System.EventArgs e) {
if (!Page.IsPostBack) {
//do something here
} else {
|
by: Shawn |
last post by:
Hi.
I have a ToolBar with a couple of ToolBarButtons. On postback after
clicking on of the buttons Page_Load is called first then the
ToolBarButton's click event is called. Is there anyway for me to check in
Page_Load which of the buttons have been clicked?
Thanks,
Shawn
|
by: Mac via DotNetMonster.com |
last post by:
Hi all,
I have searched some old posts and it appears that to run some code for a
particular button that has been clicked on a toolbar, I need to have a case
statement in the toolbar click event function.
Can anyone supply me with the specific case statement code to determine which
button has been clicked? The posts that I found only have code samples in C#
tia,
|
by: AlecL |
last post by:
Hi All,
I am trying to capture the value of a textbox as a result of a button
click event in a repeater, but it can't find the textbox.
Here is what I am trying to do in the code for the click event:
Dim prodkey As String = CType(FindControl("txtProductkey"),
TextBox).Text.ToString()
Response.Redirect("store_shoppingcart.aspx?pkey=" & prodkey)
|
by: John |
last post by:
Hi,
I would like to create an eventhandles that handles several different
buttons.
How can I detect which button was clicked on ?
I know it something with the sender ...
something like
| |
by: mukeshrasm |
last post by:
Hi
I have a html in which there is two selection box and two radio button. Radio buttion is of array type.
What I want if user will click the radio button then only he/she be able to make selection from select list. Initially I tried to disble the selection control. And when user will click the radio then only it was enabled. but I faced problem that value is not passed to the next form of the select list. so I enable the select list now...
|
by: tiijnar |
last post by:
Hi,
I am using a JSP in my application. In JSP page I created tables and buttons inside a loop.
<%
i=0;
while(i<4) {
%>
<table align="left" width="100%">
<tr>
|
by: shashi shekhar singh |
last post by:
Dear sir,
I have a word document file contains text and images, now i have saved it as a web page and wants to display it on browser ,
using ,
string str=directory.getfiles("");
response.contentType="text/html";
response .writefile("");
it displayed in different format and images not shown
blank spaces shown as ?????????? and image as X.
|
by: dougancil |
last post by:
I have a form that has a datatable on it with the following code:
Imports System.Data.SqlClient
Imports System.Data
Public Class AddHoliday
Private Sub AddHoliday_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'MDRDataSet5.scratchpad2' table. You can move, or remove it, as needed.
...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |