All Things DotNet - Page 27 of 32 - All Things DotNet Discussed - Winforms/ASP.Net/SharePoint/WPFAll Things DotNet
  • Subscribe to this RSS feed
  • Receive updates as soon as they are posted.
September 16 , 2010 | | In: ASP.Net, ASP.Net Tips

Cancel Validation for a Button

In your ASP.Net page, let’s say you have multiple textboxes, etc, for which you are using validation controls. Then, you also have a button, that when it is clicked, will fire those validation controls.

That’s all well and good, but let’s say you have another button on this page which does something else entirely and you don’t want anything to do with the validation controls, but when you click it, the validation controls fire.

The answer is simple. For the button which doesn’t require any validators to be used, change the ‘CausesValidation’ property to ‘False’.

September 15 , 2010 | | In: WinForms, WinForms Tutorials

How to Use a WinForms Timer

First, you drag a Timer control over to the form you are using (or double-click it). This will put it in the tray at the bottom.
Read the rest of this entry »

September 14 , 2010 | | In: SQL Server, SQL Server Tips

SQL Statements followed by Semi-colon

You might see some examples on the net in which a semi-colon is used as a separator between multiple sql statements. This is still a requirement in some databases, but not generally, in SQL Server or MS Access. It can be used and recognized, but it is not necessary in most cases. In one case, in particular, in SQL 2008, the MERGE statement must be terminated by a semi-colon.
Read the rest of this entry »

September 12 , 2010 | | In: SharePoint 2010 Tips

Differences in SP2010 Versions

If you would like a quick page to see the differences in features between Foundation, Standard and Enterprise versions of SharePoint 201, go here:

Navigation to controls in the toolbox has finally gotten easier now, in Visual Studio.Net 2010. You can actually type to get to the control you want. The sections in which they reside don’t even need to be open.
Read the rest of this entry »

September 9 , 2010 | | In: WinForms, WinForms Tips

Default Buttons on a Form

There’s are a couple of form properties that kind of sneaked in DotNet development a while back. They are:

Read the rest of this entry »

September 9 , 2010 | | In: ASP.Net, ASP.Net Tips

Add a ‘Select’ Item to a Bound DropDownList

Many times, your DropDownList will be populated with specific items from a database. You might ask yourself “How can I add an Item at the top? – – maybe ‘Select’ or something like that.
Read the rest of this entry »

September 9 , 2010 | | In: ASP.Net, ASP.Net Tips

DropDownList Without a Button

The most common way to do something on your ASP.Net pags, using the selected item of a DropDownList is probably to add a button. Then, in the button’s click event, do whatever coding with that item that you need to do.
Read the rest of this entry »

September 9 , 2010 | | In: VB.Net

Implicit Line Continuation – VB.Net 2010

In the most recent version of VB.Net (2010), one of the most wanted ‘small’ features (one that has been wanted by programmers for quite a while) is Implicit Line Continuation. C# has pretty much had it from the beginning.

Before, when we wanted to to break a line up into multiple lines, for better readability, we would need to add, not only an ampersand (&), but then, a space, and an underscore.

Now, all that’s needed now is the ampersand. You no longer need the underscore character! Yeah – it’s not a biggie, but it is :)

September 9 , 2010 | | In: ASP.Net, ASP.Net Tips

Change MasterPage Programmatically

In order to set the master page programmatically, you must use the Page_PreInit to do so. Otherwise, using the Page_Load event will not work.
It would look something like this in code:

Me.MasterPageFile = "~/myMasterPage.master"


All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF

If you find this site helpful,
please donate to help keep it online and free

Code 'n' Sprox   DreamTemplate - Web Templates

Follow us on Twitter

Follow AllThingsDotNet on Twitter

Test - The Name: 6936