- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我单击 ASP.NET 页面上的按钮控件时,我的单选按钮列表在回发后未选中地返回。
<asp:RadioButtonList ID="rblSgkOzel" runat="server" EnableViewState="true">
<asp:ListItem Text="SGK Kapsamında" Value="sgk" Selected="True"/>
<asp:ListItem Text="Özel" Value="ozel" />
<asp:ListItem Text="Hasta Adına" Value="hasta" />
</asp:RadioButtonList>
<小时/>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="denemeRepeater.aspx.cs"
Inherits="KlinikMuhasebe.denemeRepeater" %>
<%@ Import Namespace="MedulaRADClassLib" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="JS/reset-fonts-grids.css" rel="stylesheet" type="text/css" />
<link href="css.css" rel="stylesheet" type="text/css" />
<link href="_cssV3.css" rel="stylesheet" type="text/css" />
<script src="JS/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="JS/liquid-canvas.js" type="text/javascript"></script>
<script src="JS/liquid-canvas-plugins.js" type="text/javascript"></script>
<script type="text/javascript" src="js_Eski/JScript.js" language="javascript"></script>
<script type="text/javascript" src="js_Eski/overlib.js" language="javascript"></script>
<script src="JS/boxy/jquery.boxy.js" type="text/javascript"></script>
<style>
.imgOpenClose
{
}
body
{
color: Black;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
$('.imgOpenCloseKurum').click(function() {
if ($(this).attr("src") == "images/openTree.gif") {
$(this).attr("src", "images/closeTree.gif");
$($(this).parent().get(0)).find('div').eq(0).show();
}
else {
$(this).attr("src", "images/openTree.gif");
$($(this).parent().get(0)).find('div').eq(0).hide();
}
});
$('.imgOpenClose').click(function() {
if ($(this).attr("src") == "images/openTree.gif") {
$(this).attr("src", "images/closeTree.gif");
$(this).parent().find('div').eq(0).show();
}
else {
$(this).attr("src", "images/openTree.gif");
$(this).parent().find('div').eq(0).hide();
}
});
$("input:radio").click(function() {
$("input:radio").each(function() {
$(this).attr("checked", "")
});
$(this).attr("checked", "checked");
}).attr("checked", "");
$("input:checkbox").click(function() {
if ($(this).attr('checked')) {
$(this).next().html("Ücretli Seans");
//$(this).attr('checked', '');
}
else {
$(this).next().html("Bedelsiz Seans");
//$(this).attr('checked', 'checked');
}
})
});
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div style="text-align: left;">
<div class="divKriter">
<table>
<thead>
<tr>
<th colspan="2">
FATURA BASKI KRİTERLERİ
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<asp:RadioButtonList ID="rblSgkOzel" runat="server" EnableViewState="true">
<asp:ListItem Text="SGK Kapsamında" Value="sgk" Selected="True"/>
<asp:ListItem Text="Özel" Value="ozel" />
<asp:ListItem Text="Hasta Adına" Value="hasta" />
</asp:RadioButtonList>
</td>
<td>
<asp:TextBox ID="txtTarihi" runat="server" ToolTip="Son Tarihi" />
<cc1:CalendarExtender ID="txtTarihi_CalendarExtender" runat="server" Enabled="True"
TargetControlID="txtTarihi" Format="dd.MM.yyyy">
</cc1:CalendarExtender>
<br />
<asp:CheckBox ID="cbBedelsiz" runat="server" Text="Ücretli Seans" Checked="true" />
<br />
<asp:Button ID="btnFaturaNolariGetir" runat="server" Text="Faturaları Getir" OnClick="btnFaturaNolariGetir_Click" />
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:DropDownList ID="ddlFaturaNolar" runat="server" />
<asp:Button ID="btnFaturaDetaylariniGetir" runat="server" Text="Fatura Detayları"
OnClick="btnFaturaDetaylariniGetir_OnClick" />
</td>
</tr>
</tbody>
</table>
</div>
<br />
<br />
<br />
<br />
<asp:Repeater ID="rptSGK" runat="server" OnItemDataBound="rpt_OnItemDataBound">
<ItemTemplate>
<div class="divKurumItem">
<img class="imgOpenCloseKurum" src="images/openTree.gif" />
<asp:RadioButton ID="rbKurum" runat="server" GroupName="rbKurumlar" />
<%# DataBinder.Eval(Container.DataItem, "kurumAdi")%>
<div style="display: none; margin-left: 10px;">
<asp:Repeater ID="rptHastalar" runat="server" OnItemDataBound="rptHastalar_OnItemDataBound">
<ItemTemplate>
<div style="display: block; margin-left: 10px;">
<img class="imgOpenClose" src="images/openTree.gif" />
<%# DataBinder.Eval(Container.DataItem, "adiSoyadi")%><br />
<div id='hid_<%# DataBinder.Eval(Container.DataItem, "refHasta_id")%>' style="margin: 10px;
display: none;">
<asp:HiddenField runat="server" ID="hdn1" Value='<%# total = 0 %>' />
<asp:Repeater ID="rptSeanslar" runat="server">
<HeaderTemplate>
<table border="1" cellpadding="5" cellspacing="2" style="margin-left: 30px;">
<thead>
<tr>
<th>
Seans Tarihi
</th>
<th>
Başvuru No.
</th>
<th>
Fatura Teslim No.
</th>
<th>
Fatura No.
</th>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%# DataBinder.Eval(Container.DataItem, "tarihi", "{0:d}") %>
</td>
<td>
<%# (rblSgkOzel.SelectedIndex==0) ? DataBinder.Eval(Container.DataItem, "basvuruNo") : "" %>
</td>
<td>
<%# (rblSgkOzel.SelectedIndex==0) ? DataBinder.Eval(Container.DataItem, "faturaTeslimNo") : "" %>
</td>
<td>
<%# (rblSgkOzel.SelectedIndex==0) ? DataBinder.Eval(Container.DataItem, "faturaNo") : ""%>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</tbody> </table> </div>
</FooterTemplate>
</asp:Repeater>
</div>
<asp:HiddenField runat="server" ID="hdn" Value='<%# total = total + 1 %>' />
</ItemTemplate>
<FooterTemplate>
<div style="width: 500px; text-align: right; display: block;">
Toplam Satır Sayısı:
<%# total %>
</div>
</FooterTemplate>
</asp:Repeater>
</div>
<br />
</div>
</ItemTemplate>
</asp:Repeater>
<br />
<br />
<asp:Repeater ID="rptOzel" runat="server" OnItemDataBound="rpt_OnItemDataBound">
<ItemTemplate>
<div class="divKurumItem">
<img class="imgOpenCloseKurum" src="images/openTree.gif" />
<asp:RadioButton ID="rbKurumOzel" runat="server" GroupName="rbKurumlar" />
<%# DataBinder.Eval(Container.DataItem, "kurumAdi")%>
<div style="display: none; margin-left: 10px;">
<asp:Repeater ID="rptHastalar" runat="server" OnItemDataBound="rptHastalar_OnItemDataBound">
<ItemTemplate>
<div style="display: block; margin-left: 10px;">
<img class="imgOpenClose" src="images/openTree.gif" />
<%# DataBinder.Eval(Container.DataItem, "adiSoyadi")%><br />
<div id='hid_<%# DataBinder.Eval(Container.DataItem, "refHasta_id")%>' style="margin: 10px;
display: none;">
<asp:HiddenField runat="server" ID="hdn1" Value='<%# total = 0 %>' />
<asp:Repeater ID="rptSeanslarOzel" runat="server">
<HeaderTemplate>
<table border="1" cellpadding="5" cellspacing="2" style="margin-left: 30px;">
<thead>
<tr>
<th>
Seans Tarihi
</th>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<asp:CheckBox ID="cbSeansOzel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "tarihi", "{0:d}") %>' />
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</tbody> </table> </div>
</FooterTemplate>
</asp:Repeater>
</div>
<asp:HiddenField runat="server" ID="hdn" Value='<%# total = total + 1 %>' />
</ItemTemplate>
<FooterTemplate>
<div style="width: 500px; text-align: right; display: block;">
Toplam Satır Sayısı:
<%# total %>
</div>
</FooterTemplate>
</asp:Repeater>
</div>
<br />
</div>
</ItemTemplate>
</asp:Repeater>
</div>
</form>
</body>
</html>
最佳答案
更新:在您发布更新的代码后,我可以看出问题出在您的 jQuery 代码中。它被设置为在页面加载后立即取消选中所有单选按钮。
您需要更改此设置:
$("input:radio").click(function() {
$("input:radio").each(function() {
$(this).attr("checked", "") //uncheck all radio buttons in page
});
$(this).attr("checked", "checked"); //check only the selected radio
}).attr("checked", ""); //Unchecks all radio buttons when page loads
对此:
$("input:radio").click(function() {
$("input:radio").each(function() {
$(this).attr("checked", "")
});
$(this).attr("checked", "checked");
});
我添加了注释来解释您的 jQuery 代码正在做什么。
关于asp.net - RadioButtonList 回发后未选中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/843479/
我打算使用 vulkan synchronization examples 之一作为如何处理不经常更新的统一缓冲区的引用。具体来说,我正在看这个: vkBeginCommandBuffer(...);
我对 git 的了解有限。 我已经从 master 创建了一个分支 B1,进行了一些编辑并提交到这个分支。 我想从 B1 创建另一个分支 B2,我在 B2 中进行了一些编辑 而且我还想提交 B2(包含
这是我做的 我创建了一个分支 abc。然后我创建了两个文本文件 one.txt 和 two.txt。然后我将它们提交到分支 abc。然后我从分支中删除文件 one.txt 并将这些更改提交到分支。 现
在我的主分支中,我得到了 2 个文件: file1.txt file2.txt 我从那里创建了名为 b1 的新分支。在b1中,我修改了file2.txt,不小心删除了file1.txt(从磁盘中,当我
我是 git 的新手。 我创建了一个分支,进行了更改,现在我想 merge 回 master 以使它们“永久化”。 所以我执行了 git merge 1.2 报告为已经是最新的,在 master 上执
我在一个新团队中,工作方式与我以前习惯的完全不同,我们在功能分支上工作,测试人员会在该功能分支上进行测试,然后我们会运行一个 jenkins 作业在该功能被测试签署时将该功能 merge 到开发中,根
我目前正在学习动态内存管理是如何工作的,更具体地说是 realloc 以及它是如何在函数中完成的。 在下面的程序中,我只是想尝试使用 malloc 在函数 a() 中分配一些数字,然后将它们传递给另一
在 Java 中如何从另一个线程分派(dispatch)回主 UI 线程?我正在使用带有 Runnable 的执行器在主 UI 线程之外做一些工作,并且我有一个接口(interface),以便可以通过
我在 git 中有一个项目,所有的事情都直接在 master 分支上完成,标签被用来标记代码的发布版本。我知道这并不理想,并且一直在查看 git 流程,例如:http://nvie.com/posts
我们有一个相当大的 GIT 存储库,我想删除从未 merge 回 master 的分支。 反过来也很好 - 一种列出在某个时候已 merge 到 master 中的所有分支的方法。 我希望首先获取一个
在 Swift 和 C 之间传递字符串时,我看到一些我不理解的行为。请考虑以下 Swift 函数: func demo() { print("\n\n\n\n")
我以前从未合作过,现在我发现自己需要与其他一些人分享这个项目,即使我将完成 90% 的开发工作。 我在 github 上有一个私有(private)仓库。我用 推送了我的初始源 git push or
我们的项目使用 Gitlab,我们有两个长期存在的分支:dev 和 master,类似于 Git Flow。我们正在使用“merge 提交”方法,它将在主分支中创建一个 merge 提交。 但是,由于
我对自定义 View 的绑定(bind)属性有疑问。该属性绑定(bind)到核心数据实体的 NSArrayController。 问题是这样的: 在我看来,我画了几个矩形。这些矩形的位置保存在核心数据
这对我来说似乎太棘手,无法正确执行此操作。 我有一个TreeMap ,我正在获取其中的子图: public static reqObj assignObj(reqObj vArg, i
我有以下 XAML: 所以,基本上我希望将其中一
我正在使用 Angular js 1.3.4 版本并使用 ui-select。 我正在将复杂的多级 JSON 对象数组绑定(bind)到此 ui-select,它工作正常。因此用户可以在此选择中选择任
我正在使用 WebAPI 构建 API,并且一直在使用 NLog 在整个堆栈中进行日志记录。我的 API 解决方案有两个主要项目,包括: 实现 Controller 和 webapi 东西的网站层本身
在 Git 中,给定 (1) 一个分支 A 和 (2) 一个在过去某个时间从 A 派生的分支 B,然后 merge 回 A,我如何才能找到现在 A 中起源于 B 的所有提交? 目的是确定现在在 A 中
假设我的 Controller 如下所示: public class myController { private MyCustomItem acte; ... // gett
我是一名优秀的程序员,十分优秀!