Home > DeveloperSection > Forums > Call server function in server tag
Ashish Pandey

Total Post:128

Points:898
Posted on    August-23-2014 7:31 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 582  View(s)
Rate this:

Can I call my function inside my server tag?

public string Mytext()

{

}

And

<asp:Label ID="lbl" runat="server" Text="Mytext()"><asp:Label>



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-23-2014 8:51 AM

Hi Ashish, 

Yes, using Expression syntax, e.g.,

<asp:Label ID="lbl" runat="server" Text="<%$ Mytext() %>"><asp:Label>


Don't want to miss updates? Please click the below button!

Follow MindStick