Click here to Skip to main content
15,919,423 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to get items from SQL Server and add it to dropdown list ?? Pin
vvashishta15-May-12 20:27
vvashishta15-May-12 20:27 
QuestionSession value lost Pin
Member 378917315-May-12 0:47
Member 378917315-May-12 0:47 
SuggestionRe: Session value lost Pin
Not Active15-May-12 1:09
mentorNot Active15-May-12 1:09 
AnswerRe: Session value lost Pin
Sandeep Mewara15-May-12 1:34
mveSandeep Mewara15-May-12 1:34 
GeneralRe: Session value lost Pin
Member 378917318-May-12 20:34
Member 378917318-May-12 20:34 
AnswerRe: Session value lost Pin
jkirkerx15-May-12 10:42
professionaljkirkerx15-May-12 10:42 
GeneralRe: Session value lost Pin
Member 378917318-May-12 19:44
Member 378917318-May-12 19:44 
GeneralRe: Session value lost Pin
jkirkerx19-May-12 10:19
professionaljkirkerx19-May-12 10:19 
AnswerRe: Session value lost Pin
vvashishta15-May-12 20:33
vvashishta15-May-12 20:33 
GeneralRe: Session value lost Pin
Member 378917318-May-12 20:42
Member 378917318-May-12 20:42 
QuestionHow can i connect and insert data to oracle database without installing oracle client? Pin
buffering8314-May-12 22:25
buffering8314-May-12 22:25 
AnswerRe: How can i connect and insert data to oracle database without installing oracle client? Pin
Sandeep Mewara15-May-12 1:31
mveSandeep Mewara15-May-12 1:31 
GeneralRe: How can i connect and insert data to oracle database without installing oracle client? Pin
buffering8315-May-12 14:01
buffering8315-May-12 14:01 
QuestionGet List of google/yahoo groups in asp.net Pin
Muhammad Rashid Khan14-May-12 18:50
Muhammad Rashid Khan14-May-12 18:50 
AnswerRe: Get List of google/yahoo groups in asp.net Pin
Richard MacCutchan14-May-12 23:14
mveRichard MacCutchan14-May-12 23:14 
QuestionDiscussion For My ASP.NET MVC "Reusable Components" Question Pin
AspDotNetDev14-May-12 18:07
protectorAspDotNetDev14-May-12 18:07 
I got an answer to my question, Return Current View From Different Controller (MVC Log On Control), and the comments aren't a very good place to discuss that, so I thought I'd bring the discussion here.

Keith Barrow wrote:
That's the first problem, you should only re-direct if the login is a success.


Right, that was only there for demonstration purposes. The examples I was toying around with on my computer returned a variety of things, but I wanted to keep it simple.

Keith Barrow wrote:
If the login fails you should return a view with the "failure" information


That is the idea. I currently have validation rules set on the model using attributes (e.g., [Required]). The idea is that the validation summary will display that, but the exact method I use to display failure info is only of ancillary importance.

Keith Barrow wrote:
there is no way to send the information safely to the client without encryption (even ViewState can be read)


The validation mechanism only needs the form data to validate against, and the result can be constructed based on the success or failure of the validation.

Keith Barrow wrote:
Anyway, having done this, if you try and navigate to /home/index you'll get the login page and the Query string posted back to the server will have /home/index as the target


Right, I already know how to do that. The whole point of my question is how to avoid having an extra page. I want the login control to be inline on all pages (or most, at least). And I want it to be inline after postback (that is, I don't want the URL to change). And I don't want to use AJAX (that's probably my only real solution, but I'm trying to find a more "pure" solution).

AnswerRe: Discussion For My ASP.NET MVC "Reusable Components" Question Pin
jkirkerx15-May-12 10:51
professionaljkirkerx15-May-12 10:51 
GeneralRe: Discussion For My ASP.NET MVC "Reusable Components" Question Pin
AspDotNetDev15-May-12 15:22
protectorAspDotNetDev15-May-12 15:22 
GeneralRe: Discussion For My ASP.NET MVC "Reusable Components" Question Pin
jkirkerx18-May-12 14:44
professionaljkirkerx18-May-12 14:44 
QuestionWeb based document management system Pin
Embedded Planet14-May-12 17:15
Embedded Planet14-May-12 17:15 
AnswerRe: Web based document management system Pin
Not Active15-May-12 1:08
mentorNot Active15-May-12 1:08 
Questionuse of msflexgrid in vb.net 2.0 Pin
rabindra k jha14-May-12 1:23
rabindra k jha14-May-12 1:23 
AnswerRe: use of msflexgrid in vb.net 2.0 Pin
Prasad_Kulkarni14-May-12 1:31
Prasad_Kulkarni14-May-12 1:31 
QuestionChanges required to access existing ASP.NET(3.5/C#) Web Application in Smart phones and tablet computer Pin
PintuYadav14-May-12 1:03
PintuYadav14-May-12 1:03 
QuestionHow to give click event in a dynamically generated link button? Pin
lekhasreekrishna@gmail.com13-May-12 18:12
lekhasreekrishna@gmail.com13-May-12 18:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.