< asp:LinkButton runat="server" ID="hl1" CommandName="download" CommandArgument='< %# Eval("Attachment_Path") & "," & Eval("Attachment_FileName") %>'
Text='<%# Eval("Attachment_FileName") %>'>< /asp:LinkButton>
Search This Blog
Tuesday, November 30, 2010
Gridview RowCommand
<asp:LinkButton runat="server" ID="hl1" CommandName="download" CommandArgument='< %# Eval("Attachment_Path") & "," & Eval("Attachment_FileName") %>'
Text='<%# Eval("Attachment_FileName") %>'>< /asp:LinkButton>
Text='<%# Eval("Attachment_FileName") %>'>< /asp:LinkButton>
Labels:
GridView
Monday, November 1, 2010
Validate-AjaxFilterExtender
< ajaxToolkit:FilteredTextBoxExtender ID="ftbe" runat="server"
TargetControlID="TextBox3"
FilterType="Custom, Numbers"
ValidChars="+-=/*()." />
TargetControlID="TextBox3"
FilterType="Custom, Numbers"
ValidChars="+-=/*()." />
Validation- CustomValidators:CheckboxList
< script type="text/javascript">
//– To Validate CheckBoxList
function ChequarSelecciondeTipoModificacion(source, args)
{
var chkListaTipoModificaciones= document.getElementById ('<%= CheckBoxList1.ClientID %>');
var chkLista= chkListaTipoModificaciones.getElementsByTagName("input");
for(var i=0;i {
if(chkLista[i].checked)
{
args.IsValid = true;
return;
}
}
args.IsValid = false;
}
< /script>
< asp:CheckBoxList ID="CheckBoxList1″ runat="server">
< /asp:CheckBoxList>
< asp:CustomValidator ID="CustomValidator1″ runat="server" ErrorMessage=”" ClientValidationFunction=”ChequarSelecciondeTipoModificacion”>< /asp:CustomValidator>
//– To Validate CheckBoxList
function ChequarSelecciondeTipoModificacion(source, args)
{
var chkListaTipoModificaciones= document.getElementById ('<%= CheckBoxList1.ClientID %>');
var chkLista= chkListaTipoModificaciones.getElementsByTagName("input");
for(var i=0;i
if(chkLista[i].checked)
{
args.IsValid = true;
return;
}
}
args.IsValid = false;
}
< /script>
< asp:CheckBoxList ID="CheckBoxList1″ runat="server">
< /asp:CheckBoxList>
< asp:CustomValidator ID="CustomValidator1″ runat="server" ErrorMessage=”" ClientValidationFunction=”ChequarSelecciondeTipoModificacion”>< /asp:CustomValidator>
Subscribe to:
Posts (Atom)