|
zhoujun wrote:
How to do that?Could you say more?
My thought was, that maybe when u specify a different username string (can be build from the original one, a suffix should be sufficient) in your second call to FormsAuthentication.RedirectFromLoginPage this new cooki will be used for authentication, but I don't know if it would work. The best and cleanest way is maybe to first call FormsAuthentication.SignOut() to remove the persistent cookie and then log the user back in with your non-persistent cookie.
Cheers
Martin
"Situation normal - all fu***d up"
Illuminatus!
|
|
|
|
|
zhoujun wrote:
I set up autoentication timeout=30minutes,but after that period of time,when user focus on the page again,they will be surprised that they are directed to login.aspx.
So could it be possilbe to display something that the users are timed out?
I think maybe I found out (hope it works). You can do the following on your login page:
FormsIdentity ident = Context.User.Identity as FormsIdentity;
if(ident.Ticket!=null)
if(ident.Ticket.Expired){
}
Cheers
HTH
Martin
"Situation normal - all fu***d up"
Illuminatus!
|
|
|
|
|
Is it possible to use .NET on a Linux server with (of course) Linux OS?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
|
Nice!
But it's not final... what I could read in the FAQ it wasn't...
But it will be!
Thank you!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
well, Asp.Net web application runs only on IIS web server. I think if u can install IIS on linux server n successfully configure it then web application must run.
|
|
|
|
|
Ages ago I got an email about testing a beta version of a package by Halcyonsoft[^], I think they were calling it iNET -- effectively converts .NET code to Java I think. Anyway, it could be worth a visit.
--
Paul
"I need the secure packaging of Jockeys. My boys need a house!"
- Kramer, in "The Chinese Woman" episode of Seinfeld
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
It sounds cool!
I will try it.. but... WTF.. is the beta an evalution version??
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
You'll probably find its unsupported to some extent. If you actively use it and report problems with the software then you'll be given support, but since its not complete you can't expect it to work flawlessly.
As for evaluation, check in any terms and conditions before you download. You may find that you can only use it until a certain date (by which point a final edition may be available).
--
Paul
"I need the secure packaging of Jockeys. My boys need a house!"
- Kramer, in "The Chinese Woman" episode of Seinfeld
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
One question:
What download am I suppose to take?
The bundled or unbundled?
If the Linux OS don't have the JDK or something, should I take the bundled then?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Hi Pals
This might be a simple one for most of you!
I am trying to send an email using CDO NTS, with the following code
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.To = "myname@yahoo.com"
objMail.Body = "Test Email"
objMail.From = "myname@yahoo.com"
objMail.Subject="Test Email"
objMail.BodyFormat=0
objMail.Send
Set objMail = nothing
the mail is not sent when i ran the above code, i checked for SMTP services on my machine, which is a WIN 2K server in my office network, they are running too.
what might be the problem?
I ran the same code from my home machine which is again win2k server and it worked perfectly...
any suggestions as why its not working???
Thanks for your help in advance
Jon.
|
|
|
|
|
How do you have relaying configured?
|
|
|
|
|
I am not sure what exactly relaying means?
didnt do any configuration from my end, thought everything was set default, and we can use it straight forward.
ALl i did was checked in the Services for SMTP, and it is running, is there something i am missing here!!
Thanks
|
|
|
|
|
Relaying is the action of transmitting a mail via SMTP services. Most SMTP services recommend that you turn it off or authenticate using one way or another. It all ties back to an individual being able to use your server to "relay" their spam...
Is there anyone else using this SMTP server? I have a few questions reqarding the configuration...
|
|
|
|
|
Here's an article that might help...
http://www.microsoft.com/windows2000/en/advanced/help/default.asp?url=/windows2000/en/advanced/help/moc04_57.htm
|
|
|
|
|
I started ASP.NET last night, and I put an ASP:Label in my page, and some normal text. The text is rendered so that it's written over the label. How do I mix asp controls and html so that each lines up with the other, or can't I ?
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
First question: Do you have it configured for Grid or Flow layout?
My first assumption is that the label control could be using placement coordinates whereas your normal text is not, therefore allowing for "overlapping".
|
|
|
|
|
I thought of that this morning - it's grid I believe ( the default ). Will changing it fix my problem ?
It's also all in a server run form if that makes any difference.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Are you trying to place the label control on the upper left portion of the page?
If you want the label and text to "flow" together then yes, I would recommend setting it up for flow...
Example:
Normal Text ASP Lable
---------- --------
User Name: MHeckman
|
|
|
|
|
I have made a homepage in ASP.NET. But it's damn slow! I don't know if it is the server or .NET (the CLR I guess if .NET)....
I have my homepage on DotNetPlayground.com
Do you know something why it's so slow... I hope it's the server and not the CLR in .NET!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
|
Can you tell me more?
How to use... ehm... it....
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
|
Uwe Keim wrote:
Hey, am I your personal trainer?!?
come un....
Uwe Keim wrote:
Oh, it only works integrated inside Visual Studio .NET, but I think the .NET Framework itself brings you some profiling methods?!?
Yes, so how ill I then get my ASP.NET homepage work faster on DotNetPlayground.com's server?
Or... does thiss tool optimize the code or something......
blaast...
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard,
I don't think it can be .NET. Everything I write in ASP.NET gets comments about how much faster than an ASP site it is (and so it should be). You have to realise that a free hosting service like DotNetPlayground is likely to be slow.
Check out http://www.santt.com[^] for a simple site I wrote for running a small (South America variant) Diplomacy tournament. (as you might guess from our previous conversation, this is hosted by Brinkster on their Premium servers)
The tournament is over now but this was dead handy for keeping people updated and the front page actually runs quite a lot of processing (to calculate team scores).
If this can run that fast using an Access database, I don't accept that ASP.NET is slow. It wasn't even written that efficiently (and in VB.NET too!); I've learned a lot since that was written.
Paul
|
|
|
|