We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to set the Title property of the Window control

Thread ID:

Created:

Updated:

Platform:

Replies:

75072 Jul 10,2008 02:06 PM Jul 15,2008 04:58 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Tools
Andy Richard
Asked On July 10, 2008 02:06 PM

I have a form (Form1) that loads a Window control with its Source property set to a specific Web page (Form2). In code behind on Form2, I need to change the title of the Window control at run time, but I can't find a way from Form2 to get a reference to the Window control because that Window control is in fact sitting on Form1.

Is there a way to do this?


Melba Winshia [Syncfusion]
Replied On July 15, 2008 04:58 AM

Hi Andy

Thank you for your interest in Syncfusion Products.

It is not possible to change the title of Window control in Code behind on Form2. But you can change the title in client side using clientobjectid. Please use below code snippet to achieve this:

function test()
{
window.parent.sfwindow1.SetTitleText("Modified Title");
}

Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Tools.Web/6.3.0.30/Tools_ASP_Window_75072/main.htm

Please try this and let me know if this helps.

Thanks,
Melba



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;