Click here to Skip to main content
15,902,112 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: folder name in iis 7 Pin
Paladin200028-Jun-10 10:58
Paladin200028-Jun-10 10:58 
GeneralRe: folder name in iis 7 Pin
netJP12L28-Jun-10 11:22
netJP12L28-Jun-10 11:22 
GeneralRe: folder name in iis 7 Pin
Laxman Auti28-Jun-10 20:48
Laxman Auti28-Jun-10 20:48 
QuestionSession data takes two button clicks to work? Pin
Jacob Dixon28-Jun-10 9:19
Jacob Dixon28-Jun-10 9:19 
AnswerRe: Session data takes two button clicks to work? Pin
Ennis Ray Lynch, Jr.28-Jun-10 9:31
Ennis Ray Lynch, Jr.28-Jun-10 9:31 
GeneralRe: Session data takes two button clicks to work? Pin
Jacob Dixon28-Jun-10 9:33
Jacob Dixon28-Jun-10 9:33 
GeneralRe: Session data takes two button clicks to work? Pin
Jacob Dixon28-Jun-10 9:45
Jacob Dixon28-Jun-10 9:45 
GeneralRe: Session data takes two button clicks to work? Pin
Ennis Ray Lynch, Jr.28-Jun-10 9:55
Ennis Ray Lynch, Jr.28-Jun-10 9:55 
You can never get the data on page load the first time around if this is the same page where the data is assigned. Try this some combination of the below:

protected void mBtnAssignWhatever_Click(object sender, EventArgs e){
    ...Assign Session Variables
    PopulateForm();
}

protected void PageLoad(...){
    LoadDataFromDatabase();
    if(!IsPostBack){
       //Populate your list boxes here
    }
    PopulateForm();
}

private void PopulateForm(){
    if(AreMySessionVariablesAvaiable()){
        ...
    }
    else{
        ...
    }
}


Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting.

A man said to the universe:
"Sir I exist!"
"However," replied the universe,
"The fact has not created in me
A sense of obligation."
--Stephen Crane


GeneralRe: Session data takes two button clicks to work? Pin
Jacob Dixon28-Jun-10 10:15
Jacob Dixon28-Jun-10 10:15 
GeneralRe: Session data takes two button clicks to work? Pin
Ennis Ray Lynch, Jr.28-Jun-10 10:41
Ennis Ray Lynch, Jr.28-Jun-10 10:41 
GeneralRe: Session data takes two button clicks to work? Pin
Jacob Dixon28-Jun-10 11:00
Jacob Dixon28-Jun-10 11:00 
GeneralRe: Session data takes two button clicks to work? Pin
Ennis Ray Lynch, Jr.28-Jun-10 11:15
Ennis Ray Lynch, Jr.28-Jun-10 11:15 
QuestionPassing a value from an ASP.Net page to a HTML Page Pin
PDTUM28-Jun-10 6:31
PDTUM28-Jun-10 6:31 
AnswerRe: Passing a value from an ASP.Net page to a HTML Page Pin
Ennis Ray Lynch, Jr.28-Jun-10 7:43
Ennis Ray Lynch, Jr.28-Jun-10 7:43 
AnswerRe: Passing a value from an ASP.Net page to a HTML Page Pin
T M Gray28-Jun-10 7:45
T M Gray28-Jun-10 7:45 
GeneralRe: Passing a value from an ASP.Net page to a HTML Page Pin
PDTUM28-Jun-10 12:19
PDTUM28-Jun-10 12:19 
Questionresponse.redirect gives -400 error. Pin
vjvjvjvj28-Jun-10 5:48
vjvjvjvj28-Jun-10 5:48 
Answer[CrossPost]: response.redirect gives -400 error. Pin
Sandeep Mewara28-Jun-10 6:12
mveSandeep Mewara28-Jun-10 6:12 
QuestionAccess masterpage control in contentpage codebehind Pin
Hardus Lombaard28-Jun-10 4:55
Hardus Lombaard28-Jun-10 4:55 
AnswerRe: Access masterpage control in contentpage codebehind Pin
Brij28-Jun-10 4:59
mentorBrij28-Jun-10 4:59 
AnswerRe: Access masterpage control in contentpage codebehind Pin
T M Gray28-Jun-10 7:15
T M Gray28-Jun-10 7:15 
QuestionImport Dynamic exel to sqlserver Pin
amina8928-Jun-10 4:43
amina8928-Jun-10 4:43 
AnswerRe: Import Dynamic exel to sqlserver Pin
T M Gray28-Jun-10 7:48
T M Gray28-Jun-10 7:48 
QuestionRe: Import Dynamic exel to sqlserver Pin
amina8928-Jun-10 22:34
amina8928-Jun-10 22:34 
AnswerRe: Import Dynamic exel to sqlserver Pin
T M Gray29-Jun-10 10:17
T M Gray29-Jun-10 10:17 

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.