CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2005_express Tags:
Item Type: NewsGroup Date Entered: 5/15/2007 11:00:59 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 26 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
paul2811
Asp.Net User
favourite links5/15/2007 11:00:59 AM

0

 can you help me with this

 

You are to create a small website that allows users to view links related to their interests. Users must choose one topic from each list of items. When the user clicks the submit button, they're redirected to a page that displays a link for each selected item. If the user clicks on the link, they will visit the site. This project contains two separate ASPX pages.  One page displays the radio buttons, the other displays the links. 

sgroenen
Asp.Net User
Re: favourite links5/15/2007 7:06:00 PM

0

you should use the onclick event where you should put code for redirect the page
Stefan Groenen
Lommel, Belgium
sgroenen.brinkster.net
Benson Yu - MSF
Asp.Net User
Re: favourite links5/18/2007 9:41:56 AM

0

Hi paul2811,

This requirement is not difficult, but its description is not clear enough for me. I write a simple demo for you. It may not exactly meet your request, but the logic is the same. I hope it is helpful to you.

***************************
First.aspx
    <div>
        <asp:RadioButtonList ID="RadioButtonList1" runat="server" Style="position: static">
            <asp:ListItem Value="msdn">msdn</asp:ListItem>
            <asp:ListItem Value="msn">msn</asp:ListItem>
            <asp:ListItem Value="asp.net">asp.net</asp:ListItem>
        </asp:RadioButtonList>
        <asp:Button ID="Button1" PostBackUrl="~/second.aspx" runat="server" Style="position: static" Text="Button" />
    </div>

***************************
Second.aspx
    <div>
        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
    </div>

Second.aspx.cs
        protected void Page_Load(object sender, EventArgs e)
        {
            if (PreviousPage != null)
            {
                RadioButtonList rbl = (RadioButtonList)PreviousPage.FindControl("RadioButtonList1");
                switch(rbl.SelectedValue)
                {
                    case "msdn":
                        HyperLink li = new HyperLink();
                        li.ID = "HyperLink1";
                        li.Text = "Microsoft MSDN";
                        li.NavigateUrl = "http://msdn.com";
                        PlaceHolder1.Controls.Add(li);
                    break;
                    case "msn":
                    break;
                    case "asp.net":
                    break;
                }
            }
        }

 


Sincerely,
Benson Yu
Microsoft Online Community Support

Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Creating Web pages for dummies Authors: Bud E. Smith, Arthur Bebak, Pages: 390, Published: 2006
PC QUICKSTEPS 2/E Authors: Guy Hart-Davis, Pages: 240, Published: 2008
Windows Vista for dummies Authors: Andy Rathbone, Pages: 432, Published: 2006

Web:
« Favourite Links A Favourite Links is a directory on the World Wide Web. It specializes in linking to other web sites and categorizing those links. ...
Favouritelink Directory Powered by Favourite link Pro Directory Favourite Link - The Free ultimate Directory for all of your needs. SEO friendly website directory for more visitors.
OUD CAFE - Favorite Links FAVORITE LINKS. HOME OUD BASICS MAKAM PAGE EXERCISES FAVORITE LINKS CONTACT ... 'usuller' (rhythmic forms) by David Parfitt, click on the link below: ...
Favorite Links of Doron Zeilberger Favorite Links of Doron Zeilberger. Last Update: March 6, 2009. Look up the home page of my beloved servant Shalosh B. Ekhad . ...
Favorite links Favorite links: These are a few sites I have discovered that seem to me informative or helpful. Slate : OK, I'm biased. But I really do think that it beats ...

Compiler Error - Type exists in two dll's? - ng.asp-net-forum ... XPoints: N/A, Replies: 1, Views: 233, Favorited: 0, Favorite .... favourite links · the process cannot access the file because it is being used by another ...

Videos:
John Coltrane - My Favorite Things - 1961 1961 in Baden-Baden Germany John Coltrane - soprano sax, tenor sax Eric Dolphy - flute, alto sax McCoy Tyner - piano Reggie Workman - bass ...
Rube Goldberg Machine Me and my friend made a machine that puts a tea bag into a cup... physics, kinematics, mechanics, energy, interesting, amazing, machine, marble ...
The Cardigans - My Favorite Game The Cardigans My Favorite Game Wanna Sing? I don't know what you're looking for You haven't found it baby, thats for sure You rip me up, you ...
Niko - You're my Favourite Music This is a video that I shot in Glasgow in summer 2003. The Director is Craig Reece and it's edited by Ben Skea. Niko is on Grand Central Records ...
Skidboot the Dog A heart-warming segment from Texas Country Reporter, with Bob Phillips. For more information visit www.TexasCountryReporter.com or www.skidboot.com






sql server tables created for membership

how to deploy a project in vwd 2005??

unable to open the web 'http://xyz:6548". could not find a web server at 'xyz'

vsw expired unexpectedly.

returning to viswebdev2005 from browser

problem with guided tour - business class missing

web matrix to vwd 2005 ..need advice + help

compiler error message: bc30451: name 'textinput' is not declared.

is sql 2005 required when using visual web developer 2005 beta 2?

how can i write a sql sentence about group by and count?

app_code subdirectory not found?

popup calendar issue

difference b/w vwd and vs 2005

need help with connectionstrings

debugging wsh wscript.exe execution in vwdee

root relative links

style buildaer not working

asp.net web site admin tool

deploying a web developer express project to a web hosting provider

visual studio 2005 express edition price ??

sqlserver express install error

drag and drop

how to display data in a custom way?

pubs database

data grid disappear

is it a good design with the membership database?

can i drag and drop the bindings ?????

'browse to file' tool.

activating a usb device......

problem with access data source

   
  Privacy | Contact Us
All Times Are GMT