S
Scott
I would like to have my ASPX page call a function intended to make
changes the the current Page.Response.Cookies. I had thought that to
allow the function to modify the Cookies, I would have top pass the
collection by REFERENCE. But I am getting
"A property or
indexer may not be passed as an out or ref parameter"
Here is a simple example of what I am trying to do...
public class MyPage: System.Web.UI.Page
{
MySetCookieButton_Click(object sender, ....)
{
CookieFuncs.SetCookies(ref this.Page.Response.Cookies)
}
}
public class CookieFuncs
{
public static void SetCookies(ref System.Web.HttpCookieCollection
cookies)
{
cookies.Value = etc.......
}
}
changes the the current Page.Response.Cookies. I had thought that to
allow the function to modify the Cookies, I would have top pass the
collection by REFERENCE. But I am getting
"A property or
indexer may not be passed as an out or ref parameter"
Here is a simple example of what I am trying to do...
public class MyPage: System.Web.UI.Page
{
MySetCookieButton_Click(object sender, ....)
{
CookieFuncs.SetCookies(ref this.Page.Response.Cookies)
}
}
public class CookieFuncs
{
public static void SetCookies(ref System.Web.HttpCookieCollection
cookies)
{
cookies.Value = etc.......
}
}