C# : Tutorial of Asp.net with c# and example

Example and code about windows application, web application, SQL, C#, WPF etc which is helpful to developer and programer.

Search This Blog

Disadvantages of WPF

♠ Posted by Unknown in ,

Disadvantages of WPF

Disadvantages of WPF as Follow:

There's greater support in the 3rd-party control space for WinForms. (That's changing, but for now by advantage of time, WinForms has greater support in the community). 

WPF's in-box control suite is far more limited than that of WinForms.

Most developers already know WinForms; WPF provides a new learning curve.

Winform takes smaller resources than WPF.

WPF will not run on windows 2000 or lower.

No MDI child mode.

WPF will not run on windows 2000 or lower.

Winform takes smaller resources than WPF because you can test this your self by create 1 project in windowapplication with 1 empty form same as in Wpf Create one project then run both project WPF project take more time.

Disadvantages of WPF

Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


Advantages of WPF

♠ Posted by Unknown in ,

Advantages of WPF(Windows Presentation Foundation)

List of Advantage of WPF

Easy to create an unique Look and Feel.

Power full stylist and programmer friendly structure.

Support Windows Forms.

The future technology for developing Vista Applications.

The ability to reuse existing code.

Highly advanced data binding possible.

Much quicker to develop normal apps.once you are experienced.

Declarative Programming: Declarative and procedural code (You can use Procedural if you want)
WPF takes the declarative programming to the next level with the introduction of Extensible Application Markup Language(XAML).

Data binding works and is simple. Highly advanced data binding possible Requires a less code behind to do common things.

Framework much smarter.

Much more maintainable apps (from better data binding and declarative code with better separation)

Excellent layout.

Excellent document support.

Multi media support.

Vector Graphics simplifes painting Operations

3D Animations.

WPF Everywhere Idea (Silverlight and Microframework)

