Archive for the ‘VB.NET’ Category

Create popup date picker in seperate window using ASP.NET calendar control

ASP.NET, C#, VB.NET 13.4.2009 3 Comments

I’ve gotten alot of feedback on our popup ASP.NET calendar control I posted awhile back. In that post I did it with a “fake” popup using DIV’s. In this post, I will do it with a traditional popup window.

Read More

Using Parameters/Parameterized Queries in database interactions with C# and VB.NET

When writing ASP.NET applications, you need to be careful with your code to protect from misuse by would be hackers. One of the best ways to do this is to parametrize your queries. Not only will using parameters help against SQL injection attacks, but it’s best practice to do so and avoid large string concatenation….

Read More

Return a line break or carriage return in ASP.NET page

ASP.NET, C#, VB.NET 3.4.2009 1 Comment

I came across the issue today of needing to output some text from a multiline textbox and having a few issues on preserving the line breaks/carriage returns from the textbox. If you view the source on the page, it would look correct, but yet the display on the HTML page would show no line breaks.

Read More

Dynamically Create Google Sitemap with ASP.NET

This article will cover dynamically generating your sitemap to submit to Google Sitemaps using ASP.NET and as usual the code will be available in C# and VB.NET. Whenever you develop a site with the intention of putting it on the internet, it’s necessary to do everything you can to index your site with the various…

Read More

Adding paging to a repeater

While the Gridview control has pagination built in, alot of the time, you may want to add pagination into your repeater control as well. Thankfully, ASP.NET has a PagedDataSource object to help accomplish this task.

Read More

Upload, Read, and Parse file in ASP.NET

While there are many tutorials for ASP.NET on uploading and saving a file to the disk as well as read and parsing a file from the disk, there is no simple tutorial for uploading, reading and parsing the data in memory. A client of ours needed to do this so I thought I’d list out…

Read More

Create popup date picker using ASP.NET calendar control

A client recently required a popup ASP.NET calendar control to use on their site. I thought we would share our solution to this.

Read More