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>

Gridview RowCommand

<asp:LinkButton runat="server" ID="hl1" CommandName="download" CommandArgument='< %# Eval("Attachment_Path") & "," & Eval("Attachment_FileName") %>'
Text='<%# Eval("Attachment_FileName") %>'>< /asp:LinkButton>

Monday, November 1, 2010

Validate-AjaxFilterExtender

< ajaxToolkit:FilteredTextBoxExtender ID="ftbe" runat="server"
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>