I wish to pass some values retrieved from SQL DB to a page, the page is designed without ASP tools, and I wish to pass some values to be displayed on the page, but can't do it yet : \ this is an example:
public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string x = "hello from .cs"; } }
<p class="some class">Here comes the x value from .cs
public string X {get; set;}
protected void Page_Load(object sender, EventArgs e) { X = "hello from .cs"; }
<p class="some class"><%=X%></p>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)