Click here to Skip to main content
15,908,674 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ViewState storing custom class Pin
ToddHileHoffer22-Apr-09 10:19
ToddHileHoffer22-Apr-09 10:19 
GeneralRe: ViewState storing custom class Pin
Fayu22-Apr-09 14:20
Fayu22-Apr-09 14:20 
GeneralRe: ViewState storing custom class Pin
ToddHileHoffer22-Apr-09 15:16
ToddHileHoffer22-Apr-09 15:16 
GeneralRe: ViewState storing custom class Pin
DoctorMick22-Apr-09 21:51
DoctorMick22-Apr-09 21:51 
GeneralRe: ViewState storing custom class Pin
ToddHileHoffer23-Apr-09 2:13
ToddHileHoffer23-Apr-09 2:13 
GeneralRe: ViewState storing custom class Pin
DoctorMick23-Apr-09 2:30
DoctorMick23-Apr-09 2:30 
GeneralRe: ViewState storing custom class Pin
Fayu23-Apr-09 6:18
Fayu23-Apr-09 6:18 
GeneralRe: ViewState storing custom class Pin
ToddHileHoffer23-Apr-09 7:09
ToddHileHoffer23-Apr-09 7:09 
Just one more tip for you.

Create a static class to hold all your session objects. For example

public static class SessionItems
 {
     public static YourObjectType YourObject
     {
         get
         {
             Object result = HttpContext.Current.Session["YourObject"];
             if (result == null)
                 return null;
             else
                 return (YourObjectType)result;
         }
         set { HttpContext.Current.Session["YourObject"] = value; }
     }
  }


It makes it easier to manager your session objects this way, plus it prevents bugs from trying to access a session object that does not exist. Also prevents bugs that can occur from mispellings


I didn't get any requirements for the signature


QuestionAutomated Emails and SMS Pin
yogesh_kumar_agarwal22-Apr-09 7:51
yogesh_kumar_agarwal22-Apr-09 7:51 
AnswerRe: Automated Emails and SMS Pin
David Mujica22-Apr-09 8:42
David Mujica22-Apr-09 8:42 
GeneralRe: Automated Emails and SMS Pin
yogesh_kumar_agarwal22-Apr-09 9:07
yogesh_kumar_agarwal22-Apr-09 9:07 
GeneralRe: Automated Emails and SMS Pin
David Mujica22-Apr-09 10:19
David Mujica22-Apr-09 10:19 
AnswerRe: Automated Emails and SMS Pin
Perry Holman22-Apr-09 16:49
Perry Holman22-Apr-09 16:49 
QuestionHow to check for duplicates before uploading. Pin
Mantaii22-Apr-09 5:40
Mantaii22-Apr-09 5:40 
AnswerRe: How to check for duplicates before uploading. Pin
Deshbir Singh22-Apr-09 5:54
Deshbir Singh22-Apr-09 5:54 
GeneralRe: How to check for duplicates before uploading. Pin
Mantaii22-Apr-09 5:57
Mantaii22-Apr-09 5:57 
AnswerRe: How to check for duplicates before uploading. Pin
Deshbir Singh22-Apr-09 6:02
Deshbir Singh22-Apr-09 6:02 
AnswerRe: How to check for duplicates before uploading. Pin
Perry Holman22-Apr-09 16:55
Perry Holman22-Apr-09 16:55 
GeneralRe: How to check for duplicates before uploading. Pin
Mantaii22-Apr-09 22:52
Mantaii22-Apr-09 22:52 
Question[Message Deleted] Pin
pzn3xq22-Apr-09 4:57
pzn3xq22-Apr-09 4:57 
AnswerRe: Error when using ViewStateUserKey Pin
Deshbir Singh22-Apr-09 5:57
Deshbir Singh22-Apr-09 5:57 
GeneralRe: Error when using ViewStateUserKey Pin
pzn3xq22-Apr-09 7:08
pzn3xq22-Apr-09 7:08 
QuestionStored procedure with XML as it paramternew Pin
ONeil Tomlinson22-Apr-09 4:43
ONeil Tomlinson22-Apr-09 4:43 
AnswerCross Posted Pin
led mike22-Apr-09 5:18
led mike22-Apr-09 5:18 
QuestionTaking dynamically created Text box id from client Side Pin
sekannak22-Apr-09 1:53
sekannak22-Apr-09 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.