|
A quick one. How can I get the time of day (PM or AM) from current date.
|
|
|
|
|
A datetime includes the time. There is no .NET object tha contains only the date
and if you had only the date, you couldn't work out the time, unless you had the timezone.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
To put it simply, I need to be able to do something like
mystrtime = Now.Day.ToString & Now.Month.ToString & Now.Year.ToString & Now.Hour.ToString & Now.Minute.ToString & ????PM Or AM????
|
|
|
|
|
By default, the hour > 12 for PM
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
You would be much better off using DateTime.ToString(format), check out the API docs for DateTime and System.Globalization.DateTimeFormatInfo
For your solution:
Now.ToString("dd/MM/yy hh:mm tt");
|
|
|
|
|
Hello All,
Is anyone have idea why we are getting belowmention error
System.Web.HttpException: Maximum request length exceeded.
Regards,
S Kumar
|
|
|
|
|
HI
If you want to upload a Big file then you need to set the web confing file
system.web>
httpRuntime maxRequestLength="4000"
useFullyQualifiedRedirectUrl="true"
executionTimeout="45"
versionHeader="1.1.4128"/>
/system.web>
Keerthi
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
hi keerthi,
does aspnet_wp.exe in server will be closed any time?
|
|
|
|
|
till now u didn't clear your typing test?
|
|
|
|
|
What do u mean ?
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
i mean every message is follwed by
statements like "asdfasdf..." or "fghdfghdgfh..".
this normally done when u go for training for learning type.
|
|
|
|
|
Hello,
Thanks for your reply.
ASpnet_wp.exe will be close for few minutes while implementing code or restarting server.
In web.config we did necessary changes.
Regards,
S Kumar
|
|
|
|
|
The Worker Process is also bound to be recycled when it appears to be in a deadlocked state for more than a stipulated period specified in machine.config or it has consumed more memory than the quantity allowed in machine.config.
|
|
|
|
|
Hello Vasudevan,
Thanks! I will check this.
Regards,
S Kumar
|
|
|
|
|
Hi
My requirement is i need to search the data base similar way as google.
if user enters wrong spelling like instead of "books" if he enters "boks" then he should be asked that do u mean "books"
how to do this?
Thanks In advance
Ngrj
|
|
|
|
|
There is no way to do this, you'd have to build a table of commonly mis spelled words and alternatives.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
You may need to use a Spellchecker component and list the Top suggestions.
|
|
|
|
|
Hi All,
i have a ASP.NET client and i'm using com components having business logic.
Problem:
exe size of aspnet_wp.exe is increasing every time i run the component thru asp.net client.
is it will be problem??????
please give me the solution.
Thanks in Advance.
Prashanth.
|
|
|
|
|
Fix the memory leak in your com component, or stop using it.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
no memory leaks in my component.
|
|
|
|
|
No bugs in any of my code either.
Regards
Angel
*********************************************
|
|
|
|
|
I thought I was the only one that never had any bugs in my code
|
|
|
|
|
There seems to be some memory leak. Have a profiler like DevPartner Community Profiler and try to address this.
|
|
|
|
|
how can i insert date into my database using calender control in asp.net,c#
Chohan
|
|
|
|
|
You can't. You need to write code that takes the date from the control, and then passes it to the database. There is no connection between the database and the calendar control directly.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|