4
Answers

Function calling problem.

Vikas Ahlawat

Vikas Ahlawat

13y
1.5k
1
why this "printtext()" fun. not calling?
<body>
<form id="form1" runat="server">
<div>
<%#printtext()%>
</div>
</form>
</body>



using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
public string printtext()
{
return "Hello";
}
}


Answers (4)