hi
i dont know any thing about java thow i can change this code to c# can you help me?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Editable TextBox Demo</title>
<script type="text/javascript">
function ShowEditBox()
{
document.getElementById('EditContainerDiv').style.display = "block";
document.getElementById('Label1').style.display = "none";
document.getElementById('TextBox1').value = document.getElementById('Label1').innerHTML;
return false;
}
function HideEditBox()
{
document.getElementById('EditContainerDiv').style.display = "none";
document.getElementById('Label1').style.display = "block";
document.getElementById('Label1').innerHTML = document.getElementById('TextBox1').value;
return false;
}
</script>
<style type="text/css">
.ContainerStyle
{
float:left;
position: absolute;
z-index:2;
display:none;
background-color:Gray;
top: 20px;
left: 10px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" runat="server" Text="Input Something Here" style="display:block;" onclick="return ShowEditBox();"/>
<div id="EditContainerDiv" class="ContainerStyle">
<asp:TextBox ID="TextBox1" runat="server"/> <br />
<asp:Button ID="Button1" runat="server" Text="Update" OnClientClick="return HideEditBox();"/>
<asp:Button ID="Button2" runat="server" Text="Close" OnClientClick="return HideEditBox();" />
</div>
</div>
</form>
</body>
</html>
tanx