Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open a pop up window from a datagrid

Status
Not open for further replies.

choudhmh

Programmer
Aug 9, 2004
34
GB
Hi Guys,
Using the script below i'm trying to open a pop up window:

<asp:TemplateColumn>
<ItemTemplate>
<a id="description" target="_newwindow" href="<%# "details.aspx?bcstid=" & DataBinder.Eval(Container.DataItem, "BoilerCoverSupplierTariffID") %>"> Full Description </a>
</ItemTemplate>
</asp:TemplateColumn>

At present the link opens up as a new window. But i want to change this to open as a pop-up window. Does anyone knows what i need to amend to make this function take place.

Thanks
Mac
 
what do you mean by pop-up window?

you have .show and .showdialog

the difference is show opens, and code after it continues to run, show dialog shows the form as a dialog box, and the code after it waits till the dialog is closed.

hayt


sorry - i just don't understand what you need exactly
 
the above column is a hyperlink column. the target=_newwindows opens the details from that column in a new window. Instead of openning this in a new window i want it to open as a pop-up window .

does this make it clearer.
 
DOH! ok, im an idiot. sorry. it's really really really early where i am, and i think in a different time zone. my brain will start working later today. completely sorry.

i have no idea what i was thinking. please ignore me from now on.

hayt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top