Showing posts with label gridview. Show all posts
Showing posts with label gridview. Show all posts

INSERT UPDATE DELETE USING STORED PROCEDURE

INSERT UPDATE DELETE USING STORED PROCEDURE



STORED PROCEDURE


ALTER procedure RegIns(
@id int,
@username varchar(25),
@Password varchar(35),
@Count int

)
as
begin
if @count=1
begin
update reg set  Password=@Password ,username=@username where id=@id
end
else if @count=2
begin

LISTVIEW IN ASP.NET USING C#

INSERT,UPDATE,DELETE IN LIST VIEW

LIST.ASPX


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="listview.list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>

MOVE DATAS FROM ONE GRIDVIEW ROWS TO ANOTHER GRIDVIEW IN ASP.NET

MOVE DATAS FROM ONE GRIDVIEW ROWS TO ANOTHER GRIDVIEW IN ASP.NET


grid.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="groid.aspx.cs" Inherits="groid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

EXPORT A DATA FROM GRIDVIEW TO EXCEL USING C#

EXPORT A DATA FROM GRIDVIEW TO EXCEL USING C#



excel.aspx


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="excel.aspx.cs" Inherits="excel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">