background preloader

This is the Visual Basic tutorial and resource center where everyone can learn visual basic programming from our tutorials including visual basic 2012, visual Basic

This is the Visual Basic tutorial and resource center where everyone can learn visual basic programming from our tutorials including visual basic 2012, visual Basic

Elevate Design Pattern IOC and DI Updated with links of Other Application Blocks Table of Contents Introduction I have been recording and writing on design pattern and UML. In the previous article we discussed about the fundamentals of IOC and DI design patterns. In the same article we also discussed about how Windsor can be used to solve this problem. Lately I have been writing and recording videos heavily on design patterns , UML and many architectural stuff you can visit for design pattern and UML videos. You can read my previous articles on design patterns and UML in the below links:- Part 1 – Design patterns Factory, Abstract factory, builder, prototype, shallow and deep copy, and singleton and command patterns SoftArchInter1.aspx Part 2 – Design patterns Interpreter, Iterator, Mediator, Memento and observer patterns SoftArch2.aspx Part 3 – Design patterns State, Stratergy, Visitor, Adapter and fly weight pattern SoftArch3.aspx SoftArch4.aspx Part 1 - UML Interview Questions SoftArch5.aspx The problem

DiGiovanni : Web Development with SharpDevelop, Web Matrix, and Visual Studio.NET 2003 makes development a whole lot easier than it ever was before. But what if you have to develop a web application and you do not have the power of VS.NET 2003 available to you? I would hate to be without Intellisense (I’m spoiled), debug support, and many of the other features that VS.NET 2003 provides. There is a way to accomplish this developmental challenge with the following three tools: SharpDevelop, the free open source .NET IDE, has just been released as Fidalgo RC1 (6/16/2004). SharpDevelop’s IDE is very similar to VS.NET 2003; it even has a version of Intellisense. Web Matrix, the free ASP.NET IDE was released by Microsoft to support ASP.NET development. DebugCLR (DbgCLR.exe) is available in the .NET Framework SDK or with Visual Studio. Code snippets in this example are in C#, but can be modified for VB.NET. Configuring the Solution in SharpDevelop SharpDevelop has a similar notion of a solution called Combines. Adding a combine: File > New Combine: –Mark

sql server - Insert Data into database in C# Scott Hanselman - ASP.NET Dynamic Data Do you like a big pile of source code? Well, there is an imperial buttload of source in the Visual Studio 2010 and .NET Framework 4 Training Kit. It's actually a 178 meg download, which is insane. Perhaps start your download now and get it in the morning when you get up. I like to explore it while watching TV myself and found myself looking through tonight. Here's an outline of what's inside. I love using this kit in my talks, and used it a lot in my Lap Around .NET 4 talk. There's Labs, Presentations, Demos, Labs and links to online Videos. Here's a few of my favorite bits, and they aren't the parts you hear the marketing folks gabbing about. Code Contracts Remember the old coding adage to "Assert Your Expectations?" Code Contracts continues to be revised, with a new version out just last month for both 2008 and 2010. I can even get Blue Squigglies for Contract Violations as seen below. Here's a basic idea of what it looks like. COM Interop sucks WAY less in .NET 4 Parallel Extensions

ASP.Net Dynamic Data ASP.NET 4.0 supports different types of web application development and associated templates. In this article, we will talk about the ASP.Net Dynamic Data and how we can create a fully functional web application without writing a single line of code. Introduction ASP.NET 4.0 supports different types of web application development and associated templates. The different ways of creating web applications are ASP.NET Web Forms: Normal web application with set of Web forms ASP.NET AJAX: Web application based on Ajax technology ASP.NET MVC: Web application based on Model View Controller Pattern. In this article, we will talk about the ASP.Net Dynamic Data and how we can create a fully functional web application without writing a single line of code. Pre-requisites ASP.Net Dynamic Data is introduced as part of Visual Studio 2008 SP1 and it is available in Visual Studio 2010. ASP.Net Dynamic Data ASP.Net Dynamic Data is used to develop data driven web applications in thinking speed. Have a Look

