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

ASP.NET

 
AnswerRe: Get File Name From Path Pin
Guffa27-Sep-08 16:25
Guffa27-Sep-08 16:25 
AnswerRe: Get File Name From Path Pin
AlexeiXX327-Sep-08 17:33
AlexeiXX327-Sep-08 17:33 
QuestionHow to do WebSetup. Pin
K V Sekhar26-Sep-08 18:27
K V Sekhar26-Sep-08 18:27 
AnswerRe: How to do WebSetup. Pin
Prasanna Kumar Pete28-Sep-08 21:06
Prasanna Kumar Pete28-Sep-08 21:06 
Questiontesting again Pin
Reynaldo N. Emplica26-Sep-08 16:52
Reynaldo N. Emplica26-Sep-08 16:52 
AnswerRe: testing again Pin
AlexeiXX326-Sep-08 16:54
AlexeiXX326-Sep-08 16:54 
QuestionPass variables in iframe Pin
gm8726-Sep-08 16:34
gm8726-Sep-08 16:34 
QuestionCustom Control Problem Pin
snouto26-Sep-08 15:57
snouto26-Sep-08 15:57 
Hello Everybody .

I am creating a custom control and i am trying to make it raising events
i inherited from IPOSTBackEventHandler interface and implemented its method
but in vain , the control still doesn't have any effect when it is clicked on the page

the code for the control is as follows

<br />
public class CustomButton : Control , IPostBackEventHandler , IPostBackDataHandler<br />
    {<br />
        public event EventHandler Click;<br />
<br />
        protected override void Render(HtmlTextWriter writer)<br />
        {<br />
            writer.Write("<input type="\"Submit\"" name="\"ClickButton\"" value="\"Click" me="" mode="hold" />        }<br />
<br />
        #region IPostBackEventHandler Members<br />
<br />
        public void RaisePostBackEvent(string eventArgument)<br />
        {<br />
            OnClick(new EventArgs());<br />
        }<br />
        protected virtual void OnClick(EventArgs e)<br />
        {<br />
            if (Click != null)<br />
                Click(this, e);<br />
        }<br />
<br />
        #endregion<br />
<br />
        #region IPostBackDataHandler Members<br />
<br />
        public bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection)<br />
        {<br />
            Page.RegisterRequiresRaiseEvent(this);<br />
            return true;<br />
        }<br />
<br />
        public void RaisePostDataChangedEvent()<br />
        {<br />
            <br />
        }<br />
<br />
        #endregion<br />
    }<br />
<br />


What is the problem

Human knowledge belongs to the world.

QuestionAsp.Net RichTextBox ??? Pin
NewToAspDotNet26-Sep-08 15:00
NewToAspDotNet26-Sep-08 15:00 
Questionediting .resx files Pin
shefali_sinha26-Sep-08 11:47
shefali_sinha26-Sep-08 11:47 
Questionunable to find the checkbox added progrmaticlaly to the template field of the gridview custom control Pin
naveen.thallam26-Sep-08 10:24
naveen.thallam26-Sep-08 10:24 
QuestionWhat object should I use to create a collection class? Pin
allende26-Sep-08 9:14
allende26-Sep-08 9:14 
Questiongetting scroll bar in ASP.Net Listbox control Pin
John.G26-Sep-08 6:40
John.G26-Sep-08 6:40 
AnswerRe: getting scroll bar in ASP.Net Listbox control Pin
ToddHileHoffer26-Sep-08 6:54
ToddHileHoffer26-Sep-08 6:54 
GeneralRe: getting scroll bar in ASP.Net Listbox control Pin
John.G26-Sep-08 7:02
John.G26-Sep-08 7:02 
GeneralRe: getting scroll bar in ASP.Net Listbox control Pin
ToddHileHoffer26-Sep-08 7:26
ToddHileHoffer26-Sep-08 7:26 
GeneralRe: getting scroll bar in ASP.Net Listbox control Pin
AlexeiXX326-Sep-08 8:40
AlexeiXX326-Sep-08 8:40 
GeneralRe: getting scroll bar in ASP.Net Listbox control Pin
John.G26-Sep-08 9:18
John.G26-Sep-08 9:18 
Questionmaking use of confirm while onunload Pin
John.G26-Sep-08 6:24
John.G26-Sep-08 6:24 
AnswerRe: making use of confirm while onunload Pin
AlexeiXX326-Sep-08 8:15
AlexeiXX326-Sep-08 8:15 
GeneralRe: making use of confirm while onunload Pin
John.G26-Sep-08 8:34
John.G26-Sep-08 8:34 
GeneralRe: making use of confirm while onunload Pin
AlexeiXX326-Sep-08 8:37
AlexeiXX326-Sep-08 8:37 
QuestionFileUpload control issue Pin
kenexcelon26-Sep-08 5:41
kenexcelon26-Sep-08 5:41 
AnswerRe: FileUpload control issue Pin
ToddHileHoffer26-Sep-08 6:54
ToddHileHoffer26-Sep-08 6:54 
GeneralRe: FileUpload control issue [modified] Pin
kenexcelon26-Sep-08 9:23
kenexcelon26-Sep-08 9:23 

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.