CodeAsp.Net, is a rich and trusted ASP.NET Community that offers valuable and powerful ASP.NET articles, blogs, forums, events, and know-how to help you increase and develop your ASP.NET software development skills - allowing you to work better and smarter. The CodeAsp.Net community is made up of a myriad of software professionals, ranging from seasoned ASP.NET developers to Architects to beginner programmers.

Featured Articles

More Featured Articles

Recent Activity RSS Feed

What's New

  • In my previous example I have demonstrated how to create a simple form that would allow users to insert data to the database using L2S. In this example I’m going to demonstrate how to fetch and filter data from database and fill the fields in the form using L2S.  This example is basically a continuation of my previous example here . So I would suggest you to take a look at my previous example first before you proceed reading this example. Continue...
  • Few months ago, I’ve created a simple demo about “Creating a Simple Registration Form using the ADO.NET way ”. In this article, I'm going to demonstrate how to create a simple form that would allows users to insert data to the database using L2S.   As an overview, LINQ to SQL is a technology that allow you to query sql server. LINQ to SQL is an O/RM (object relational mapping) implementation that ships in the .NET Framework "Orcas" release, and which allows you to model a relatio...
  • I often see questions at forums(http://forums.asp.net ) asking stuffs like: Where to begin? Where Do I start? How to Get Started? So I deciced to write this "boring " post to express my opinion and hopefully this can help beginners find their way to get started with ASP.NET. Based on my experience learning ASP.NET is just like learning how to play a guitar.. (oh really? why could I say that? ).(1) First you must have this what we called "interest " because if you d...
  • Pluralsight is an online .NET Training library which provides online training materials for .NET developers. Example trainings available on demand: ·  .NET 3.5 ·  Agile Team Practices ·  ASP.NET 3.5 ·  ASP.NET AJAX ·  ASP.NET MVC ·  BizTalk 2006 ·  BizTalk Server 2006 R2    ·  BizTalk Server 2009 ·  iPhone ASP.NET ·  LINQ ·  Managed Services Engine ·  Silverlight 3 ·  SharePoint Services ·  SQL Server 2008    ·  VSTS ·  WCF ·  Windows Server AppFabric, formerly "Dubli...
  • • Date and Time: Four new date and time data types have been added, making working with time much easier than it ever has in the past. They include: DATE, TIME, DATETIME2, and DATETIMEOFFSET. • Spatial: Two new spatial data types have been added--GEOMETRY and GEOGRAPHY-- which you can use to natively store  and manipulate location-based information, such as Global Positioning System (GPS) data. • HIERARCHYID: The HIERARCHYID data type is used to enable database applications to m...
  • In this blog I will explain how to open a JavaScript alert from Code-behind file.I want to show ‘Welcome’ alert on page load. Below is my code:-protected void Page_Load(object sender, EventArgs e) { Response.Write("<script>alert('Welcome')</script>"); }   Happy Coding:)
  • In this blog I will explain how to create DataTable. here is my code:- creating Table first- private DataTable myTestTable() { DataTable myTable = new DataTable(); DataColumn myColumn; myColumn = new DataColumn(); myColumn.DataType = Type.GetType("System.String"); myColumn.ColumnName = "Name"; myTable.Columns.Add(myColumn); myColumn = new DataColumn(); myColumn.DataType = Type.GetType("System.String"); myColumn.ColumnName = "FatherName"; myTable.Columns.Add(myColumn); ...
  • Many developers from the forums (forums.asp.net ) are asking if how to implement fix header in GridView while scrolling. We all know that there are lots of examples out there that provide a solution that are available, however some of the solutions provided are not cross browser compatible. While searching for a cross browser solution, I found this article at devarchive.net and it seems very interesting to me. So I play around with the extender provided by devarchive team and thought wha...
  • Wheew..looks like i've been so busy lately.. ;)... I never thought I’d achieve this, but I’ve somehow managed to get to the top 3 rank in ASP.NET Community Hall of Fame ..This has been a very rewarding experience [~at least for me :) ]!Honestly, I really can't believe that I have helped hundreds, not only hundreds but I think thousands of geeks already within 2 years of contrinuting through forums at the official Microsoft ASP.NET site.
  • Today Morning one of my Colleague gave me this puzzle.... ALBERT EINSTEIN'S RIDDLEARE YOU IN THE TOP 2% OF INTELLIGENT PEOPLE IN THE WORLD?SOLVE THE RIDDLE AND FIND OUT.There are no tricks, just pure logic, so good luck and don't give up.1. In a street there are five houses, painted five different colors.2. In each house lives a person of different nationality3. These five homeowners each drink a different kind of beverage, smoke different brand of cigar and keep a different pet.THE QUESTION: WH...
  • If you need distinct names: using System; using System.Linq; using System.Reflection; public class Example { public static void Main() { Type type = typeof(string); MethodInfo[] methods = type.GetMethods(); foreach (var name in (from m in methods select m.Name).Distinct()) { Console.WriteLine(name); } Console.ReadLine(); } } Output: JoinEqualsop_Equalityop_Inequalityget_CharsCopyToToCharArrayIsNullOrEmptyGetHashCodeget_LengthSplitSubstringTrimTrimStartTrimEndIsNormalizedNormalizeCompareCompareTo ...
  • $(div#divCities).find(div:last);
  • Here is the sample: using System; using System.Web.UI; using System.Text; /// <summary> /// /// </summary> public partial class _Default : Page { #region Private Properties bool _isConfirmNeeded = true; string _confirmMessage = string.Empty; #endregion #region Public Properties /// <summary> /// Gets or sets a value indicating whether this instance is confirm needed. /// </summary> /// <value> /// <c>true</c> if this instance is confirm needed; otherwise ...
  • Write e.preventDefault(); in clickevent handler $('#anchorid').click(function(e) { //your stuff e.preventDefault(); });
  • I am using an asp.net Wizard Control in my Content Page of a Master page. I am facing a strange issue. When i hit the browser 'Back' button from any of the Wizard Steps, it goes to the previous step. If I continue clicking browser 'Back' button, at one time the browser 'Back' button becomes 'Grey' i.e. disabled but I still have not reached the 1st Wizard Step. It seems the Wizard or the Browser is not able to maintain the History. For example: 1. If I hit the browser 'Back' button at Wizard Step ...
  • Confirmed! Thanks!
  • function roundNumber(inputNumber, numberOfDigits) { var multiple = Math.pow(10, numberOfDigits); var output = Math.round(inputNumber * multiple) / multiple; return output; }
  • Please look over the last example at here: http://www.ericmmartin.com/projects/simplemodal-demos/
  • Download ftp://support.red-gate.com/patches/ants_profiler/RedGate.Profiler.Five.AddIn.dll and put it into your's Ants installed directory and thats it restart visual studio.
  • In ASPX: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> </head> <body> <form id="form1" runat="server"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"> <Columns> <asp:TemplateField> <HeaderTemplate> <asp:CheckBox ID="CheckSelectAll" runat="server" ...
  • Please put some more light on your question .
  • Hi Vinz, We have fixed it and will update it very soon . Thanks for your valuable feedback. Raghav
  • I am giving you samples to select multiple items and display them in Label in comma separated form , you can put the same logic to insert that string in DB Sample1: In ASPX: <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Untitled Page</title> </head> <body> <form id="Form1" method="post" runat="server"> <asp:ListBox runat="server" ID="ListBox1" SelectionMode="Multiple"> <asp:ListItem Text="Text1" Value="1"> ...
  • Great! Thanks for looking into this matter!
  • See Connected mode with reference to ADO.NET are the DataReader Classes ... As the connection remains open all the while transactions are done....advantage of this is you get the most recent data and its more accurate....but it is slow... Disconnected is DataSet its like you fill it with and forget it.... you wont get the most recent data but it will be fast and you can handle data better....it willl be fast ...but at the cost of accuracy..and most recent data... http://www.startvbdotnet.com/ado ...
  • what I believe is you are trying to open some file...which is still condumed soem where... First of all I would recommend you is to do an IIS reset... Second thing is if your code opens any instance of file for reading or wrting do close teh stream and the file.. in the finally block. and now go ahead... I am sure you wont get the error again.
  • Hi, Object A pattern (exemplar) of a class. The class Dog defines all possible dogs by listing the characteristics and behaviors they can have; the object Lassie is one particular dog, with particular versions of the characteristics. A Dog has fur; Lassie has brown-and-white fur. Instance One can have an instance of a class; the instance is the actual object created at runtime. In programmer jargon, the Lassie object is an instance of the Dog class. The set of values of the attributes of a parti ...
  • i hav a code i.e Select-Move Rows From HTML Tables Using JavaScripti want to place grids instead of html tablesn i want that delectable row transfer from one grid to another in javascript.........bt in code there are tables not the grids can anyone chnge this tables into grids?The code is<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran ...
  • i hav a code i.e Select-Move Rows From HTML Tables Using JavaScripti want to place grids instead of html tablesn i want that delectable row transfer from one grid to another in javascript.........bt in code there are tables not the grids can anyone chnge this tables into grids?The code is<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran ...
  • NiravGandhi said: How Can Start to learn Linq View? For a breif overview of LINQ then I'd suggest you to refer this article: http://msdn.microsoft.com/en-us/library/bb308959.aspx . And to get started on LINQ then you can go over here:http://www.asp.net/learn/linq-videos/ NiravGandhi said: What is JQuery? taken from the JQuery site : "jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development ...
  • Hi Friends, Many times we came cross the requirement when we need to access the dropdownlist's selectedindexchanged event inside the gridview, like in a shopping cart changing the item's quantity or binding the other dropdown based on the first dropdown.
  • This is the approach that I have adopted to develop Expandable / Collapsible Panel Control through JavaScript. Please report bugs, errors and suggestions to improve this control.
  • This is my approach to develop custom JavaScript ListBox control. Although it is only a subset of existing HTML ListBox element, it is more user friendly than the existing one. It can be further customized for different requirements. Please let me know about bugs and/or errors & give suggestions to improve this ListBox control.
  • I have tried my best to make this user control code error free. I will most welcome suggestions for further improvement in this user control. I have tested this user control on various browsers and it works fine.
  • So, this is my approach to implement an ASP.NET slide show using the DataList. I have tried my best to keep it bug free. I will most welcome suggestions and criticism for further improvements of this user control. I have tested this user control on various browsers and it works fine.
  • As we all knows that Repeater and DataList does not have auto paging support technique like Gridview or Datagrid, but we can achieve this through PagedDataSource. By using PagedDataSource we can implement paging in Repeater or DataList. Now in our mind there is question arise what is PagedDataSource. PagedDataSource is a class which encapsulates
  • So this is my approach. I was working for a long time to create C# like event handlers for JavaScript classes and finally, I’ve done it. Please let me know of any bugs and suggestions to improve this context menu control.
  • So this is my solution. If you have some other ideas about this functionality, please share them with me.
  • I have tried my best to make this code error free. Suggestions and criticism for further improvements of this code are most welcome.
  • So this is the approach that I've adopted to solve the Hover Delay problem. Although originally I developed Hover Delay to deactivate the click event for 1 second on a GridView row, later I also used Hover Delay to deactivate Drag n Drop of GridView rows. Kindly let me know if any one has some other better or different solution.
  • In this article I will explain how to import data from EXCEL to SQL in ASP.NET . In many situations we have data in the form of excel sheet but we have the requirement to have that data in SQL SERVER DB. I have explained importing data both from Excel 97-2003 as well as Excel 2007 format.
  • The source code shows how to use Regular Expressions in C#. The code Functions written for Validation Alphabet, AlphaNumeric, Integer, Postive Integer, Floating point numbers. You just cut copy these functions and use in any program.
  • That’s all about this technique. Just download the sample application and happy CSS! I have tested this application on various browsers and it worked fine.
  • This script is cross-browser compatible and fast as it iterates elements of a specific tag inside a target element [GridView] rather than iterating in a whole form. It searches the elements of a specific type in a particular column of the target element [GridView].
  • This Article is used to insert a numeric value on the sever control(text box) This is a java script code for the the client side validation. On Page Load Event You can change the events in txtNoOfQuestion.Attributes.Add("onkeypress", "return numericOnly(this);"); like onfocus events like other according to needs.
  • I have toggled visibility of all TD elements of a GridView column in order to create an illusion of smooth dynamic effect with the help of setTimeout method through recursion. Different browsers have different effects of Expanding / Collapsing GridView Columns. In Internet Explorer 7/8, Safari, Google Chrome and Opera, it seems that columns are Exp
  • In this article, I've used the setTimeout method in order to achieve a smooth expand/collapse functionality.
  • Introduction I am going to present here a functionality that selects / deselects all checkboxes of a particular column inside a GridView control, provided the header checkbox of that column is checked or unchecked using JavaScript. This functionality also has a feature that when all checkboxes of a particular column inside the GridView are check
  • This article describes how to toggle the states of all CheckBoxes inside a particular DataGridView column.
  • This article describes how to apply client-side mouse over & mouse out effects on the GridView’s rows.
  • Attention Web Developers! An outstanding opportunity to join an exciting client and be part of a team of world class programmers. Our client is a market leader in their line of business, with steady growth rate even in turbulent economic times. Currently they are looking to add two web developers on a contract-to-hire basis with the following skills: Minimum 5 - 7 yrs experience in Web development, Web programming using C#, ASP.Net and with SQL Server as backend database Ability to work in a Agi ...
  • Axero Solutions is looking for a skilled Web Designer that will act as a primary source for front-end page construction for multiple web properties and projects. The candidate will be responsible for creating front-end graphic user interfaces utilizing CSS/DIV (table-less) designs for new and existing sites. The candidate should possess 2-5 years of creating websites using best practices with the following. • Ability to communicate GUI concerns to both creative, and back-end developers. • Visual ...
  • Software Engineer – e-Commerce – San Fernando Valley Area This is a growth position for a team of software developers currently rewriting the company's entire on-line transaction system software from the ground up. The software engineer will report to the IT Director. Supports, maintains and enhances software applications using C#, ASP.Net, VB.Net, SQL Server and Windows 2000 Servers. Requirements: -BSCS and at least 3 years of full life cycle software development experience -Deep understanding ...
  • We are seeking a UI person to help out with creating wireframes, coding table-less HTML / CSS, coding hardcore jQuery, and other UI related tasks. You will be working with a very strong, dynamic team of developers on taking CodeAsp.Net and our other clients websites to the next level. This is a full time position.
  • The ideal candidate would possess a thorough understanding of the .Net Framework and related technologies. SolutionStream develops Windows clients, ASP.net web pages, Mobile PC applications, remoting components and web services, using Microsoft C# within our custom application framework. The primary databases are Sybase and Microsoft SQL servers. We offer a stimulating environment for senior software developers who can analyze, develop, deliver and support high quality business software. The ide ...
  • The ideal candidate would possess a thorough understanding of the .Net Framework and related technologies. SolutionStream develops Windows clients, ASP.net web pages, Mobile PC applications, remoting components and web services, using Microsoft C# within our custom application framework. The primary databases are Sybase and Microsoft SQL servers. We offer a stimulating environment for senior software developers who can analyze, develop, deliver and support high quality business software. The ide ...
  • Business managerBusiness managerBusiness managerBusiness managerBusiness managerBusiness manager
  • Axero Soluitions, LLC. is a custom software development and eBusiness consulting company located in Ontario, CA. We are experts in our field, specializing in custom .NET software solutions and ASP.NET web applications. CSS / XHTML / ASP.NET Interns Ideal candidates will be familiar with: - restructuring and optimizing XHTML / CSS - working within an ASP.NET development environment - web design, web development, Internet marketing, SEO Strong understanding in XHTML and CSS is required! An underst ...
  • Axero Solutions, LLC. (http://www.axerosolutions.com) is a growing US-based software development and eBusiness consulting firm specializing in B2B custom social networking software development. Axero brings its clients over 30 years of professional experience in custom software development, stellar web design and branding, and aggressive online marketing. B2B Software Sales Representative We are seeking sales representatives to sell our social networking software platform and custom software dev ...
  • Axero Soluitions, LLC. is a custom software development and eBusiness consulting company located in Claremont, CA. We are experts in our field, specializing in custom .NET software solutions and ASP.NET web applications. Software Marketing & Advertising Writer The ideal candidate will be familiar with writing content for the sales, marketing, and advertising of software development services and software products. This includes fresh website content, email marketing campaigns, thought provoking h ...
  • CODE SNIPPIT - C# credit card validation class Here a quick hitter for you - this little piece of code allows you to validate a credit card (in C#) before submitting for processing. This should work with Visa, Mastercard, Discover, and American Express. I'm not really sure where this came from...or if I even wrote this. I can't remember. But I hope it helps you in your everyday programming. using System; namespace CreditCards { /// <summary> /// Summary description for CreditCardValidator. ...
  • CODE SNIPPIT - C# Parse Meta Tags You may come across an instance in your C# and ASP.NET programming where you need to download an external webpage and parse the meta tags... specifically, the "Title," "Meta Description," and "Meta Keywords."The method below will show you how to: * download an external webpage * parse the meta title * parse the meta description * parse the meta keywordsThe parsing is done using regular expressions.NOTE: This may not be the best way of doing this, but it is a sol ...
  • CODE SNIPPIT - C# RSS FEED GENERATOR using System; using System.Xml; namespace Tim.Example.Classes { public class RSSFeedGenerator { XmlTextWriter writer; #region Private Members private string _title; private string _link; private string _description; private string _language = "en-gb"; private string _copyright = "Copyright " + DateTime.Now.Year.ToString(); private string _managingEditor; private string _webMaster; private DateTime _pubDate; private DateTime _lastBuildDate; private string _cat ...

Quick Vote

Have you checked out the new features in ASP.NET 4.0?

   

Top Members (last 30 days)

Top Contributors

  1.   raghav_khunger
    Professional6570 points Professional
  2.   Vinz
    Contributor3942 points Contributor
  3.   vivek_iit
    Contributor3305 points Contributor
  4.   Vijjendra
    Contributor2313 points Contributor
  5.   teisenhauer
    Contributor2149 points Contributor
  6.   vinay_jss
    Starter1936 points Starter
  7.   Shaitender
    Starter1110 points Starter
  8.   neel
    Starter1094 points Starter
  9.   rtpHarry
    Starter889 points Starter
  10.   mohit
    Starter776 points Starter

More People