I am dynamically filling the label4.text.. I hope to retrieve it for updating in the dbms
<asp:Label ID="Label4" runat="server" Font-Bold="True" BackColor="#E3EAEB"
Height="25px" Width="300px"><%=Application.Get("topic").ToString()%></asp:Label>
In the above code I need to insert text="<%=Application.Get("topic").ToString()%>
in the <label>
tag but this cannot be possible due to syntax error or it cannot be done at all.
I have a linkbutton, by clicking on the link button can I retrieve the text of the label.
<asp:LinkButton ID="LinkButton2" runat="server" Font-Size="Smaller"
onclick="LinkButton2_Click">Post to Comment</asp:LinkButton>
protected void LinkButton2_Click(object sender, EventArgs e)
{
string dumy=Label4.text.toString();
// This is return a empty string..
}
Please let me know where I am going wrong.. or is there any other way of doing it...
Since I am dynamically filling the label4.text
.. how to retrieve it?