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
When using targeturl's, you are using iframes. Take a look at this Knowledge Base on how to interact between them:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6690
At the bottom there are two more articles for similar scenarios.
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.....
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.
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....
You could do something like this:
this.ClientScript.RegisterStartupScript(typeof(Page), "redirect", @"window.parent.location='http://www.google.com';",true);