Click here to Skip to main content
15,902,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear ,

I am using validation summary. My message box displayed well but at its title "Message from webpage" appears. I need to change this title to my custom.

Please suggest me if any solution .


Thanks.
Posted
Comments
walterhevedeich 28-Apr-11 4:10am    
maybe you can post your code so we'll have an idea.

Download JQuery Alert and add this line to your master page.
XML
<script type="text/javascript">
    window.alert = function (txt, title) {
        if (title === undefined) title = "Default Name";
        jAlert(txt, title);
    };
</script>
 
Share this answer
 
As the message box displayed by the ValidationSummary control is a Javascript alert(), you can't change the title.

You could create a custom server control that inherits from ValidationSummary and override the Render() method to show a hidden html element that looks like a message box
 
Share this answer
 
Also check jquery alert box[^] you can display the title you want.
 
Share this answer
 
You can also try Custom Alert Demonstration[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900