I have a string storing some data i want to display that data on
a aspx page how should i do it??
I didnt get exactly what you are asking, but if you have a data stored in a string variable its so simple to display it in an aspx webpage:
Add a label control to your page, and name it for example Label1 then add the following code to your page_load event as bellow:
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class InsertRecord : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string strVar = "Hello World";
Label1.Text = strVar.ToString();
Response.Write(strVar.ToString());
}
}
Regards,
Khaled