S
Sarmatia
I had a page working. The user moves data around the page - to and from
different ListBoxes and could save the changes with a click of a
button. Sounds easy, but *that's* a whole other nightmare.
Nevertheless, it was working. The Submit button was an asp:button with
an OnClick server-side method. Easy-cheesy.
Enter in-house standards.
I need to add an access key and underline the letter on the button
signifying what it is.
No can do with asp:buttons. AccessKey, yes. Underline One letter, No.
But, many posts say (and I've searched for better solutions) to use
something like
<button id="btn1" runat="server" type="submit"><u>B</u>utton1</button>
Ok, but how does one capture that post/submit on the server side?
I tried the Page_Load event, but then that interferes with my
DropDownList SelectedIndexChanged event - meaning that and the Submit
both are post-backs but have different functions. One loads the data
for a selected item, while the other saves changes to the database.
why am I continually fighting ASP.Net, not to mention the IDE
continually screwing up my code formatting?
In short; how do I assign a server side function to handle the click
event of a <button runat="server"></button>?
different ListBoxes and could save the changes with a click of a
button. Sounds easy, but *that's* a whole other nightmare.
Nevertheless, it was working. The Submit button was an asp:button with
an OnClick server-side method. Easy-cheesy.
Enter in-house standards.
I need to add an access key and underline the letter on the button
signifying what it is.
No can do with asp:buttons. AccessKey, yes. Underline One letter, No.
But, many posts say (and I've searched for better solutions) to use
something like
<button id="btn1" runat="server" type="submit"><u>B</u>utton1</button>
Ok, but how does one capture that post/submit on the server side?
I tried the Page_Load event, but then that interferes with my
DropDownList SelectedIndexChanged event - meaning that and the Submit
both are post-backs but have different functions. One loads the data
for a selected item, while the other saves changes to the database.
why am I continually fighting ASP.Net, not to mention the IDE
continually screwing up my code formatting?
In short; how do I assign a server side function to handle the click
event of a <button runat="server"></button>?