Skip to main content

Posts

Showing posts from April, 2013

Featured Post

How to use Tabs in ASP.NET CORE

I want to show Components in a tabs , so first of all create few components. In this project we have three components, First View Component  public class AllViewComponent : ViewComponent     {         private readonly UserManager<ApplicationUser> _userManager;         public AllViewComponent(UserManager<ApplicationUser> userManager)         {             _userManager = userManager;         }         public async Task<IViewComponentResult> InvokeAsync()         {             List<StudentViewModel> allUsers = new List<StudentViewModel>();             var items = await _userManager.Users.ToListAsync();             foreach (var item in items)             {                 allUsers.Add(new StudentViewModel {Id=item.Id, EnrollmentNo = item.EnrollmentNo, FatherName = item.FatherName, Name = item.Name, Age = item.Age, Birthdate = item.Birthdate, Address = item.Address, Gender = item.Gender, Email = item.Email });             }            

Student Information System Project in C#

Introduction About Project Student information system project is a way of represent student bio data in different - different ways.It having all such features like add new student record , student bio data, student profile etc. Suppose you have a big Educational institute ,on that time you will need a such type of system when handle all such activities related to students and Organization. So let first we think about students management. This project handle student activities. Your project will submit after 5 hour 

How to use SliderExtender in AJAX

SliderExtender attaches to a TextBox control and enables the TextBox control to behave similar to a graphical Slider so that the users can pick up a numeric values up to a specific range. The website SliderExtender makes the concept of SliderExtender clear. lets take an Example Copy this code and paste your web form ( Before copy you must add ajax control tool kit to your project ) <%@ Page Language="C#" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <!DOCTYPE html> <script runat="server"> </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title> </head> <body>     <form id="form1" runat="server">     <div>         <asp:ScriptManager ID="ScriptManager1" runat="server&quo

How to use ResizableControlExtender in AJAX

ResizableControlExtender is attached to any ASP.NET control on a web page that allow resizing the control using a handle attached to the lower-right corner of the control. The user resizes the control similar to windows Explorer in operating system. The style can be changed using the HandleCssClass property. ResizableControlExtender also exposes the events,such  as OnClientResize that can trigger JavaScript . lets take an Example Copy this code and paste your web form ( Before copy you must add ajax control tool kit to your project ) <%@ Page Language="C#" AutoEventWireup="true" CodeFile="autoresize.aspx.cs" Inherits="autoresize" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=&q

How to use NumericUpDownExtender in AJAX

Introduction NumericUpDownExtender targets a TextBox Control to extend the functionality of the textbox . When this extender is attached to a TextBox control , the textbox appear with an up and down button . You can use these buttons to navigate through a defined set of string values as well as integer value . The string values are defined using the RefValues property of NumericUpDownExtender and integer value defined by minimum and maximum property. Source Code Copy this code and paste your web form ( Before copy you must add ajax control tool kit to your project ) <%@ Page Language="C#" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <!DOCTYPE html> <script runat="server"> </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title> </head> <bod

How to use CalendarExtender in AJAX

CalendarExtender targets a TextBox control and provides an easy way to enter the date in the textbox . When you associate a CalendarExtender to the textbox control , you do not need to enter the date manually. However , you can select the date from the calendar that appears as you focus on the textbox . The CalendarExtender enables you to customize the date format end choose the date using popup calender . You can interact with the calendar by selecting a date and month , or changing the view of the calender , and much more. lets take an Example   Copy this code and paste your web form ( Before copy you must add ajax control tool kit to your project ) <%@ Page Language="C#" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <!DOCTYPE html> <script runat="server"> </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head

How to use AlwaysVisibleControlExtender in AJAX

Introduction AlwaysVisibleControlExtender enables you to fix a given control to one of the page corner so that the control appears to float in the background when the page is scrolled or re-sized . This extender can target any of the controls that you want to be visible on the page always. Lets take an Example Copy This code and paste your web form (Before copy you must add ajax control tool kit to your project) <%@ Page Language="C#" AutoEventWireup="true" CodeFile="customlogincontrol.aspx.cs" Inherits="customlogincontrol" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title> </head> <body>     <form id="form1" runat="server">     <div>        

Difference Between SQL Server Database (SSD) and SQL Server Management Studio(SSMS)

SQL Server Database: SSD contain all the tables and data that created by SQL Server management Object. Like Triggers,Tables, and Stored procedure etc. Diagrammatic View of SSD : SQL Server Management Studio : SSMS is a client tool and not the server by itself or you can about SSMS that developer machine (Clients) connects to SQL Server using SSMS

How to send E-Mail in ASP.NET

Step-1 : Open Visual Studio Step-2  : Create New Web Project Step-3:  In Solution Explorer Add new item  Step-4: Select web form in middle pane also select c# in left pane Step-5: Change name of the webform as "mailling.aspx" also select place code in separate file check box Step-6: Download Ajax Control tool kit from  http://ajaxcontroltoolkit.codeplex.com/releases/view/90063 Step-7: Right click on project and add reference to the project (add .dll file to com object) Step-8: Also add ajax control tool kit to toolbox (By Rightclick on toolbox and choose items)  Step-9: check this code for  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="sendmail.aspx.cs" Inherits="sendmail" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <%@ Register assembly="AjaxControlToolkit" namespace

How to bind Formview in ASP.NET

There are different method for bind Formview in asp.net. (1)Form bind through SqlDataSource (2) Form bind through ADO.NET Steps for binding formview using SqlDataSource: Step-1 : Open Visual Studio Step-2 : Create New Web Project Step-3: In Solution Explorer Add new item  Step-4: Select web form in middle pane also select c# in left pane Step-5: Change name of the webform as "formbind.aspx" also select place code in separate file check box Step-6:   Right click on  Project name and add new item  again. Step-7: Open a new dialog window Select SQL SERVER database  name as a "database.mdf" Step-8: After click ok Button . a new dialog appear on the screen  Do you want to place the file in App_data folder Step-9: Click Ok Button in dialog window Step-10: Open Server Explorer Step-11 Make a new table inside Database Note: Keep one primary key with identity Increase Step-12 : Step-13 : fill This Table with Some value Step-14: O

What is Difference Between static member and non static member

Also known as static member or instance member (1)calling Static : Static member always call from class name. NonStatic : NonStatic member always call from instance of the class. Note : Those values who have not change during the entire program that values keep as a static  Example: In Circle class the pi=3.14 value always must constant so use pi as a static member (2)declaration NonStatic declaration :   float pi=3.14F; Static declaration :   static float pi=3.14F; (3)In case of Constructor Static : We can't use access modifier with static constructor. NonStatic : we use always public modifier with non static constructor. Note:  Static Constructor is called only once , no matter how many instances you create  Static Constructors are called before instance constructors. (4)In Case of memory In instance member belongs to specific instance (object) of a class. If i create 3 objects of a class , i will have 3 sets of instance members in the memory , where

What is the Difference between ASP and ASP.NET

There are many difference in asp and asp.net (1) ASP  : If you want to make a project then you write more code compare to ASP.NET ASP.NET : Write Less code compare to ASP (2) ASP : ASP use Recordset  for data binding ASP .NET : ASP use ado.net, entity framework and many more for data binding (3) ASP : ASP does not support rich control like calander control ASP.NET : ASP.NET support rich control (4) ASP : ASP have only one page for designing and coding (presentation + business logic on single page) ASP .NET : ASP.NET have two pages for designing and coding (presentation page (.aspx) + business logic page (.aspx.cs)) (5) ASP :  ASP version 1.0 or 1.1 ASP.NET :  Updated Version

How to use login control over remote server in asp.net

Download SQL Videos