Click here to Skip to main content
15,917,610 members

Comments by giatuan2011 (Top 50 by date)

giatuan2011 30-Jul-12 1:32am View    
How to get content of line?
for example:string keep=line[0]
string keep=line[2]
giatuan2011 28-Jul-12 1:09am View    
How to reduce Count when I hit back or delete dots?
giatuan2011 22-Jun-12 8:41am View    
I mean you enter St and combobox appears.It will find the item named String.Press tab and richtext replace St with String
giatuan2011 22-Jun-12 8:38am View    
The solution is useful.
It uses the system.dll.
I just added project> ClassLibrary in C# 2008 to make dll.But I will have trouble when I want to add function into .Dll file.I have to recompile dll.
giatuan2011 18-Jun-12 14:05pm View    
Sorry,I use DropdownList in GridView.My RowDataBound:
protected void grdContact_RowDataBound(object sender, GridViewRowEventArgs e)
{
ContactTypeTableAdapter contactType = new ContactTypeTableAdapter();
DataTable contactTypes = GetData();
if (e.Row.RowType == DataControlRowType.DataRow)
{
DropDownList cmbType = (DropDownList)e.Row.FindControl("cmbType");
if (cmbType != null)
{
cmbType.DataSource = contactTypes;
cmbType.DataTextField = "ProductName";
cmbType.DataValueField = "ProductId";
cmbType.DataBind();
cmbType.SelectedValue = grdContact.DataKeys[e.Row.RowIndex].Values[0].ToString();
}
//DataKeysName is ProductName.
}
I can get selectedValue when using:
grdContact.DataKeys[e.Row.RowIndex].Values[0].ToString().Insert(5," ");
if Productid is 'PS00000001',It can't get PS001