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

open window, what am I missing

P: n/a
I know this is a dead horse I'm beating but why is it so impossible to ask
for functionality in the HTML tag to open a window/page more controllable?
why is:
<a href="somepage.aspx?value1=xyz" target="_blank">click here</a>
can't be:
<a href="somepage.aspx?value1=xyz" pagewidth="500px or %" page height="500px
or %" target="_blank">click here</a>

then what about in the code behind using:
response.redirect("somepage.aspx?value1=xyz", "width=500", "height=500")

to better control browser window opening, etc. Why is this asking for too
much?

I have a button that I add form the code behind the attributes.add function
for a JavaScript 'window.showModalDialog' but I also need to add some more
code (save data) before the opening of the new window. How can I do this once
the button is click and the 'on_click' fires, the window is opened.

using in code behind:
btnxyz.Attributes.Add("onclick",
"window.showModalDialog('page.aspx','dialogWidth:5 00px; scroll:no; help:0;
resizable:no; center:yes; edge:sunken; status:no')")

Can I turn on the AutoPostBack to "Submit" the form then will the
"On_Click"fire?

Sorry if so confusing. Thanx.

Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I usually just do a quick javascript to open a window..something like this:

response.write ("<script
language=javascript>window.open('mypage.aspx?parm1 =hello', '_blank',
'height=250,width=500,titlebar=yes,top=75,left=125 ,scrollbars=no,status=no,resizable=yes');</script>")

Most likelyit not the answer you want, but it works for most cases If you
wanted to be picky, you could register the script instead of just
response.write-ing it.

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
I know this is a dead horse I'm beating but why is it so impossible to ask
for functionality in the HTML tag to open a window/page more controllable?
why is:
<a href="somepage.aspx?value1=xyz" target="_blank">click here</a>
can't be:
<a href="somepage.aspx?value1=xyz" pagewidth="500px or %" page
height="500px
or %" target="_blank">click here</a>

then what about in the code behind using:
response.redirect("somepage.aspx?value1=xyz", "width=500", "height=500")

to better control browser window opening, etc. Why is this asking for too
much?

I have a button that I add form the code behind the attributes.add
function
for a JavaScript 'window.showModalDialog' but I also need to add some more
code (save data) before the opening of the new window. How can I do this
once
the button is click and the 'on_click' fires, the window is opened.

using in code behind:
btnxyz.Attributes.Add("onclick",
"window.showModalDialog('page.aspx','dialogWidth:5 00px; scroll:no; help:0;
resizable:no; center:yes; edge:sunken; status:no')")

Can I turn on the AutoPostBack to "Submit" the form then will the
"On_Click"fire?

Sorry if so confusing. Thanx.

Nov 19 '05 #2

P: n/a
Thanx, I'm using that now but was hoping someday to get more control
programmically over the opening process. Not to mention the growing "pop-up"
disable issues and the new standards for making pop-ups less accepted and
allowed.
I also need to make some data base calls and saves prior to the button's
open method. That I'm still playing around with and need help on.

"Rob T" wrote:
I usually just do a quick javascript to open a window..something like this:

response.write ("<script
language=javascript>window.open('mypage.aspx?parm1 =hello', '_blank',
'height=250,width=500,titlebar=yes,top=75,left=125 ,scrollbars=no,status=no,resizable=yes');</script>")

Most likelyit not the answer you want, but it works for most cases If you
wanted to be picky, you could register the script instead of just
response.write-ing it.

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
I know this is a dead horse I'm beating but why is it so impossible to ask
for functionality in the HTML tag to open a window/page more controllable?
why is:
<a href="somepage.aspx?value1=xyz" target="_blank">click here</a>
can't be:
<a href="somepage.aspx?value1=xyz" pagewidth="500px or %" page
height="500px
or %" target="_blank">click here</a>

then what about in the code behind using:
response.redirect("somepage.aspx?value1=xyz", "width=500", "height=500")

to better control browser window opening, etc. Why is this asking for too
much?

I have a button that I add form the code behind the attributes.add
function
for a JavaScript 'window.showModalDialog' but I also need to add some more
code (save data) before the opening of the new window. How can I do this
once
the button is click and the 'on_click' fires, the window is opened.

using in code behind:
btnxyz.Attributes.Add("onclick",
"window.showModalDialog('page.aspx','dialogWidth:5 00px; scroll:no; help:0;
resizable:no; center:yes; edge:sunken; status:no')")

Can I turn on the AutoPostBack to "Submit" the form then will the
"On_Click"fire?

Sorry if so confusing. Thanx.


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.