Tag Archive: ASP.NET

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 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 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]

Mar 07

asp.net application life cycle and page life cycle

ASP.Net life cycle specifies, how: ASP.Net processes pages to produce dynamic output The application and its pages are instantiated and processed ASP.Net compiles the pages dynamically The ASP.Net life cycle could be divided into two groups: Application Life Cycle Page Life Cycle ASP.Net Application Life Cycle: The application life cycle has the following stages: User …

Continue reading »

Dec 26

how to embed a flash (.swf) file into asp.net

By using Object tag we can include flash into our asp.net as below:   <td> <object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0″ width=”974″ height=”174″> <param name=”movie” value=”imageani.swf” /> <param name=”quality” value=”high” /> <param name=”wmode” value=”transparent” /> <embed src=”imageani.swf” width=”974″ height=”174″ quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” wmode=”transparent”> </embed> </object> </td>

Dec 24

page life cycle of asp.net application

ASP.Net life cycle specifies, how: ASP.Net processes pages to produce dynamic output The application and its pages are instantiated and processed ASP.Net compiles the pages dynamically The ASP.Net life cycle could be divided into two groups: Application Life Cycle Page Life Cycle ASP.Net Application Life Cycle: The application life cycle has the following stages: User …

Continue reading »