473,513 Members | 3,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I don't want to post a form by clicking on ImageButton

I want to post my form by clicking on a RadioButton but
not on clicking on an ImageButton. How to do to execute
only the click procedure of the ImageButton and not the
postback of my page. Because on the postback of my page I
want to test the request.form of my RadioButton.
I try to change the CausesValidation property of the
ImageButton but it doesn't work better.

Thanks for your help.
Jul 19 '05 #1
1 1760
The Click procedure is server side code, so it has to postback. If you want
to process on the client side you will have to add Javascript to the page
and intercept the click to the client JavaScript.

Tom
--
==========================================
= Tom Vande Stouwe MCSD.net, MCAD.net, MCP
= 45Wallstreet.com (www.45wallstreet.com)
= (803)-345-5001
==========================================
= If you are not making any mistakes
..= ..you are not trying hard enough.
==========================================
"Gaëtan" <ga***********@ispv.fr> wrote in message
news:09****************************@phx.gbl...
I want to post my form by clicking on a RadioButton but
not on clicking on an ImageButton. How to do to execute
only the click procedure of the ImageButton and not the
postback of my page. Because on the postback of my page I
want to test the request.form of my RadioButton.
I try to change the CausesValidation property of the
ImageButton but it doesn't work better.

Thanks for your help.

Jul 19 '05 #2

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

Similar topics

1
2137
by: Mr Mint | last post by:
Hi all, I have a page named register.php, which is a form for collecting user data. As an example: - I have the fields Name, Surname, email. - In the <form> tag I have action ="" - The page register.php has a condition if (isset($_POST)) { include('register2.php'); }
1
474
by: TB | last post by:
Howdy... I have an asp.net web form with an ImageButton control on the form. When clicked, the ImageButton's click event handler is supposed to pass X and Y coordinates of the mouse click's location on the PAGE. I know that I can see the X, Y coords for the click event relative to the ImageButton control, but this does no good for my...
7
4470
by: Grant Merwitz | last post by:
Hi I am trying to get the enter key to submit my login form The login form is currently in a control on the page and uses an asp:imagebutton as it's login button. If a user presses enter currently, the page just reloads. I have tried to use some javascript to set the enter key on the button, but this script only seems to work for an...
3
341
by: TCORDON | last post by:
I have two different web pages...one has 2 textboxes (Username and Pwd) and an Image button, in this webpage if the user enters his username and pwd and hits enter, the ImageButton's click event is fired. In the other WebPage I just have a Textbox and an imageButton, vut in this one if the user fills the textbox and then hits Enter the form is...
4
1594
by: Jaime | last post by:
Hi all, I'm not sure if this is the correct forum, but here goes. Is there a way to not post back after a button (actually imagebutton) is clicked? I have something like: <asp:ImageButton ID="something" ImageUrl="pic.gfx" Runat="Server" OnClick="ViewDetails('"+id+"')" />
1
353
by: Gaëtan | last post by:
I want to post my form by clicking on a RadioButton but not on clicking on an ImageButton. How to do to execute only the click procedure of the ImageButton and not the postback of my page. Because on the postback of my page I want to test the request.form of my RadioButton. I try to change the CausesValidation property of the ImageButton but...
4
1597
by: Benny Ng | last post by:
Dear All, <input type="checkbox" name="chkAgreement" value="0">I agree with the above terms and conditions <asp:ImageButton ID="ImgBtnSubmit" Runat="server" CausesValidation=True ImageUrl="images/submit.gif" width="70" height="30"></asp:ImageButton>
3
4496
by: YMPN | last post by:
Hi Everyone, I'm deen from Riyadh. Please do help me with some problem i have. I have this formview control setup to recieved inputs from user (textbox, dropdownlist, others). After inserting, I want to send the data via email, the problem is how do I do that?
1
1633
by: Jonathan Wood | last post by:
I'm trying to convert some old HTML pages to ASP.NET. I'm experimenting with code that responds to a button click. But although the mouse turns into a hand pointer when it is over the button, absolutely nothing happens when I click it. Does anyone know if this could have anything to do the fact that my button is on a master page (along...
0
7270
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...
0
7178
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...
0
7563
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7125
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...
0
7543
tracyyun
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...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
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
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
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...

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.