Hi
I am using the ultrawebtab in the Main.aspx page.
Each tab is tied to a separate page.Tab1- General.aspxTab2- Customer.aspxTab3- Location.aspx
I have a function in the Main.aspx named "InSession".
I want to call this function from General.aspx, Customer.aspx and Location.aspx....
How can I do it?
Any help is kindly appreciated
You could do something like this:
this.ClientScript.RegisterStartupScript(typeof(Page), "redirect", @"window.parent.location='http://www.google.com';",true);
I mean redirect from the code behind (.cs file for the page inside the tab).....
I cannot use javascript, bc I need to use the Session object before to redirect....
sorry but I do not understand from the article how you can redirect to a new page in the way it does not open inside the webtab itself
Sorry, didnt' realize you mean server side code. You can't access the main page's code behind directly from the content page since you are using targeturls. If you want to redirect to the main page, you would have to register a script that set's the location of the main page. You can do that by using the tactic defined in the knowledge base articles previous linked.
If it is not possible to access a function in the main page code behind.
How can I redirect the user to an external page from targeturl page?
If I use response.redirect in the targeturl page.....it loads the new page inside the webtab...and I do not want it.....