Monday, January 19, 2009

डेट परसे इन sql

DateTime.Parse(Request["ctl00$ContentPlaceHolder1$GridView1$ctl0"+Rownum.ToString()+"$txt_date"], new CultureInfo("fr-FR", false));

Friday, January 16, 2009

Using DropDownList control in DataGrid

http://www.csharphelp.com/archives/archive212.html

GridView add multiple controls to edit item template


Text='<%# Bind("project") %>'>
OnClick="LinkButton3_Click">PV

Reading values from Gridview Item Templates

//write this coding in gridview1_RowUpdating event // Read the values from Text Box String name = ((TextBox)(gridview1.Rows[e.RowIndex].FindControl("NAME"))).Text; //Read the values from Label String ID = ((Label)(dgSummary.Rows[e.RowIndex].FindControl("ID"))).Text; //Read Html Check Box value boolean bol=((HtmlInputCheckBox)(gridview1.Rows[e.RowIndex].FindControl("CheckBox1"))).Checked

An API for Google Image Search

find the url listed below

http://www.codeproject.com/KB/IP/google_image_search_api.aspx

Upload any type of File through a C# Web Service

http://www.c-sharpcorner.com/UploadFile/scottlysle/UploadwithCSharpWS05032007121259PM/UploadwithCSharpWS.aspx

Get Values from CheckBoxList

String values = "";
for (int i=0; i< cbl.Items.Count; i++)
{
if(cbl.Items[i].Selected)
{
values += cbl.Items[i].Value + ",";
}
}

values = values.TrimEnd(',');