RouteURL和null问题?

时间:2016-12-05 19:25:28

标签: c#

所有

还在学习这些东西,所以不确定我错过了什么。

这是我想传递给服务器的路径。

//_T() macro giving error.
// 'Ls' : undeclared identifier.identifier "Ls" is undefined.
LPCTSTR path_s = _T(path.c_str());
int x = GetPrivateProfileInt(L"x",L"y",1,path_s);
当我运行代码时,

databaseId为null(在上面一行的末尾)。

此代码上方几行正常运行

model.CreditReportHistoryRoute = Url.RouteUrl(CreditReportHistoryDialogController.RouteGetInitialData, new { databaseId = 12345 }).Replace("12345", "{databaseId}");

这是控制器/路线代码

model.ReportRoute = Url.RouteUrl(RequestReportRoute, new { subjectId = 12345 }).Replace("12345", "{subjectId}");

THX jonpfl

0 个答案:

没有答案