locked
web form page display an empty checkbox RRS feed

  • Question

  • User1929727834 posted

    In a vb.net 2012 web form application, I need to have an empty checkbox. I have used the following statement <input type=”checkbox” name=”vehicle” value=” ”> and the empty checkbox shows up with a width on the web page. Thus can you tell me how to make the checkbox with not be so wide?

    In addition, this webpage is then sent to an ssrs  report to be exported in a PDF or Word format. The checkbox does not show up those exports. Thus can you tell me how to make the checkbox show up when the page is generated in a Word or pdf format?

     

    Thursday, August 15, 2019 8:09 PM

Answers

  • User-719153870 posted

    Hi dcofomaha,

    the empty checkbox shows up with a width on the web page.

    It's strange that i put your code in a demo and the checkbox is wihout wide width:

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <input type="checkbox" name="vehicle" value=" "/>
            </div>
        </form>
    </body>
    </html>

    It looks like:

    Thus can you tell me how to make the checkbox with not be so wide?

    To avoid this width, you can try to add style="width:13px". For example,

    <input type="checkbox" name="vehicle" value=" " style="width:100px"/>

    In this case,

    The checkbox does not show up those exports.

    Is this checkbox in your reportviewer? And how you export your SSRS?

    Best Regard,

    Yang Shen

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 16, 2019 2:10 AM

All replies

  • User1929727834 posted

    found answer

    Friday, August 16, 2019 2:05 AM
  • User-719153870 posted

    Hi dcofomaha,

    the empty checkbox shows up with a width on the web page.

    It's strange that i put your code in a demo and the checkbox is wihout wide width:

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <input type="checkbox" name="vehicle" value=" "/>
            </div>
        </form>
    </body>
    </html>

    It looks like:

    Thus can you tell me how to make the checkbox with not be so wide?

    To avoid this width, you can try to add style="width:13px". For example,

    <input type="checkbox" name="vehicle" value=" " style="width:100px"/>

    In this case,

    The checkbox does not show up those exports.

    Is this checkbox in your reportviewer? And how you export your SSRS?

    Best Regard,

    Yang Shen

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 16, 2019 2:10 AM