•
•
•
•
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
![]() |
•
•
Join Date: Sep 2006
Posts: 14
Reputation:
Rep Power: 3
Solved Threads: 0
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
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
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,165
Reputation:
Rep Power: 7
Solved Threads: 59
<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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
.net .net framework 3.0 access ajax asp code combo css custom data developer development div dom dreamweaver dropdownlist feed firefox google checkout google checkout vat html html api javascript microsoft module msdn net news office reader reuse skin software sql symantec tables theme vista w3c weather web windows workflow wysiwyg xml xoap
- Updated : Simple ASP.Net Login Page (ASP.NET)
- ASP.Net timer control (ASP.NET)
- ASP.Net & Macromedia Flash MX (ASP.NET)
- How To Hyperlink Normal HTML page with ASP.NET Page? (ASP.NET)
- PHP vs. ASP.NET for development platforms (ASP.NET)
- ASP.NET Registration Page (ASP.NET)
- ASP in ASP.NET application (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: URL Masking in asp.net
- Next Thread: Image Comparison Application using ASP.net?..Result in Percentage Format?..!!



Linear Mode