Wednesday, March 21, 2012

parameters in a query string to a cascading combo box...

hi all.. i have 3 combo boxes working with the cascading extender.

the problem i facing is that the first combo data depends on an item from the query string...

since now the method is a web method, i dont have access to the querystring, (i can write the code, but it always returns nothing)...

any idea how can i catch this value? for the trace i made that's the only problem i'm having with it...

Might you be able to save the relevant information on the server in the page/session state and access it there from your web method?


hi there.. i don't understand what you mean...

Hi,
By save the relevant information on the server, means that instead of passing the value in the querystring, you could for example save what you need into a session variable (Session.Add("VariableName", Value) ... and then access it in your webservice...

 <WebMethod(EnableSession:=True)> _Public Function GetContent(ByVal contextKeyAs String)As String Dim TranslationAs String =""Dim langNbAs Integer = -999Try If (Session("ParamLang2") IsNotNothing)Then langNb =CInt(Session("ParamLang2"))End If Catch ExAs ExceptionEnd Try . . . . . . . . end function

well.. that's a good idea..

Thanks :)

No comments:

Post a Comment