Feb 18th, 2009 | No Comments
Many times you need to restrict the number of character’s in multi-line textbox in asp.net. However the maxlength property does not helps in this case what you can do is use this javascript code to restrict the number of input characters in multiline textbox. <script language=”javascript”> function textboxMultilineMaxNumber(txt, maxLen) { try { if (txt.value.length > (maxLen – 1)) return false; } catch (e) { } } </script> use javascript like this, <asp:textbox id=”TextBox1″ runat=”server” Width=”232px” TextMode=”MultiLine”...

Written by Ajay Matharu

February 18th, 2009 at 11:03 am

Feb 2nd, 2009 | 1 Comment
Visual Studio offers a powerful debugger to aid with testing and troubleshooting your applications. One of the most common uses of a debugger is to set breakpoints, which are positions in the code that, when reached, cause the program execution to pause, allowing the developer to inspect the code and state of the program. When a breakpoint is reached and the application suspended, the application is in break mode. In break mode, you, the developer, can examine and change the values of the program variables. The simplest way to add a breakpoint to a particular line of code is to click in the margin...
Jan 5th, 2009 | No Comments
Regular expressions are an extremely versatile text-matching language that gives you incredible power when searching your documents and when used with replace operations, can greatly assist with repetitive changes to blocks of code. The basic regular expression search is easily done. You simply open the Find dialog through the Edit – Find and Replace – Find menu or with Ctrl-F (Edit.Find). Enable regular expression searching by ensuring the Use checkbox is selected and the drop-down list has Regular Expressions selected. Enter your regular expression into the Find What text box...
Dec 29th, 2008 | No Comments
Hi guys, do you know you can use already ready code inside your visual studio? Yes certainly you can insert code snippets into your code. You can invoke the “Insert Snippet” by using shortcut “ctrl k + ctrl x”. You can download some of the code snippets from http://msdn.microsoft.com/en-us/vstudio/aa718338.aspx all you need to do is install this file at “My Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets” location. You can also find some more snippets at http://www.codeplex.com/snippetlibcsharp/Release/ProjectReleases.aspx?ReleaseId=14841...
Dec 22nd, 2008 | No Comments
Task list comments are a great way to remind you or others of something that still needs to be done or something that may need to be revisited for enhancement. The task list (Ctrl-Alt-K/View.TaskList) is a handy tool that is most often used to view errors or warnings from the compilation of your code. The task list also has another use; it can be used to leave reminders for yourself or other members of your team in comment form. You can use this comment anywhere throughout your code, and they will show up in the task list when the file with the comment is open. // // TODO: Add addition logic...

Written by Ajay Matharu

December 22nd, 2008 at 1:00 am

Dec 17th, 2008 | 2 Comments
Parallel Development As demands for application performance increased, customers have traditionally solved the problem by simply increasing the underlying power of the hardware that the application is running on. Over the last several years developers have seen the CPUs that their applications run on start to include 2, 4 or more cores. While the power of the hardware has increased, the transition to a multi-core environment has impacted the applications that developers write. The majority of applications will not be able to automatically take advantage of this multi-core hardware change. Developers...

Written by Ajay Matharu

December 17th, 2008 at 11:22 am

Page 4 of 6« First23456