.Net, ASP.NET, Programming, Visual Studio 2010, Web Development, WebForms

AutoGenerate a Form Page Step-by-Step Without a Single Line of Code – ASP.NET WebForms in Visual Studio 2010:

Overview:

When working with ASP.NET Webforms the ability to quickly generate working forms that are bound to your datasource can be a huge advantage.

Earlier I was creating a Webform in Visual Studio 2010, and as part of the process I dragged a SQLDataSource object onto my page, hooked it up to a stored procedure I had written, and then dragged a FormView control onto the page and associated the FormView with my SQLDataSource.

The great thing is that I was able to simply click an option on my Form Designer control that populated the entire form for me. In Visual Studio it’s just that simple!

I then just had to add my own styling for the page and convert some of my fields to editable textboxes and dropdown lists. In general this is incredibly fast and simple and allows you to add content to the Web quickly.

I will go step by step through setting up a simple ASP.NET WebForms site and populating a form from a datasource (in this case a MS SQL Server Stored Procedure) without writing a single line of code.

Step by Step; Here’s How:

Continue reading “AutoGenerate a Form Page Step-by-Step Without a Single Line of Code – ASP.NET WebForms in Visual Studio 2010:”

Advertisement
ASP.NET, Software, Technology, Visual Studio 2010, Web Development

Visual Studio Keyboard Shortcuts – the Shortcuts I Find Most Useful

There are quite a number of keyboard shortcuts available in Visual Studio, but of them all I only find some to be useful when developing. So without further ado here they are: Continue reading “Visual Studio Keyboard Shortcuts – the Shortcuts I Find Most Useful”

ASP.NET, Error Handling, Programming, Visual Studio 2010, Web Development

‘CreateResourceBasedLiteralControl’ is not a member of

When developing or deploying a Web site you may be confronted with the rather vague error message: ‘CreateResourceBasedLiteralControl’ is not a member of ‘PageName.aspx’.

I encountered this error today while deploying a site to our production  environment. The surprise was that I did not see this error when working on my local machine or our development server. I am still not sure why it did work on some machines but not others.

After spending some time tracking down the cause, I found it to be related to conflicts in control Naming on a Web page. This can be due to: Continue reading “‘CreateResourceBasedLiteralControl’ is not a member of”