[SOLVED] Querystring form load not working

Answered
0
0

I am using the following code

if Application.QueryString(0) = “WoodgrainOverlayBoards” then

Dim window As New frmWoodGrainOverlayBoards
window.LoadData()
window.WindowState = FormWindowState.Maximized
window.Show()

elseif Application.QueryString(0) = “PaintJobs” then

Dim window As New frmPaintJobs
window.LoadData()
window.WindowState = FormWindowState.Maximized
window.Show()

end if

However , if I go into the app using the first querystring ( https://example.example.com/PaintSourcing/?PaintJobs) and then try to load the the second querystring (https://example.example.com/PaintSourcing/?WoodgrainOverlayBoards), the second tab brings up the form from the first tab.

 

I am told by the user that this just started happening today.  It had been pulling up correctly for over a year.

How do I ensure that

https://example.example.com/PaintSourcing/?PaintJobs  – brings up frmPaintJobs

and

https://example.example.com/PaintSourcing/?WoodgrainOverlayBoards – brings up frmWoodGrainOverlayBoards

  • You must to post comments
Best Answer
0
0

Hi Shawn,

when you debug your code, can you please check the value of QueryString ?
Also did you try as ?PaintJobs without the slash before ?

Best regards
Frank

  • Shawn Ramirez
    Taking out the / seemed to have fixed it. Thanks!
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.