Vikas Ahlawat

Vikas Ahlawat

  • NA
  • 564
  • 819.2k

Function calling problem.

Mar 11 2011 6:49 AM
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)