Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Building Controls (http://www.velocityreviews.com/forums/f59-asp-net-building-controls.html)
-   -   Application/Cookies possiable in asp.net ocx page (http://www.velocityreviews.com/forums/t757424-application-cookies-possiable-in-asp-net-ocx-page.html)

Raghu Raman 02-02-2005 07:28 PM

Application/Cookies possiable in asp.net ocx page
 

Hi,

am using the following lines regarding Application & cookies in my
asp.net ocx page(ascx.cs).

But it is telling the error 'Object referrence not set to an instance of
an object'.Can i use Application & Cookies info in ascx page.

Could you pls tell me how i can use Application object & cookies info in
the ascx page.
-------------

Appsid="drb" + i + Col;
Application[Appsid] = "";-------Eroor shown
dr1.Read();
--Eror shown--
HttpCookie Drb=new HttpCookie(Appsid,dr1[0].ToString());
Response.Cookies.Add(Drb);
Coltype= Request.Cookies[Appsid].Value.ToString();
------------------------------------------


Regards
Raghu



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT. The time now is 07:35 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.