How to Add Message and Confirmation Boxes Using JavaScript?
Answer / guest
public void AddConfirmMessage(WebControl ctl, string
message)
{
ctl.Attributes.Add("onclick", "if ( ! confirm( '"
+ message + "' )) return false; ");
}
public void AddPopupMessage(WebControl ctl, string message)
{
ctl.Attributes.Add("onclick", "alert( '" + message
+ "'); ");
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Reading which Character Key was pressed
Reading which Non-Character Key was pressed
how to Auto Scroll the page
function to combine two or more arrays
code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc
How to block double clicks
code to sorting an array of objects
Create a ViewState Property?
Create a Menu that can be activated while clicking on Right Mouse button
program to show a progress bar
i am making a purchase sheet in html ,it contain names of product(by selecting checkboxes),quantity(textbox) and price(checbox), by using java script i am restricting the user to prevent them to enter the wrong data ,so i made the servlet were i am only able to prevent them to enter the page in empty field , so my doubt is how do you prevent them how to enter non numerical data in quantity field
maximizing the main window