2013-02-15 2 views
1

바인딩하는 모듈 팝업을 열려고하는데 오류가 표시됩니다. 내가 사용하는 코드는 다음과 같습니다DotNetNuke의 열린 모듈 URL?

그래서

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 (:).

, 어떻게 데이터 그리드에서 studentID에 따라 모듈을 열 수 있습니다

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); 
} 

그것은이 오류가 보여?

답변

2

팝업 URL에 response.redirect를 할 수 없습니다.

PopUp url에는 일부 자바 스크립트가 포함되어 있으며 일반적인 URL이 아닙니다.

더 나은 옵션은 학생 출석 목록에 HyperLink를 사용하고 NavigateUrl을 ItemDataBound의 PopUrl에 설정하는 것입니다.