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 6110015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:28:07+00:00 2026-05-23T14:28:07+00:00

I am making a custom helper in mvc 3 and I m using the

  • 0

I am making a custom helper in mvc 3 and I m using the following line in .cs(class) page

"<input type=\"submit\" value=\"{0}\" onClick=\"showOk()\";\" /><div class='messagepop pop' style='display: none'><form action='' method='post' id='new_message'><div><img src='../Images/x.png' alt='Exit'  class='msgPopImg'  onclick='closePop()' /><table bgcolor='#FFF0F0' rules='rows'>" + builder + "</table></div></form></div><script type='text/javascript'>function showOk() {var maskHeight = $(document).height();var maskWidth = $(window).width();$('#mask').css({ 'width': maskWidth, 'height': maskHeight }); $('.pop').show('fast', function () { });$('#mask').show();} function closePop() {$('.pop').hide(); $('#mask').hide();}", buttonText);

I m getting ‘Input string was not in a correct format’ error due to this part:-

<script type='text/javascript'>function
showOk() {var maskHeight = $(document).height();var maskWidth = $(window).width();$('#mask').css({ 'width': maskWidth, 'height': maskHeight }); $('.pop').show('fast', function () { });$('#mask').show();} function closePop() {$('.pop').hide(); $('#mask').hide();}
"

The modified code is:-

"<input type=\"submit\" value=\"{0}\" onClick=\"showOk()\";\" /><div class='messagepop pop' style='display: none'><form action='' method='post' id='new_message'><div><img src='../Images/x.png' alt='Exit'  class='msgPopImg'  onclick='closePop()' /><table bgcolor='#FFF0F0' rules='rows'>" + builder + "</table></div></form></div><script type='text/javascript'>function showOk() {var maskHeight = 1000px;var maskWidth =1000px;$('#mask').css({ 'width': maskWidth, 'height': maskHeight }); $('.pop').css('display', 'block');$('#mask').css('display', 'block');} function closePop() {$('.pop').css('display', 'none'); $('#mask').css('display', 'none');}", buttonText);

How can I solve this error plz let me know

  • 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-05-23T14:28:07+00:00Added an answer on May 23, 2026 at 2:28 pm

    I don’t see a closing </script> tag in your code. You have that?

    Update:
    Try this:

    <input type="submit" value="{0}" onclick="showOk();" />
    <div class='messagepop pop' style='display: none'>
        <form action='' method='post' id='new_message'>
        <div>
            <img src='../Images/x.png' alt='Exit' class='msgPopImg' onclick='closePop()' />
            <table bgcolor='#FFF0F0' rules='rows'>
                " + builder + "</table>
        </div>
        </form>
    </div>
    <script type='text/javascript'>
    function showOk() {
        var maskHeight = '1000px';
        var maskWidth = '1000px';
        $('#mask').css({ 'width': maskWidth, 'height': maskHeight }); 
        $('.pop').css('display', 'block');
        $('#mask').css('display', 'block');
    } 
    function closePop() {
        $('.pop').css('display', 'none'); 
        $('#mask').css('display', 'none');
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Silverligh 4, VS 2010. Making a Custom Control. (Non just UserControl, but public class
I am making a custom uitableviewcell class and inside this cell I have a
I'm making a custom query in wordpress to retrieve child pages of page ID
What is the process behind making custom widgets (using Qt) that don't look...well...ugly? I
I'm following the example posted here for making custom css tooltips. a { color:
Hi im making a custom Textbox i got everty thing working but how do
I am making a custom form object in Django which has an overrided __init__
I'm making a custom event calendar with PHP. I am trying to get the
I'm making a custom control that can be dragged around and it is semi
I'm making a custom error dialog in my WPF app and I want to

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.