473,706 Members | 2,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to trap an event on a html button created with <input....>

I have a html button created with
<input type="submit" id="btnPayNotic es" value="Pay Notices" />

now I need to trap the click event at the server side.

Yes, this button had to be created with plain html, not with asp.net

how can i do this ?
Nov 18 '05 #1
2 1570
add a runat=server

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Rocio" <ro************ @softwareservic es.net> wrote in message
news:7b******** *************** **@posting.goog le.com...
I have a html button created with
<input type="submit" id="btnPayNotic es" value="Pay Notices" />

now I need to trap the click event at the server side.

Yes, this button had to be created with plain html, not with asp.net

how can i do this ?

Nov 18 '05 #2
And create the button in your code.

Protected WithEvents btnPayNotices As System.Web.UI.H tmlControls

'---Note: Create the button exactly the same as it's id.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:ur******** ******@TK2MSFTN GP11.phx.gbl...
add a runat=server

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Rocio" <ro************ @softwareservic es.net> wrote in message
news:7b******** *************** **@posting.goog le.com...
I have a html button created with
<input type="submit" id="btnPayNotic es" value="Pay Notices" />

now I need to trap the click event at the server side.

Yes, this button had to be created with plain html, not with asp.net

how can i do this ?


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3222
by: Dave | last post by:
Hi, I'm using an HTML Input File control on a .Net page and when the Browse button is clicked the file dialog opens at the end user's hard drive. They want this to default to a server share. Is there any way to control where the file dialog opens? Thanks!
1
1198
by: anonymou | last post by:
I have a portal-like site where I cannot use the @ Page validateRequest=false approach for bypassing HTML input because it would affect all pages of the site. Does anyone have a work-around for allowing HTML input only on specific boxes? I was thinking I could encode the content before it is posted to the server. Thank you in advance.
0
1357
by: darren | last post by:
When using the html input file (input type=file), is there anyway to NOT have the file loaded on the server? I am only interested in using this control to browse to a file and then get the filename, but when the form posts the file ends up on the server. I am using a popup window with 4 input file controls on it, and just want to return the file names to the parent window when the popup window closes, I don't want the files loaded. Is...
2
1392
by: Robin | last post by:
On an ASP.Net web page that has a HTML Input file control run on the server side, is there any setting that limits the size of the file that can be uploaded? Is there any validation code that runs when the value of this type of control is selected?
15
4770
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is not validate based on some given rules. I also have a custom error handling page to show the...
2
6601
by: jon | last post by:
Hi This might be an easy one to answer but I have a web form in an ASP.NET 1.1 application with a hand-rolled HTML image button as follows which opens a help guide in a new window: <input type= "image " id= " imgHelp " onclick="javascript:void(window.open('<% Response.Write(ConfigurationSettings.AppSettings); %>')) ">
3
2757
by: vishnu | last post by:
Hi, I am using HTML input file button to browse the file and just am updating the file name in sql server table.But now i want to browse the file from the remote file share path ..How can i specify this path in HTML input button.Is there anyway to open the file from the specified path instead of opening local directory? Thanks,
2
3196
by: RajasScripts | last post by:
Hi I need some guidance in sorting HTML input tag sorting.I am able to sort columns with out input tag and with dates.But the only problem is I am not able to sort a column which is text box with Numbers.I am using sorttable.js file which i got from website. This one is working fine with all the column but not with input tag (I mean text box where user enter Numerical value) Regards Raja
4
13304
by: Chris | last post by:
Hi, i 'm experimenting with postback and i tried that with a button server control and an Html input button but with runat="server". The button server control causes a postback, but not the Html input button with runat="server". Can someone explain me why (because it's running on the server)? Thanks
1
1628
by: tariqahmedpak | last post by:
Hi to All I need to ask that i have HTML Input File Server Control on the page (ASP.NET 2.0) when i browse the file and then in the code behind when i try to apply method HasFile it gives false means no file selected but i have selected a file. Please help me in this problem.
0
8772
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9276
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7895
agi2029
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...
0
5934
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();...
0
4441
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...
0
4705
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3140
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2084
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.