我有两页.从第一页开始,我打开一个带有查询字符串的模态,该查询字符串包含客户端名称的值.然后我用它在打开的模态上设置一个隐藏字段.
我需要在新模态上使用TextBox来显示从第一个屏幕发送的值.
我尝试使用以下方法获取值:
var hv = $('hidClientField').val();`
Run Code Online (Sandbox Code Playgroud)
但这似乎不起作用.
这是我隐藏的领域:
<asp:HiddenField ID="hidClientName" runat="server" />`
Run Code Online (Sandbox Code Playgroud)
我在Page_Load后面的代码中设置它,如下所示:
hidClientName.Value = Request.QueryString["Client_Name"] ?? "";`
Run Code Online (Sandbox Code Playgroud)
任何想法将不胜感激.
我已经为Visual Studio 2010安装了Service Pack 1.我在Target Schema for Validation中获得了HTML 5选项,但是当我打开一个.css文件来更改CSS Version for Validation时,我没有CSS 3的选项我是ASP.Net的新手,不知道为什么不存在这个?我(从研究中)假设安装SP1会给我这个选项吗?
我有以下HTML代码:
<tr>
<td>
<span>Random question here?</span>
</td>
<td>
<asp:RadioButtonList ID="someList" runat="server" SelectedValue="<%# Bind('someValue') %>" RepeatDirection="Horizontal" CssClass="radioList">
<asp:ListItem Text="Yes" Value="1"></asp:ListItem>
<asp:ListItem Text="No" Value="4"></asp:ListItem>
<asp:ListItem Text="Don't Know" Value="2"></asp:ListItem>
</asp:RadioButtonList>
</td>
<td>
<asp:TextBox ID="txtSomeValue" runat="server" Height="16px" CssClass="someScore" Enabled="false" Text="0"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="txtSomeTotal" runat="server" Height="16px" CssClass="someTotal" Enabled="false" Text="0"></asp:TextBox>
<asp:Label ID="lblTFTotal" runat="server" Font-Bold="true" Font-Italic="true" Text="Your selected value is"></asp:Label>
</td>
</tr>
Run Code Online (Sandbox Code Playgroud)
我需要编写一个jQuery函数,用从RadioButtonList中选择的值填充'txtSomeValue'TextBox,然后计算所选的所有值(从这些RadioButtonLists中的大约10个)到'txtSomeTotal'TextBox.
我对jQuery很新.任何帮助都是极好的.
谢谢