Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9215663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:15:16+00:00 2026-06-18T02:15:16+00:00

Hi all I’m having trouble correctly display the data in the textbox This is

  • 0

Hi all I’m having trouble correctly display the data in the textbox
This is my Print partialView

@{ Layout = null; }
@model Estudio.WebUI.Models.PrintViewModel
@using (Ajax.BeginForm("Print", new { @class = "openDialog data-dialog-id='PrintDialog' data-dialog-Title='Print'" }, new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "PrintDialog" }))
{
@Html.HiddenFor(m => m.FacturaId)
<div class="editor-label">
    @Html.LabelFor(m => m.NComprobante)
    <div class="editor-field">
        @Html.TextBoxFor(m => m.NComprobante)
    </div>
</div>
<br/>
<div class="editor-label">
    @Html.LabelFor(m => m.SendMail)
    <div class="editor-field">
        @Html.CheckBoxFor(m => m.SendMail)
    </div>
</div>
<input type="submit" name="Imprimir" value="Imprimir" id="Imprimir"/>

<script type="text/javascript">
    $(document).ready(function () {
        $("#NComprobante").mask("99999-999999999999");
    });
</script>    
}

This is ActionResult Print

   public ActionResult Print(string id)
    {
        ...
        var model = new PrintViewModel
                        {
                            FacturaId = factura.FacturaId,
                            NComprobante = numero[0] + "-" + comprabante.ToString("000000000000")
                        };
        return PartialView("Print", model);
    }

Can anyone help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:15:17+00:00Added an answer on June 18, 2026 at 2:15 am

    wrong code on

    NComprobante = numero[0] + "-" + comprabante.ToString("000000000000")
    

    the correct is:

    var comprabante = numero[0] + "-" + (Convert.ToDouble(numero[1]) + 1).ToString("0000000000000");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All browsers except Chrome do display this style: .my-checkbox { width: 20px; height:20px; color:#fff;
All, I'm writing an extensive iPad application with a Core Data based data model.
All of the respective model associations have been configured correctly on my end. Here's
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
All, Apologies in advance - this question might be too open-ended for SO. Anyway...
All, this question may be broad; very broad. I've been trying to answer this
All , Say you have a code in a View like this. <img src='@Url.Action(GetCaptchaImg)'
All, I am using the following URI path to query data for the calendar,
All my applications use field level optimistic concurrency. This works by keeping track of
All is in the question i have tried this : $('#my-div').css('box-shadow'); but it returns

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.