It's more flexible, so you can do more things without having to write or buy new controls
XAML makes it easy to create and edit your GUI, and allows the work to be split between a designer (XAML) and a programmer (C#, VB.NET etc.)

It allows you to make user interfaces for both Windows applications and web applications (Silverlight/XBAP)

It's newer and thereby more in tune with current standards

Hardware Acceleration: WPF is built on top of direct 3D, WPF applications can get the benefit of hardware acceleration for smoother graphics and all round better performance.Uses hardware acceleration for drawing the GUI, for better performance

Windows Forms is feature complete. Not perfect, but everything you need is in there. WPF is great, you can do a lot of graphical tricks.

 If you are building apps where unique look and feel, and creating a superior user experience are real goals, then WPF is probably a better choice.

Large Integration: Before WPF come in market, there was very difficult to use 3D, Video, Speech, and rich document viewing in addition to normal 2D Graphics and controls would have to learn and use several independent technologies.

Resolution Independence: WPF applications are device independent. Like normal applications it do not get decrease the size as the resolution gets increase. This is possible because WPF emphasis on vector graphics.

XAML is like HTML in web used for creating the interface, resulting graphical designers are empowered to contribute directly to the look and feel of applications.

Advantages Summary:

  • Easy to create an unique Look and Feel.
  • Power full stylist and programmer friendly structure.
  • Support Windows Forms.
  • The future technology for developing Vista Applications.
  • The ability to reuse existing code.
  • Highly advanced data binding possible.
  • Much quicker to develop normal apps.
  • Framework much smarter.
  • Excellent layout.
  • Excellent document support.
  • Multi media support.
  • Vector Graphics simplifies painting Operations
  • 3D Animations.
WPF Advantages

Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


What is wpf

♠ Posted by Unknown in ,

What is WPF(Windows Presentation Foundation)

Definition of Windows Presentation Foundation (WPF)

Windows Presentation Foundation (WPF) is a next-generation presentation system for building Windows client applications with visually stunning user experiences. With WPF, you can create a wide range of both standalone and browser-hosted applications.

WPF, earlier name is Avalon, was initially released as part of.NetFramework3.0. Since then, Microsoft has released five major WPF versions.

WPF Version List as follow:

  1. WPF 3.0 (Nov 2006).
  2. WPF 3.5 (Nov 2007).
  3. WPF 3.5sp1 (Aug 2008).
  4. WPF 4 (April 2010).
  5. WPF 4.5 (August 2012).

Windows Presentation Foundation (or WPF) is a graphical subsystem for rendering user interfaces in Windows-based applications by Microsoft.

The Optimum User Experience Since the very earliest days of WPF/XAML development, there has always been a need to inspect the visual tree. Early Pre-Alpha builds of Blend had a debug command which would dump the entire visual tree to a text file so its become easy.

The core of WPF is a resolution-independent and vector-based rendering engine that is built to take advantage of modern graphics hardware. WPF extends the core with a comprehensive set of application-development features that include Extensible Application Markup Language (XAML), controls, data binding, layout, 2-D and 3-D graphics, animation, styles, templates, documents, media, text, and typography. WPF is included in the Microsoft .NET Framework, so you can build applications that incorporate other elements of the .NET Framework class library.

WPF offers additional programming enhancements for Windows client application development. One obvious enhancement is the ability to develop an application using both markup and code-behind, an experience that ASP.NET developers should be familiar with. You generally use Extensible Application Markup Language (XAML) markup to implement the appearance of an application while using managed programming languages (code-behind) to implement its behavior.

what is WPF?

Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


About Us

♠ Posted by Unknown in

About Us

Aspdotnethelpmaster.blogspot.com is a blog which contain lots of post which help to professional programmer and trainee to make their programming better. We always ready to help you about any kind of problem or question related to programming. you can comment on our post or improve our post or you can mail us for any query. 

We are daily one or more post on our blog with any programming concept like Asp.Net, VB.Net, C#, SQL, JQuery, WPF, Visual Basic, web services, SQL Query, Code, Syntax, Example of Asp.Net, Example of VB.Net, Example of C#, Example of JQuery, Example of WPF, Example of SQL, Demo, and Tutorial of Asp.Net and C# etc.

About Us


Disadvatages of vb dot net Technology

♠ Posted by Unknown in

Disadvantages of VB.NET

  1. Multi platform support is not available from Microsoft and isn't available straight after installing Visual Studio.
  2. Managed code can be slower than native code.
  3. Not suitable for High End Application.
  4. VB.Net performance lower compare to C,C++.
  5. Only few Operating System supports .NET.
  6. built in methods not available.
  7. .NET framework is free to download but Code Editor is costly. 
  8. .Net is very easy to reverse engineer any intelligent can decode your DLL or code. If you do not obfuscate your code, you may as well publish the source code.
  9. Additional installation requirements :The footprint of your application can be huge if it requires a version of .Net, which is not already on the computer and therefore must be  install first.
  10. Visual basic is a proprietary programming language written by Microsoft, so programs written in Visual basic cannot, easily, be transferred to other operating systems.
  11. There are some, fairly minor disadvantages compared with C,C++ has better declaration of arrays and its possible to initialize an array of structures in C at declaration time; this is impossible in VB.
  12. Does not support modern technologies, In Visual Basic 6, you cannot work with many modern technologies, especially the web technologies. 
  13. You cannot make a dynamic web site. Dynamic website is an online application for which VB6 does not have the development facilities. Though Internet programming is supported in Visual Basic 6. But you don't have enough power and flexibilities for making web applications using Visual Basic 6.
  14. Performance issue, The VB.NET applications run on .NET framework, which is an extra layer between the operating system and the application. So there is a performance issue.
Disadvantages of vb.net

Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


Advantages of vb dot net and its use

♠ Posted by Unknown in ,

Advantages of VB.NET

All features of the .NET framework are already available in VB.NET. its provides managed code execution that runs under the Common Language Runtime (CLR), resulting in robust, stable and secure applications.  

VB.NET is totally base on object oriented approach. This is not available in a major addition that VB6 and other earlier release.

The .NET framework comes with ADO.NET, which follows the disconnected paradigm, i.e. once the required records are fetched the connection no longer exists. It also retrieves the records that are expected to be accessed in the immediate future. Because of it application becomes more Scalable.

VB.NET uses XML to transfer data between the various layers i.e. data are passed as simple text strings.

Error handling has changed in VB.NET. A new Try-Catch-Finally block has been introduced to handle errors and exceptions as a unit, allowing appropriate action to be taken at the place the error occurred thus discouraging the use of ON ERROR GOTO statement. It is better to the maintainability of the code.

Many situations developers need spawning of a new thread to run as a background process and increase the usability of the application.

Security has become more strong in VB.NET. In addition to the role-based security in VB6, VB.NET comes with a new security model, Code Access security. This security controls on what the code can access. For example you can set the security to a component such that the component cannot access the database. This type of security is important because it allows building components that can be trusted to various degrees.

The CLR takes care of garbage collection i.e. the CLR releases resources as soon as an object is no more in use. This relieves the developer from thinking of ways to manage memory. CLR does this for them.

Various legacy VB functions (provided in the Microsoft.VisualBasic namespace, and can be used by other languages with a reference to the Microsoft.VisualBasic.dll).Many of these can be harmful to performance if used unwisely, however, and many people believe they should be avoided for the most part.

Summary of VB.Net Advantages

  • Powerful Windows-based Applications.
  • Building Web-based Applications.
  • Powerful, Flexible, Simplified Data Access.
  • Direct Access to the Platform.
  • Simplified Deployment.
  • Full Object-Oriented Constructs.
  • XML Web Services.
  • Mobile Applications.
  • Support for optional parameters - very handy for some COM interoperability.
Type Conversion -: Prevents unintended type conversions. This means that you cannot accidentally assign ‘Float’ value to a ‘String’ variable; however, this is not always foolproof. VB.Net does allow some unintended type conversions, such as an integer value could be placed in a ‘Long’ variable. Support for late binding with Option Strict off - type safety at compile time goes out of the window, but legacy libraries which don't have strongly typed interfaces become easier to use.

For fast GUI Design -: Easy to use Rapid Application Design (RAD) interface – Within a less time a complete Graphical User Interface (GUI) can be produced; thus requiring less programming time and less design time.

Default inbuilt code -: When creating a new project, or just adding a new form or button, the environment will automatically generate the default coding to have the objects appear; in some cases there are wizards that can provide default coding to have some functionality within the application. This translates to a working application can be designed and coded in a fraction of time than some other languages.

VB.Net advantages

Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


Tutorial : What is vb dot net and its use?

♠ Posted by Unknown in ,,

What is vb.Net?

VB.Net is a simple, modern, object-oriented computer programming system developed and owned by Microsoft.

Visual Basic was originally developed to make it easier to write programs for the Windows operating system. The basis of Visual Basic is an earlier programming language called BASIC. Visual Basic is often referred to using just the initials VB. Visual Basic is easily the most widely used computer programming system in the history of software.it is combine the power of .NET Framework and the common language runtime with the productivity benefits that are the hallmark of Visual Basic.

Visual Basic was one of the first systems that made it practical to write programs for the Windows operating

system. This was possible and easy for programmer because VB included software tools to automatically create the detailed programming required by Windows its make programmer life very easy. These software tools not only create Windows programs, they also take full advantage of the graphical way that Windows works by letting programmers "draw" their systems with a mouse on the computer. So it's called "Visual" Basic.

Visual Basic .NET has many new and improved features that make it a powerful object-oriented programming language, including inheritance, interfaces, and overloading. Other new language features include free and structured exception handling. Visual Basic .NET also fully integrates the .NET Framework and the Common Language Runtime, which provide language interoperability, garbage collection, enhanced security, and improved versioning support.

Visual Basic .NET, the next generation of the Visual Basic language, is a fast and easy way to create .NET-

based applications, including XML Web services and Web applications.

Version history:

2002 (VB 7.0)
2003 (VB 7.1)
2005 (VB 8.0)
2008 (VB 9.0)
2010 (VB 10.0)
2012 (VB 11.0)
2015 (VB 14)

Sample program for Hello World display

Public Class HelloForm

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        MessageBox.Show("Hello World Good Morning...", "Message Box Title")
    End Sub

End Class

aspdotnethelpmaster.blogspot.in what is vb.net
aspdotnethelpmaster:what is vb.net

Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


Disadvantages of ASP.NET Technology

Disadvantages of ASP.Net

Limited control compare to HTML:

Server controls render themselves as HTML(Hypertext markup language), but the HTML output usually failed to comply with web standards, and server controls generated irregular and complex ID values that are hard to access using JavaScript.

Big data in the view state:

annoying site visitors with slower response times and required the bandwidth demands of the server.

Limited support for testing:

The tightly coupled architecture designed is unsuitable for unit testing. Integration testing can be a great challenge, too.

Difficult Page Life cycle:

  •  Lots of people will not be able to effectively use ASP.NET page life cycle because it is very difficult the control hierarchy at run time or finding a proper event handlers to execute.
  • The page life cycles of the asp.NET page are well documented but the many number of events make the developer extremely difficult to figure out how and where to implement code.

Difficulty with MVC:

It is difficult to understand code and do programming when you need some customization. If you have everyday changes in your database, you may find it irritating to keep building application again and again. It may also create problem in several other parts of application.

Difficulty with Session:

Low Performance for large volumes of data and  Overhead involved for serializing and de-serializing the Session data.

Difficulty with Updatepanel:

the biggest disadvantage is that it still sends all the viewstate back and forward so you won't waste a lot of bandwidth. Another one's that most of the page life cycle still gets rum.

Disadvantages of Asp.Net

Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


Advantages of asp.net and Asp.net vs Asp

Advantages of ASP.NET

Advantages of ASP.NET framework for Web development are as follows:

  • Web application exists in compiled form on the server so the execution speed is faster as compared to the interpreted scripts.
  • ASP.NET reduces the line of code needed to develop large applications.
  • The code-behind allows you easier to maintain the code when it comes to large websites.
  • The ASP code and HTML smoothly mix with each other to generate dynamic web pages.
  • It is an ideal server-side scripting technology that is why code runs on the windows server before displaying on the web browser.
  • Built-in Windows authentication and per-application configuration keep your applications secured.
  • Content and program logic are separated which reduces the inconveniences of program maintenance.
  • Dot NET framework is language independent, so choose any programming language that best suited to develop your application.
  • To develop program logic, a developer can choose to write their code in more than 25 .Net languages including VB.Net, C#, JScript.Net etc.
  • You have the freedom of choosing from multiple languages (C#, VB.NET, C++, etc.)
  • Being part of .Framework, it has access to all the features of .Net Framework.
  • ASP.NET makes development simpler and easier to maintain with an event-driven, server-side programming model.
  • ASP.NET makes for easy deployment. There is no need to register components because the configuration information is built-in.
  • SQL Server is also very fast, secure, and it can store extremely large amounts of data; actually, there’s no limit.
  • With ASP.NET you get the whole .NET Class Library and the thousands of third party components as well. There are definitely much more third party components out there for .NET than for PHP.
  • The Windows Web server precisely monitors the web pages, various components and application running over it.
  • It immediately gives an alert for any memory leaks, unbounded loops and other illegal behaviors. It instantly kills those behaviors and restarts automatically.
  • Introduction of view state helps in maintaining state of the controls automatically between the postbacks events.
  • ASP.NET offers built-in security features through windows authentication or other authentication methods.
  • ASP.Net features such as early binding, JIT compilation, caching services and native optimization supports to get high level of performance.
  • All the applications are minutely monitored and managed to help application continuously available to handle requests.
  • ASP.NET is a quick way of getting started with web development if you have worked with Visual Basic or other visual form development tools before.
  • Good Editor tool available in Visual studio.ASP.NET, with its advantages, is the next- generation platform of Microsoft's ASP. It is a widely used development framework for developing an enterprise level web application. Either for building a small website or a large corporate web application, ASP.NET is the best development application that today’s developers love to use.
  • ASP.NET MVC. It's a .NET implementation of the model-view-controller concept, which basically means you have separate layers for data handling, domain logic and presentation. It will result in much more web-style development, with cleaner separation of code and cleaner output. This will probably result in a much more manageable web site.
  • ASP.Net is the next generation of Microsoft's Active Server Page (ASP) technology platform.

Advantage of ASP.Net over ASP in the following ways:

  • Language Support – While ASP supported VBScript (a subset of Visual Basic) and Jscript (a subset of Java), ASP.Net supports standard programming languages including Visual Basic, C# and C++.
  • Compiled Code – ASP.Net provides greatly increased performance by running compiled versus interpreted code.
  • Event-Driven Programming Model – All ASP.Net objects on a Web page expose events that can be processed by ASP.Net code. Handling events such as Load, Click and Change via code reduces program complexity and increases organization.
  • User Authentication – ASP.Net supports forms-based user authentication, including cookie management and automatic redirection of unauthorized logins. ASP.Net allows for user accounts and roles thus providing a high degree of granularity for controlling access to objects and pages.
  • Third-Party Controls – The ASP.Net community has been growing rapidly for the last two years. 
  • There is a large base of high-quality third-party controls that can be obtained to significantly speed up development time and reduce cost.
  • Easier Configuration & Deployment – Configuration is done with plain text files which can be uploaded or changed while the application is running. There is no need to restart the web server to affect a change.
  • Object and Page Caching – ASP.Net objects and pages can be cached to dramatically increase performance. The caching system is very advanced, allowing you to specify what needs to be cached and what doesn’t and when to recall the cached information rather than perform a new request.
  • Higher Scalability – ASP.Net has some great scalability features built into it, including maintaining session state across servers, and multi-processor load balancing.
  • The Visual Studio .NET IDE. makes coding much, much easier. It can highlight syntax, let you know when the wrong stuff is commented, do command completion, and just plain help you organize better. Visual Studio has a really nice debugger.
  • The Compiled Code (vs. PHP Interpreted Code) – .NET compiles code, such as C#, into what its creators have termed MSIL (Microsoft Intermediate Language).
  • In ASP.NET it’s easy to use threads and build asynchronous handlers in your server-side web code.
  • ASP.NET developers are paid better.

Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


What is asp.net

♠ Posted by Unknown in


Definition : 

Asp.Net (Active Server Pages) is server-side Web application framework which is an open source. Asp.Net framework designs for web development its use to create dynamic WebPages. It was developed before 2000 by Microsoft which is allow programmers to build dynamic web application, web service any many more about web. Asp to meet market demand it is run on the server and generates dynamic web pages that can be viewed in different web browsers.

About Version :
Version 1.0 of .Net Framework was released in January 2002 and beginning of success of Microsoft's Active Server Pages (ASP) technology. Asp.Net is built on CLR (Common Language Runtime). CLR allow programmer to write Asp.Net code using any supported .Net languages.

Version 1.1 is release for focused on improving ASP.NET's support for mobile devices and it is loosely based on HTML. ASP.NET Web Pages and the Razor syntax provide a fast, approachable, and lightweight way to combine server code with HTML to create dynamic web content. Connect to databases, add video, link to social networking sites, and include many more features that help you create beautiful sites that conform to the latest web standards. With ASP.NET Web Forms, you can build dynamic websites using a familiar drag-and-drop, event-driven model and 100s of control to develop awesome web page and excellent UI with easy data access. 

About Frameworks:
All ASP.NET frameworks are based on the .NET Framework and share core functionality of .NET and of ASP.NET. In addition, All ASP.NET frameworks are dependent. Since the frameworks can exist in the same web application.  It is common to see individual components of applications written using different frameworks.

For example, Client only See portions of an app might be developed in MVC to optimize the markup, while the data related and admin portions are developed using Web pages to take advantage of data controls and simple and easy data access. Because of that made significant improvements in the latest releases of ASP.NET and Visual Studio to make it easy and simple to use these frameworks together.

Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


UserControl Tutorial : Create ,Register and use of usercontrol in asp.net with example and code

♠ Posted by Unknown in ,

Tutorial Of Asp.Net UserControl

Definition of UserControl in Asp.Net :

In Asp.Net Web server controls , you can create your own custom, reusable controls using following step. These controls are called user controls.

A user control is a kind of composite control that works much like an ASP.NET other server control . you can add existing Web server controls and markup to a user control, and define properties and methods for the control. You can then embed them in ASP.NET Web pages like same as other server control.

For create asp.net usercontrol using c# following step perform

Step 1: First of all add one folder in your website or project for contain all user control as follow screen.

Step 2:Right Click on folder in which you want to contain usercontrol as follow screen.

Step 3: Select web user control , give proper name and click to add button as follow screen

Step 4 : after add you can see your control in your project or website as follow screen:

Step 5: Now you need to add code in .ascx page as per your required control as follow screen:

Code For Simple Text box control make as userdefine control you set property once in user define control then you no need to write again only need to register control on your page and use it. Following code in .ascx page.

<asp:TextBox ID="TextBox1" runat="server" BackColor="WhiteSmoke" BorderColor="ActiveBorder"
    Font-Bold="true" Font-Size="X-Large" ForeColor="Aqua" Height="70px" TextMode="MultiLine" runat="server"
Now your control is ready to use.

Step 6: Add following code to register user control in your webpage in second line:

<%@ Register Src="~/Control/UserDefineTextBoxWebUserControl.ascx" TagName="TextBox" TagPrefix="My" %>

Step 6: Now code for use control in your page at content as follow:

<My:TextBox ID="mytextbox1" runat="server" />

See here no need to set any property and you get output as follow:

This way you can make any server control to your own control such as linkbutton, Dropdown, checkbox, radiobutton, etc.

Improve Your Answer as comment below.
If our post is useful please share and comment on our post for more post and detail Visit :


How to create database using

♠ Posted by uvesh in

Create Database by programmatically

 protected void CreatDbBtn_Click(object sender, EventArgs e)
        String str;
        SqlConnection myConn = new SqlConnection(@"Server=HOME\SQLEXPRESS;Integrated security=SSPI;database=master");
        str = "CREATE DATABASE MyDatabase ON PRIMARY " +
            "(NAME = MyDatabase_Data, " +
            "FILENAME = 'D:\\UveshMyDatabaseData.mdf', " +
            "SIZE = 2MB, MAXSIZE = 10MB, FILEGROWTH = 10%) " +
            "LOG ON (NAME = MyDatabase_Log, " +
            "FILENAME = 'D:\\MyDatabaseLog.ldf', " +
            "SIZE = 1MB, " +
            "MAXSIZE = 5MB, " +
            "FILEGROWTH = 10%)";

        SqlCommand myCommand = new SqlCommand(str, myConn);
            Response.Write("DataBase is Created Successfully");

            //MessageBox.Show("DataBase is Created Successfully", "MyProgram", MessageBoxButtons.OK, MessageBoxIcon.Information);
        catch (System.Exception ex)
            //MessageBox.Show(ex.ToString(), "MyProgram", MessageBoxButtons.OK, MessageBoxIcon.Information);
            if (myConn.State == ConnectionState.Open)


Improve Your Answer as comment below.

If our post is useful please share and comment on our post for more post and detail Visit :


Web Service Definition and when it is use and not to use

What is web service and its use.

Web services 
The Definition Web Service A web service is any part of software that makes available over the network and uses a XML (Full form of XML is Extensible Markup Language (XML) is a markup language in a format which is both human-readable and machine-readable.) format messaging system. XML is used to encode all communications to a web service. Any application which has permission to access service can use service from anywhere. It is platform independent. 

(sometimes called application services) are services (usually including some combination of programming and data, but possibly including human resources as well) that are made available from a business's Web server for Web users or other Web-connected programs. Providers of Web services are generally known as application service providers.

It is based information send-Receive systems that use the by Internet for application (software)-to-application (software) communication. This application can include objects, messages, or documents.

Use Of Web Service

It is system software. Specially design for support machine-to-machine interaction over a local network internet. The basic services supported platform is XML and HTTP or HTTPS. XML can be used between different platforms and programming languages and complex messages and functions. It is help to solve interchangeability by giving your applications a way to integrate their data. For Example your one website is online and you also want to make its android application. That time you need web service so you’re both application work synchronously. You require this because user sometime work on website and some time also use mobile application like android app then user want synchronized own data. For that developer use same service for both platform website application and android application so no need to work for both platforms. 

When Not Use Web Service

when your application no need to synchronize and when more application use only single service because of that more load on server.mostly when service use for operation on database that time overload problem occurs so when number of application use web service which is ping db its problematic to database overhead.

so for database you need to make multiple version of web service so its useful to maintain database overhead.

If our article useful or like to you please share our post.for more detail visit About Web service

Code For do connection with ms access data base and explain concept with example and connection string using oledb connection.

In This Article we explain about Data Base Connection with MS Access Data Base 2007

Use Of Data Base connection: 
Data base connection is use for retrieve, insert, update, delete data from database by any system or software.

Following step for establish connection with Ms Access Data Base 2007
Step 1- Put following code in web.config file of asp.Net website

    <add name="myconnectionstring" providerName="System.Data.OleDb" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\DB\Database1.accdb"/>

Step 2- Import Following two package in your code Behind (.aspx.cs) file where you want to do connection

using System.Data.OleDb;
using System.Configuration;

Step 3- We Do connection on load of page so put following code Page_load Event code Behind (.aspx.cs) file where you want to do connection.

OleDbConnection conn = new OleDbConnection(ConfigurationManager.ConnectionStrings["myconnectionstring"].ConnectionString);
            msglitrl.Visible = true;
            msglitrl.Text = "Connection Done Successfully";

            msglitrl.Visible = true;
            msglitrl.Text = "Connection Fail.";


In Web.Config file

    <add name="myconnectionstring" providerName="System.Data.OleDb" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\DB\Database1.accdb"/>

In code behind file

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using System.Configuration;
public partial class Default2 : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        OleDbConnection conn = new OleDbConnection(ConfigurationManager.ConnectionStrings["myconnectionstring"].ConnectionString);
            msglitrl.Visible = true;
            msglitrl.Text = "Connection Done Successfully";

            msglitrl.Visible = true;
            msglitrl.Text = "Connection Fail.";

In ASP.net open window form as popup box with example

♠ Posted by Unknown

How To Open second window form as popup on first window form in Asp.Net

You can create popup window of window form in asp.net or vb.net windows application it is use full to take input from user or give hint information etc. You need use following step for open window form as popup window  :

Step 1: Create one form in window application name mainform.

Step 2 : Create second form in window application give name popupform.

Step 3 : Create any one event, on which particular event you want to open popup window.

Example of event: button Onclick, Mouse Click,etc

Step 4: in particular event write following code:

In code  behind of mainform :


using WindowsFormsApplication1;

in particular event :

new popupform().showDialog();

If You like our blog please share it and comment on it. Visit again.