Click here to Skip to main content
15,891,939 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Changing ConnectionString Pin
Abhijit Jana16-Nov-09 6:37
professionalAbhijit Jana16-Nov-09 6:37 
GeneralRe: Changing ConnectionString Pin
sparlay_pk16-Nov-09 6:44
sparlay_pk16-Nov-09 6:44 
AnswerRe: Changing ConnectionString Pin
dan!sh 16-Nov-09 6:16
professional dan!sh 16-Nov-09 6:16 
GeneralRe: Changing ConnectionString Pin
sparlay_pk16-Nov-09 6:57
sparlay_pk16-Nov-09 6:57 
AnswerRe: Changing ConnectionString Pin
sparlay_pk16-Nov-09 6:59
sparlay_pk16-Nov-09 6:59 
GeneralRe: Changing ConnectionString Pin
Gamzun16-Nov-09 7:39
Gamzun16-Nov-09 7:39 
AnswerRe: Changing ConnectionString Pin
satalaj16-Nov-09 19:25
satalaj16-Nov-09 19:25 
QuestionA simple composite control Pin
markymark8216-Nov-09 5:54
markymark8216-Nov-09 5:54 
Hi All,

I'm tring to create a very simple composite control, consisting of a textbox and a label (and some html to style it..)

I have created it and at first it seemed to work, but now it appears I have missed out something fundamental.

I have a Text property in which I am setting the text property of the child text control and retreiving the same child property.

public string Text
{
    get
    {
        EnsureChildControls();
        return childTextBox.Text;
    }
    set
    {
        EnsureChildControls();
        childTextBox.Text = value;
    }
}


This works fine, unless on loading the page containing the control, I assign some text to the Text property. The text I assign appears in the child textbox fine, but when edited and attemped to save, it loses the new child textbox value, and reverts to the Text property as it was set on page load (or any other event that I use to populate it).

I'm guessing it's some kind of viewstate issue? Though this is the first time I have attempted a custom control of any sort and the help I've been looking up has led to me breaking it completely a number of time while trying various solutions.

If anyone has any idea what the problem is, then I'd appreciate your help as I'm running out of time to spend on it and don't want to have to abandon it because of deadlines.

Thanks in advance..

Mark
AnswerRe: A simple composite control Pin
dan!sh 16-Nov-09 6:25
professional dan!sh 16-Nov-09 6:25 
GeneralRe: A simple composite control Pin
markymark8216-Nov-09 23:22
markymark8216-Nov-09 23:22 
QuestionEmbedding Search engine in ASP.NET applications! Pin
tunsten16-Nov-09 5:02
tunsten16-Nov-09 5:02 
AnswerRe: Embedding Search engine in ASP.NET applications! Pin
Abhijit Jana16-Nov-09 5:07
professionalAbhijit Jana16-Nov-09 5:07 
AnswerRe: Embedding Search engine in ASP.NET applications! Pin
Abhishek Sur16-Nov-09 8:19
professionalAbhishek Sur16-Nov-09 8:19 
Questionupdate panel issue Pin
Tauseef A16-Nov-09 4:28
Tauseef A16-Nov-09 4:28 
AnswerRe: update panel issue Pin
Abhishek Sur16-Nov-09 4:29
professionalAbhishek Sur16-Nov-09 4:29 
QuestionRe: update panel issue Pin
Tauseef A16-Nov-09 5:21
Tauseef A16-Nov-09 5:21 
AnswerRe: update panel issue Pin
Abhijit Jana16-Nov-09 5:55
professionalAbhijit Jana16-Nov-09 5:55 
AnswerRe: update panel issue Pin
Abhijit Jana16-Nov-09 4:36
professionalAbhijit Jana16-Nov-09 4:36 
QuestionRe: update panel issue Pin
Tauseef A16-Nov-09 5:19
Tauseef A16-Nov-09 5:19 
AnswerRe: update panel issue Pin
Abhijit Jana16-Nov-09 5:54
professionalAbhijit Jana16-Nov-09 5:54 
QuestionRe: update panel issue Pin
Tauseef A16-Nov-09 7:32
Tauseef A16-Nov-09 7:32 
AnswerRe: update panel issue Pin
Abhijit Jana16-Nov-09 16:16
professionalAbhijit Jana16-Nov-09 16:16 
QuestionRequiredFieldValidator price range Pin
Casper Hansen16-Nov-09 4:10
Casper Hansen16-Nov-09 4:10 
AnswerRe: RequiredFieldValidator price range Pin
Abhijit Jana16-Nov-09 4:38
professionalAbhijit Jana16-Nov-09 4:38 
AnswerRe: RequiredFieldValidator price range Pin
Casper Hansen16-Nov-09 4:57
Casper Hansen16-Nov-09 4:57 

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.