Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,254 Programmers. There are 2,107 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

asp.net code for hide/show div onclick event of button

 
Reply to this topicStart new topic

asp.net code for hide/show div onclick event of button, give me code in C#

inderjeet
post 30 Apr, 2008 - 01:09 AM
Post #1


New D.I.C Head

*
Joined: 30 Apr, 2008
Posts: 1



asp.net code for hide/show div onclick event of button
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


PsychoCoder
post 30 Apr, 2008 - 05:36 AM
Post #2


ToCode || !ToCode

Group Icon
Joined: 26 Jul, 2007
Posts: 5,857

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.

Unless you use AJAX this is going to be done in JavaScript, not a server side language. Moved to the JavaScript forum smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

mnn888
post 30 Apr, 2008 - 11:33 AM
Post #3


New D.I.C Head

*
Joined: 10 Dec, 2007
Posts: 18

jscript

function Show(divId){
document.getElementById(divId).style.visible ='visible';
}
function Hide(divId){
document.getElementById(divId).style.visible ='hidden';
}


HTML
<input type=button onclick="Hide('someDivId');" />
<input type=button onclick="Show('someDivId');" />


EDIT: Code blocks added => code.gif

This post has been edited by mnn888: 30 Apr, 2008 - 11:02 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

PsychoCoder
post 30 Apr, 2008 - 01:17 PM
Post #4


ToCode || !ToCode

Group Icon
Joined: 26 Jul, 2007
Posts: 5,857

@mnn88: Please don't just give people the code they're looking for. We have a policy here to not give any code until the person has somwn an effort in solving their problem. By effort I'm referring to showing the code they have tried
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

mnn888
post 30 Apr, 2008 - 10:59 PM
Post #5


New D.I.C Head

*
Joined: 10 Dec, 2007
Posts: 18

Sorry PsychoCoder, im new here cool.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

PsychoCoder
post 30 Apr, 2008 - 11:06 PM
Post #6


ToCode || !ToCode

Group Icon
Joined: 26 Jul, 2007
Posts: 5,857

I know, thats why I tried to be as polite as possible, I wasn't trying to be mean smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 09:28AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month