<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5377545568883084835</id><updated>2012-01-12T03:16:00.863-08:00</updated><category term='Ip Address'/><category term='Connection String'/><category term='Asp.net'/><category term='C# Syntax'/><category term='Gridview'/><category term='image Upload'/><category term='Download'/><category term='Email'/><category term='Captcha'/><category term='Dynamic Controls'/><title type='text'>Dotnet Blog</title><subtitle type='html'>ASP.NET,C#,Aspdotnet,Ajax,MS SQL Samples and Tutorials</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-1498008326909837841</id><published>2011-07-27T23:03:00.000-07:00</published><updated>2011-07-27T23:11:31.675-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><title type='text'>Cannot find one or more components:Please reinstall the application</title><content type='html'>Today morning i just started my Visual Studio 2008. At that time i got a message like Cannot find one or more components:Please reinstall the application.I was not change anything in Visual Sutio 2008.What i thought may be i did not properly shutdown that's why some file may be corrupted. So only am getting the message like this. But after that i googled half an hour.Many people are facing the same error. At last i got the solution.&lt;br /&gt;&lt;br /&gt;Found the link in.&lt;br /&gt;&lt;br /&gt;http://social.msdn.microsoft.com/forums/en-US/vssetup/thread/76713427-0daa-4907-a017-633ad258a5af   with the title "Cannot find one or more components" Error When Executing Visual Studio 2008.&lt;br /&gt;&lt;br /&gt;I looked in my Explorer C:\WINDOWS\WinSxS\x86_Microsoft.VC90.ATL_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_312cf0e9. The DLL atl90.dll was modified.&lt;br /&gt;&lt;br /&gt;and may be it cause of windows auto update.&lt;br /&gt;&lt;br /&gt;So i copied &lt;span style="font-weight: bold;"&gt;atl90.dll&lt;/span&gt; from my other machine and saved.After opening the Visual Studio it was working fine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-1498008326909837841?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/1498008326909837841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2011/07/cannot-find-one-or-more.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/1498008326909837841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/1498008326909837841'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2011/07/cannot-find-one-or-more.html' title='Cannot find one or more components:Please reinstall the application'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-7175214630612359581</id><published>2011-07-25T03:27:00.000-07:00</published><updated>2011-07-26T23:24:10.568-07:00</updated><title type='text'>How to maintain the password textbox text after postback</title><content type='html'>How to maintain the password textbox text after postback&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-e0mJ95lnxYM/Ti1GA3xagcI/AAAAAAAAALs/Pu4MJ37SGpE/s1600/PasswordTextBox.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 421px; height: 240px;" src="http://1.bp.blogspot.com/-e0mJ95lnxYM/Ti1GA3xagcI/AAAAAAAAALs/Pu4MJ37SGpE/s320/PasswordTextBox.JPG" alt="" id="BLOGGER_PHOTO_ID_5633235689695510978" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-bIGDCfSY6xk/Ti1Gb7YbzyI/AAAAAAAAAL8/WNw8zKeqqVU/s1600/PasswordTextCode.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 458px; height: 240px;" src="http://2.bp.blogspot.com/-bIGDCfSY6xk/Ti1Gb7YbzyI/AAAAAAAAAL8/WNw8zKeqqVU/s320/PasswordTextCode.JPG" alt="" id="BLOGGER_PHOTO_ID_5633236154520948514" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-wF2yfkXmw6U/Ti1Gb_Dm0VI/AAAAAAAAAL0/Gex1UN5P_LI/s1600/DesignTexBox.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 431px; height: 240px;" src="http://1.bp.blogspot.com/-wF2yfkXmw6U/Ti1Gb_Dm0VI/AAAAAAAAAL0/Gex1UN5P_LI/s320/DesignTexBox.JPG" alt="" id="BLOGGER_PHOTO_ID_5633236155507331410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In Asp.net the password textbox will not remain the value after postback so for that we can use this steps&lt;br /&gt;to maintain the values.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Coding As follows.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the design page&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:textbox onprerender="txtPassword_PreRender" id="txtPassword" text="abcd" maxlength="25" cssclass="TextBox" width="150px" runat="server" textmode="Password"&amp;gt;&amp;lt;/asp:textbox&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:button onclick="btnSubmit_Click" id="btnSubmit" runat="server" text="Submit"/&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the Code behind page&lt;br /&gt;&lt;br /&gt;protected void txtPassword_PreRender(object sender, EventArgs e)&lt;br /&gt;   {&lt;br /&gt;       txtPassword.Attributes["value"] = txtPassword.Text;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;protected void btnSubmit_Click(object sender, EventArgs e)&lt;br /&gt;   {&lt;br /&gt;  &lt;br /&gt;   }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-7175214630612359581?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/7175214630612359581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2011/07/how-to-maintain-password-textbox-text.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/7175214630612359581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/7175214630612359581'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2011/07/how-to-maintain-password-textbox-text.html' title='How to maintain the password textbox text after postback'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-e0mJ95lnxYM/Ti1GA3xagcI/AAAAAAAAALs/Pu4MJ37SGpE/s72-c/PasswordTextBox.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-5706689283618118813</id><published>2011-06-29T03:14:00.000-07:00</published><updated>2011-06-29T23:10:40.586-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dynamic Controls'/><title type='text'>Dynamic LinkButton Controls in Asp.Net</title><content type='html'>Dynamic LinkButton in Asp.Net c#&lt;br /&gt;&lt;br /&gt;In this article am going to explain how to create and add dynamic table with Dynamic LinkButton.&lt;br /&gt;&lt;br /&gt;In the design page, we just add how many controls we need and where it should be placed. These controls are static and having the data what we gave. In some cases we have to dynamically get data from the database and create dynamic controls for the data.&lt;br /&gt;&lt;br /&gt;Difference between static and dynamic?&lt;br /&gt;Static -&amp;gt; we can mention how many things we need.&lt;br /&gt;Dynamic -&amp;gt;we cannot mention it generates depends upon the requirements.&lt;br /&gt;&lt;br /&gt;Creating Dynamic LinkButton in Asp.Net is very simple. After creating the dynamic controls just add the controls in a PlaceHolder or Panel control.&lt;br /&gt;&lt;br /&gt;Step 1: In the Design Page just create a panel named "pnlDynamic".&lt;br /&gt;&lt;br /&gt;Step 2: Add the namespace in the code behind.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.HtmlControls;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Step 3: Create an object  for  HtmlTable.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;HtmlTable tblDynamic = new HtmlTable();&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Step 4: In the Page_Load event, just call the dynamically creating control method BindEmployeeData(); Call the method outside the IsPostBack() method. Because our dynamic controls should recreate each and every time when a postback call.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;  {&lt;br /&gt;    If(!IsPostBack())&lt;br /&gt;    {                  &lt;br /&gt;    }&lt;br /&gt;    BindEmployeeData ();&lt;br /&gt;  }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Step 5: Method for creating the dynamic LinkButton control depends on the database data.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;public void BindEmployeeData()&lt;br /&gt;  {&lt;br /&gt;      SqlConnection SqlConn = new SqlConnection("Data Source=localhost;Initial Catalog=mytestDB;User ID=xxxxxxx;Password=zzzzzzzzz");&lt;br /&gt;      SqlDataAdapter SqlDap = new SqlDataAdapter("select * from Employees", SqlConn);&lt;br /&gt;      DataTable objDT = new DataTable();&lt;br /&gt;      SqlDap.Fill(objDT);&lt;br /&gt;&lt;br /&gt;      tblDynamic.ID = "tblEmployee";&lt;br /&gt;      tblDynamic.Width = "100%";&lt;br /&gt;      tblDynamic.CellPadding = 3;&lt;br /&gt;      int intRowCount = objDT.Rows.Count;&lt;br /&gt;&lt;br /&gt;      if ((intRowCount &amp;gt; 0))&lt;br /&gt;      {&lt;br /&gt;          int sCount = (intRowCount / 2) + 1;&lt;br /&gt;          int intCurrentCount = 0;&lt;br /&gt;          for (int i = 1; i &amp;lt;= sCount; i++)                 {                     HtmlTableRow tblRowDef = new HtmlTableRow();                                          tblRowDef.Align = "left";                                          if ((intRowCount &amp;gt; intCurrentCount))&lt;br /&gt;              {&lt;br /&gt;                  for (int l = 1; l &amp;lt;= 2; l++)                         {                             if ((intRowCount &amp;gt; intCurrentCount))&lt;br /&gt;                      {&lt;br /&gt;                          HtmlTableCell tblCellDef = new HtmlTableCell();&lt;br /&gt;                          tblCellDef.ID = "0" + objDT.Rows[intCurrentCount]["EmpName"].ToString();&lt;br /&gt;                          tblCellDef.Width = "400px";&lt;br /&gt;                          LinkButton lnkEmployee = new LinkButton();&lt;br /&gt;                          lnkEmployee.ID = "lnkEmployee0" + objDT.Rows[intCurrentCount]["EmpName"].ToString();&lt;br /&gt;                          lnkEmployee.Text = objDT.Rows[intCurrentCount]["EmpName"].ToString();&lt;br /&gt;                          lnkEmployee.CommandName = objDT.Rows[intCurrentCount]["EmpID"].ToString();&lt;br /&gt;                          lnkEmployee.Font.Bold = true;&lt;br /&gt;                          lnkEmployee.Font.Size = 13;&lt;br /&gt;                          lnkEmployee.Width = 10;&lt;br /&gt;                          lnkEmployee.Click += new EventHandler(lnkEmployeeWhole_Click);&lt;br /&gt;                          tblCellDef.Controls.Add(lnkEmployee);&lt;br /&gt;                          tblRowDef.Controls.Add(tblCellDef);&lt;br /&gt;                          intCurrentCount += 1;&lt;br /&gt;                      }&lt;br /&gt;                  }&lt;br /&gt;              }&lt;br /&gt;              tblDynamic.Controls.Add(tblRowDef);&lt;br /&gt;          }&lt;br /&gt;&lt;br /&gt;      }&lt;br /&gt;     pnlDynamic.Controls.Add(tblDynamic);&lt;br /&gt;  }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Step 6: Write the handler to fire the event for the particular link button control&lt;br /&gt;&lt;pre class="brush: csharp"&gt;protected void lnkEmployeeWhole_Click(object sender, EventArgs e)&lt;br /&gt;  {&lt;br /&gt;      LinkButton lnkEmployee = (LinkButton)sender;&lt;br /&gt;      Response.Redirect("SomePage.aspx?ID="+lnkEmployee.CommandName);&lt;br /&gt;  }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Dynamic link button will disappear if you put LoadBookData() method within IspostBack() method.&lt;br /&gt;&lt;br /&gt;I Hope these Code will help you to understand the Dynamic LinkButton Controls in Asp.Net.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-5706689283618118813?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/5706689283618118813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2011/06/dynamic-linkbutton-controls-in-aspnet.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/5706689283618118813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/5706689283618118813'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2011/06/dynamic-linkbutton-controls-in-aspnet.html' title='Dynamic LinkButton Controls in Asp.Net'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-2460094661653074085</id><published>2011-06-28T06:24:00.000-07:00</published><updated>2011-07-16T03:25:51.315-07:00</updated><title type='text'>Error Logging in ASP.NET</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-JIfGQv3C3GY/TiFkNvbtfaI/AAAAAAAAAKk/GJPG7ajquZQ/s1600/errorlogging.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 127px;" src="http://3.bp.blogspot.com/-JIfGQv3C3GY/TiFkNvbtfaI/AAAAAAAAAKk/GJPG7ajquZQ/s320/errorlogging.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5629891196423601570" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Errors may occur during the development. Not only in the Web sites, it is in all the fields. Every coders may know which place the error will come.Some errors can be easily identified and get a solution easily.But some cases we cant identify what error and why this error is coming like this. For an good website we have to maintain the error log in the Application. So we can track the errors easily and fix the issues sooner.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this blog, we will see how to create a simple error log in our website. We will show an error has been occured message to the user. At the same time,we will log the error in a htm file. The html error file will be created with the name of current date. whenever the error is occurred, It will automatically update with the html file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Types of errors&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Syntax errors-(ex: we missed the semicolon at end of the statement).&lt;br /&gt;Logical error-(ex: Converting a string to int).&lt;br /&gt;Application error-(ex: may be the folder permission does not give to create a new file).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.box.net/shared/81krpte0t9l4ns2gae9l"&gt;Download&lt;/a&gt; the project with full source code.&lt;br /&gt;&lt;br /&gt;let us see steps,how to catch errors and log.&lt;br /&gt;&lt;br /&gt;Step 1: Create a new folder named Logs and set write permission.&lt;br /&gt;&lt;br /&gt;Step 2: Create a new ErrorPage.aspx and in that page write the Error has been occurred during process message in a Label.&lt;br /&gt;&lt;br /&gt;Step 3: create a new class named General.cs and add the variables to use in the error log.&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: csharp"&gt;private string strDLLName, strErrorIn, strFileName, strFileLocation, strErrorMethodName, strErrorMessage, strLineNo, strException, strLogFormat;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Step 4: write the method GetErrorDetails as a return type void.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;public void GetErrorDetails(Exception ex)&lt;br /&gt; {&lt;br /&gt; strException = ex.StackTrace.Trim().Remove(0, 3);&lt;br /&gt; string strDllInfo, strLocationInfo;&lt;br /&gt; if (strException.Contains(":") &amp;amp;&amp;amp; strException.Contains(".") &amp;amp;&amp;amp; strException.Contains("\\"))&lt;br /&gt; {&lt;br /&gt; strDllInfo = strException.Substring(0, strException.IndexOf('('));&lt;br /&gt; strLocationInfo = strException.Substring(strException.IndexOf(')'), (strException.LastIndexOf(':')) - strException.IndexOf(')')).Remove(0, 5);&lt;br /&gt;&lt;br /&gt; //Get the DLL Name&lt;br /&gt; strDLLName = strDllInfo.Substring(0, strDllInfo.Substring(0, strDllInfo.LastIndexOf('.')).LastIndexOf('.'));&lt;br /&gt;&lt;br /&gt; //Get the File Type &amp;amp; Name&lt;br /&gt; string strFileCheck = strLocationInfo.Substring(strLocationInfo.LastIndexOf('\\')).Remove(0, 1);&lt;br /&gt; string[] arrFileCheck = strFileCheck.Split('.');&lt;br /&gt;&lt;br /&gt; if (arrFileCheck.Length &amp;gt; 2)&lt;br /&gt; strErrorIn = "Page File";&lt;br /&gt; else&lt;br /&gt; strErrorIn = "Class File";&lt;br /&gt; strFileName = strFileCheck;&lt;br /&gt;&lt;br /&gt; //Get the Error File Location&lt;br /&gt; strFileLocation = "~\\" + strLocationInfo.Substring(AppDomain.CurrentDomain.BaseDirectory.Length);&lt;br /&gt;&lt;br /&gt; //Get the Error Method Name&lt;br /&gt; strErrorMethodName = strDllInfo.Substring(strDllInfo.LastIndexOf('.')).Remove(0, 1);&lt;br /&gt;&lt;br /&gt; //Get the Error Meassage&lt;br /&gt; strErrorMessage = ex.Message;&lt;br /&gt;&lt;br /&gt; //Get the Error Line No.&lt;br /&gt; strLineNo = strException.Substring(strException.LastIndexOf(':'), (strException.Length - strException.LastIndexOf(':'))).Remove(0, 6);&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt; strDLLName = "-";&lt;br /&gt; strFileName = "-";&lt;br /&gt; strFileLocation = "-";&lt;br /&gt; strErrorMethodName = ex.ToString();&lt;br /&gt; strErrorIn = "Application Error";&lt;br /&gt; strLineNo = "-";&lt;br /&gt; strErrorMessage = ex.Message;&lt;br /&gt; }&lt;br /&gt; //Write the Error In ErroLog File&lt;br /&gt; WriteError(strDLLName, strErrorIn, strFileName, strFileLocation, strErrorMethodName, strErrorMessage, strLineNo);&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Step 5: Write the catched error in the html file&lt;br /&gt;&lt;pre class="brush: csharp"&gt;private void WriteError(string strDLLName, string strErrorIn, string strFileName, string strFileLocation, string strErrMethodName, string strErrMessage, string strLineNo)&lt;br /&gt; {&lt;br /&gt; bool boolErrLog = true;&lt;br /&gt;&lt;br /&gt; string strbaseDir = AppDomain.CurrentDomain.BaseDirectory;&lt;br /&gt; string strErrHeader = "&amp;lt;TR bgColor=\"#E6D4A7\"&amp;gt;&amp;lt;TD align=center&amp;gt;&amp;lt;font size=\"4\"&amp;gt;DataBase&amp;lt;/font&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD align=center&amp;gt;&amp;lt;font size=\"4\"&amp;gt;User&amp;lt;/font&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD align=center&amp;gt;&amp;lt;font size=\"4\"&amp;gt;Date&amp;lt;/font&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD align=center&amp;gt;&amp;lt;font size=\"4\"&amp;gt;DLL Name&amp;lt;/font&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD align=center&amp;gt;&amp;lt;font size=\"4\"&amp;gt;Error In&amp;lt;font&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD align=center&amp;gt;&amp;lt;font size=\"4\"&amp;gt;File Name&amp;lt;/font&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD align=center&amp;gt;&amp;lt;font size=\"4\"&amp;gt;File Location&amp;lt;/font&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD align=center&amp;gt;&amp;lt;font size=\"4\"&amp;gt;Error Method Name&amp;lt;/font&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD align=center&amp;gt;&amp;lt;font size=\"4\"&amp;gt;Error Message&amp;lt;/font&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD align=center&amp;gt;&amp;lt;font size=\"4\"&amp;gt;Error Line No&amp;lt;/font&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;";&lt;br /&gt; string strTitle = "&amp;lt;h2 align=center&amp;gt;" + "My Website Error Log Information" + "&amp;lt;/h2&amp;gt;";&lt;br /&gt; string strErrorTime = DateTime.Now.Month.ToString() + "-" + DateTime.Now.Day.ToString() + "-" + DateTime.Now.Year.ToString();&lt;br /&gt; string strDBName = "-", strLoginUser = "-";&lt;br /&gt; string strLogFilePath = strbaseDir + "Logs\\" + "ErrorLog" + "_" + strErrorTime + ".html";&lt;br /&gt;&lt;br /&gt; if (!Directory.Exists(strbaseDir + "Logs\\"))&lt;br /&gt; {&lt;br /&gt; Directory.CreateDirectory(strbaseDir + "Logs\\");&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; if (File.Exists(strLogFilePath))&lt;br /&gt; {&lt;br /&gt; boolErrLog = false;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; StreamWriter sw = new StreamWriter(strLogFilePath, true);&lt;br /&gt;&lt;br /&gt; if (boolErrLog)&lt;br /&gt; {&lt;br /&gt; sw.WriteLine(strTitle + "&amp;lt;TABLE rules=\"all\"&amp;gt;");&lt;br /&gt; sw.WriteLine(strErrHeader);&lt;br /&gt; } &lt;br /&gt;&lt;br /&gt; if (HttpContext.Current.Session != null)&lt;br /&gt; {&lt;br /&gt; if (HttpContext.Current.Session["DATABASE"] != null)&lt;br /&gt; strDBName = HttpContext.Current.Session["DATABASE"].ToString();&lt;br /&gt; if (HttpContext.Current.Session["LoginUser"] != null)&lt;br /&gt; strLoginUser = HttpContext.Current.Session["LoginUser"].ToString();&lt;br /&gt; }&lt;br /&gt; strLogFormat = "&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;" + strDBName + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + strLoginUser + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + DateTime.Now.ToString() + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + strDLLName + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + strErrorIn + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + strFileName + "&amp;lt;/TD&amp;gt;&amp;lt;TD align=center&amp;gt;" + strFileLocation + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + strErrMethodName + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + strErrMessage + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + strLineNo + "&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;";&lt;br /&gt;&lt;br /&gt; sw.WriteLine(strLogFormat);&lt;br /&gt; sw.Close();&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Step 6: How to call this method in our website&lt;br /&gt;&lt;br /&gt;in codebehind events, (ex. button click)&lt;br /&gt;&lt;pre class="brush: csharp"&gt;try&lt;br /&gt; {&lt;br /&gt; throw new Exception("dotnetpgm Exception");&lt;br /&gt; }&lt;br /&gt; catch (Exception ex)&lt;br /&gt; {&lt;br /&gt; General objGeneral = new General();&lt;br /&gt; objGeneral.GetErrorDetails(ex);&lt;br /&gt; Response.Redirect("ErrorPage.aspx");&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Step 7: for catching the Application errors add the code in Global.asax&lt;br /&gt;&lt;br /&gt;you can create Global.asax by add new item in the website&lt;br /&gt;&lt;pre class="brush: csharp"&gt;protected void Application_Error(object sender, EventArgs e)&lt;br /&gt; {&lt;br /&gt; General objGeneral = new General();&lt;br /&gt; Exception objErr = Server.GetLastError().GetBaseException();&lt;br /&gt; objGeneral.GetErrorDetails(objErr);&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.box.net/shared/81krpte0t9l4ns2gae9l"&gt;Download&lt;/a&gt; the project with full source code.&lt;br /&gt;&lt;br /&gt;Build and run the application to log the 'dotnetpgm' exception in the error log file.&lt;br /&gt;you will see it will redirect to ErrorPage.aspx page. But when you get an Application error It just log the error in background.&lt;br /&gt;&lt;br /&gt;In this blog, we saw about how to add the simple error logging method in our website. Error Logging will be very useful to detect errors and helps our website to fix the issues.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-2460094661653074085?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/2460094661653074085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2011/06/error-logging-in-aspnet.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/2460094661653074085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/2460094661653074085'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2011/06/error-logging-in-aspnet.html' title='Error Logging in ASP.NET'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-JIfGQv3C3GY/TiFkNvbtfaI/AAAAAAAAAKk/GJPG7ajquZQ/s72-c/errorlogging.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-6771298375213116945</id><published>2010-01-30T05:50:00.000-08:00</published><updated>2011-06-28T05:48:53.570-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image Upload'/><category scheme='http://www.blogger.com/atom/ns#' term='Download'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><title type='text'>Image uploading in Asp.net</title><content type='html'>&lt;hr&gt;&lt;br /&gt;Image uploading using Asp.net to MS sql server by c# is very easier.Here i will show how to convert an image to binary data and reduce the image size and then upload the binary data to MS sql server.&lt;br /&gt;&lt;br /&gt;Create the Database structure&lt;br /&gt;&lt;br /&gt;In the database we have to declare the image id, image name and image binary data.&lt;br /&gt;&lt;br /&gt;name  type&lt;br /&gt;imageId  int  identity not null&lt;br /&gt;imageName varchar(100)&lt;br /&gt;imageBinaryData image&lt;br /&gt;&lt;br /&gt;if we declare the imageBinaryData as image means.we can convert our image to binary data and the upload to the sql server is easier.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;In the New Web Form page drag and drop the Fileupload control and name it as FileUpload and a button control as btnSubmit.&lt;br /&gt;&lt;br /&gt;Write the logic for file upload and resize the image in .cs file&lt;br /&gt;&lt;br /&gt;use the Name space on the top of the namespace declaration.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.Drawing.Imaging;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Text;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;then declare the sql connection before the page load event.&lt;br /&gt;&lt;br /&gt;SqlConnection Conn = new SqlConnection(“server=.;database=sample;Integrated Security=True”);&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;in the button click event&lt;br /&gt;//Check the file upload is having some data.&lt;br /&gt;if (FileUpload.FileName != “”)&lt;br /&gt;{&lt;br /&gt;System.Drawing.Image image = System.Drawing.Image.FromStream(FileUpload.PostedFile.InputStream);&lt;br /&gt;int imgHeight, imgWidth;&lt;br /&gt;imgHeight = 130;&lt;br /&gt;imgWidth = 150;&lt;br /&gt;&lt;br /&gt;///….&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;I attached the sample Image upload File with this. &lt;br /&gt;&lt;a href="http://www.filefactory.com/file/a19g24a/n/ImageUpload.aspx.cs"&gt;Download&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-6771298375213116945?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/6771298375213116945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2010/01/image-uploading-in-aspnet.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/6771298375213116945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/6771298375213116945'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2010/01/image-uploading-in-aspnet.html' title='Image uploading in Asp.net'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-5190566366547508838</id><published>2010-01-07T10:10:00.000-08:00</published><updated>2011-07-16T02:53:21.991-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Download'/><category scheme='http://www.blogger.com/atom/ns#' term='Captcha'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><title type='text'>Captcha validation in Asp.net 2.0</title><content type='html'>&lt;hr /&gt;&lt;br /&gt;Captcha validation in Asp.net 2.0.&lt;br /&gt;&lt;br /&gt;Before Entering to topic first we must understand about the validation.Why most of the sites are validating the data's we entered.Like we gave a name with numeric values and special characters like.So these things are really wrong information by mistake wrongly typed.In email id most of the websites how they validate means they see the email id contains '@' followed with some words and having '.' symbol. So we have to give the informations correctly.&lt;br /&gt;&lt;br /&gt;Ok, Let us come to the Topic.&lt;br /&gt;most of the web sites having the Captcha validation to their sites.&lt;br /&gt;&lt;br /&gt;What is a Captcha code?&lt;br /&gt;&lt;br /&gt;Captcha code contains a char and integer values with mixed mode. It is used for validating this code was really typed by the human.&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;How to create our own captcha code in Asp.net 2.0&lt;br /&gt;&lt;br /&gt;First create an image button in a Asp.net web page and in the imageurl give the capthanew.aspx. like this,&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;&amp;lt;asp:imagebutton id="ImageButton1" runat="server" width="105px" height="35px" imageurl="~/capthanew.aspx"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:TextBox ID="txtcaptha" runat="server" Width="105px" MaxLength="6" CssClass="txtbx2"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:Button ID="btnSubmit" Text="Submit" runat="server" OnClick="btnSubmit_Click" /&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;give a text box to enter the captcha text and also a button.&lt;br /&gt;&lt;br /&gt;download the capthanew.aspx file from here &lt;a href="http://www.box.net/shared/qpmlx7q3dst6747kop5b"&gt;Download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;save the file in your website folder.&lt;br /&gt;&lt;br /&gt;In aspx.cs file go to the btnSubmit_Click event to write the validation to check the user given code and captcha code are same.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;if (Page.IsValid &amp;&amp; (txtcaptha.Text.ToString() != Session["RandomStr"].ToString()))&lt;br /&gt;            {&lt;br /&gt;                Response.Write("Captcha code was wrong.");&lt;br /&gt;            }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This is the implementation of a captcha code if you want to generate the code dynamically means just give a linkbutton near to the Captcha imagebutton and give the path to capthanew.aspx this will give a dynamic code whenever you reload the page by linkbutton.&lt;br /&gt;&lt;br /&gt;Actually how this captcha code works means, we just create a random numbers and characters and create a bitmap image and render these two things. We can give our own color also.&lt;br /&gt;&lt;br /&gt;Happy code for Captcha. download the capthanew.aspx file from here &lt;a href="http://www.box.net/shared/qpmlx7q3dst6747kop5b"&gt;Download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-5190566366547508838?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/5190566366547508838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2010/01/captcha-validation-in-aspnet-20.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/5190566366547508838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/5190566366547508838'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2010/01/captcha-validation-in-aspnet-20.html' title='Captcha validation in Asp.net 2.0'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-5495434671438050020</id><published>2010-01-04T09:08:00.000-08:00</published><updated>2011-06-29T01:46:22.335-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='C# Syntax'/><title type='text'>Basic Syntax in c# Language</title><content type='html'>&lt;hr /&gt;&lt;br /&gt;A variable is a location in the memory that has a name and contains a value. Variable means the value can be changed. A variable name may contains ‘_’ (underscore) followed by a sequence of letters, digits(0-9), or underscores. The first character in a variable name cannot be a digit&lt;br /&gt;&lt;br /&gt;//Variable Declaration&lt;br /&gt;[data_type] [variable_name]=[value];&lt;br /&gt;&lt;br /&gt;//Data types are two types.&lt;br /&gt;Value types:- The values are directly containing the data.&lt;br /&gt;Char, int and float are value types&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;int a = 10; // 'a' is a variable that contains the values 10.&lt;br /&gt;char c=’S’; // 'c' is a character variable that contains the value 'S'.&lt;br /&gt;float f=10.22; // 'f' is a float variable that contains the value 10.22&lt;br /&gt;&lt;br /&gt;Reference types:- The reference types do not maintain the data but they contain reference to the variables.&lt;br /&gt;String is a reference types &lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;string siteName= "dotnetpgm.blogspot.com"; //string is a set of character.&lt;br /&gt;&lt;br /&gt;Looping statements in c#&lt;br /&gt;&lt;br /&gt;1. The for loop&lt;br /&gt;2. The while loop&lt;br /&gt;3. The do...while loop&lt;br /&gt;&lt;br /&gt;The for loop structure is used to execute a block of statements for a specific number of times.&lt;br /&gt;&lt;br /&gt;//for loop for 5 times iteration&lt;br /&gt;&lt;br /&gt;int index = 0;&lt;br /&gt;for ( int index = 0; index &lt; 5; index++ )&lt;br /&gt;{&lt;br /&gt;Response.WriteLine(index);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//for each is used for array of collection&lt;br /&gt;string[] str = new string[]{ "dotnetblog", "dotnetpgm", "c#" };  //split the string by string by string&lt;br /&gt;&lt;br /&gt;foreach(string c in str)&lt;br /&gt;{ Response.WriteLine(c);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//while is used to check if the condition is true&lt;br /&gt;&lt;br /&gt;int index = 0;&lt;br /&gt;while ( index &lt; 5 )&lt;br /&gt;{&lt;br /&gt;Response.WriteLine(index); ++index;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//do while is used to execute the code and then check the condition(only difference between with while)&lt;br /&gt;int index = 0;&lt;br /&gt;do&lt;br /&gt;{&lt;br /&gt;Response.WriteLine ( index );&lt;br /&gt;index++;&lt;br /&gt;}&lt;br /&gt;while ( index &lt; 5 );&lt;br /&gt;&lt;br /&gt;Using Conditional Constructs  Conditional is used for decision making. The going path is right means we will go if wrong means we will stop there and analyse and then go in the right path. Like this&lt;br /&gt;&lt;br /&gt;//the value is true&lt;br /&gt;bool value=true;&lt;br /&gt;if(value)&lt;br /&gt;{&lt;br /&gt;Response.WriteLine("Yes the value is True");&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;Response.WriteLine("No the value is False");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//switch is used for more conditions but one condition will execute&lt;br /&gt;int index=3;&lt;br /&gt;switch(index)&lt;br /&gt;{&lt;br /&gt;case 1:&lt;br /&gt;Response.WriteLine("Index value is "+index);&lt;br /&gt;break;&lt;br /&gt;case 2:&lt;br /&gt;Response.WriteLine("Index value is "+index);&lt;br /&gt;break;  case 3: Response.WriteLine("Index value is "+index);&lt;br /&gt;break;&lt;br /&gt;}  //the break will quit if the condition execute.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-5495434671438050020?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/5495434671438050020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2010/01/basic-syntax-in-c-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/5495434671438050020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/5495434671438050020'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2010/01/basic-syntax-in-c-language.html' title='Basic Syntax in c# Language'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-7583344753745387530</id><published>2009-09-22T00:24:00.000-07:00</published><updated>2011-07-04T21:37:07.271-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Email'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><title type='text'>How to send email in Asp.net c#</title><content type='html'>&lt;hr /&gt;&lt;br /&gt;How to send email in Asp.net using c#. In Asp.net 2.0,email sending is very easy.In our websites we send a feedback,contact us,registration welcome,Forgot password, news letter etc. to the users mail.By using the Asp.net classes.&lt;br /&gt;we can access to send the email.The Simple Mail Transfer Protocol(SMTP) server is used for deliver the mail&lt;br /&gt;using the System.Net.Mail namespace.&lt;br /&gt;&lt;br /&gt;In System.Net.Mail namespace having two sub classes MailMessage and SmptClient.&lt;br /&gt;&lt;br /&gt;MailMessage contains the properties From,To,Subject,Body etc.&lt;br /&gt;&lt;br /&gt;SmtpClient send the Mailmessage data to the SMTP server.&lt;br /&gt;&lt;br /&gt;The SMTP server Store the emails in a queue.It sends the mail one after another.&lt;br /&gt;&lt;br /&gt;The steps to send email:-&lt;span class="fullpost"&gt;&lt;br /&gt;1.use the namespace.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;using System;&lt;br /&gt;using System.Net.Mail;&lt;br /&gt;using System.Text;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;2.use the MailMessage to send the mail with SMTP Connection Settings.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;MailMessage mailmsg = new MailMessage("yourfromemail@yourdomain.in", "yourtoemail@domain.com");&lt;br /&gt;SmtpClient smtpmail = new SmtpClient();&lt;br /&gt;&lt;br /&gt;mailmsg.Subject = "Account information Verified";&lt;br /&gt;StringBuilder bodyMessage= new StringBuilder();&lt;br /&gt;&lt;br /&gt;bodyMessage.Append("&amp;lt;br&amp;gt;");&lt;br /&gt;bodyMessage.AppendFormat("Response From your domain name");&lt;br /&gt;bodyMessage.Append("&amp;lt;br&amp;gt;");&lt;br /&gt;bodyMessage.AppendFormat("Your Account has been deleted if you are not activate\n\n");&lt;br /&gt;bodyMessage.Append("&amp;lt;br&amp;gt;");&lt;br /&gt;bodyMessage.AppendFormat("So Please follow the link To Activate Your Account with Us!\n\n");&lt;br /&gt;bodyMessage.Append("&lt;b&gt;&lt;a href="http://dotnetpgm.blogspot.com/"&gt;&lt;b&gt;Click Here To Activate Your Account&lt;/b&gt;&lt;/a&gt;&lt;/b&gt;");&lt;br /&gt;bodyMessage.AppendFormat("Registered Email:", "yourtoemail@domain.com");&lt;br /&gt;bodyMessage.AppendFormat("Note:- If U Already Activate your account means Please ignore this message");&lt;br /&gt;&lt;br /&gt;mailmsg.Body = bodyMessage.ToString();&lt;br /&gt;smtpmail.Host = "smtp.yourdomain.in";&lt;br /&gt;smtpmail.Port = 587;&lt;br /&gt;smtpmail.Send(mailmsg);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;the mail will be send to the to address for activating the account information.&lt;br /&gt;&lt;br /&gt;mailmsg.Subject is the subject of our mail.&lt;br /&gt;&lt;br /&gt;mailmsg.Body contains the bodymsg string values.it attach the bodymsg with subject.&lt;br /&gt;&lt;br /&gt;smtp.Host is your smtp server name for eg.&lt;br /&gt;&lt;br /&gt;gmail smtp server is "smtp.gmail.com".&lt;br /&gt;&lt;br /&gt;smtpmail.port is the port by sending the mail.&lt;br /&gt;&lt;br /&gt;smtpmail.Send function is used to concatenate your message,subject and send the mail through the port with the smtp host address.&lt;br /&gt;&lt;br /&gt;Happy to send mail.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-7583344753745387530?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/7583344753745387530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2009/09/how-to-send-email-in-aspnet-c.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/7583344753745387530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/7583344753745387530'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2009/09/how-to-send-email-in-aspnet-c.html' title='How to send email in Asp.net c#'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-7988670672515636003</id><published>2009-09-21T01:05:00.000-07:00</published><updated>2011-07-16T03:56:21.178-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ip Address'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><title type='text'>how to get ip address using asp.net</title><content type='html'>How to get Internet protocol address using asp.net.Internet protocol is a communication between the nodes. Internet protocol, which is used to track a system host and used address the location. If we need to identify the user&lt;br /&gt;who are all accessing our website and store the Internet protocol address in our database is very simple and very easier.&lt;br /&gt;&lt;br /&gt;This is the way to track the users Internet protocol address.Fetch a client's Internet protocol address as soon as he access our web site in asp.net.&lt;br /&gt;Some of them may use a proxy Internet protocol address. But we can get their Internet protocol address with this simple code.&lt;br /&gt;&lt;br /&gt;Here am giving two methods to find the Internet protocol adress.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;using System.Net;//Add the Namespace&lt;br /&gt;//Get Visitor IP address method&lt;br /&gt;public string GetVisitorIpAddress()&lt;br /&gt;{&lt;br /&gt;  string stringIpAddress;&lt;br /&gt;  stringIpAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];&lt;br /&gt;  if (stringIpAddress == null) //may be the HTTP_X_FORWARDED_FOR is null&lt;br /&gt;  {&lt;br /&gt;    stringIpAddress = Request.ServerVariables["REMOTE_ADDR"];//we can use REMOTE_ADDR&lt;br /&gt;  }&lt;br /&gt;  return "Visitor IP is "+stringIpAddress;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//Get Lan Connected IP address method&lt;br /&gt;public string GetLanIPAddress()&lt;br /&gt;{&lt;br /&gt;   //Get the Host Name&lt;br /&gt;   string stringHostName = Dns.GetHostName();&lt;br /&gt;   //Get The Ip Host Entry&lt;br /&gt;   IPHostEntry ipHostEntries = Dns.GetHostEntry(stringHostName);&lt;br /&gt;   //Get The Ip Address From The Ip Host Entry Address List&lt;br /&gt;   IPAddress[] arrIpAddress = ipHostEntries.AddressList;&lt;br /&gt;   return arrIpAddress[arrIpAddress.Length - 1].ToString();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//Get The Visitor Ip Address&lt;br /&gt;string strVisitorIpAddress = GetVisitorIpAddress();&lt;br /&gt;&lt;br /&gt;//Get The Lan Ip Address&lt;br /&gt;string strLanIpAddress = GetLanIPAddress();&lt;br /&gt;&lt;br /&gt;you will get their ip address.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-7988670672515636003?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/7988670672515636003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2009/09/how-to-get-ip-address-in-aspnet.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/7988670672515636003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/7988670672515636003'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2009/09/how-to-get-ip-address-in-aspnet.html' title='how to get ip address using asp.net'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-4501731620478203990</id><published>2009-07-11T00:13:00.000-07:00</published><updated>2011-06-28T05:53:30.251-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Connection String'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><title type='text'>Connection String in Asp.net</title><content type='html'>&lt;hr /&gt;&lt;br /&gt;Connection string in asp.net c#.In Asp.net there is an easier way give the Connection String.we can add more than one Connection String in the web.config file.Then we can access these Connection Strings in any of our Pages.This is a simply superb concept in Asp.net. for example,You have two&lt;br /&gt;Connection Strings one for your local server and another one for your live server.You simply add these two Connections in the web.config file and access the first connection in one page and in another page you can use the next connection.&lt;br /&gt;&lt;br /&gt;ok, how to save this?&lt;br /&gt;&lt;br /&gt;Well,Programming with C# is very easier when compared to other languages.give the coding below in your web.config file,&lt;br /&gt;&lt;br /&gt;in configuration section,&lt;br /&gt;&lt;br /&gt;add the&lt;br /&gt;&amp;lt;connectionStrings&amp;gt;&lt;br /&gt;&amp;lt;add name="Conn" connectionstring="server=.;database=Northwind;Integrated Security=True;"/&amp;gt;&lt;br /&gt;&amp;lt;/connectionStrings&amp;gt;&lt;br /&gt;&lt;br /&gt;what is server?&lt;span class="fullpost"&gt;&lt;br /&gt;may be the server is your localhost or your web server,if localhost means you just give the '.' or if your server is web server means just give the web server address 'XXX.XX.XXX'.&lt;br /&gt;&lt;br /&gt;what is database?&lt;br /&gt;database is the collection of data stored in a system.Its having a unique name.&lt;br /&gt;&lt;br /&gt;what is Integrated Security?&lt;br /&gt;if you are working in localhost means you dont need to give your userid and password.you just give the Integrated Security=True.&lt;br /&gt;&lt;br /&gt;if you are using a webserver means the connection string will be slightly change,&lt;br /&gt;&lt;br /&gt;&amp;lt;connectionStrings&amp;gt;&lt;br /&gt;&amp;lt;add name="Conn" connectionstring="server=XXX.XXX.XX;database=Northwind;uid=yourserveruserid;pwd=yourserverpassword;/&amp;gt;&lt;br /&gt;&amp;lt;/connectionStrings&amp;gt;&lt;br /&gt;&lt;br /&gt;what is uid and pwd?&lt;br /&gt;uid is the userID when the sql installation you will give the userid and password.those userid and password will give here.&lt;br /&gt;&lt;br /&gt;then,next step how to access this in our .aspx.cs file&lt;br /&gt;&lt;br /&gt;add this namespace&lt;br /&gt;using System.Data.Sqlclient&lt;br /&gt;&lt;br /&gt;then add this in&lt;br /&gt;&lt;br /&gt;SqlConnection con=new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString.ToString());&lt;br /&gt;&lt;br /&gt;con.Open();&lt;br /&gt;is used for connection opening&lt;br /&gt;&lt;br /&gt;con.Close();&lt;br /&gt;is used for connection closing.&lt;br /&gt;&lt;br /&gt;This is the way of accessing the Connection Strings in all the pages.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-4501731620478203990?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/4501731620478203990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2009/09/connection-string-in-aspnet-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/4501731620478203990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/4501731620478203990'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2009/09/connection-string-in-aspnet-c.html' title='Connection String in Asp.net'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5377545568883084835.post-2924781956500992273</id><published>2009-02-09T20:39:00.001-08:00</published><updated>2011-06-28T05:46:47.320-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='Gridview'/><title type='text'>Grid view in Asp.Net c#.</title><content type='html'>Grid view control in asp.net 2.0 is the replacement of Data grid in asp.net 1.1.  Grid view is used to bind the data source. The whole database can be viewed in one gridview with colorful and formatted. We can easily view, edit, update and delete the data from this Grid view control. Default Paging is available in this Grid view control. In Asp.net grid view is a very simple and superb control. It reduce our work and perform good.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;//Code for binding the data&lt;br /&gt;&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString.ToString());&lt;br /&gt;if (!IsPostBack)&lt;br /&gt;{&lt;br /&gt;BindGridview();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;In Page load event the grid view function will call in not is post back,&lt;br /&gt;&lt;br /&gt;What is IsPostBack?&lt;br /&gt;The page load event is called when each and every time the page is loaded. If the page is already loaded and waiting for a result means, that time the page could not load again because its not a fresh page. We already give the data in that page.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;public void BindGridview()&lt;br /&gt;{&lt;br /&gt;sqlDataAdapter adap=new sqlDataAdapter("Select * from tablename",con);&lt;br /&gt;DataTable dtcommon=new DataTable();&lt;br /&gt;adap.Fill(dtcommon);&lt;br /&gt;Gridview1.DataSource=dtcommon;&lt;br /&gt;Gridview1.DataBind();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;//Row editing in Grid view&lt;br /&gt;&lt;br /&gt;This is for editing a particular row in grid view, if you click the edit it shows textbox box for all the field in a row.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;protected void Gridview1_RowEditing(object sender, GridViewEditEventArgs e)&lt;br /&gt;{&lt;br /&gt;Gridview1.EditIndex = e.NewEditIndex;&lt;br /&gt;BindGridview();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;//Row updating in grid view&lt;br /&gt;&lt;br /&gt;After clicking the edit button it shows textbox for all the field in a row. In that textbox edit the fields you want.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;protected void Gridview1_RowUpdating(object sender, GridViewUpdateEventArgs e)&lt;br /&gt;{&lt;br /&gt;int key=Convert.ToInt32(Gridview1.DataKeys[e.RowIndex].Value);&lt;br /&gt;TextBox txtuname=(TextBox)Gridview1.Rows[e.RowIndex].Cells[0].Controls[0];&lt;br /&gt;TextBox txtpass = (TextBox)Gridview1.Rows[e.RowIndex].Cells[1].Controls[0];&lt;br /&gt;SqlCommand cmd=new SqlCommand("update tblname set username='"+txtuname.Text+"', password='"+txtpass.Text+"' where userid='"+key.ToString()+"'",con);&lt;br /&gt;con.open();&lt;br /&gt;cmd.ExecuteNonQuery();&lt;br /&gt;con.close();&lt;br /&gt;BindGridview();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;//Row cancel editing in grid view&lt;br /&gt;&lt;br /&gt;If the edit is not need means just click the cancel button, it shows the edit button after clicking&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;protected void Gridview1_RowCancelingEdit(object sender, GridViewEditEventArgs e)&lt;br /&gt;{&lt;br /&gt;Gridview1.EditIndex = -1;&lt;br /&gt;BindGridview();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;//Row delete in grid view&lt;br /&gt;&lt;br /&gt;If you need to delete a particular row just use this code to delete&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;protected void Gridview1_RowDeleting(object sender, GridViewDeleteEventArgs e)&lt;br /&gt;{&lt;br /&gt;int key=Convert.ToInt32(Gridview1.DataKeys[e.RowIndex].Value);&lt;br /&gt;SqlCommand cmd=new SqlCommand("delete from where userid='"+key.ToString()+"'",con);&lt;br /&gt;con.open();&lt;br /&gt;cmd.ExecuteNonQuery();&lt;br /&gt;con.close();&lt;br /&gt;BindGridview();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;//Paging in grid view&lt;br /&gt;&lt;br /&gt;The Paging in grid view is an easier way to do the paging, first set the allowpaging property to true and give the page size in gridview.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;protected void Gridview1_PageIndexChanging(object sender, GridViewPageEventArgs e)&lt;br /&gt;{&lt;br /&gt;Gridview1.PageIndex = e.NewPageIndex;&lt;br /&gt;BindGridview();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;//Gridview on mouse over the colour will differentiate the row&lt;br /&gt;&lt;br /&gt;When mouse over on a row it highlight the current row with gray color and mouseout on a row it shows a normal white color.&lt;br /&gt;&lt;pre class="brush: csharp"&gt;&lt;br /&gt;protected void Gridview1_RowCreated(object sender, GridViewRowEventArgs e)&lt;br /&gt;{&lt;br /&gt;string onmouseoverStyle = "this.style.backgroundColor='gray'";&lt;br /&gt;string onmouseoutStyle = "this.style.backgroundColor='white'";&lt;br /&gt;if (e.Row.RowType == DataControlRowType.DataRow || e.Row.RowState == DataControlRowState.Alternate)&lt;br /&gt;{&lt;br /&gt;e.Row.Attributes.Add("onmouseover", onmouseoverStyle);&lt;br /&gt;e.Row.Cells[0].ToolTip ="Click Here To see Enquiry Details";&lt;br /&gt;e.Row.Attributes.Add("onmouseout", onmouseoutStyle);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;these are the sample code for gridview.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5377545568883084835-2924781956500992273?l=dotnetpgm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetpgm.blogspot.com/feeds/2924781956500992273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetpgm.blogspot.com/2009/02/hhh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/2924781956500992273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5377545568883084835/posts/default/2924781956500992273'/><link rel='alternate' type='text/html' href='http://dotnetpgm.blogspot.com/2009/02/hhh.html' title='Grid view in Asp.Net c#.'/><author><name>Muthuvijayan S</name><uri>http://www.blogger.com/profile/15829574140195602153</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/--Pq1_wi2e4Y/Tjk372ofb9I/AAAAAAAAAMU/jXM4yk4fKB0/s220/muthuvijayans.jpg'/></author><thr:total>0</thr:total></entry></feed>
