Window Name on server side using asp.net

  • Thread starter Thread starter Kiran
  • Start date Start date
K

Kiran

Hi,

can anyone tell me how to get window name on server side using
asp.net(similar to window.name or self.name in clientside)

Thanks
Kiran
 
Yes.

Basically, you need to alter the <TITLE> tag to runat=server and give it an
ID=MyTitle

In the code behind at class level, declare the tag as a generichtmlcontrol
Protected MyTitle As System.Web.UI.HtmlControls.HtmlGenericControl

In page load

MyTitle.InnerText = "This Is My Title Text"


HTH
 
Mr said:
Yes.

Basically, you need to alter the <TITLE> tag to runat=server and give it an
ID=MyTitle

In the code behind at class level, declare the tag as a generichtmlcontrol
Protected MyTitle As System.Web.UI.HtmlControls.HtmlGenericControl

In page load

MyTitle.InnerText = "This Is My Title Text"


HTH
Hi,

if <TITLE> tag is made as server element and accessed in server side, it
only returns the window title not window name.

I am opening this new window from a parent window, I have decided to
pass the windowname as querystring from the parentwindow to childwindow.


Thanks for help
Kiran
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top