A
alsu50
Hello All,
I have a user control which has an ASP.Net dropdown, gets filled up
from database, and is supposed to open a document when the selected
index is changed. The control itself is usually nested within a
container on the page.
IE7 treats the act of opening the document from the dropdown as the
popup and blocks it. I do the opening using javascript:
string script = @"<SCRIPT language='javascript'>window.open('" + path +
"');</SCRIPT>";
Response.Write(script);
So I wanted to do the javascript on the client (put it into the
onchange event), but I cannot reference the dropdown, because it's id
is generated by the asp, and becomes
OuterContainer_UserControl_DropdownName.
Question: How do I get to that generated name?
Question2: is there any other, more elegant way to open up the
document?
Thank you.
I have a user control which has an ASP.Net dropdown, gets filled up
from database, and is supposed to open a document when the selected
index is changed. The control itself is usually nested within a
container on the page.
IE7 treats the act of opening the document from the dropdown as the
popup and blocks it. I do the opening using javascript:
string script = @"<SCRIPT language='javascript'>window.open('" + path +
"');</SCRIPT>";
Response.Write(script);
So I wanted to do the javascript on the client (put it into the
onchange event), but I cannot reference the dropdown, because it's id
is generated by the asp, and becomes
OuterContainer_UserControl_DropdownName.
Question: How do I get to that generated name?
Question2: is there any other, more elegant way to open up the
document?
Thank you.