Preview: C#.NET ASP.NET Articles VB.NET CSHARP code Examples samples tutorials
C#.NET ASP.NET Articles CSHARP VBNET Tutorials Code Examples SamplesASP.NET,C#.NET,VB.NET,AJAX,jQuery SQL GridView Articles And Code ExamplesUpdated: 2012-02-10T17:22:44.543+05:30
Check UserName Email Availability In Asp.Net Using Ajax 2012-02-09T19:23:53.460+05:30 Check Username or Email availability in asp.net using Ajax C# and VB.Net In this post i'm explaining how to check username or email availability using ajax in asp.net user registration page. You may also like to read one of my previous posts where i described how to Create User Registration Form In AspNet. For this example create a table Users in sql server database with ID,Username and
SqlCommand ExecuteXmlReader C# VB.NET Asp.Net 2012-02-10T16:01:39.173+05:30 SqlCommand ExecuteXmlReader Method in Asp.Net Using C# And VB.Net In this post i'm explaining how to use ExecuteXmlReader method of SqlCommand in asp.net. You may also read how to use ExecuteNonQuery, ExecuteReader and ExecuteScalar Methods of SqlCommand in Asp.Net. SqlCommand EcecuteXmlReader MethodExecuteXmlReader method executes the command and builds XmlReader. For ExecuteXmlReader method
ExecuteScalar Example In Asp.Net C# VB.NET 2012-02-10T16:00:55.630+05:30 SqlCommand ExecuteScalar Method Example in Asp.Net Using C# and VB.Net In this example i'mexplaining when and how to use SqlCommand ExecuteScalar method in asp.net. You may also read how to use other SqlCommand Methods like ExecuteNonQuery , ExecuteReader and ExecuteXmlReader in Asp.Net. SqlCommand ExecuteScalar MethodExecuteScalar Method Executes the query and returns the first column of
ExecuteReader Example Asp.Net C# VB.NET 2012-02-10T15:59:23.098+05:30 SqlCommand ExecuteReader Method Example in Asp.Net Using C# And Vb.Net In this example i'm explaining where and how to use ExecuteReader Method of SqlCommand in asp.net using C# and VB.NET. You may also read ExecuteNonQuery , ExecuteScalar , ExecuteXmlReader methods of SqlCommand in asp.net. ExecuteReader MethodExecuteReader Execute the command and builds or populate the SqlDataReader object.
SqlCommand ExecuteNonQuery Example C# VB.NET Asp.Net 2012-02-10T15:58:33.491+05:30 SqlCommand ExecuteNonQuery Method Example in Asp.Net. In this post i'm explaining how and when to use ExecuteNonQuery method of SqlCommand in asp.net using C# and VB.NET. You can also read how to use ExecuteReader , ExecuteScalar , ExecuteXmlReader methods of SqlCommand in Asp.Net ExecuteNonQuery Method ExecuteNonQuery() Executes a Transact-SQL statement and returns the number of rows affected
Visual Studio Keyboard Shortcuts 2012-02-06T21:04:50.387+05:30 Visual studio keyboard shortcuts. Below is the list of Commonly used visual studio keyboard shortcuts. Navigation Ctrl + ] Moves the cursor to the matching Closing or Opening brace Ctrl + hyphen Moves cursor to its previous position Shift + F7 Switch between the Design View and Source View Ctrl + Tab Displays the all open files in VS Ctrl + Shift + F FindĀ F3
Asp.Net Ajax FilteredTextBox Extender Example 2012-02-03T17:55:31.014+05:30 FilteredTextbox Extender Example in AJax Asp.Net with FilterType and FilterMode. In this example i'm explaining how to use Asp.Net Ajax FilteredTextbox Exender to filter textbox entries or to create numeric only or letters only textbox. By using FilteredTextboxExtender in asp.net ajax we can restrict user from entering certain characters or special charactres in text only textboxes and restrict
Asp.Net Maintain ScrollPosition OnPostBack In Chrome 2012-02-01T16:42:39.908+05:30 Maintane scroll position on postback in Google chrome browser using asp.net. In one of my previous posts i describe how to Maintain Scroll Position On Or After Postback in Asp.Net. But this method doesn't work with Google Chrome browser. To maintain scroll position in google chrome we need to go with any of two methods mentioned below. 1. ASP.NET METHOD Write below mentioned line of code in
Browser Detection In Asp.Net 2012-01-31T19:39:24.265+05:30 Browser Detection in asp.net In this post i'm explaining how to detect browser type, browser name, version, cookies support and javascript version using c# or javascript in asp.net. To detect browser using C# is quite simple in asp.net, below mention code can detect all above mentioned features of any browser. protected void Page_Load(object sender, EventArgs e) {
Export Crystal Reports To PDF Word Excel In Asp.Net 2012-01-31T18:22:08.701+05:30 Export or save crystal reports to pdf,ms word,excel programmatically in asp.net In this post i'm explaining how to export or save crystal reports to pdf,word or excel programmatically in button click event. For this Example i have used Northwind Database and Employees table. Read Crystal reports in ASP.NET to know how to create crystal reports in asp.net. After you have finished creating
Asp.Net AdRotator With Timer Example To Rotate Ads Without Refresh 2012-02-03T14:30:05.199+05:30 AdRotator Control With timer Example to rotate advertisements without refreshing the page in asp.net and Ajax. AdRotator control in asp.net is used to display advertisements on asp.net website. Ads are rotated when user reload or refresh the page, but using ajax and timer we can rotate ads without refreshing the page. Create a new website in visual studio and add a new folder named Ads and
Download File From Server In Asp.Net 2012-01-31T18:20:37.595+05:30 Download files from server or hyperlink in asp.net In this post i'm explaining how to download a file from server in asp.net and display Save As dialog box when a link is clicked on the site. For this example i have created a folder named Files on the server and stored Some sample files to download. First we need to write code to display names of all the file saved in Files folder as
AspNet CompareValidator With Date Example 2012-01-31T18:19:51.680+05:30 Asp.Net CompareValidator Example to compare dates or textbox values In this post i'm going to explain how to use CompareValidator to compare different values or dates. For example We can use comparevalidator to compare values entered in password and confirm password textboxes which needs to be same, and using comparevalidator we don't need to wtite any code to check whether password in both
Create User Registration Form In AspNet 2012-01-31T18:19:19.421+05:30 Creating user registration form example in asp.net In this post i am explaining how to create user registration or signup form in asp.net with sql server database using C# and VB.NET. For this first of all we need to create a table in sql server database to store user registration data. I have created a table named Users for this example with columns shown in image below. Place
Visual Studio Remove Unused References With Organize Usings 2012-01-31T18:18:14.621+05:30 Remove unused references in visual studio by organize usings command When we create a new website or project in visual studio, several namespace references are added in code behind by default. It's always advisable to remove all unused usings and references from code behind for better performance. We can follow steps mentioned below to remove all unused usings and references. FOR C#
Get RowIndex In GridView RowCommand Event Using DataKey CommandArgument 2012-01-31T18:17:38.808+05:30 Get RowIndex In GridView RowCommand Event Using DataKey or CommandArgument in asp.net In this post i am showing how to get RowIndex of gridview row in RowCommand Event through DataKey property or commandArgument. RowCommand event is raised when a button inside gridview is clicked. Method 1. To get gridview rowindex through DataKey property we can use code as mentioned below. For this we need
Save Store Files In SqlServer Database AspNet 2012-01-31T18:16:49.718+05:30 Upload and Save Or Store Files In Ms Sql Server Database using fileupload control in Asp.Net. In this post i'm explaining how to save or store and retrieve pdf,word,excel,jpeg,gif,png files in MS sqlserver database using fileupload in asp.net. I'll also explain how to retrieve files from sql database for users to download. For this example i have created a sample database with table name
Nested GridView In Asp.Net Or GridView Inside GridView(Master Detail) 2012-01-31T18:15:37.225+05:30 Gridview inside gridview or nested gridview in Master Detail or Parent Child scenario in asp.net In this post i am explaining how to create gridview inside gridview or nested gridview to show master detail or Parent Child data in asp.net. For this i have used northwind database and customers and Orders table to display data. Drag SqlDataSource1 on page and configure it to fetch data Customers
Add License Agreement In Visual Studio Setup Project 2012-01-31T18:03:59.767+05:30 Add License Agreement In Setup Project using Visual Studio In this post i am explaining steps to add license agreement dialog in visual studio setup project. Read Create Setup And Deployment Project in Visual Studio 2008/2010 to know how to create setup for your winforms or asp.net applications. step 1. First of all we need to create a licence agreement file, for this open wordpad and
Ajax Asp.Net PasswordStrength Example 2012-01-31T18:02:16.630+05:30 PasswordStrength Example using Ajax In Asp.Net. In this example i'm explaining how to use PasswordStrength Control of AjaxControlToolkit for asp.net 3.5. For this Add latest version of AjaxControlToolkit.dll in BIN folder of application and place one textbox and passwordstrength control on the aspx page. Add below mentioned CSS style in stylesheet.css for strength bar to show up. CSS
Invalid Formatetc Structure Ajax Asp.Net Error 2012-01-31T18:00:47.752+05:30 Invalid FORMATETC structure Ajax Asp.Net Error If you are getting "The operation could not be completed. Invalid Formatetc Structure" error while using Asp.Net Ajax controls in Visual studio 2008 then this error occurs because of version conflict of System.web.extensions assembly installed in GAC. To fix this problem try any of the following solutions. 1st Method. Visual studio 2008 uses .NET
Create User Programmatically Using Membership In Asp.Net 2012-01-31T18:00:02.448+05:30 Create User Programmatically using Membership In Asp.Net To create users or new accounts programmatically using membership provider in asp.net we need to use CreateUser Method of membership class. For this i have placed textbox controls and requiredFieldValidators to validate respective textboxes. Read CreateUserWizard Email Verification Or Confirmation In Asp.NET to know how to create user
CreateUserWizard Email Verification Or Confirmation In Asp.NET 2012-01-31T17:58:49.642+05:30 CreateUserWizard Email Verification Or Confirmation In Asp.NET. In this example i am explaining how to create new user using createnewuserwizard with membership provider and sending verification or confirmation link in Email using C# or VB in ASP.NET. Read Login Page Using Login Control to know how to create login page in asp.net and setup membership provider to use with login control. For
Login Page Example Using Login Control In Asp.Net 2012-01-31T17:57:14.634+05:30 Creating Login Page In Asp.Net using Login Control And Membership Provider DataBase ASPNETDB.MDF. In this post i'm explaining how to create login page in asp.net using Login COntrol and membership provider database ASPNETDB.MDF. Create a new website and add new web form in the solution, name it Login.aspx, Place a Login control on this Login.aspx page from toolbox in visual studio.
Set Session TimeOut In Asp.Net Using WebConfig IIS 2012-01-31T17:56:23.698+05:30 Set Or Manage Session TimeOut In Asp.Net Using Web.Config and IIS In this post i'm explaining how to set or increase session timeout value in web.config or IIS in Asp.Net. Read Detecting Session Timeout and Redirect to Login Page in ASP.NET to know how to detect Session TimeOut. 1. Set session timeout in IIS. Open IIS manager by typing inetmgr in Start > run in windows. Right click on |
|||||||||||||||||||