I have a Control like that
===
public class BlogMonthList : Control, IPostBackEventHandler
{
protected override void Render(HtmlTextWriter writer)
{
writer.WriteLine(" <a href=\"{0}\">{1}</a><br/>",
Page.ClientScript.GetPostBackClientHyperlink(this, "addblog"),
strings.AddBlog);
}
public void RaisePostBackEvent(string eventArgument)
{
switch (eventArgument)
{
case "addblog":
// do something
break;
}
}
}
===
Now I have a breakpoint in RaisePostBack(), when I click the link, RaisePostBack is never called.
How could that be?
Is there some extra steps I have been missing?
--
I have taken a vow of poverty. If you want to really piss me off, send me money. 3 1264
BTW I have check if I don't mess up with control ID, but the Control's id is the same at each query or postback....
"Lloyd Dupont" <net.galador@ld> wrote in message news:eA**************@TK2MSFTNGP09.phx.gbl...
I have a Control like that
===
public class BlogMonthList : Control, IPostBackEventHandler
{
protected override void Render(HtmlTextWriter writer)
{
writer.WriteLine(" <a href=\"{0}\">{1}</a><br/>",
Page.ClientScript.GetPostBackClientHyperlink(this, "addblog"),
strings.AddBlog);
}
public void RaisePostBackEvent(string eventArgument)
{
switch (eventArgument)
{
case "addblog":
// do something
break;
}
}
}
===
Now I have a breakpoint in RaisePostBack(), when I click the link, RaisePostBack is never called.
How could that be?
Is there some extra steps I have been missing?
--
I have taken a vow of poverty. If you want to really piss me off, send me money.
This Hyperlink is in a UserControl of my owne creation (in C# code).
If I create the hyperlink outside the box it works.
Now I have followed all the steps to correctly create my container control... mysterious...
"Lloyd Dupont" <net.galador@ld> wrote in message news:eA**************@TK2MSFTNGP09.phx.gbl...
I have a Control like that
===
public class BlogMonthList : Control, IPostBackEventHandler
{
protected override void Render(HtmlTextWriter writer)
{
writer.WriteLine(" <a href=\"{0}\">{1}</a><br/>",
Page.ClientScript.GetPostBackClientHyperlink(this, "addblog"),
strings.AddBlog);
}
public void RaisePostBackEvent(string eventArgument)
{
switch (eventArgument)
{
case "addblog":
// do something
break;
}
}
}
===
Now I have a breakpoint in RaisePostBack(), when I click the link, RaisePostBack is never called.
How could that be?
Is there some extra steps I have been missing?
--
I have taken a vow of poverty. If you want to really piss me off, send me money.
Found it!
My templated (C#) container control was not an INamingContainer itself!
"Lloyd Dupont" <net.galador@ld> wrote in message news:eA**************@TK2MSFTNGP09.phx.gbl...
I have a Control like that
===
public class BlogMonthList : Control, IPostBackEventHandler
{
protected override void Render(HtmlTextWriter writer)
{
writer.WriteLine(" <a href=\"{0}\">{1}</a><br/>",
Page.ClientScript.GetPostBackClientHyperlink(this, "addblog"),
strings.AddBlog);
}
public void RaisePostBackEvent(string eventArgument)
{
switch (eventArgument)
{
case "addblog":
// do something
break;
}
}
}
===
Now I have a breakpoint in RaisePostBack(), when I click the link, RaisePostBack is never called.
How could that be?
Is there some extra steps I have been missing?
--
I have taken a vow of poverty. If you want to really piss me off, send me money. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Red |
last post by:
In netscape bookmark files, there are lots of lines like this:
<DT><A HREF="http://www.commondreams.org/" ADD_DATE="1091500674"
LAST_CHARSET="ISO-8859-1" ID="rdf:#$uiYyb3">Common Dreams</A>
I...
|
by: Raymond Hettinger |
last post by:
For your amusement and edification, I'm working on a
series of Python puzzles designed to highlight areas of
the language known only to those who have read the
docs more than once.
Each of the...
|
by: Francis Avila |
last post by:
A few days ago (see the 'itertools.flatten()?' thread from October 28) I
became obsessed with refactoring a recursive generator that yielded the
leaves of nested iterables. When the dust settled,...
|
by: Morris Carré |
last post by:
Back then - in particular, soon after 9/11 - I evidenced the natural irony of
the standard python implementation, by showing it had the clear and
spontaneous humor of replying :
'BUSH'
when...
|
by: Jim Geissman |
last post by:
I have function that returns a table of information about properties. The
data comes from three different tables -- addresses (called PropertyID),
property characteristics, and events concerning...
|
by: BLaci |
last post by:
Please take a look at the following drop in ad:
http://www.traficdublu.ro/dev/dropin.htm
The script is written in the
http://www.traficdublu.ro/dev/amcuceba.js .
I want to call the dropin.htm...
|
by: William Wisnieski |
last post by:
Hello Everyone:
I'm having a very strange problem occurring with my Access 2000 database. I
call it the "mystery record."
Here's the story:
I have a query by form that returns a record set...
|
by: Mark Shelor |
last post by:
I've encountered a troublesome inconsistency in the C-language Perl
extension I've written for CPAN (Digest::SHA). The problem involves the
use of a static array within a performance-critical...
|
by: jojoba |
last post by:
Hi,
I hope this post is ok for this group.
Here's my deal:
I have two computers on my LAN at home.
One desktop. One laptop.
Both computers are wireless enabled (and wired enabled too).
I...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |