communication HTML and ASP.NET

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2006
Posts: 15
Reputation: Raju5725 is an unknown quantity at this point 
Solved Threads: 0
Raju5725 Raju5725 is offline Offline
Newbie Poster

communication HTML and ASP.NET

 
0
  #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
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: communication HTML and ASP.NET

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

  1. private void Page_Load(object sender, System.EventArgs e)
  2. {
  3. Button1.Visible = false;
  4. Button2.Visible = false;
  5.  
  6.  
  7. string item = Request.QueryString["item"];
  8.  
  9. if(item == "1")
  10. Button1.Visible = true;
  11.  
  12. if(item == "2")
  13. Button2.Visible = true;
  14. ]
Last edited by hollystyles; Dec 4th, 2006 at 7:41 am.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC