Click here to Skip to main content
15,881,715 members

Articles by Ravi LVS (Tip/Tricks: 8)

Tip/Tricks: 8

RSS Feed

Average article rating:

No articles have been posted.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.23

.NET
23 Mar 2010   Updated: 24 Mar 2010   Rating: 4.50/5    Votes: 4   Popularity: 2.71
Licence: CPOL    Views: 7,300     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
There are cases where we want to ensure that the filename entered by the user has a valid extension of your choice, say .XLS, .ZIP. Sometimes user may not enter extension, or may enter wrong extension like .XLA, .ZIL. In such cases, here is a simple tip where we need not check how user enters...
19 Jul 2010   Updated: 8 Aug 2010   Rating: 3.57/5    Votes: 4   Popularity: 2.15
Licence: CPOL    Views: 55,124     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Get Quarter Starting and Ending Dates for a given Date
Oracle
23 Jul 2010   Updated: 23 Jul 2010   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 9,190     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Check Constraint to validate a Financial Year in Oracle
Programming Languages
C#
31 Jan 2010   Updated: 15 Feb 2010   Rating: 4.43/5    Votes: 5   Popularity: 3.10
Licence: CPOL    Views: 21,172     Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
Datatable in ADO.NET is highly useful to do in memory data related operations. But it is very painful to update data when it is bound to a datagridview or bindingsource.While I was developing an application in .NET with C#, I came across this problem in which I had to modify a data table of...
28 Feb 2010   Updated: 1 Mar 2010   Rating: 3.86/5    Votes: 4   Popularity: 2.32
Licence: CPOL    Views: 25,421     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Do you want to wrap a string to a desired width for printing or other purposes, then here is a small snippet.public static List StringWrap(string srcStr, int maxWidth) { List lstLines = new List(); int spcCount = 0; if...
Visual Basic
16 Mar 2010   Updated: 16 Mar 2010   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 7,520     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
I don't see any difficulty in finding the above solution, because I am using same functionality since long back. Here is my alternative code.Instead of creating a new DataView object, you can directly call the DataTable's DefaultView.sourceDataTable.DefaultView.RowFilter =...
Web Development
ASP.NET
19 Feb 2010   Updated: 22 Feb 2010   Rating: 4.29/5    Votes: 9   Popularity: 4.09
Licence: CPOL    Views: 17,351     Bookmarked: 13   Downloaded: 0
Please Sign up or sign in to vote.
If you want to keep a downloadable file private to end users / customers with their username and password, everyone suggests not to put the file in the web root directory, and gives you a suggestion to change IIS settings and use Response.TransmitFile. When you are not having access to the...
8 Nov 2011   Updated: 25 Dec 2011   Rating: 4.76/5    Votes: 16   Popularity: 5.73
Licence: CPOL    Views: 59,651     Bookmarked: 22   Downloaded: 0
Please Sign up or sign in to vote.
Find the count of a weekday between two dates without iterating/looping

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.