How to pass string from IWizrad run started method to razor mvc project template (.cshtml file)
-
2012년 4월 13일 금요일 오전 6:27
i have one razor mvc project template with wizard concept. i want to pass some string from wizard application to .cshtml file. i have passed using RunStarted method of wizard application. Please check code below.
public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams)
{
try
{
dte = automationObject as DTE;.............................................................................................................
replacementsDictionary.Add("$ProductA$", "Mobile");
.................................................................
}
catch()
{
}
}
in Template .cshtml file please check the code.
<html>
<head> </head>
<body>
"$ProductA$"
</body>
</html>
but the the value of "$ProductA$" is not replaced in .cshtml page. but it was working fine in .Aspx page .CS page. how can do that in .cshtml.
urgent requirement.
Please anyone help.
Thanks..
siva
- 이동됨 Vicky Song 2012년 4월 16일 월요일 오전 7:38 (From:Visual Studio Setup and Installation)
모든 응답
-
2012년 4월 13일 금요일 오전 8:39
Hi Anyone,
Please reply for the above question.
I am waiting for the solution. It is very urgent.
Please help me.
Thanks.
Siva
siva
-
2012년 4월 16일 월요일 오전 2:45
Hi siva,
In fact, Razor MVC project is belongs to ASP.NET, I referred to http://msdn.microsoft.com/en-us/gg618477. So please post your question to http://forums.asp.net/ for better support.
Thanks for understanding.
Best regards,
Barry Wang [MSFT]
MSDN Community Support | Feedback to us

