a record on a jquery dialog and pass the
value to a textbox on Page1. I am using
function SelectGrid to pass the value, but
is not working.
Page1.aspx
[code]
$(document).ready(function() {
$("#btnLookUp").click(function() {
$("#searchActor").dialog({
autoOpen: "false",
resizable: "false",
height: "250",
width: "320"
});
});
});
$(document).ready(function() {
$("#btnSearch").click(function() {
$("#actorsList").load("LookUp/ActorsList.aspx", { lname: $("#txtSearchCriteria").val() });
});
return false;
});
function SelectGrid(objValue, itemValue , popUpDialog) {
$(objValue).val(itemValue);
$(popUpDialog).dialog("close");
}
[/code]
ActorsList.aspx Codebehind
[code]
private void LoadActors(string param)
{
DataTable dt = new DataTable();
//Execute stored proc
Response.Write("
| " + "" + " | ");" + dr[2].ToString() + " | ");" + dr[3].ToString() + " | ");" + dr[4].ToString() + " | ");
}
[/code]
Replies
Know the answer? Post it — somebody with the same question will find it here.