By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,364 Members | 1,518 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,364 IT Pros & Developers. It's quick & easy.

Get Rid of '-- Web Page Dialog' in Title Bar

P: n/a
I have implemented a dialog box (an aspx page) using showModalDialog.
Because the dialog needs to process postbacks, I have implemented it in a
frameset. In the top of the framset page, I have defined a title as follows:

<title>My Title</title>

At runtime, the text in the title bar appears like this:

My Title -- Web Page Dialog

How can I cause the dialog to appear with my title only - i.e., without " --
Web Page Dialog" getting appended to my title?

Thanks!
Nov 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Hi Fred,

I think you'll find that the text is hardcoded into Internet Explorer...
Just the same as the way Internet Explorer appears in the regular browser
title bar. It is probably in the Registry somewhere but that doesn't help
you much.
"Fred" <th*************@skruspammers.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I have implemented a dialog box (an aspx page) using showModalDialog.
Because the dialog needs to process postbacks, I have implemented it in a
frameset. In the top of the framset page, I have defined a title as
follows:

<title>My Title</title>

At runtime, the text in the title bar appears like this:

My Title -- Web Page Dialog

How can I cause the dialog to appear with my title only - i.e., without
" --
Web Page Dialog" getting appended to my title?

Thanks!


Nov 18 '05 #2

P: n/a
Hummm, maybe... here's the deal: I have a demo application that I've been
disecting. It has modal dialog boxes that do not display that text in the
title bar ("-- Web Page Dialog"). So, is it possible that the demo app opens
the dialog box using something other than showModalDialog()? I don't have
access to the compiled source of the demo, so I can't discover for myself
what it is actually doing.

One observation I have about it is that the authors seem to have found a way
to do modal dialog boxes that do postbacks without needing to have a
frameset. I'd like to model that, however after trying lots of things I went
with Bruce Barker's recommendation to place the aspx within a frameset (the
only way I've found to do a modal dialog that can do postbacks). Not to go
off on a tangent -- my point is that it seems like the demo application I'm
disecting does modal dialogs in some special way. Whatever they are doing
apparently doesn't require a frameset and doesn't have that annoying text in
the title bar. Any thoughts on what they might be doing?

Thanks again.
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:uo**************@tk2msftngp13.phx.gbl...
Hi Fred,

I think you'll find that the text is hardcoded into Internet Explorer...
Just the same as the way Internet Explorer appears in the regular browser
title bar. It is probably in the Registry somewhere but that doesn't help
you much.
"Fred" <th*************@skruspammers.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I have implemented a dialog box (an aspx page) using showModalDialog.
Because the dialog needs to process postbacks, I have implemented it in a frameset. In the top of the framset page, I have defined a title as
follows:

<title>My Title</title>

At runtime, the text in the title bar appears like this:

My Title -- Web Page Dialog

How can I cause the dialog to appear with my title only - i.e., without
" --
Web Page Dialog" getting appended to my title?

Thanks!

Nov 18 '05 #3

P: n/a
Slight modification to my previous post - they are using showModalDialog...
found it in their JavaScript... just substituted my aspx frameset page for
their aspx page name in the js, and mine shows that text ("-- Web Page
Dialog"). Could it have to do with the fact that I'm using a Framset and
they are not?
"Fred" <th*************@skruspammers.com> wrote in message
news:ui*************@TK2MSFTNGP12.phx.gbl...
Hummm, maybe... here's the deal: I have a demo application that I've been
disecting. It has modal dialog boxes that do not display that text in the
title bar ("-- Web Page Dialog"). So, is it possible that the demo app opens the dialog box using something other than showModalDialog()? I don't have
access to the compiled source of the demo, so I can't discover for myself
what it is actually doing.

One observation I have about it is that the authors seem to have found a way to do modal dialog boxes that do postbacks without needing to have a
frameset. I'd like to model that, however after trying lots of things I went with Bruce Barker's recommendation to place the aspx within a frameset (the only way I've found to do a modal dialog that can do postbacks). Not to go
off on a tangent -- my point is that it seems like the demo application I'm disecting does modal dialogs in some special way. Whatever they are doing
apparently doesn't require a frameset and doesn't have that annoying text in the title bar. Any thoughts on what they might be doing?

Thanks again.
"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:uo**************@tk2msftngp13.phx.gbl...
Hi Fred,

I think you'll find that the text is hardcoded into Internet Explorer...
Just the same as the way Internet Explorer appears in the regular browser
title bar. It is probably in the Registry somewhere but that doesn't help you much.
"Fred" <th*************@skruspammers.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I have implemented a dialog box (an aspx page) using showModalDialog.
Because the dialog needs to process postbacks, I have implemented it in
a frameset. In the top of the framset page, I have defined a title as
follows:

<title>My Title</title>

At runtime, the text in the title bar appears like this:

My Title -- Web Page Dialog

How can I cause the dialog to appear with my title only - i.e.,

without " --
Web Page Dialog" getting appended to my title?

Thanks!


Nov 18 '05 #4

P: n/a

"Fred" <th*************@skruspammers.com> wrote in message news:u$**************@TK2MSFTNGP10.phx.gbl...
Slight modification to my previous post - they are using showModalDialog...
found it in their JavaScript... just substituted my aspx frameset page for
their aspx page name in the js, and mine shows that text ("-- Web Page
Dialog"). Could it have to do with the fact that I'm using a Framset and
they are not?


Just a guess, what are they using as title?
If you manage to get a lot of spaces after the "real" title, the postfix
might be added, but somewhere outside the titlebar.

I don't think it has anything to do with framesets.

Hans Kesting
Nov 18 '05 #5

P: n/a
Clever idea.... just push the appended content out where it won't be seen!
"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:uH**************@tk2msftngp13.phx.gbl...

"Fred" <th*************@skruspammers.com> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
Slight modification to my previous post - they are using
showModalDialog...
found it in their JavaScript... just substituted my aspx frameset page
for
their aspx page name in the js, and mine shows that text ("-- Web Page
Dialog"). Could it have to do with the fact that I'm using a Framset and
they are not?


Just a guess, what are they using as title?
If you manage to get a lot of spaces after the "real" title, the postfix
might be added, but somewhere outside the titlebar.

I don't think it has anything to do with framesets.

Hans Kesting


Nov 18 '05 #6

P: n/a
Right You Are! When I first looked at the aspx in question,I wondered what
all the &nbsp; were all about. Now we know. Here's what they have:

<title><%= GetString("pTitle") %>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</title>

They probably have so many because the modal dialogs are resizable.

Cheers!

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Clever idea.... just push the appended content out where it won't be seen!
"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:uH**************@tk2msftngp13.phx.gbl...

"Fred" <th*************@skruspammers.com> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
Slight modification to my previous post - they are using
showModalDialog...
found it in their JavaScript... just substituted my aspx frameset page
for
their aspx page name in the js, and mine shows that text ("-- Web Page
Dialog"). Could it have to do with the fact that I'm using a Framset and they are not?


Just a guess, what are they using as title?
If you manage to get a lot of spaces after the "real" title, the postfix
might be added, but somewhere outside the titlebar.

I don't think it has anything to do with framesets.

Hans Kesting

Nov 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.