Try writing the row deleting event in your code behind file
protected void OnRowDeleting(GridViewDeleteEventArgs e)
{
...
}
if you don't need this event make sure that it is not called in your aspx file..
HTH, Neh
Try writing the row deleting event in your code behind file
protected void OnRowDeleting(GridViewDeleteEventArgs e)
{
...
}
if you don't need this event make sure that it is not called in your aspx file..
HTH, Neh
Yes, thanks for pointing that out.. :)
Regards, Neh
Just use - ToCharArray()
string strTest = "1100110101";
char[] cList = strTest.ToCharArray();
modified on Friday, April 16, 2010 7:33 AM
set the
CausesValidation = "false"
property of the clear button.
myGridview.Sort("Column1", SortDirection.Descending);
am looking into it.. will let u know..
Tested the code below.. works fine.. let me know if u r facing an issue.
printDocument1.DocumentName = "C:/Test.doc";
printDocument1.PrinterSettings.PrinterName = @"\\\\my-domain\\AAA-HP9050-P1";
printDialog1.Document = printDocument1;
if (printDialog1.ShowDialog() == DialogResult.OK)
printDocument1.Print();
HTH, Neha
It is a Crystal - ReportDocument.. used in a web app.. has your query been resolved?
You can have a dropdown allowing the user to choose the printer and then based on the selected value set the PrintOptions.PrinterName in the code-behind file - in the print button's click event.. Example protected void btnPrint_Click(object sender, EventArgs e) { if (ddlPrinter.SelectedValue == "S")//Printer 1 myReportDocument.PrintOptions.PrinterName = @"\\my-domain\AAA-HP9050-P1"; else if (ddlPrinter.SelectedValue == "A")//Printer 2 myReportDocument.PrintOptions.PrinterName = @"\\another\OOO-hp4250-p2"; }
HTH Neh
r u using a formview or gridview.. if so then the controls will display only if there is data..unless u specify the emptydatatext..
ctrl.Attributes.Add("OnClick", "if(!confirm('Do you want to Delete?!')) return false;");