User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 427,670 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,286 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1007 | Replies: 1
Reply
Join Date: Sep 2006
Posts: 14
Reputation: Raju5725 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
Raju5725 Raju5725 is offline Offline
Newbie Poster

communication HTML and ASP.NET

  #1  
Nov 30th, 2006
HI,

I am new to web development as well as ASP.Net....I am trying to design and a develope a web UI....in which I have two HTML <a href tags> If I click one of the item I should get one ASPX page and if I click another tag it should display same ASPX page but different controls.

for example :
I have 1 aspx page with two buttons Button1 and Button2 (Web Server controls)
And two html hyper links
<a Href = "abc.aspx"> Item 1 <a>
<a Href = "abc.aspx"> Item 2 <a>

when I click on Item 1 aspx page should display only button1 and when click on Item 2 aspx page should display only Button2

Pease help how can I do this.
Thanks in advance
Raju
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: communication HTML and ASP.NET

  #2  
Dec 4th, 2006
<a Href = "abc.aspx?item=1"> Item 1 <a>
<a Href = "abc.aspx?item=2"> Item 2 <a>

private void Page_Load(object sender, System.EventArgs e)
{
    Button1.Visible = false;
    Button2.Visible = false;
    
    
    string item = Request.QueryString["item"];
    
    if(item == "1")
        Button1.Visible = true;

    if(item == "2")
        Button2.Visible = true;
]
Last edited by hollystyles : Dec 4th, 2006 at 6:41 am.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 11:08 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC