In this article i will show you how a button control behaves as fileupload control. Example of button control working as fileupload control. In this article i taken a button and fileupload control but visibility of fileupload is hidden. Get the fileupload control by their id property in JQuery and put the accessed file path into label control. Let see the example
In this article i will show you how to create database in windows form c# using code first approach. Example of code first approach to create database. Entity Framework is an open source object-relational (ORM) framework for ADO.NET. It allows user to create a model by writing code in EF designer. The releases are improving from entity framework 3.5 and onwards. Entity Framework 5 is the stable version for visual studio 2010 and 2012 and updated soon with the latest features.
The main advantages of using Entity Framework 5 are:
Speed - You do not have to worry about creating a DB you just start coding. Good for developers coming from a programming background without much DBA experience.
Simple - you do not have a edmx model to update or maintain.
Entity framework 5 released with some advanced features like enum support, table-valued functions and performance improvements. In this article we will create a database using entity framework 5 code first approach. Steps of Creating Database through Entity Framework
Create a Project ClassLibrary in Visual Studio.
Install EntityFramework from Package Manager Console (required
internet connection) using
PM> install-package entityframework
Remove InBuilt Class i.e "Class1".
Add a new class “Student”.
Add another class DataContext (Name may be change)
inherited by DbContext
Introduction:
Today i will give a web based polling system, through this you can put your vote online. Free download polling project in asp.net with report. Online polling system is a web based solution.It removes traditional polling system problems such as :
Take more time and human resources
Does not give instant poll result
False voter
Inefficient
Those problem are major problem in traditional system . If you want to remove such types of problem in traditional system then you will use web-based solution.
Features of Online voting system:
Detect false voter
Instant poll result
Easy method for vote count
keep global information
System Requirements :
Visual studio 2010
SqlServer 2008
Internet connection
Mail_id
How to run this project :
Open website folder in Visual studio 2010
Run your project by selecting green triangle button
Open voter register page
Fill some required filled and click on submit button
Login in Admin panel by username and password
Approve Voter by changing flag bit (0 to 1)
After approval login in your mail id and copy your secure code
Login in voter login panel and fill some required filled(voter-id , securecode , email )
After login you can vote now of your desired candidate .
Introduction
In this article i will show you how to validate select box using JQuery. Example of select box validation using JQuery. First to get the id of the select box then get the value of it.
In this article i will show you, how to check whether textbox is empty or not. If textbox is empty then get alert message on browser screen. I display this message in different style like if TextBox is display this message in different style like if TextBox is empty then get border color of TextBox is red or get alert message on screen. Both things we will do in the example on button click or focusout.
Introduction
In this article i will show you, how to get the value of radio button and checkbox using JQuery. First of all in this article i will get the control after then check the selected control. If selected then retrieve the value of it. Let take a simple example
Description
In previous article i explained TextBox example in JQuery, Accept only numbers JQuery Validation. So lots of example cover in JQuery.
In this article i will show you how to add items in DropdownList with value. In general way if we add items in the list then you can add only add Text in the list. Like
Dropdownlist1.Items.add(string Text);
But you want to add text with value from Textbox in Dropdownlist then check the below example: