Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
Questionuser control event delegation Pin
Sandesh Kadam17-Mar-08 7:43
Sandesh Kadam17-Mar-08 7:43 
QuestionAdding records to an Access database Pin
mikeyman417-Mar-08 7:12
mikeyman417-Mar-08 7:12 
GeneralRe: Adding records to an Access database Pin
PIEBALDconsult17-Mar-08 7:46
mvePIEBALDconsult17-Mar-08 7:46 
GeneralRe: Adding records to an Access database Pin
Christian Graus17-Mar-08 9:12
protectorChristian Graus17-Mar-08 9:12 
QuestionSVG viewer in C# app Pin
Paresh Solanki17-Mar-08 6:31
Paresh Solanki17-Mar-08 6:31 
GeneralRe: SVG viewer in C# app Pin
Christian Graus17-Mar-08 9:13
protectorChristian Graus17-Mar-08 9:13 
QuestionPage Break while grouping , rdlc reports Pin
VikramMullick17-Mar-08 6:27
VikramMullick17-Mar-08 6:27 
GeneralRetrieving the Value of a costumn control placed in a Placeholder placed in a repeater Pin
jawe17-Mar-08 5:15
jawe17-Mar-08 5:15 
I have troubles getting data out of a repeater. I know that it is not possible to retrieve data from repeater, so I used to read out every control in it.
But now I have encapsulated my Controls in the Repeater in a self-made UserControl:

<br />
<tr><br />
    <td align=right><br />
        <asp:Label id="cap" runat="server"/> :<br />
    </td><br />
    <td align="left" style="width:99%"><br />
        <asp:PlaceHolder id="con" runat="server"/><br />
    </td><br />
</tr><br />

code behind:
<br />
public partial class MergedControl : System.Web.UI.UserControl<br />
{<br />
    public string Caption<br />
    {<br />
        get { return (cap.Text); }<br />
        set { cap.Text = value; }<br />
    }<br />
<br />
    public Control Cont<br />
    {<br />
        get { return con.Controls[0]; }<br />
        set { con.Controls.AddAt(0,value); }<br />
    }<br />
}<br />


The reason why should be obvious: The Controltype often changes, that is why I hade to make it that way (Any ideas?)

Anyway, I can't retrieve the Value of the Control that is placed in the Placeholder. What am I doing wrong?
GeneralRe: Retrieving the Value of a costumn control placed in a Placeholder placed in a repeater Pin
Not Active17-Mar-08 6:28
mentorNot Active17-Mar-08 6:28 
GeneralMore Collision (XNA) Pin
MasterSharp17-Mar-08 5:01
MasterSharp17-Mar-08 5:01 
GeneralRe: More Collision (XNA) Pin
Christian Graus17-Mar-08 9:15
protectorChristian Graus17-Mar-08 9:15 
GeneralRe: More Collision (XNA) [modified] Pin
MasterSharp17-Mar-08 10:09
MasterSharp17-Mar-08 10:09 
Generalto return or not to return something Pin
pauli17-Mar-08 4:58
pauli17-Mar-08 4:58 
GeneralRe: to return or not to return something Pin
Rob Philpott17-Mar-08 6:20
Rob Philpott17-Mar-08 6:20 
GeneralRe: to return or not to return something Pin
Simon P Stevens17-Mar-08 6:55
Simon P Stevens17-Mar-08 6:55 
GeneralRe: to return or not to return something [modified] Pin
pauli17-Mar-08 23:01
pauli17-Mar-08 23:01 
GeneralRe: to return or not to return something Pin
Simon P Stevens18-Mar-08 6:07
Simon P Stevens18-Mar-08 6:07 
Generalgeneric collection - .net 2.0 Pin
arkiboys17-Mar-08 4:22
arkiboys17-Mar-08 4:22 
GeneralRe: generic collection - .net 2.0 Pin
Luc Pattyn17-Mar-08 4:29
sitebuilderLuc Pattyn17-Mar-08 4:29 
QuestionActive Directory "login" from C# application Pin
User 137680017-Mar-08 3:52
User 137680017-Mar-08 3:52 
GeneralResource leak (handles count) in simple .NET application Pin
Kolobock17-Mar-08 3:45
Kolobock17-Mar-08 3:45 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Luc Pattyn17-Mar-08 3:55
sitebuilderLuc Pattyn17-Mar-08 3:55 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Kolobock17-Mar-08 4:07
Kolobock17-Mar-08 4:07 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Luc Pattyn17-Mar-08 4:25
sitebuilderLuc Pattyn17-Mar-08 4:25 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Kolobock17-Mar-08 8:32
Kolobock17-Mar-08 8:32 

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.