-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: DotNetParam
Message 1 in Discussion


I have a UserControl1 which I want to share across the Page1.aspx, 
Page2.aspx, Page3.aspx, Pag4.aspx

Using
@OutPutCache Duration=#no ofseconds Shared=True

I can share this across pages.

Now can I vary the output cache depending upon  change of session variable 
values like-
@OutPutCache Duration=#no ofseconds Shared=True  VaryByCustom="X;Y;Z"

I want to vary the cached output depending upon the change in values for
Session("X"),Session("Y"),Session("Z")
Is it possible?

If Possible what can I write in Global.asax's

Public Overrides Function GetVaryByCustomString(ByVal context As 
System.Web.HttpContext, ByVal custom As String) As String
method.

Select Case arg
       Case "X"
                 Return Session("X")
       .......

Not working!!

Also, I do not want to use cookies to store the session variable values...
How can I achieve ?
Appreciate any kind of help !!!

Regards,
Parmeshwar

_________________________________________________________________
Logon to MSN Games http://www.msngamez.com/in/gamezone/ Enjoy unlimited 
action



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to