Click here to Skip to main content
15,898,036 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to programmatically add message in out of office (Outlook feature) using asp.net Pin
Manprit.bagga27-Nov-09 3:32
Manprit.bagga27-Nov-09 3:32 
AnswerRe: How to programmatically add message in out of office (Outlook feature) using asp.net Pin
Abhijit Jana27-Nov-09 3:49
professionalAbhijit Jana27-Nov-09 3:49 
QuestionRe: How to programmatically add message in out of office (Outlook feature) using asp.net Pin
Manprit.bagga27-Nov-09 17:37
Manprit.bagga27-Nov-09 17:37 
AnswerRe: How to programmatically add message in out of office (Outlook feature) using asp.net Pin
dmofo7-Jun-10 8:20
dmofo7-Jun-10 8:20 
Questionchat in asp.net Pin
am.net27-Nov-09 2:11
am.net27-Nov-09 2:11 
AnswerRe: chat in asp.net Pin
Abhishek Sur27-Nov-09 2:18
professionalAbhishek Sur27-Nov-09 2:18 
AnswerRe: chat in asp.net Pin
Abhijit Jana27-Nov-09 3:59
professionalAbhijit Jana27-Nov-09 3:59 
QuestionArray List life Time and Scope Pin
Anil Kumar.Arvapalli27-Nov-09 1:50
Anil Kumar.Arvapalli27-Nov-09 1:50 
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page
{

System.IO.DirectoryInfo ourDir;
System.Collections.ArrayList arraylist = new System.Collections.ArrayList();
static int i=0;


protected void Page_Load(object sender, EventArgs e)
{


}
protected void Browse_Click(object sender, EventArgs e)
{

}
protected void Load_Click(object sender, EventArgs e)
{
ourDir = new System.IO.DirectoryInfo("F:\\.Net Samples\\EnumerateFiles and Folders\\Farewell Party");

foreach (System.IO.FileInfo filename in ourDir.GetFiles())
{
//if(filename.Name.Equals(".JPG"))
arraylist.Add(filename.Name);
}
Image1.ImageUrl = "~/Farewell Party/" + arraylist[i];

}

}

when i am getting out of the Load_Click the scope of ArrayList is lost and its count becoming 0... so that i cant use in other functions.... I was debugging lot of time still the same problm persists can any body tell me the answer for it....
AnswerRe: Array List life Time and Scope Pin
Christian Graus27-Nov-09 2:10
protectorChristian Graus27-Nov-09 2:10 
QuestionInsert GridView Records on one click Pin
lrsalunkhe27-Nov-09 0:17
lrsalunkhe27-Nov-09 0:17 
AnswerRe: Insert GridView Records on one click Pin
dan!sh 27-Nov-09 0:29
professional dan!sh 27-Nov-09 0:29 
Questionhow to add column to gridview for row count Pin
shiva.kore27-Nov-09 0:00
shiva.kore27-Nov-09 0:00 
AnswerRe: how to add column to gridview for row count Pin
saini arun27-Nov-09 0:09
saini arun27-Nov-09 0:09 
QuestionGrid view content as email Pin
jinovv26-Nov-09 23:35
jinovv26-Nov-09 23:35 
AnswerRe: Grid view content as email Pin
pinna_hari26-Nov-09 23:47
pinna_hari26-Nov-09 23:47 
GeneralRe: Grid view content as email Pin
Abhishek Sur27-Nov-09 3:28
professionalAbhishek Sur27-Nov-09 3:28 
AnswerRe: Grid view content as email Pin
Abhijit Jana26-Nov-09 23:49
professionalAbhijit Jana26-Nov-09 23:49 
AnswerRe: Grid view content as email Pin
Abhishek Sur27-Nov-09 3:31
professionalAbhishek Sur27-Nov-09 3:31 
Questionhow to create web application suitable for all browsers Pin
fak.kumar26-Nov-09 22:20
fak.kumar26-Nov-09 22:20 
AnswerRe: how to create web application suitable for all browsers Pin
Vimalsoft(Pty) Ltd26-Nov-09 22:25
professionalVimalsoft(Pty) Ltd26-Nov-09 22:25 
AnswerRe: how to create web application suitable for all browsers Pin
Abhijit Jana26-Nov-09 22:42
professionalAbhijit Jana26-Nov-09 22:42 
QuestionAdd textbox column at the end of Gridview columns dynamically Pin
Nekkantidivya26-Nov-09 21:57
Nekkantidivya26-Nov-09 21:57 
AnswerRe: Add textbox column at the end of Gridview columns dynamically Pin
sashidhar26-Nov-09 22:05
sashidhar26-Nov-09 22:05 
AnswerRe: Add textbox column at the end of Gridview columns dynamically Pin
Nishant Singh26-Nov-09 22:05
Nishant Singh26-Nov-09 22:05 
QuestionGMap get nearer cordinate Pin
divyesh143226-Nov-09 21:46
divyesh143226-Nov-09 21:46 

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.