1
我正在使用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名稱'值'在當前上下文中不存在
我該如何解決這個問題?