We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Printing A Web Form(aspx) in vb.net

negen asked
Medium Priority
Last Modified: 2008-03-10
I currently have a large form designed in vb.net(aspx) after the form has been filled out by the user I haev a submit button which then validates the information and appends rows in sql. After this information is validated and submitted i need the form to be printed. Can anyone please help with this topic. An Urgent response is needed.

Thank in advance
Watch Question

...this should point you in the right direction.  it's in c#, but the translation shouldn't be difficult:


let me know if this isn't enough information.



not enought info
lol...ok, perhaps you could provide a little more info for me then.  Will the printing happen on the server side or the client side?  Do you simply need to know how to print (from either client or server), or do you need to know how to validate the submitted information as well?



Actually I just found a way that fit my needs but maybe you can help me with this. I need to have a button enable only after all fields have been entered. But I can not refresh the page. Any ideas on that?
I'd suggest leaving the button enabled, and simply running a client side javascript validation routine to prevent (or enable) the button's action from occuring.  The requiredfieldvalidator in .net might also be applicable here.  If you're determined to leave the button disabled until all fields have been completed, then you're stuck with javascript, and you'll probably have to use the keypress event to iterate the input fields everytime one of them gains focus.  Just remember, all client side validation can be bypassed.  Let me know if you have questions after reading the links/info below.  : )


example of the keypress event:

<script lang="javascript">
document.onkeypress = keyhandler;
function keyhandler(e) {
    if (document.layers)
        Key = e.which;
        Key = window.event.keyCode;
    if (Key != 0)
        alert("Key pressed! ASCII-value: " + Key);



Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.