Click here to Skip to main content
15,890,282 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: What is neighborhood concept in ASP.Net Pin
Zafar Sultan24-Oct-13 21:53
Zafar Sultan24-Oct-13 21:53 
QuestionDependency hell Pin
Super Lloyd23-Oct-13 14:58
Super Lloyd23-Oct-13 14:58 
AnswerRe: Dependency hell Pin
Bernhard Hiller23-Oct-13 20:38
Bernhard Hiller23-Oct-13 20:38 
AnswerRe: Dependency hell Pin
Abhinav S23-Oct-13 22:16
Abhinav S23-Oct-13 22:16 
QuestionGetting the *.aspx working on a server Pin
juno10123-Oct-13 11:26
juno10123-Oct-13 11:26 
AnswerRe: Getting the *.aspx working on a server Pin
Sanjay Kumar Dwivedi24-Oct-13 1:16
professionalSanjay Kumar Dwivedi24-Oct-13 1:16 
QuestionRe: Getting the *.aspx working on a server Pin
juno10124-Oct-13 4:53
juno10124-Oct-13 4:53 
QuestionHow to reset application state or recall Application_Start Pin
swapnil709023-Oct-13 0:31
swapnil709023-Oct-13 0:31 
Hii..
I Am working on Client Tracking Application(asp.net 4.0 and c sharp),In Which we kept Function FnFillDropDown()
In Global.asax file and called this function on Application_start event inside Global.asax.
FnFillDropdown: this fn basically use to fill dropdown of country, city, common paramter , states names etc.
As this function is kept in global.asax file,when we add new country or state we have to manually reset the iis using iisreset command. Our site is hosted on local network
But we are going to host our site on web very soon .
for that reason we need a quick solution to reset applicatoin state
or tell us how do we call FnFillDrowpDown() Method from Code Behind

My Code is

C#
 public class Global : System.Web.HttpApplication
    {
      private void FnFillDrowpDown()
      {
      Application.Clear();

      BODropDown objBODropDown = new BODropDown();
      DADropDown objDADropDown = new DADropDown();
      DataTable dtList = new DataTable();
      
      objBODropDown.EntityKey = DDLEntityKey.REG_COUNTRY;
      dtList = objDADropDown.GetValueList(objBODropDown);
      this.Application.Add(DDLEntityKey.REG_COUNTRY,dtList); 
      
      }

      public void Application_Start(object sender, EventArgs e)
      {
       FnFillDrowpDown();
      }     
}


I have also Tried to call this method using object of class Global but its throws Object Reference not Set..
Error as Application State coming out null..
Please suggest me any solution for this problem as i am new for asp.net
Thanks...
QuestionConvert text into hyperlinkable email dynamically Pin
Member 1045459222-Oct-13 8:10
professionalMember 1045459222-Oct-13 8:10 
AnswerRe: Convert text into hyperlinkable email dynamically Pin
Richard Deeming22-Oct-13 9:15
mveRichard Deeming22-Oct-13 9:15 
GeneralRe: Convert text into hyperlinkable email dynamically Pin
Member 1045459222-Oct-13 9:55
professionalMember 1045459222-Oct-13 9:55 
GeneralRe: Convert text into hyperlinkable email dynamically Pin
Richard Deeming22-Oct-13 11:01
mveRichard Deeming22-Oct-13 11:01 
Questionsession related problem Pin
Member 1028388122-Oct-13 7:03
professionalMember 1028388122-Oct-13 7:03 
QuestionGridView binding Image Not working Pin
Member 1045459222-Oct-13 3:14
professionalMember 1045459222-Oct-13 3:14 
AnswerRe: GridView binding Image Not working Pin
Richard Deeming22-Oct-13 3:40
mveRichard Deeming22-Oct-13 3:40 
GeneralRe: GridView binding Image Not working Pin
Member 1045459222-Oct-13 8:01
professionalMember 1045459222-Oct-13 8:01 
QuestionUploading an Image Pin
Member 1031225720-Oct-13 18:29
Member 1031225720-Oct-13 18:29 
AnswerRe: Uploading an Image Pin
Abhinav S21-Oct-13 18:35
Abhinav S21-Oct-13 18:35 
AnswerRe: Uploading an Image Pin
Pratik Bhuva1-Nov-13 4:14
professionalPratik Bhuva1-Nov-13 4:14 
Questioninterview questions Pin
ananta117-Oct-13 7:46
ananta117-Oct-13 7:46 
AnswerRe: interview questions Pin
Richard MacCutchan17-Oct-13 7:59
mveRichard MacCutchan17-Oct-13 7:59 
AnswerRe: interview questions Pin
R. Giskard Reventlov17-Oct-13 8:07
R. Giskard Reventlov17-Oct-13 8:07 
AnswerRe: interview questions Pin
thatraja17-Oct-13 21:54
professionalthatraja17-Oct-13 21:54 
AnswerRe: interview questions Pin
Abhinav S19-Oct-13 21:20
Abhinav S19-Oct-13 21:20 
QuestionStretching an Image in a Table cell (IE7) Pin
Blikkies17-Oct-13 4:54
professionalBlikkies17-Oct-13 4:54 

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.