I've GridView and in each row I've PING button, which ping IP adress of selected row. I can ping without problem when the project is run from Visual Studio, but when I run it like a client (SERVER IIS) it don't works ( Here is my code:
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "PingButton")
{
// Retrieve the row index stored in the
// CommandArgument property.
int index = Convert.ToInt32(e.CommandArgument);
// Retrieve the row that contains the button
// from the Rows collection.
GridViewRow row = GridView1.Rows[index];
string ip = row.Cells[4].Text;
System.Diagnostics.Process.Start("cmd.exe", "/k ping -t " + ip);
}
}