Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. How to pass parameter to a Windows application Form the way it can be done in a web form

How to pass parameter to a Windows application Form the way it can be done in a web form

Scheduled Pinned Locked Moved IT & Infrastructure
csharptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Naglaa Saeed
    wrote on last edited by
    #1

    I'm using vb.net application form My form requests user to enter ID in text area to retreive some data for printing I want to know is it possible to pass this ID as a paramter when I call the web application form without requesting user to submit it I mean that I will send user link of the application form with the ID as a parameter just as we do in a web form.

    T 1 Reply Last reply
    0
    • N Naglaa Saeed

      I'm using vb.net application form My form requests user to enter ID in text area to retreive some data for printing I want to know is it possible to pass this ID as a paramter when I call the web application form without requesting user to submit it I mean that I will send user link of the application form with the ID as a parameter just as we do in a web form.

      T Offline
      T Offline
      tech603
      wrote on last edited by
      #2

      You could do this by appending it to the url. For example if you had two documents and depending on the value sent to your application it would print one of the two. So you could do something like the following http://www.yourwebsite.com?formId=1 In your application you would then parse the url to get that id. You could either do a hidden field or a label and use the following code C#: Request["formId"]; VB.net: Request("formId") so if you have your vb application you would want to do something like DIM strPrintId as String strPrintId = Request("formId") You would probably want to wrap that in a condition and have a default value. Hope this helps Matthew Vass QA Analyst mvass@hostmysite.com http://www.hostmysite.com?utm_source=bb[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups