Ok let’s see if I can explain this.
What I would like to do is pass a page to a class so I can use Requst.Form to set values as I need them. Basically what I have is a number of page types that I need to set according to this value. For example
I realize the syntax isn’t correct here but I hope this gives you an idea of what I’m trying to do. I tried to simplify what I’m trying to do to explain it. In reality the page being passed in could have a couple dozen form variables that need to be checked.Code:Switch (PageType) { case “easy”: strValue1 = Request.Form(“firstvalue”); strValue2 = Request.Form(“secondvalue”); strValue2 = Request.Form(“thirdvalue”); break; case “medium” strValue1 = Request.Form(“thirdvalue”); strValue2 = Request.Form(“firstvalue”); strValue2 = Request.Form(“secondvalue”); break; case “medium” strValue1 = Request.Form(“thirdvalue”); strValue2 = Request.Form(“secondvalue”); strValue2 = Request.Form(“firstvalue”); break; }
Any ideas or a better way of handling it?




Reply With Quote