• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2787
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

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