Skip to main content

Posts

Showing posts from February, 2012

Single and Multiple file upload in asp.net

Code sample for s ingle and multiple file upload  in asp .net with c# I'm going to share the code sample for single and multiple files upload in asp.net  and c#       Table of Contents       1. Single file upload 2. Multiple file upload 1st step - code sample for  single file and multiple file upload .aspx page. 2nd step - code sample for  single file upload .aspx.cs page. 3rd step - code sample for multiple file upload .aspx.cs page. In the 1st step i'm going to share the code for .aspx and display view to select to upload to single and multiple files. < fieldset >     < legend > Click to Upload Videos Files </ legend >         < asp : UpdatePanel ID ="UpdatePanel2" runat ="server">             < Triggers >                 < asp : PostBackTrigger ControlID ="btnUploadVideofiles" />             </ Triggers >             < ContentTemplate >       

What's New In MVC 4? - Key Features of MVC 4

The MVC is a framework, standard pattern for developing Web applications and MVC framework handled by three objects Model, View and Controller. Previously, MVC 3 contains only three templates i.e. 1.       Empty Template 2.       Intranet Application Template 3.       Intranet Application Template Now, MVC 4 contains as following – 1.       MVC 4 introduced a popular new feature that is called Web API framework and its work over the HTTP services. 2.       MVC 4 added and improves to default project templates. 3.       MVC 4 introduced to empty project template. 4.       MVC 4 introduced to new mobile project template. 5.       MVC 4 is going to support and adding controller to other project folders. 6.       MVC 4 is going to support the Asynchronous Controllers. 7.       MVC 4 introduced to bundling and Magnification concepts. 8.       MVC 4 introduced to OAuth and OpenID login with the help of DotNetOpenAuth library. 9.       MVC 4 going to suppo

Delete text boxs dynamically on click in ASP.net

In this post, i'm going to share to code snippet for delete textbox dynamically on click in asp.net using C#.     This example is simple and easily understandable code using asp.net with c# public void DeleteTextBox() {     string strCtrlName;     TextBox txtCtrl;     for (int i = 0; i < 12; i++)     {         strCtrlName= "Textbox" + i;         txtCtrl = (TextBox)FindControl(strCtrlName);         txtCtrl.Text = "";     } }

DropDownList in ASP.NET using C#

Hello everyone, In this post, i'm going to share to code-sample for bind country list in dropdownlist in asp.net using C#.   This example is simple and easily understandable  DropDownList code-sample using asp.net with c#   Table of Contents 1. In the 1st steps, code-sample for aspx page 2. In the 2nd steps, code-sample for C# (.cs page) In the 1st step , we write the code for view in asp.net page i.e. .aspx < asp : DropDownList ID ="DDLLocation" runat ="server" OnSelectedIndexChanged ="DDLLocation_SelectedIndexChanged"     AutoPostBack ="true">     < asp : ListItem Text ="Select Location" Selected ="true"></ asp : ListItem >     < asp : ListItem Value ="Nda"> Utter Pradesh </ asp : ListItem >     < asp : ListItem Value ="chi"> Delhi </ asp : ListItem >     < asp : ListItem Value ="Ambd"> Ranchi </ asp :

Add a picture in the front of the page's url address

In this post, i'm going to share to code snippet for add logo in the browser tab   This example is simple and easily understandable code using asp.net with c# This link tag is add in header tag in site browsers   <link id="myIconImage" runat="server" rel="MY ICON" href="~/myIconImage.ico" type="image/x-icon" />

Date Calendar in ASP.NET TextBox with image icon

Hello everyone,  In this post, i'm going to share the code-sample for   date calendar date-time calender textbox in asp.net with c#   This example is simple and   easily understandable code   using asp.net with c#   Table of Contents  1. In the 1st step, code-sample for C# (.cs page) 2. In the 2nd step, code-sample for aspx page In the 1st step , we write the code for the cs file in asp.net page i.e. .aspx.cs namespace   myWebApplication {       public   partial   class   _Default   : BaseFeature     {           protected   void   Page_Load( object   sender,   EventArgs   e)         {             CalOne.Visible =   false ;             CalTwo.Visible =   false ;         }           protected   void   imgButtonOne_Click( object   sender,   ImageClickEventArgs   e)         {               try             {                   if   (txtDate.Text.Trim() !=   "" )                     CalOne.SelectedDate =   Convert .ToDateTime(t