I like the link you recommended. I have a further question, it is useful to use SQL server or use ASP.Net state process if I only have one web server (not a server farm)? I am not sure whether SQL server or use ASP.Net state process are solutions specifically for multiple server (server farm) environment?
I need to post my application 's link to orkut (scrapbook or profile) by getting orkut username & password from the user & post my application's link in his orkut scrapbook or profile.
In this following link
To the right side of the page you can see YOUR QUIZ TITLE WILL GO HERE ,below that option are there to post the current link to orkut,...i need to implement that functionality ... ie i need to post my application link to orkut)
My web server is not my country, so server's time and my country time is
So code runs on server,
for example when I run DateTime.Now() function
it returns server time but I want to get my local time.
Is there a way to do that?
OK - this means that your DB will only accept a date. You should change the DB so it will take null, or you should sanitise your input. Either way, Convert.ToDateTime(null) is a nonsense. You should pass in DbNull.Value, or null, whichever works, to store null.
use it before pass to DB
if (CompletionDate == null)
and also in DB "CompletionDate" field shulid allow null
How do you know it allows null ? In any case, your error is not that null is not allowed, but that the date object is broken. I think you need to make your code typesafe, walk through with the debugger and see what date is passed in. You also need to fix your code where it is prone to breaking.
Driven to the arms of OSX by Vista.
Last Visit: 31-Dec-99 19:00 Last Update: 28-Nov-23 12:16