User Profile
Collapse
-
Thanks for the suggestion. I found an alternative method. I used the group validation property. By grouping I can set mulitple validations to occur for different reasons. Thanks again. -
How to Stop page Validation
I have a set of controls that uses the RequiredFieldVa lidator controls and I check Page.IsValid in a button's Click event. This works. However, I also have a Gridview on the same page which is not using the validation contols, and it somehow is firing the RequiredFieldVa lidator controls on the page. How do I stop this behavior? Thanks -
Edit: Figured it out . I force a formsAuthentica tion.Signout then redirected the response to where I wanted them to go. The results was the login screen's ReturnUrl indicated the page I wanted them to go to. Thanks, a different thread on this site gave me part of the idea. This place is helpful.Leave a comment:
-
How to change ReturnUrl
Hi all,
My app is working correctly. I have a custom membership provider interfaces with the built-in login controls and everything is working so far. When a user logs out and then re-login with out closing the window he is redirected to the last screen he/she was on. This behavior I expect. Now they (my customer) wants it so if a user re-logs in he does not get the last requested page but a prespecified page.
How... -
Thanks Plater and Beebob. I figured out the problem, it's in the piece of code I didn't give you. Or, rather the database. Someone else is handling the database portion and stored procedures. For me this is a black box they are suppose to tell me the output types. Well, I'm getting incomplete info on the types which is causing my cast error. Sorry about that. Thanks again.
E.Leave a comment:
-
No here is the stack trace:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidC astException:...Leave a comment:
-
Thanks for the suggestion, but it didn't work. To be more precise on my development environment it works, just as the original code does but on the production box I get the Specified cast is not valid error. I’m using ASP 2.0 on both. My dev box is using Visual Studio 2005. This is perplexing. Hey but keep the ideas coming thanks.
I’ve change the code a little to pass ref’s to see if that makes a diff, but noooo. Here is...Leave a comment:
-
Specified cast is not valid
Hi all, I'm working in C# and the following works on my local box (vista) but when I load it to the server and test I get an Invalid Cast Exception error. (I'm new to C# and yeah I know I'm late to the ballgame) Please help. The stack trace indicates the error is here ("SetUserData(" LakinPortal", Login1.UserName , Login1.Password );") see listing below.
Code:using System; using System.Data; using
No activity results to display
Show More
Leave a comment: