我正在使用 Telerik MVC 扩展中的一个窗口,该窗口将在事件中弹出并显示一个我传递给窗口的值。所以,当它打开时,我需要将一个值传递给该弹出窗口:
这是弹出窗口
Html.Telerik().Window()
.Name("popUpWin")
.Title("Submit")
.Content(() => {%>
<% using (Html.BeginForm("archExp", "Explorer", FormMethod.Post, new { id = "Submit" }))
{%>
<p> Please specify Directory name</p>
<label for="name">Name: </label>
<%= Html.TextBox("name") %>
<label for="name">Parent: </label>
<%= Html.TextBox("parent", value ,new { @readonly = true })%>
<div class="form-actions">
<button type="submit" class="t-button">Submit !</button>
</div>
<% }})
.Width(200)
.Draggable(true)
.Modal(true)
.Visible(false)
.Render();
%>
这是打开它的调用:
//Open the Window
$('#popUpWin').data('tWindow').open(**value**);
问题是当我尝试在窗口内容中使用那个“值”时,它给了我
错误 4 当前上下文中不存在名称“值”
我该如何解决?