---
title: "Call server function in server tag"  
description: "Call server function in server tag"  
author: "Anonymous User"  
published: 2014-08-23  
updated: 2014-08-23  
canonical: https://www.mindstick.com/forum/2102/call-server-function-in-server-tag  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# Call server function in server tag

Can I call my [function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) inside my [server tag](https://www.mindstick.com/forum/12662/unknown-server-tag-ajaxtoolkit-htmleditorextender)?

```
public string Mytext(){}
```

And

<[asp](https://www.mindstick.com/articles/751/introduction-to-asp-dot-net-mvc):[Label](https://www.mindstick.com/articles/12835/print-label-tracking-how-do-these-features-make-auspost-woocommerce-plugin-better) ID="lbl" runat="server" [Text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions)="Mytext()"><asp:Label>

## Replies

### Reply by Sumit Kesarwani

Hi Ashish, \

Yes, using Expression syntax, e.g.,

<asp:Label ID="lbl" runat="[server](https://www.mindstick.com/articles/43769/what-is-serverless-architecture-is-it-worth-switching-over)" Text="<%$ Mytext() %>"><asp:Label>


---

Original Source: https://www.mindstick.com/forum/2102/call-server-function-in-server-tag

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
