Search

You searched for the word(s): userid:768759

Matching Posts

  • Re: How to get the selected row column2 data from Gridview

    Hi! try this . int CompanyID; CompanyID=Gridview1.DataKeys[e.NewSelectedIndex].Values["CompanyID"].ToString(); Response.Redirect("xxx.aspx?CompanyID="&CompanyID) Hope this helps you.
    Posted to Data Presentation Controls (Forum) by lavan on 8/4/2009
  • Send Escape Sequence command to Thermal Printer

    I am using the code at the following link to send raw data to a Thermal receipt printer. http://support.microsoft.com/kb/322091/en-us For the life of me I can not find an example of sending excape sequence characters to the printer. I am using the printer EPSON TM-T88IV Receipt s = chr(12) I am attempting the same thing in C# using the following: string s = ""; char ca = ' '; ca = (char)((int)12); s+= ca.ToString(); This has no effect however and is just ignored. Can somebody please
    Posted to Getting Started (Forum) by lavan on 7/2/2009
  • Re: How to download xml file - C# - ASP.net?

    Hi try this code to download the file. Response.Clear() Response.ContentType = "text/xml" Response.AppendHeader("Content-Disposition", String.Format("attachment;filename={0}", XML_FileName)) Response.TransmitFile(Server.MapPath("MyFile.xml")) Response.End() Hope this helps you...
    Posted to Getting Started (Forum) by lavan on 5/22/2009
  • Re: Control 'rightsCheckBox' referenced by the ControlToValidate property of 'rightsCheckBoxValidator' cannot be validated.

    Hi you have to specify ur javascript function name in the ClientValidationFunction property. Dnt use ClientValidationFunction="checked = true". write a script function to identify whether the checkbox is checked or not. specify that function name in the ClientValidationFunction property of ur custom validator. <asp:CustomValidator ID="rightsCheckBoxValidator" runat="server" ErrorMessage="This Requirement Must Be Met" ControlToValidate="rightsCheckBox"
    Posted to Web Forms (Forum) by lavan on 5/20/2009
  • Re: i am not able to download file . it shows exception

    hi can u place the line Response.Clear() before Response.ContentType like this HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ContentType = "application/octet-stream"; HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + System.IO.Path.GetFileName(filePath));
    Posted to Web Forms (Forum) by lavan on 5/20/2009
  • Re: i am not able to download file . it shows exception

    Hi can u change ur DownloadFile code like this and check. Response.Clear(); Response.ContentType ="application/octet-stream"; Response.AppendHeader("Content-Disposition", "attachment; filename=" + System.IO.Path.GetFileName(filePath)); Response.TransmitFile(Server.MapPath(filePath)); Response.End(); still the problem remains means can u use HttpContext.Current.ApplicationInstance.CompleteRequest() instead of Response.End(). Hope this helps you..
    Posted to Web Forms (Forum) by lavan on 5/20/2009
  • Re: how to fill a dropdownlist after selection of another dropdownlist in vb.net with asp.net

    hi Set AutoPostBack = "true" for the first Dropdown. Then in the first dropdown's SelectedIndexChanged event pass the first DropDown's SelectedValue to your DB query or Procedure to fill the second dropdown. Hope this helps you..
    Posted to Getting Started (Forum) by lavan on 5/20/2009
  • Re: max size javascript validation on multiline textbox behaves differently in IE and FF

    Hi Instead of Javascript you can use the RegularExpression validator to validate the maximum character size in the MultiLine textbox. Try this. <asp:TextBox ID="txtSalutation" runat="server" MaxLength="10" TextMode="MultiLine" Height="50px" Width="200px"></asp:TextBox> <asp:RegularExpressionValidator ID="revtxtSalutation" runat="server" ControlToValidate="txtSalutation" ValidationExpression="
    Posted to Client Side Web Development (Forum) by lavan on 5/7/2009
  • Re: Linkbutton cannot work Mozilla Firefox 3.0.10

    Hi Are using any Validation controls in the page?Can u check the validators of the page.?If any of the validator fires in the page, the server event of the LinkButton is not invoked. So if u dont want to validate the page while click your link button please set CausesValidation="False" for your link button. If you are not using any validators in your page, cn u please put a breakpoint in the LinkButton click event and check whether the server event is invoked or not.
    Posted to Web Forms (Forum) by lavan on 5/7/2009
  • Re: required field validater on drop down list

    Hi Haansi, you have to set Initial Value for the RequiredFiled Validator <asp:DropDownList ID="ddlItems" runat="server" > </asp:DropDownList> <asp:RequiredFieldValidator ID="rfvddlItems" runat="server" ControlToValidate="ddlItems" ErrorMessage="Please Select" InitialValue="0"></asp:RequiredFieldValidator> Hope this helps you...
    Posted to Web Forms (Forum) by lavan on 5/7/2009
Page 1 of 18 (171 items) 1 2 3 4 5 Next > ... Last »