|
You need to parse the two dates entered into DateTime instance and calculate it's difference.
|
|
|
|
|
i dont know how to include an algorithm in a asp.net project and also tell me how to convert an algorithm into the code...reply me.
jhansi
|
|
|
|
|
jaraldumary wrote: hi i am new to this site.
Welcome to Codeproject !!!
jaraldumary wrote: how to include an algorithm in a asp.net project
Whcih algoritham are you taliking about ?
jaraldumary wrote: me how to convert an algorithm into the code
This is the very basic of programming langauge.
|
|
|
|
|
jaraldumary wrote: how to convert an algorithm into the code
Get a good programming language book and go through it.
Apurva Kaushal
|
|
|
|
|
Which type of algorithm you are talking about?What is your project?Where you want to integarte with in your project?
Cheers!!
Brij
|
|
|
|
|
Hello sir tell me how to downlaod and upload the video in asp.net and store in databse i use ur code is already available bt these code is not takina any video files in file upload control .In fileuplaod control we browse any video file and click upload button then switch to page is not find and url is same Default.aspx and display like website is not fund browser page is open .
tell me as solution..urgently
thanks && Regards
Deepika Chaturvedi
|
|
|
|
|
deepikamonu wrote: how to downlaod and upload the video in asp.net and store in databse
I will suggest just store video path in database and store orginal video on local hard drive.
|
|
|
|
|
deepikamonu wrote: i use ur code is already available bt these code is not takina any video files in file upload control .
What code are you talking about?
Apurva Kaushal
|
|
|
|
|
hey! friends can you tell me about the idea of checking username existence after just loosing the focus on page and show it without refreshing the whole browser.also if any one can help me in providing signin dialogbox for entries and no refreshing(of browser) after the entry.
i pick this idea from in.com
componentart.com etc.
|
|
|
|
|
your subject is way too long. However, you seem to be asking for a basic AJAX operation, so I guess you do it the way that is done, using the AJAX framework. Of course, if you're using AJAX to check if someone is logged in, you have to make extra specially sure that doesn't mean that someone who can intercept your AJAX calls ( that is, anyone on earth ) cannot then side step your security system.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
sir can you told me just how to check a single textbox data for validity checking by it.
|
|
|
|
|
Hi friends,
I am using Asp.Net 2.0 application. I need to convert all country time zone to my country zone. I used java script. But i got so many problems. Using web service Is it possible? If it is possible, how will do that? Give some idea to me. Or if you know any useful link for this one.
Hope your's reply.
Thanks & Regards
Every Successful Person Have A Painful Story
|
|
|
|
|
Conversion is easy. Trivial. Knowing what country people are in, is not so easy. You can assume their local clock is right, and just write the time into a hidden field, parse it, and work it out from there. I don't see how a web service would help, how could it ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
HI all,
i have to generate random password for user and hash of that password will be stored in database.
Here i want to know which approch is best for generating random password.
iam using following in function
String strString = System.Guid.NewGuid().tostring();
strString = strString.Replace("-",string.Empty);
strString = strString.Substring(0,8);
iam also reffering following link
http://aspnet.4guysfromrolla.com/articles/101205-1.aspx#postadlink[^]
Is there any best approach or technique then above from security point of view please direct me in right direction .
is there any availble class in .net for generating random password?
Best Regards
Rameez
|
|
|
|
|
rameez Raja wrote: is there any availble class in .net for generating random password?
No. Best you could do is generate characters at random that are in a given range ( i.e. all letters, letters and numbers, etc ) and appending them to a string with a stringbuilder.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I am working on CMS and i have a image library and upload url but error is below when i am trying to display the image on home page.
ImageUploadPath is neither a DataColumn nor a DataRelation for table tblImages.
Kindly do replay.
Sajjad Ali Lashari
110 Solutions Pakistan
|
|
|
|
|
i think of that you can check whether the image urlpath is exist.
Road endless its long and far,I about will seek.
|
|
|
|
|
The error means you assumed that ImageUploadPath was a valid column in your table, and it's not.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I am just confused about XML and its USE in DOTNET
Send me some details or links about this to clear my confusion
|
|
|
|
|
When you say DOTNET, are you also confused about what ASP.NET is, or just what it's called ?
XML has many uses. If you can't thnk of any, perhaps you don't need it ? It's a great way of passing heirarchical data, or storing data with a fluid schema. The ASP.NET web.config file is XML, so you can't avoid using XML if you use ASP.NET.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Please kindly help me a question : How to load dropdownlist inside Datalist in edit mode (c#)? , and get Selectedvalue ?
|
|
|
|
|
To get the selected value, you need to use FindControl to find it in each row and then check it's selection.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hello guys, I guess my topic explaings the questions that I have... how do I remove the commas after reading a CSV file into a streamreader.
I tried using string.Split(',') but I can't assign this to a string variable because this is an array i suppose.
I'm not even sure If I should even be concerned with removing the commas from the CSV file because the goal is to read all the raw data (separeted by commas into the memory) and eventually save it to a sql server database.
Can someone please shed some light over this. I'd appreciate it!
Tina
|
|
|
|
|
the Replace method is what you need.
Why would you want to remove the commas, when they tell you where the colums are ? How can you save them to a database, if you've taken the rows and turned them into one string ? The split method is probably best, you get a string array, with each element being a column.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Removing all commas in the string is easy:
str = str.Replace(",", string.Empty);
However, that is not what you want to do. You need the commas so that you know where one value ends and the next one begins.
If no values in the line contains commas, you can use the Split method to get the values:
string[] values = line.Split(',');
However, as CSV file may be more complicated than that. A value can be enclosed in quotation marks, and then it can contain commas or even line breaks. Example:
Id, Info, Date<br />
1, Some text, 2008-12-14<br />
2, "Some text,<br />
containing commas,<br />
and line breaks.", 2008-12-15<br />
3, "More text, mind you.", 2008-12-16
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|