Click here to Skip to main content
15,885,244 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to make DataGrid TemplateColumn ItemTemplate and EditItemTemplate the same without duplicating code? Pin
Cyrilix1-Dec-08 8:39
Cyrilix1-Dec-08 8:39 
AnswerRe: How to make DataGrid TemplateColumn ItemTemplate and EditItemTemplate the same without duplicating code? Pin
Samer Aburabie1-Dec-08 10:39
Samer Aburabie1-Dec-08 10:39 
GeneralRe: How to make DataGrid TemplateColumn ItemTemplate and EditItemTemplate the same without duplicating code? Pin
Cyrilix1-Dec-08 11:59
Cyrilix1-Dec-08 11:59 
Questionfile upload to FTP ? Pin
Aslesh1-Dec-08 7:37
Aslesh1-Dec-08 7:37 
AnswerRe: file upload to FTP ? Pin
Muhammad Gouda1-Dec-08 8:04
Muhammad Gouda1-Dec-08 8:04 
GeneralRe: file upload to FTP ? Pin
Aslesh1-Dec-08 8:14
Aslesh1-Dec-08 8:14 
GeneralRe: file upload to FTP ? Pin
Muhammad Gouda1-Dec-08 8:29
Muhammad Gouda1-Dec-08 8:29 
QuestionCustom Control property problem Pin
Dirso1-Dec-08 6:48
Dirso1-Dec-08 6:48 
Hi,

I created a webcontrol (Textbox derivated) and I have a property that was suppose to link a Label control to it - when my control gets the focus, I'm gonna change some style from the assigned label.

Here is my code... When I select the Label, my text box disappears and show an error "Error Rendering Control ... Cannot create an object from its string representation"... How can I fix it?

public virtual Label Label
{
    get
    {
        object label = ViewState["Label"];
        if (label == null)
            return null;
        return (Label)Page.FindControl((string)label);
    }
    set
    {
        ViewState["Label"] = value.UniqueID;
    }
}


Thanks,
Dirso
AnswerRe: Custom Control property problem Pin
Dirso1-Dec-08 9:21
Dirso1-Dec-08 9:21 
AnswerRe: Custom Control property problem Pin
Christian Graus1-Dec-08 9:45
protectorChristian Graus1-Dec-08 9:45 
GeneralRe: Custom Control property problem Pin
Dirso1-Dec-08 12:53
Dirso1-Dec-08 12:53 
GeneralRe: Custom Control property problem Pin
Christian Graus1-Dec-08 14:18
protectorChristian Graus1-Dec-08 14:18 
AnswerWindows Workflow Foundation Pin
scottichrosaviakosmos1-Dec-08 6:36
scottichrosaviakosmos1-Dec-08 6:36 
GeneralRe: Windows Workflow Foundation Pin
Paul Conrad1-Dec-08 6:47
professionalPaul Conrad1-Dec-08 6:47 
QuestionRender Page to Word [modified] Pin
kenexcelon1-Dec-08 5:42
kenexcelon1-Dec-08 5:42 
QuestionCan't Delete Cookie being accessed from subdomains Pin
Mateobus1-Dec-08 5:26
Mateobus1-Dec-08 5:26 
QuestionGridview binding issue Pin
mpavas1-Dec-08 3:14
mpavas1-Dec-08 3:14 
AnswerRe: Gridview binding issue Pin
Muhammad Gouda1-Dec-08 3:41
Muhammad Gouda1-Dec-08 3:41 
GeneralRe: Gridview binding issue Pin
mpavas1-Dec-08 4:35
mpavas1-Dec-08 4:35 
Questionrecommendation on retriving data from DB Pin
Tugbay Sahin1-Dec-08 2:16
Tugbay Sahin1-Dec-08 2:16 
AnswerRe: recommendation on retriving data from DB Pin
Nishant Singh1-Dec-08 2:28
Nishant Singh1-Dec-08 2:28 
AnswerRe: recommendation on retriving data from DB Pin
Abhijit Jana1-Dec-08 2:28
professionalAbhijit Jana1-Dec-08 2:28 
AnswerRe: recommendation on retriving data from DB Pin
N a v a n e e t h1-Dec-08 2:56
N a v a n e e t h1-Dec-08 2:56 
AnswerRe: recommendation on retriving data from DB Pin
Tugbay Sahin1-Dec-08 3:04
Tugbay Sahin1-Dec-08 3:04 
AnswerRe: recommendation on retriving data from DB Pin
Muhammad Gouda1-Dec-08 4:16
Muhammad Gouda1-Dec-08 4:16 

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.