Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Errors using DetailsView

$
0
0

So i have a page within my visual studio website called myprofile.aspx so that once the user can log into the website (which they can successfully do) they can then edit and change their details. I have put a DetailsView up and linked it to my database, when i view in browser it comes up blank. I was told from a friend that I have to put some coding behind the screen I tried but it came up with errors the following code i used is:

protected void Page_Load(object sender, System.EventArgs e)
{
Session("UserName") = System.Web.HttpContext.Current.User.Identity.Name;
}

It says The name 'Session' does not exist in the current context... Any help please?

 


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>