No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
When I set the VisibleWhenLoggedIn property of my Login control to false, my Login control automatically becomes invisible even if I'm not logged in. I've already set the Authenticate event to use my own SQL database, but this problem is still persisting. How do I fix this? Here is the … |
|
I have a table called Messages which has a field called Attachment. The Attachment field uses a data type of "image" and binary data is inserted into that field whenever a file is uploaded from my website. This is the code to insert the attachment into the database: [CODE] string … |
|
I'm using a gridview that is working off an object data source. The object data source is connected to my class library, which has a function that delivers a data table to the gridview. This is the function: [CODE] public DataTable populateGrid(string command) { DB db = new DB(); SqlDataAdapter … |
|
I have a web form and a class called Base. In the Base class, I have a method that checks whether or not the user is logged in, and if the user is logged in, he or she is redirected to a certain page. I want to run this method … |
|
This code is in the Page_Load method of my web page. [CODE][COLOR="Red"]if (Request.UrlReferrer.AbsolutePath == "/Home/Default.aspx")[/COLOR] { Label1.Text = "You are coming from the home page."; }[/CODE] When I try to open the page, I get this error: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. … |
|
I was wondering whether I could somehow create a universal error page for my website. For instance, if a user tries to navigate manually to a certain page of the website that requires you to be logged in, that user gets redirected to an error page that says something like, … |
|
I'm creating a website which has a login function. Once the user logs in, they are shown a button that allows them to log out. When the user logs in, a boolean variable on the server is changed to "true", because the user has logged in. When the user clicks … |
|
I have a registration form and I want to feed the contents of it into an SQL database that I created in Visual Web Developer. I have the proper code to insert the contents into the database table, but there is a problem with my connection string. What's the problem … |
|
OK, so in Visual Web Developer, I've created a master page that has 2 textboxes (one for a user name, one for a password), and then I have a content holder (note that the 2 textboxes are outside of the content holder.) I also have a web form that is … |