Article archive

SQL Implementation

28/07/2009 16:02
  Select         What do we use SQL commands for? A common use is to select data from the tables located in a database. Immediately, we see two keywords: we need to SELECT ...

Coding Standards

28/07/2009 15:20
                1.    Introduction Anybody can write code. With a few months of programming experience, you can write 'working...

Anchor (Add Link with in a Page)

24/06/2009 15:37
To link to a location on the same page, you need two anchor tags. Hyperlink Reference <a href=></a> Name Tag <a name=></a>  This configuration is used for the common Back to Top link on HTML pages.    <a href="#destination_name">Destination</a>  <a...

Web Service and get Individual vaues from webservice

16/06/2009 16:36
For Import webservice class  using net.webservicex.www;   ArrayList a = new ArrayList();   CurrencyConvertor cc = new CurrencyConvertor();   //Response.Write(cc.ConversionRate(Currency.USD, Currency.INR));   GlobalWeather g = new GlobalWeather();   ...

CrystalReport in VB.Net with C#

03/06/2009 17:09
 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using backendconnection; using CrystalDecisions.CrystalReports.Engine; using...

Cookies

03/06/2009 11:46
Put Cookies in system:  HttpCookie hc = new HttpCookie("test");  hc.Values.Add("ip", System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName()).GetValue(0).ToString());  hc.Expires = DateTime.Now.AddSeconds(10);  Response.Cookies.Add(hc); Get Cookies from System string ip=...

Get Client IP Address

03/06/2009 10:21
Response.Write(System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName()).GetValue(0).ToString());

Reset Controls

02/06/2009 17:27
 protected void ResetButton1_Click(object sender, EventArgs e)   {   ResetFormControlValues(this);   }   private void ResetFormControlValues(Control parent)   {   foreach (Control c in parent.Controls)   {   if...

Cross Postback

02/06/2009 16:19
Note: Use Linkbutton or Hyperlink for postback dont use Response.Redirect()   In Default4: <%@ PreviousPageType VirtualPath="~/Default3.aspx" %> In Default3.cs private string getstr;   public string Getstr   {   get { return getstr; }   set { getstr =...

Online Polling

02/06/2009 16:04
 static int count = 0;   static decimal countA = 0;   static decimal countB = 0;   decimal perA = 0;   decimal perB = 0;   protected void LinkButton1_Click(object sender, EventArgs e)   {   lblA.BackColor = Color.Blue;   //widthA...