Click here to Skip to main content
15,914,594 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: setting value of a control in ascx via aspx [modified] Pin
uglyeyes16-Nov-09 15:14
uglyeyes16-Nov-09 15:14 
GeneralRe: setting value of a control in ascx via aspx Pin
uglyeyes16-Nov-09 16:48
uglyeyes16-Nov-09 16:48 
QuestionWorking with Themes Pin
FJJCENTU16-Nov-09 12:19
FJJCENTU16-Nov-09 12:19 
AnswerRe: Working with Themes Pin
AlexeiXX316-Nov-09 13:45
AlexeiXX316-Nov-09 13:45 
AnswerRe: Working with Themes Pin
sashidhar16-Nov-09 17:53
sashidhar16-Nov-09 17:53 
Questionpost back issue Pin
Tauseef A16-Nov-09 10:45
Tauseef A16-Nov-09 10:45 
AnswerRe: post back issue Pin
Christian Graus16-Nov-09 11:09
protectorChristian Graus16-Nov-09 11:09 
QuestionRe: post back issue Pin
Tauseef A16-Nov-09 23:30
Tauseef A16-Nov-09 23:30 
QuestionChanging ConnectionString Pin
sparlay_pk16-Nov-09 6:09
sparlay_pk16-Nov-09 6:09 
AnswerRe: Changing ConnectionString Pin
Abhijit Jana16-Nov-09 6:12
professionalAbhijit Jana16-Nov-09 6:12 
GeneralRe: Changing ConnectionString Pin
sparlay_pk16-Nov-09 6:27
sparlay_pk16-Nov-09 6:27 
GeneralRe: Changing ConnectionString Pin
sparlay_pk16-Nov-09 6:31
sparlay_pk16-Nov-09 6:31 
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 

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.