New ASP.NET Dynamic Data Support The ASP.NET 3.5 Extensions CTP we shipped this past weekend contains a bunch of great new features. One of the cool new features is something we call "ASP.NET Dynamic Data Support". In a nutshell this enables you to really quickly build data driven web-sites that work against a LINQ to SQL (and in the future LINQ to Entities) object model - and optionally allows you to-do this without having to build any pages manually. The best way to see this in action is to watch David Ebbo's awesome 17 minute screen-cast: You can also follow the steps below to easily get started and use the dynamic data support: Step 1: Create a ASP.NET Dynamic Data Site: Once you have the ASP.NET 3.5 Extensions CTP release installed, you can use VS 2008 or the free Visual Web Developer 2008 Express to create a new Web Site or Web Application Project that has the ASP.NET dynamic data support enabled: Step 2: Add a LINQ to SQL Data Model to Your Site Step 3: Enable Dynamic Templates in Your Project: Step 4: Run Your Site

ASP.Net FileUpload Size Limit Example The File size limit validation is required for ASP.Net FileUpload control as a security feature to protect the web server being dominated by the spammers by uploading large files that kill the server cache available for loading the web pages hosted on it. The FileUpload control does not provide any in-built controlled way for applying the limit over the file size of the file selected by the user to upload it on the web server. There is also no appropriate JavaScript function and web browser that allows you to access the file at client’s computer system to get its file size before proceeding the action of uploading the file to the server memory. The web.config file of ASP.Net web application provides a HTTP runtime setting that can be applied using its httpRuntime element. The second step needs a server end C# code to verify the size of the uploaded file. Sample Code for Applying File Size Limit on FileUpload control HTML Code C# Code "The connection was reset."

UpdatePanel - Trigger Manual :: Frameworkla.net FileUpload : Page Cannot be displayed and maximum request length exceeded error | Nishant Rana's Weblog By default, ASP.NET permits only files that are 4,096 kilobytes (KB) or less to be uploaded to the Web server. To upload larger files, we must change the maxRequestLength parameter of the <httpRuntime> section in the Web.config file. By default, the <httpRuntime> element is set to the following parameters in the Machine.config file: <httpRuntime executionTimeout=“90“ maxRequestLength=“4096“ useFullyQualifiedRedirectUrl=“false“ minFreeThreads=“8“ minLocalRequestFreeThreads=“4“ appRequestQueueLimit=“100“ We can change the value of maxRequestLength to a desired value in our web.config of the application. void Application_Error(object sender, EventArgs e) if (System.IO.Path.GetFileName(Request.Path) == “Default.aspx”) System.Exception appException = Server.GetLastError(); if (appException.InnerException.Message == “Maximum request length exceeded.”) Server.ClearError(); Response.Write(“The form submission cannot be processed because it exceeded the maximum length allowed by the Web administrator. else{

A dissection of the ASP.NET AJAX library – Part 3: The PageRequestManager on the client side « Serge Desmedt A dissection of the ASP.NET AJAX library – Part 3: The PageRequestManager on the client side October 6, 2007 This is the third part in a series of articles in which I intend to dissect the ASP.NET Ajax library. I’m relative new to this modern type of javascript programming so I decided to look into the ASP.NET Ajax library to see how certain things are done. This is a report of my voyage. HTML Forms, control events and submitting data. What is the problem? In a standard HTML form, if you click on the forms’ controls nothing happens. With ASP.NET, most of this still is true. function __doPostBack(eventTarget, eventArgument) { if (! theForm. theForm. theForm.submit(); <select name=”DropDownList1″ onchange=”javascript:setTimeout(‘__doPostBack(\’DropDownList1\’,\’\’)’, 0)” id=”DropDownList1″> <option value=”t1″>t1</option> <option selected=”selected” value=”t2″>t2</option> <option value=”t3″>t3</option> But as you can see from the code the form is still completely submitted to the server. if(XmlHttp) this.

Create an ASP.NET Dynamic Data Website Using ADO.NET Entity Framework Create an ASP.NET Dynamic Data Website Using ADO.NET Entity Framework This article will demonstrate how to create an ASP.NET application that uses ASP.NET Dynamic Data framework. Dynamic Data provides a scaffolding framework that enables you to create a data-driven application within minutes using either the LINQ to SQL or Entity Framework data model. Requirements: Step 1: Open Visual Studio 2008 > Go to File menu > New Web Site. The structure of the application in the Solution Explorer will look similar to the following: Step 2: The next step is to add a data source to the project. Note: If you are using SQL Express, follow these steps. Step 3: The next step is to create a Data Model. When you click Add, Visual Studio asks if you want to place the file in an ASP.NET_Code folder. Click ‘Generate from database’ to specify that you want to generate the model from a database. Note: SQL Express users can select Northwind_Data.mdf from the list. Click Next. MetaModel model = new MetaModel(); try

Related: