Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Clifton Flores   on Mar 04 In Asp.net Category.

  
Question Answered By: Khadeeja Malik   on Mar 04

You can do this in several ways, but I find the easiest
to be :

MainPagesLink.Attributes.Add("onclick", "javascript:window.open('" + "DataUpdates/MainPages.aspx" + "'," +

"'linkwindow', 'width=405,height=225')");

adding an attribute to the button  in your Page_Load or some other page

initialization method. This adds a client-side event handler to the rendered

html, and opens a new window  with DataUpdates/MainPages.aspx in it and a window size

of 'width=405,height=225'.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How to open a new window from a webform Or get search suggestion and latest updates.


Tagged: