I have a Bootstrap Model popup:
Here can be a solution and follow bellow steps:
Trigger GridView RowCommand event in first UpdatePanel upModel as like:
And finally run below StringBuilder code in RowCommand event:
case "EditRow":
lblID.Text = id;
txtName.Text = name;
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append(@"");
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "MyModal",
sb.ToString(), false);
break;
It will display popup on edit click as: