Change the 'border' and 'background-color' style of a button can make it totally look like a label.
But if you really want a clickable label, just add the 'onclick' attribute to the label and assign the corresponding client-side script function to the event.
For example
Client code
Code:
<form id="Form1" ...
...
<input id="ReturnValue" type="hidden"/>
<asp:Label ... onclick="LabelPostBack('Hello')">return Hello</Lable>
...
<script language="JavaScript">
function LabelPostBack(value)
{
document.getElementById("ReturnValue").value = value;
document.getElementById("Form1").submit();
}
</script>
Server code
Code:
private void Page_Load(...
{
if(Request.Form["ReturnValue"]!= null && Request.Form["ReturnValue"].Length>0)
{
Response.Write(Request.Form["ReturnValue"]);
}
}