Wednesday, October 15, 2008

.net (i see abit of light)

Finally i can do some stuff, i have bit of progress in asp.net, not much but a big deal for me..
Here are some codes..i used...

String passParam1 = GridView1.SelectedValue.ToString();
// store the selected row into row object
GridViewRow selectedRow = GridView1.SelectedRow;
//i want to just get the path of the selected school
String pathSelected = selectedRow.Cells[5].Text;


SqlDataSource1.SelectCommand = "Select * from ppgroup where path like '" + pathSelected + "____'";
//textboxPath1.Text = pathSelected + " pc: " + pageCountz;

URL Reference: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridviewrow.aspx

No comments: