| | |
Problem With Image Button
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 2
Reputation:
Solved Threads: 0
This may be a simple solution but I cant seem to find it anywhere!
Basically I have just added an imagebutton to My masterpage I have just realised that on my login page i type in the credentials and hit enter however this triggers the image button click event and goes to the homepage.
If there is anyway to disable this I would very much appreciate it
If you require more info please let me no
Thank you in advance
Daniel
Basically I have just added an imagebutton to My masterpage I have just realised that on my login page i type in the credentials and hit enter however this triggers the image button click event and goes to the homepage.
If there is anyway to disable this I would very much appreciate it
If you require more info please let me no
Thank you in advance
Daniel
Last edited by DanielPartridge; Apr 3rd, 2009 at 5:53 am.
greeny_1984: Well that would just exhibit the same behaviour as whats currently happening. But you're on the right track.
Image buttons are rendered as type="submit" which means when you press the enter key it is assumed you are submitting. This is an HTMl Forms standard thing.
You need to place your credentials controls in an asp:Panel and set the DefaultButton attribute of the panel to the save button ID for your form.
Image buttons are rendered as type="submit" which means when you press the enter key it is assumed you are submitting. This is an HTMl Forms standard thing.
You need to place your credentials controls in an asp:Panel and set the DefaultButton attribute of the panel to the save button ID for your form.
Last edited by hollystyles; Apr 3rd, 2009 at 9:34 am.
•
•
Join Date: Apr 2009
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
greeny_1984: Well that would just exhibit the same behaviour as whats currently happening. But you're on the right track.
Image buttons are rendered as type="submit" which means when you press the enter key it is assumed you are submitting. This is an HTMl Forms standard thing.
You need to place your credentials controls in an asp: Panel and set the DefaultButton attribute of the panel to the save button ID for your form.
![]() |
Similar Threads
- Catching Dynamic Button Events (ASP.NET)
- raise event handler for image button (ASP.NET)
- image button problem (ASP.NET)
- uplaoding an image using a button (Python)
- how we display image on button? (VB.NET)
- please anybody help to solve keydown event for enter button problem (HTML and CSS)
- Tkinter Button(s) (Python)
- Preview Upload Image Problem (PHP)
- Weird Image Issues in Acrobat 6.0.2 Pro (Mac Software)
Other Threads in the ASP.NET Forum
- Previous Thread: Textbox not updating...
- Next Thread: Sql Insert problem
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox click commonfunctions control css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iframe iis javascript listbox login microsoft mono mouse mssql multistepregistration news novell numerical objects opera panelmasterpagebuttoncontrols radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers






