Welcome Guest Search | Active Topics | Sign In | Register

Pageview open URL Options
Saji
Posted: Tuesday, September 23, 2008 6:09:17 AM
Rank: Advanced Member
Groups: Member

Joined: 1/3/2008
Posts: 32
I have tabstrip, which generates dynamically depending on user selection, So i am creating pageviews also dynamically and adding to the multipage which is associated with the tabstrip. Is there any way to open urls in each pageview directly.

Dim pvPageView As New EO.Web.PageView
pvPageView.ResolveUrl(URLString) // something like this

MultiPage1.PageViews.Add(pvPageView)

Dim tpTabPage As New EO.Web.TabItem
tpTabPage.Text.Html = tlbButton.Text
tpTabPage.ToolTip = tlbButton.ToolTip
TabStrip1.Items.Add(tpTabPage)


Saji
Saji
Posted: Tuesday, September 23, 2008 10:07:13 PM
Rank: Advanced Member
Groups: Member

Joined: 1/3/2008
Posts: 32
Dim labelHTML As New Label
labelHTML.Text = "<IFRAME WIDTH='100%' HEIGHT='100%' SRC='" & URLString & "'></IFRAME>"

Dim pvPageView As New EO.Web.PageView
pvPageView.Controls.Add(labelHTML)
MultiPage1.PageViews.Add(pvPageView)

Dim tpTabPage As New EO.Web.TabItem
tpTabPage.Text.Html = tlbButton.Text
tpTabPage.ToolTip = tlbButton.ToolTip
TabStrip1.Items.Add(tpTabPage)
TabStrip1.Items(TabStrip1.Items.Count - 1).Selected = True

Done using the above method, please let me know if any better method
eo_support
Posted: Wednesday, September 24, 2008 3:34:09 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Hi,

I believe using an iframe is the correct way to do it.

Thanks
Saji
Posted: Wednesday, September 24, 2008 4:33:49 AM
Rank: Advanced Member
Groups: Member

Joined: 1/3/2008
Posts: 32
Ok thanks, can i add tabpage dynamically to tabstrip using the javascript, basically i want to convert the above code into javascript. In the above case when i create the 2nd tabpage dynamically i loss the content of the first created tabpage (because it is stateless), so whenever i add a new tabpage dynamically, i get only the last tab page data, loses all others

please help me
eo_support
Posted: Wednesday, September 24, 2008 4:44:47 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Hi,

Once again, please check the documentation for this. Our support is not here to replace the documentation, neither to solve every programming question you have. We do expect you to handle most issues by yourself and put out reasonable effort before requesting support. To the least extend, you should check the documentation first because everything available is there. Please review our support policy here:

http://www.essentialobjects.com/Forum/Default.aspx?g=posts&t=1368

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.