[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2748
  • Last Modified:

2.0 MultiView without Postback

Hello everyone,

I want to create tabs on my home page that can be clicked on and open without a postback. Like multiview but without postbacks.

An example of this is the current Yahoo.com home page. The search box at the top allows the user to click a tab for "Web", "Images", "Video", "Audio", etc. with no postback.

Can I do this with multiview? If not can someone point me in the right direction on what other control I can use? thanks.

I'm using Visual Studio 2005 in a C#.NET web site.
0
VirtueTech
Asked:
VirtueTech
1 Solution
 
anvCommented:
you can use following:

Create link buttons on the home page for navigating.

<asp:Linkbutton id='moveToPage1' runat=server>Page1</asp:LinkButton>

On Page Load add this code..

moveToPage1.Attributes.Add("onclick", "return MoveToPage('Page1.Aspx');");

In ASPX file create

Following JavaScript

function MoveToPage(PageName)
{
   window.open(PageName);
  return false;
}

try it and let me knw
0
 
igor_alphaCommented:
Hi VirtueTech,

Your task have trivial solution if you using AJAX (Active Javascript And XML) technology for web site.
You can use asp.net "Atlas" toolkit to enable AJAX on your site.
http://atlas.asp.net/Default.aspx?tabid=47
After enabling Atlas for your site just place multiview control into Atlas UpdatePanel.
You don't even need to code something!
0
 
VirtueTechAuthor Commented:
Awesome! Thanks.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now