1

I have added a confirmation dialog before deleting an item in asp.net web page. Here's my coding.

OnClientClick="return confirm('Are you sure you want to delete this Contact Record?');"

It gives the default title as "The page at local host:49456 says:" I need to change that default title of this dialog box.My default browser is Google chrome. Can somebody help me??? Thanx in advance.

Dinithi De Silva
  • 1,142
  • 5
  • 28
  • 46

2 Answers2

0

Give the Header needed like this.

   OnClientClick="return confirm('Are you sure you want to delete this Contact Record?','Your Title');
G . R
  • 543
  • 1
  • 6
  • 12
0

note: when tweaking page title - can't change it here if the aspx page sets it to "". so, in the .aspx page set it to something other than empty string; e.g.:

  Page.Title = "Some New Title";
Willi Mentzel
  • 27,862
  • 20
  • 113
  • 121
Gary Huckabone
  • 402
  • 3
  • 10