I am trying to open a module popup which binds, but it shows an error. The code I'm using is:
protected void grdStudentAttendanceList_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "ViewStudent")
{
lbntSurnnameClick(e.CommandArgument.ToString());
}
}
void lbntSurnnameClick(string StudentID)
{
string url = UrlUtils.PopUpUrl(EditUrl("StudentID", StudentID, "AddOrUpdateStudent"), this, PortalSettings,true,false, 390, 670);
Response.Redirect(url);
}
It shows this error:
potentially dangerous Request.Path value was detected from the client (:).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: A potentially dangerous Request.Path value was detected from the client (:).
So, how can I open the module according to studentID
from a data grid?