Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all ,

In my application I have buttons means menu items in left side and I have to show the related content on clicking the buttons. On every Button click we have to display different content.
How can I do this..

thanks
Posted
Comments
Thanks7872 28-Sep-15 6:29am    
Just like millions of other people do. How on earth do you think that without effort you can achieve anything? Try iit. If you don't know how to do it,learn it using google.

Expecting someone to write a code for you makes no sense. Yes, this question is like 'gimme code'.
Member 10324774 28-Sep-15 7:47am    
thanks for your suggestion.. I did not asked the code. Just an idea. Because it is the new technology for me.
phil.o 28-Sep-15 6:53am    
What have you tried? Where are you stuck? What do you need help with?

protected void Button1_Click(object sender, EventArgs e)
{
if (ViewState["Test"] != null)
ViewState["Test"] = (int)ViewState["Test"] + 1;
else
ViewState["Test"] = 1;

Response.Write(ViewState["Test"]);
}
 
Share this answer
 
Use Iframes, and load data based on click event of button, http://www.c-sharpcorner.com/UploadFile/skumaar_mca/develop-the-web-site-using-iframe-model/[^]
 
Share this answer
 
use jquery hide show methods for it.Simple & easy

$('#btn1').click(function(){
//something.show();
})
 
Share this answer
 
Comments
Member 10324774 28-Sep-15 7:45am    
But I am doing a wpf application.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900