asp.net C# - Login.aspx issues

Posted 01 August 2011 - 08:21 PM

The issues started when I put the loginview,AnonymousTemplate and LoggedInTemplate status in the login.aspx page. The code was working fine before then it but if you login and then went back to login.aspx the login form would still show, so i put the loginview now but in the login.aspx.cs code behind page the textboxs and labels now give me an error. Is there a way I can find the aspx controls in the code behind file with the loginview?

Re: asp.net C# - Login.aspx issues

Q: My program doesn't work. I didn't show you any code or actually tell you the error message. How do I fix it?

Spoiler

A: What have you tried so far? It is a requirment of this site that you at least make an effort to research (read the MSDN) and code a good faith effort for your own problem. Can you share your current code with us and better explain what issues or errors you are getting? Give us something to go on

Q: I've been struggling with this for days/weeks and I can't figure it out and my professor is worthless and can't teach. Can someone here explain it to me?

Spoiler

A: If you are struggling with how to do this you need to talk to your professor. Let him/her know you are struggling at this early stage in class. Make your professor do the job (s)he gets paid to do by either helping you or finding you a tutor or giving you more exercises from earlier in the book. You are paying for this education. Be an active part in not allowing the teacher to brush you off and let you slip through the cracks. If the other 50 people in class aren't struggling then don't blame the teacher. If the other 50 people are struggling then you all need to go to the professor's superior and tell him/her. If the prof is really incompetent then you don't need to help him keep his cushy 100,000/year job. If the prof isn't incompetent then you need to study harder or consider buying another book on programming. You aren't require to ONLY use the text book provided for the class."How do you resolve your issues" survey.

Q: How do I save some information like preferences, settings or other data?

Q: I want to write a program that does x, y and z with features for A, B, and C. {Notice there is no question in this question}

Spoiler

A: That is a very good statement of intent. Go right ahead. You don't need to announce your intentions to us, nor get anyone's permission.
After you have made an effort to your own code (in good faith as described in the Welcome DIC email you got when you joined) and the forum rules that I'm sure you read before posting, and you have a QUESTION about this project... Please post the QUESTION here in this same thread. There is no need to start a new thread for this same topic.

Q: I need to code to do x... Someone tell me the code for y...

Spoiler

A: Your question is about to get bounced for begging for code anyway but...
So you're asking the volunteers here to write your code for you, to make it do everything in your wish list? Please read the rules. You seem to misunderstand what we do here. We help people learn to code. We help people with their projects. We help people better understand the errors and exceptions they are getting so they can fix their issues. We are not a free code writing service. If you have made an effort to code a specific feature, but are not getting the results you wanted then please post the relivant code for that feature along with the error messages or an explanation of what results you are seeing as compared to the results you were expecting, and we will try to guide you onto the right path.

Q: What is the best programming language? What programming language should I learn?

Spoiler

A: All of them. And none of them. You might as well be asking "What is the best kind of vehicle?" Because the answer for both questions is "It depends on your needs and what personally suites you the best." C, C++, C#, Objective-C, Cocoa, F#, Visual Basic, Python, JAVA... Are all good languages. They all have their pros and cons. They each have their strengths and weaknesses. Some have stronger footholds in some markets than others. Do you want to write for iPhone/iPad then you need Objective-C. Do you want to write for generic mobile phone use then you need JAVA. And so on. If you have no idea what area of programming you want to move to (Gaming, Financial, Windows, Macintosh, Cell phones) then nobody can advise you on a language. Personally, I would point you to C# because, like it or not, Microsoft owns the desktop computer market and C# will teach you good habits of design, OOP (Object Oriented Programming) design, inheritance and so on: Concepts that translate well to all other OOP languages.

Q: I'm not really sure what I want to do with my future? Do you guys like programming? I think I kinda like math and games and computers? What should I do or study?A:Get experience while you find yourself

[*]Q: How can I have both a WinForms Windows app, and still have a Console window open?

Spoiler

A: Make your new project a WinForms project. Then go back to project properties (Right-click on the project, select Properties). On the Application tab go to the dropdown that says "Windows Forms" and change it to "Console Application." You know have a WinForms application with a console window. I do this on occassion to see my Console.WriteLine statements when I am debugging. But don't consider this mixed mode operation a proper way to release an application for real-world use.