Category Archive: MS DOT NET

Apr 03

how to filter dataset in asp.net using c#

Hi, In this article I will explain you how to set filter in dataset while getting data from backend to frontend. Observe the below sqlserver database table , In this we can see the pincode column were it contain different values in pincode column Eg:I want to get only picode=524004 for that I can write …

Continue reading »

Mar 30

how to export data from sqlserver database to excel in asp.net c#

Hi, In this article I will explain you how to export data directly from sql server database table to excel, Assume there is some data in the sql server database as below: I will export this data into excel file to excel by using C#.net coding as below: 1.Add a new file TabletoExcel.aspx in the …

Continue reading »

Nov 30

how to generate a random password and send to mail in asp.net

Hi,In this article I will explain you how to generate auto generated password and also how to send to generated password mails IDS –> In this application I used GMAIL Credentials to send mails ,use your own maild SMPTS to send mails –> GMAIL  SMTP = smtp.gmail.com –> GMAIL PORT =587 –> Add using System.Net.Mail; …

Continue reading »

Sep 25

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed

I this article I will explain you how to solve a Jscript runtime error Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed –>To solve this place this script in page_load event [code language=”csharp”] ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page); scriptManager.RegisterPostBackControl(this.lstCustomerRemapping); [/code] *lstCustomerRemapping is listview ID. Keep your required Grid/ListView Ids …

Continue reading »

Sep 14

how to create ms charts in asp. net c#

Hi,In this Article i am going  to explain how to use MSCharts control to draw Charts with the help of SqlServer database data. Step1:Create table in the Database as below: Step2:In VS2010 add new item to solution with name “MSChart.aspx” Step3:Paste the below code in “MSChart.aspx”. [code language=”html”] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Images.aspx.cs" Inherits="Images" %> …

Continue reading »

Jul 19

how to export gridview data to excel in asp.net using c#

In this article. I am going to explain about how to Export Data from grid view to Excel sheet: 1.In many cases its very difficult to check the entire data in grid view,so that we can export data into excel and then we can check  easily. 2.To do that you have to save dataset data …

Continue reading »

Jul 06

how to update delete and edit using gridview in asp.net c#

Hi, there this is a common question for all the candidate of .NET in System test àQuestion is “Bind data to grid view and perform edit and delete operations in grid view” In this article I am going to do the same thing 1.Create a table in database as below   Set UserId ad primary …

Continue reading »

Apr 20

.net framework and architecture

The .NET Framework is a new and revolutionary platform created by Microsoft for developingapplications. It is a platform for application developers. It is a Framework that supports Multiple Language and Cross language integration. IT has IDE (Integrated Development Environment). Framework is a set of utilities or can say building blocks of your application system. .NET Framework …

Continue reading »

Mar 18

Microsoft JScript runtime error: RSClientController is undefined

Running Windows Vista 64 bit, Sql Server 2008 on a remote server.  Using ASP.Net and the Report Viewer control on an asp.net page for a local report.  Was also using IIS to host the web site instead of using the web server built into Visual Studio 2008. Hope this post helps someone else. –>Place this …

Continue reading »

Mar 16

how to close the browser window in c# asp.net

Use this code in button click event: [code language=”csharp”] this.ClientScript.RegisterClientScriptBlock(this.GetType(), "Close", "window.close()", true); [/code]

Older posts «