kabila
Posts: 30
|
Posted: 03/08/2004, 2:16 PM |
|
I am following one of the examples the following way:
this is in before show of a form:
if (Request.QueryString["custnum"] == null || Request.QueryString["custnum"].Length == 0) {
LinkParameterCollection HrefParams = new LinkParameterCollection();
HrefParams.Add("custnum","applookupcustnum.Text");
(<<<This is the problem statement<<<<)
Response.Redirect(Request.Url.AbsolutePath + "?" + HrefParams.ToString("GET","custnum"));
}
The code compiles fine - but when it comes to executing it - it times out. Now if I replace "applookupcustnum.Text" with something like "123" (as in the example) - there is no problem.
I have tried putting {} and also done the string "'" + applookupcustnum.Text + "'" to no result.
The before show and the formcontrol are in the same form : applookup.
The reason why I am doing it this way is so that I can throw in the URL for another form to pick up its value later in the page.
Appreciate your help
-Sam
|
|
|
kabila
Posts: 30
|
Posted: 03/08/2004, 2:22 PM |
|
oops..made a mistake: should read:
HrefParams.Add("custnum",applookupcustnum.Text);
compiled fine, but timed-out while running.
Anything with dbl-quotes ran fine - showing just the literal in the dbl-quote
-sam
|
|
|
|