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,082
  • 5
  • 26
  • 45

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
  • 24,988
  • 16
  • 102
  • 110
Gary Huckabone
  • 361
  • 2
  • 9