Click here to Skip to main content
15,878,708 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to get websites port number without HttpContext.Current? [modified] Pin
Dominic Pettifer21-Dec-07 0:40
Dominic Pettifer21-Dec-07 0:40 
GeneralUnicode Problem Pin
mehran.asg21-Dec-07 0:17
mehran.asg21-Dec-07 0:17 
GeneralTreeView Pin
VanithaVasu20-Dec-07 23:57
VanithaVasu20-Dec-07 23:57 
AnswerRe: TreeView [modified] Pin
Member 385339921-Dec-07 2:00
Member 385339921-Dec-07 2:00 
GeneralRe: TreeView Pin
Abhijit Jana21-Dec-07 2:00
professionalAbhijit Jana21-Dec-07 2:00 
GeneralHide Print Dialog Window Pin
Archana New to Dotnet20-Dec-07 23:01
Archana New to Dotnet20-Dec-07 23:01 
GeneralRe: Hide Print Dialog Window Pin
N a v a n e e t h21-Dec-07 19:25
N a v a n e e t h21-Dec-07 19:25 
GeneralUsing asp:Button instead of input type="Button" Pin
Blumen20-Dec-07 22:29
Blumen20-Dec-07 22:29 
Hi,

In the code snippet below (To hide/Unhide a DIV):

<script language="JavaScript">
function showHideContent(id, show)
{
var elem = document.getElementById(id);
if (elem)
{
if (show)
{
elem.style.display = 'block';
elem.style.visibility = 'visible';
}
else
{
elem.style.display = 'none';
elem.style.visibility = 'hidden';
}
}
}
</script>

<div id="someRegion">
This text will be displayed or hidden when clicking the appropriate button below...
</div>

<input type="button" value="Hide Content">
onclick="showHideContent('someRegion', false);"&gt;
<input type="button" value="Show Content">
onclick="showHideContent('someRegion', true);"&gt;

I replaced input type with asp:Button, but it doesn't work. Why is that?

Regards,
Blumen</input></input>
GeneralRe: Using asp:Button instead of input type="Button" Pin
Paddy Boyd20-Dec-07 23:04
Paddy Boyd20-Dec-07 23:04 
GeneralRe: Using asp:Button instead of input type="Button" Pin
Blumen21-Dec-07 0:19
Blumen21-Dec-07 0:19 
GeneralRe: Using asp:Button instead of input type="Button" Pin
Paddy Boyd21-Dec-07 0:58
Paddy Boyd21-Dec-07 0:58 
GeneralRe: Using asp:Button instead of input type="Button" Pin
Blumen21-Dec-07 1:06
Blumen21-Dec-07 1:06 
GeneralRe: Using asp:Button instead of input type="Button" Pin
Paddy Boyd21-Dec-07 2:24
Paddy Boyd21-Dec-07 2:24 
GeneralRe: Using asp:Button instead of input type="Button" Pin
Blumen23-Dec-07 20:08
Blumen23-Dec-07 20:08 
Generalhaving a problem with the word object when i run from sever Pin
koolprasad200320-Dec-07 22:21
professionalkoolprasad200320-Dec-07 22:21 
GeneralRe: having a problem with the word object when i run from sever Pin
pmarfleet20-Dec-07 22:38
pmarfleet20-Dec-07 22:38 
GeneralCross browser Pin
bhattiprolu20-Dec-07 21:59
bhattiprolu20-Dec-07 21:59 
GeneralRe: Cross browser Pin
Deepak the Cool20-Dec-07 23:19
Deepak the Cool20-Dec-07 23:19 
GeneralRe: Cross browser Pin
Gandalf_TheWhite21-Dec-07 0:42
professionalGandalf_TheWhite21-Dec-07 0:42 
QuestionHow to print in asp.net Pin
Deepthy.P.M20-Dec-07 21:49
Deepthy.P.M20-Dec-07 21:49 
AnswerRe: How to print in asp.net Pin
Abhijit Jana20-Dec-07 21:55
professionalAbhijit Jana20-Dec-07 21:55 
Generalmove Folder Pin
AnhTin20-Dec-07 20:01
AnhTin20-Dec-07 20:01 
GeneralRe: move Folder Pin
Christian Graus20-Dec-07 20:21
protectorChristian Graus20-Dec-07 20:21 
GeneralRe: move Folder Pin
Abhijit Jana20-Dec-07 20:59
professionalAbhijit Jana20-Dec-07 20:59 
GeneralRe: move Folder Pin
AnhTin20-Dec-07 21:48
AnhTin20-Dec-07 21:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.