Click here to Skip to main content
15,911,132 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Reducing pixelization in images Pin
anu817-Nov-06 21:59
anu817-Nov-06 21:59 
AnswerRe: Reducing pixelization in images Pin
Britney S. Morales8-Nov-06 3:20
Britney S. Morales8-Nov-06 3:20 
Questionasp:listbox move item by javascript Pin
karanba7-Nov-06 20:41
karanba7-Nov-06 20:41 
AnswerRe: asp:listbox move item by javascript Pin
Sandeep Akhare7-Nov-06 21:18
Sandeep Akhare7-Nov-06 21:18 
GeneralRe: asp:listbox move item by javascript Pin
karanba7-Nov-06 21:41
karanba7-Nov-06 21:41 
AnswerRe: asp:listbox move item by javascript Pin
Mahesh.Vaghela7-Nov-06 23:07
Mahesh.Vaghela7-Nov-06 23:07 
GeneralRe: asp:listbox move item by javascript Pin
karanba7-Nov-06 23:42
karanba7-Nov-06 23:42 
QuestionHow to define event for a page? [modified] Pin
immori7-Nov-06 20:34
immori7-Nov-06 20:34 
Hi my dears,
I`ve written a Web UserControl which has a timer with interval and elapsed event. and I want to raise an event in Timer elapsed method. then I defined a delegate and an event in my Web UserControl . Now I should register this event to my default.aspx page and catch the raised event from my web userControl in a method in my default.aspx page.
But I dont know how to register event in aspx page! the code I used is :

<br />
//my UserControl named reminder.ascx<br />
public delegate void myDelegate(string s);<br />
public static myDelegate myEvevnt;<br />
protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
        System.Timers.Timer myTimer = new System.Timers.Timer();<br />
        myTimer.Elapsed += new System.Timers.ElapsedEventHandler(myTimer_Elapsed);<br />
        myTimer.Interval = 3000;<br />
        myTimer.Enabled = true;<br />
    }<br />
protected static void myTimer_Elapsed(object source, ElapsedEventArgs e)<br />
    {<br />
        myEvevnt("hhh");<br />
    }<br />
//*************************************<br />
// my default.aspx page <br />
public partial class _Default : System.Web.UI.Page <br />
{<br />
protected void Page_Load(object sender, EventArgs e)<br />
    {<br />
    _Default.Event += new   reminder.myDelegate (RecieveEvent);//my question is here.What should I write ???<br />
    }<br />








-- modified at 3:17 Wednesday 8th November, 2006
AnswerRe: How to define event for a page? Pin
_mubashir7-Nov-06 21:28
_mubashir7-Nov-06 21:28 
QuestionHow to increament date value Pin
Sam.M7-Nov-06 20:15
Sam.M7-Nov-06 20:15 
AnswerRe: How to increament date value Pin
johnny19807-Nov-06 20:34
johnny19807-Nov-06 20:34 
AnswerRe: How to increament date value Pin
_mubashir7-Nov-06 20:35
_mubashir7-Nov-06 20:35 
QuestionLiteral control retain text even with viewstate disabled Pin
Nitin19817-Nov-06 19:52
Nitin19817-Nov-06 19:52 
QuestionUse multiple web.config in one application Pin
Sushant Duggal7-Nov-06 19:35
Sushant Duggal7-Nov-06 19:35 
AnswerRe: Use multiple web.config in one application Pin
_AK_7-Nov-06 19:37
_AK_7-Nov-06 19:37 
AnswerRe: Use multiple web.config in one application Pin
Sandeep Akhare7-Nov-06 19:45
Sandeep Akhare7-Nov-06 19:45 
GeneralRe: Use multiple web.config in one application Pin
Sushant Duggal7-Nov-06 19:48
Sushant Duggal7-Nov-06 19:48 
GeneralRe: Use multiple web.config in one application Pin
PavanPareta10-Nov-06 1:23
PavanPareta10-Nov-06 1:23 
GeneralRe: Use multiple web.config in one application Pin
Sushant Duggal7-Nov-06 19:52
Sushant Duggal7-Nov-06 19:52 
AnswerRe: Use multiple web.config in one application Pin
Ravi Shankar437-Nov-06 20:12
Ravi Shankar437-Nov-06 20:12 
GeneralRe: Use multiple web.config in one application Pin
Sushant Duggal7-Nov-06 23:26
Sushant Duggal7-Nov-06 23:26 
GeneralRe: Use multiple web.config in one application Pin
Sushant Duggal7-Nov-06 23:26
Sushant Duggal7-Nov-06 23:26 
QuestionProblem in dropdownlist? [modified] Pin
nabeelkhan7-Nov-06 19:28
nabeelkhan7-Nov-06 19:28 
AnswerRe: Problem in dropdownlist? Pin
_AK_7-Nov-06 19:33
_AK_7-Nov-06 19:33 
GeneralRe: Problem in dropdownlist? Pin
nabeelkhan7-Nov-06 20:12
nabeelkhan7-Nov-06 20:12 

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.