Click here to Skip to main content
15,896,348 members

Comments by anghan22 (Top 7 by date)

anghan22 27-Apr-13 0:16am View    
i want to string and int concat plz give me..
soluction


e.g

KK-2
AA-3


above look like...
anghan22 22-Apr-13 8:54am View    
round clearity color frm tom rap
BR IF D 0.15 0.17 500
BR VVS1 E 0.15 0.17 600
BR IF D 0.30 0.39 1000
BR VVS1 E 0.30 0.39 200
Above my table look like
when textbox value 0.32 insert enter then check Clearity="IF",color="D then textbox get record 1000
anghan22 22-Apr-13 8:46am View    
if i enter 0.16 then i have to select color y
then i enter 0.32 then to select color w
anghan22 21-Apr-13 3:15am View    
above my code when click onsingle time select image button at that time all row in griedview
change value in txtrap field griedview textbox...

i have to one by one get value in txtrap taxtbox...

please help..
anghan22 21-Apr-13 3:12am View    
if (e.CommandName == "select")
{

for (int i = 0; i < gv_rap.Rows.Count; i++)
{
var color = ((Label)gv_rap.Rows[i].Cells[3].FindControl("lblcolor")).Text.Trim(); //If its label
var cl = ((Label)gv_rap.Rows[i].Cells[4].FindControl("lblclearity")).Text.Trim();
var shape = ((Label)gv_rap.Rows[i].Cells[7].FindControl("lblshape")).Text.Trim();
string frm = ((DropDownList)gv_rap.Rows[i].Cells[12].FindControl("ddlfrm")).Text.Trim();
string to = ((DropDownList)gv_rap.Rows[i].Cells[13].FindControl("ddlto")).Text.Trim();

TextBox txtrap = ((TextBox)gv_rap.Rows[i].Cells[14].FindControl("txtrap"));
string str = "select rap from test where frm='" + frm+ "'and tom='" + to + "'and round='" + shape + "'and clearity='" + cl + "'and color= '" + color + "'";
SqlCommand cmd = new SqlCommand(str, conn);
conn.Open();
SqlDataReader reader = cmd.ExecuteReader();

if (reader.Read())
{

txtrap.Text= reader["rap"].ToString();

reader.Close();

conn.Close();
}

}