-
Change GridView Row Color on Mouse Move And Get Value OnClick In Asp.net
Steps: 1) Create Simple Web Application (using C#). 2) put control (GridView) on the form (Default.aspx) <asp:GridView ID=”GridView1″ runat=”server” OnRowDataBound=”GridView1_RowDataBound”> </asp:GridView> 3) On Page Load Event Put Below Code. protected void Page_Load(object sender, EventArgs e) { //namespace :using System.Collections.Generic; List<int> obj = new List<int>(); for (int i = 10; i < 20; i++) { obj.Add(i);…
-
Client Site Printing using Javascript in Asp.net
1) Create simple Two (.aspx) pages. 1.1) Admin.aspx 1.2) PrintPage.aspx 2) in Admin.aspx Page put one button (id=btnPrint). On Button ClickEvent Open PrintPage.aspx using Javascript. <asp:Button ID=”btnPrint” runat=”server” Text=”Button” OnClientClick =”return OpenPrintPage();” /> write below javascript in the code. <script language=”javascript”> function OpenPrintPage() { //open the printpage window.open(“PrintPage.aspx”); } </script> 3) in PrintPage.aspx Page put…
-
Increase File Upload Size Limit in Asp.net
Steps: 1) Create the simple web application. 2) On the Form put the below control. 2.1) File Upload Control (id: FileUpload1) 2.2) button control (id: btnUpLoad) 2.3) label control (id: lblError) 3) On the click event of the button (btnUpload) write following code. ‘check whether user selected any file or not If FileUpload1.HasFile Then Try…
-
DownLoad Pdf file in Asp.net 2.0
1) Create the Simple Web Application. 2) Now add the new folder (FolderName : PDFFile). 2.1) right click on the project and add folder. 3) put the one pdf file in to folder ( name :1.pdf). 4) in the web page put the control 4.1)put the button control (name : btnPdfFiledownload) (note: Here we use…
-
Fixed Header in GridView in Asp.net 2.0
here is the step for creating the fixed header in gridview.Steps : 1) create the web application. 2) put the control on the form are below : 2.1) GridView (GridView1) 2.2) Panel (id=other) 2.3) Panel (id=pnlGrid) 2.3.1) in this panel we put the GridView. 2.3.2) now set the style attribute for pnlGrid Style=”overflow: auto;” 2.4)…