|
|
Hello,
in my app I heave three roles: "admin", "user" and "company". The user can heave only one role. I want that after checking the database redirect them to certain pages - more precisely their content panel. How to specify the page to redirect for each user when it is not contained in:
FormsAuthentication.RedirectFromLoginPage(userName,createPersistantCookie);
or
FormsAuthenticationUtil.RedirectFromLoginPage(userName, commaSeperatedRoles, createPersistantCookie);
I know it is specified in web.config as default and it works for your site, but, the problem is that when I type in the URL to directly access the "admin"'s content panel (admin\default.aspx) and then try to login as "user" it does not directs me to the "user"'s content panel (user\default.aspx) but it remembers the "admin"'s one (admin\default.aspx) and redirects me to login.aspx which is NOT correct. The user exists and it should redirecting me to the default user's page.
What you suggest about this?
|
|
|
|
|
My first suggestion is that you ask this in the ASP.NET[^] forum. That's where you will find the experts on this type of thing.
|
|
|
|
|
|
VB.NET code for what?
No comment
|
|
|
|
|
|
Here you go. Bask in the glory:
Imports System.Threading
Public Class CrazyBatShift
Public Sub HelloWorld()
Console.WriteLine("Hello World")
End Sub
End Class
|
|
|
|
|
Pete O'Hanlon wrote: Console.WriteLine("Hello World codes")
FTFY.
|
|
|
|
|
Your VB.NET knowledge surpasses mine. I award you a 5.
|
|
|
|
|
Thanks. Not sure it is that good yet, however I'm working hard to reach the next level.
|
|
|
|
|
Don't underestimate your l33tz VB skillz. They are most bodacious.
|
|
|
|
|
Use alot of gotos, and never add any error checking. That helps alot.
|
|
|
|
|
I need a component on .net platform as per the following problem statement. Please send a draft plan for this.
Basic requirements are:
1. There would be questions requiring the student to answer with multiple, yes or no etc (consider all possible options here) online.
2. These set of questions shall be aligned to the course or subject or topic and the student ids.
3. There would be result based on the comparison of the answers given by the student and the answers available or loaded by us in those files.
4. There would be a brief summary report for student on each test.
|
|
|
|
|
yatin88sunny wrote: Please send a draft plan for this.
Why; this is your work you are expected to do it. If you have a reasonable specific technical question then feel free to ask it, but do not expect solutions made to order.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
As I'm just newly register user to this web site. Thought that, this provides codes. Anyways, I'll keep this in mind. Whenever I need help with technical doubts, I'll post my doubts here, for that sure. thanks for guiding.
|
|
|
|
|
yatin88sunny wrote: As I'm just newly register user to this web site.
Then you should have taken the time to read this[^] before posting your question.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
yeah yeah .......... go on, make fun of me. As I'm new on it.
will definately learn 1st , n den I'll post....
|
|
|
|
|
yatin88sunny wrote: make fun of me.
I am not; I am helping you by pointing you to the FAQ that you should read before posting a question.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hello all,
Want to know whether can update data in a DataTable with condition? (like where clause in Query)
eg. in DataTable1 currently like this
Col1 Col2 Col3
007 a car
007 b book
012 a calendar
012 b pencil
012 c cup
014 a mouse
014 b phone
055 a pen
but, in Database '012' is already existed.
Thus, I want to update '012' to be '012A' in DataTable and then use SqlBulkCopy to insert data into Database.
After update DataTable1 will be as below
Col1 Col2 Col3
007 a car
007 b book
012A a calendar
012A b pencil
012A c cup
014 a mouse
014 b phone
055 a pen
Please suggest how to update this without looping through all rows in DataTable1.
Thanks and best regards.
|
|
|
|
|
naunt wrote: Please suggest how to update this without looping through all rows in DataTable1.
There are no methods to update data in a DataTable in bulk AFAIK. You could, however, dump your datatable into a temporary table in Sql Server, do the update there, and merge after.
Bastard Programmer from Hell
|
|
|
|
|
Do you have an example of Dynamic cascading dropdownlist (can't use Ajax because no web services exists)
|
|
|
|
|
|
that article with postback. I want it without post back
|
|
|
|
|
Dear all,
i need a simple project of spring .net 1.3.2 with nhibernate 3.2 in mvc 3 (using vb).
i need it to get the logic.
Please..help me..
i'm in probation in my office .
Thanks all
|
|
|
|
|
Either you have to go to your manager and admit that you don't know anything about those technologies and ask for some help and guidance or just admit that you blagged your way into a job for which you have not got the requisite skills and leave. Better to do something you like and are good at than struggle to do something for which you have no aptitude whatsoever.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|