Hi there,
I have a UserControl with a couple of textboxes and a couple of buttons
("Save" and "Cancel"). The Click event for this buttons is in the
UserControl's codebehind of course, so here's my question.
Once the UserControl is dropped onto the container page, how can I perform
some action on the codebehind of the container page from the codebehind of
the UserControl? For instance, suppose that the UserControl is dropped
inside one of the Views of a Multiview control on the container page. By
clicking the "Cancel" button of the UserControl, I would like to change the
active view of the container page's Multiview control.
How can this be done in ASP.NET 2.0?
Thanks in advance,
-Benton 10 2388
I would suggest using a custom event from the UserControl (eg
Cancelled) and subscribing to it in the Page. It will then be up to the
page to handle the event (switch active views).
Benton wrote:
Hi there,
I have a UserControl with a couple of textboxes and a couple of buttons
("Save" and "Cancel"). The Click event for this buttons is in the
UserControl's codebehind of course, so here's my question.
Once the UserControl is dropped onto the container page, how can I perform
some action on the codebehind of the container page from the codebehind of
the UserControl? For instance, suppose that the UserControl is dropped
inside one of the Views of a Multiview control on the container page. By
clicking the "Cancel" button of the UserControl, I would like to change the
active view of the container page's Multiview control.
How can this be done in ASP.NET 2.0?
Thanks in advance,
-Benton
Benton,
It sounds like you want the Page to tell the User Control to do
something, or to at least set a value it can use.
What I do is create a public property on User Controls. That exposes a
value I can set for behavior. Then in the Load or even PreRender event
handler for the User Control you can use that property to control
behavior.
What I would not do is set up a method on the User Control because this
is an event driven model. You will want to stay in that event driven
model and let the User Control respond to properties as you do with
controls like TextBox and ListBox. You just adjust properties on those
controls as well.
Brennan Stehling http://brennan.offwhite.net/blog/
Benton wrote:
Hi there,
I have a UserControl with a couple of textboxes and a couple of buttons
("Save" and "Cancel"). The Click event for this buttons is in the
UserControl's codebehind of course, so here's my question.
Once the UserControl is dropped onto the container page, how can I perform
some action on the codebehind of the container page from the codebehind of
the UserControl? For instance, suppose that the UserControl is dropped
inside one of the Views of a Multiview control on the container page. By
clicking the "Cancel" button of the UserControl, I would like to change the
active view of the container page's Multiview control.
How can this be done in ASP.NET 2.0?
Thanks in advance,
-Benton
It sounds like you want the Page to tell the User Control to do
something, or to at least set a value it can use.
Actually it's the opposite: I want the UserControl to tell its container
page to do something when "something happens" in the UserControl itself,
i.e., the container page should switch the active view when a button is
clicked on the UserControl.
Thanks for any hint,
-Benton
What I do is create a public property on User Controls. That exposes a
value I can set for behavior. Then in the Load or even PreRender event
handler for the User Control you can use that property to control
behavior.
What I would not do is set up a method on the User Control because this
is an event driven model. You will want to stay in that event driven
model and let the User Control respond to properties as you do with
controls like TextBox and ListBox. You just adjust properties on those
controls as well.
Brennan Stehling http://brennan.offwhite.net/blog/
Benton wrote:
>Hi there,
I have a UserControl with a couple of textboxes and a couple of buttons ("Save" and "Cancel"). The Click event for this buttons is in the UserControl's codebehind of course, so here's my question.
Once the UserControl is dropped onto the container page, how can I perform some action on the codebehind of the container page from the codebehind of the UserControl? For instance, suppose that the UserControl is dropped inside one of the Views of a Multiview control on the container page. By clicking the "Cancel" button of the UserControl, I would like to change the active view of the container page's Multiview control.
How can this be done in ASP.NET 2.0?
Thanks in advance,
-Benton
>I would suggest using a custom event from the UserControl (eg
Cancelled) and subscribing to it in the Page. It will then be up to the
page to handle the event (switch active views).
Sounds very promising, thank you. Can you please provide me with some code
sample to get me started?
Thanks in advance,
-Benton
>
Benton wrote:
>Hi there,
I have a UserControl with a couple of textboxes and a couple of buttons ("Save" and "Cancel"). The Click event for this buttons is in the UserControl's codebehind of course, so here's my question.
Once the UserControl is dropped onto the container page, how can I perform some action on the codebehind of the container page from the codebehind of the UserControl? For instance, suppose that the UserControl is dropped inside one of the Views of a Multiview control on the container page. By clicking the "Cancel" button of the UserControl, I would like to change the active view of the container page's Multiview control.
How can this be done in ASP.NET 2.0?
Thanks in advance,
-Benton
>I would suggest using a custom event from the UserControl (eg
Cancelled) and subscribing to it in the Page. It will then be up to the
page to handle the event (switch active views).
Thanks for the idea. I investigated events and finally accomplished what I
was looking for. This article was invaluable: http://www.csharphelp.com/archives/archive253.html
Again, thanks a million for the help.
Regards,
-Benton
Benton wrote:
>Hi there,
I have a UserControl with a couple of textboxes and a couple of buttons ("Save" and "Cancel"). The Click event for this buttons is in the UserControl's codebehind of course, so here's my question.
Once the UserControl is dropped onto the container page, how can I perform some action on the codebehind of the container page from the codebehind of the UserControl? For instance, suppose that the UserControl is dropped inside one of the Views of a Multiview control on the container page. By clicking the "Cancel" button of the UserControl, I would like to change the active view of the container page's Multiview control.
How can this be done in ASP.NET 2.0?
Thanks in advance,
-Benton
The best practices way is to override the OnBubbleEvent on the hosting
page.
In your UserControl, you have it contain its events. When an event
occurs, lets say in your ItemCommand eventhandler on the usercontrol,
you call RaiseBubbleEvent(source,e).
This will pass the event properly up the chain without your hosting
page needing to know anything about the specific user control.
Kevin Ferron
Benton wrote:
It sounds like you want the Page to tell the User Control to do
something, or to at least set a value it can use.
Actually it's the opposite: I want the UserControl to tell its container
page to do something when "something happens" in the UserControl itself,
i.e., the container page should switch the active view when a button is
clicked on the UserControl.
Thanks for any hint,
-Benton
What I do is create a public property on User Controls. That exposes a
value I can set for behavior. Then in the Load or even PreRender event
handler for the User Control you can use that property to control
behavior.
What I would not do is set up a method on the User Control because this
is an event driven model. You will want to stay in that event driven
model and let the User Control respond to properties as you do with
controls like TextBox and ListBox. You just adjust properties on those
controls as well.
Brennan Stehling http://brennan.offwhite.net/blog/
Benton wrote:
Hi there,
I have a UserControl with a couple of textboxes and a couple of buttons
("Save" and "Cancel"). The Click event for this buttons is in the
UserControl's codebehind of course, so here's my question.
Once the UserControl is dropped onto the container page, how can I
perform
some action on the codebehind of the container page from the codebehind
of
the UserControl? For instance, suppose that the UserControl is dropped
inside one of the Views of a Multiview control on the container page. By
clicking the "Cancel" button of the UserControl, I would like to change
the
active view of the container page's Multiview control.
How can this be done in ASP.NET 2.0?
Thanks in advance,
-Benton
Here is what I would do to add event handling support.
I tried the OnBubbleEvent once but it was just counter-intuitive for
object oriented coding. I prefer defining an event with a good name
which makes sense the the subscriber. I also like how it gives you
Intellisense support. Now I simply add events to my child controls and
subscribe to them.
public event CancelEventHandler ChangingThing;
public event EventHandler ChangedThing;
There is a lot of ways you can define events now, but I like the above
syntax the best. The first one is called before change and the second
one after. The first one uses the CancelEventHandler. Then the
convention is to create a method like the one below to trigger the
event.
protected virtual void ChangingThing(CancelEventArgs e)
{
if (SendingMail != null)
{
SendingMail(this, e);
}
}
Where it is called, you will do this.
CancelEventArgs args = new CancelEventArgs();
OnChangingThing(args);
if (!args.Cancel)
{
// do stuff
OnChangedThing(EventArgs.Empty);
}
This way you can have the event prevent an action from taking place. I
did this for a contact form control. The full source is here... http://svn.offwhite.net/svn/SmallSha...ContactForm.cs
Brennan Stehling http://brennan.offwhite.net/blog/
kferron wrote:
The best practices way is to override the OnBubbleEvent on the hosting
page.
In your UserControl, you have it contain its events. When an event
occurs, lets say in your ItemCommand eventhandler on the usercontrol,
you call RaiseBubbleEvent(source,e).
This will pass the event properly up the chain without your hosting
page needing to know anything about the specific user control.
Kevin Ferron
Benton wrote:
It sounds like you want the Page to tell the User Control to do
something, or to at least set a value it can use.
Actually it's the opposite: I want the UserControl to tell its container
page to do something when "something happens" in the UserControl itself,
i.e., the container page should switch the active view when a button is
clicked on the UserControl.
Thanks for any hint,
-Benton
What I do is create a public property on User Controls. That exposes a
value I can set for behavior. Then in the Load or even PreRender event
handler for the User Control you can use that property to control
behavior.
>
What I would not do is set up a method on the User Control because this
is an event driven model. You will want to stay in that event driven
model and let the User Control respond to properties as you do with
controls like TextBox and ListBox. You just adjust properties on those
controls as well.
>
Brennan Stehling http://brennan.offwhite.net/blog/
>
Benton wrote:
>Hi there,
>>
>I have a UserControl with a couple of textboxes and a couple of buttons
>("Save" and "Cancel"). The Click event for this buttons is in the
>UserControl's codebehind of course, so here's my question.
>>
>Once the UserControl is dropped onto the container page, how can I
>perform
>some action on the codebehind of the container page from the codebehind
>of
>the UserControl? For instance, suppose that the UserControl is dropped
>inside one of the Views of a Multiview control on the container page. By
>clicking the "Cancel" button of the UserControl, I would like to change
>the
>active view of the container page's Multiview control.
>>
>How can this be done in ASP.NET 2.0?
>>
>Thanks in advance,
>>
>-Benton
>
hey i like what you're saying, but i disagree with you in a lot of
asp.net scenarios, and the reason is that bubbling events is a really
key lever that asp.net provides for you for navigating the event model
gracefully, and if you're not taking advantage of it, odds are, your
asp.net code ends up doing a lot to compensate for control order
execution, which is critical domain because in the web, you can be
frequently rendering the same page in different orders depending on
many scenarios.
bubbling events offers distinct ways in the context of asp.net that are
advantageous beyond that of custom events, in which you have some
immediate and direct control over the execution flow of your various
webcontrols that are also performing their duties.. the situation that
occurs in a poorly written asp.net application is that by bringing a
control into a page, you break the existing page because of event
wiring issues. the costs of continually rewiring events to subscribers
leads me to believe this isn't getting us anywhere closer to the goal
of reducing headache.
anyway, im rambling, but i do think this is a principle that you should
at least spend some time thinking about, if you were interested in
hearing more about why i think you've overlooked something important
about asp.net, this is from msdn: "Event bubbling ensures that the
event handlers for all elements in which an event occurs have an
opportunity to respond to the event"
On Dec 1, 5:07 pm, "Brennan Stehling" <offwh...@gmail.comwrote:
Here is what I would do to add event handling support.
I tried the OnBubbleEvent once but it was just counter-intuitive for
object oriented coding. I prefer defining an event with a good name
which makes sense the the subscriber. I also like how it gives you
Intellisense support. Now I simply add events to my child controls and
subscribe to them.
public event CancelEventHandler ChangingThing;
public event EventHandler ChangedThing;
There is a lot of ways you can define events now, but I like the above
syntax the best. The first one is called before change and the second
one after. The first one uses the CancelEventHandler. Then the
convention is to create a method like the one below to trigger the
event.
protected virtual void ChangingThing(CancelEventArgs e)
{
if (SendingMail != null)
{
SendingMail(this, e);
}
}
Where it is called, you will do this.
CancelEventArgs args = new CancelEventArgs();
OnChangingThing(args);
if (!args.Cancel)
{
// do stuff
OnChangedThing(EventArgs.Empty);
}
This way you can have the event prevent an action from taking place. I
did this for a contact form control. The full source is here...
http://svn.offwhite.net/svn/SmallSha...runk/ClassLibr...
BrennanStehlinghttp://brennan.offwhite.net/blog/
kferron wrote:
The best practices way is to override the OnBubbleEvent on the hosting
page.
In your UserControl, you have it contain its events. When an event
occurs, lets say in your ItemCommand eventhandler on the usercontrol,
you call RaiseBubbleEvent(source,e).
This will pass the event properly up the chain without your hosting
page needing to know anything about the specific user control.
Kevin Ferron
Benton wrote:
It sounds like you want the Page to tell the User Control to do
something, or to at least set a value it can use.
Actually it's the opposite: I want the UserControl to tell its container
page to do something when "something happens" in the UserControl itself,
i.e., the container page should switch the active view when a button is
clicked on the UserControl.
Thanks for any hint,
-Benton
What I do is create a public property on User Controls. That exposes a
value I can set for behavior. Then in the Load or even PreRender event
handler for the User Control you can use that property to control
behavior.
What I would not do is set up a method on the User Control because this
is an event driven model. You will want to stay in that event driven
model and let the User Control respond to properties as you do with
controls like TextBox and ListBox. You just adjust properties on those
controls as well.
BrennanStehling http://brennan.offwhite.net/blog/
Benton wrote:
Hi there,
I have a UserControl with a couple of textboxes and a couple of buttons
("Save" and "Cancel"). The Click event for this buttons is in the
UserControl's codebehind of course, so here's my question.
Once the UserControl is dropped onto the container page, how can I
perform
some action on the codebehind of the container page from the codebehind
of
the UserControl? For instance, suppose that the UserControl is dropped
inside one of the Views of a Multiview control on the container page. By
clicking the "Cancel" button of the UserControl, I would like to change
the
active view of the container page's Multiview control.
How can this be done in ASP.NET 2.0?
Thanks in advance,
-Benton- Hide quoted text -- Show quoted text -
kferron,
I do not see what is wrong with making a parent control subscribe to a
named event on the child control. By just capturing bubbled events you
will not have the same relationship set up between the controls. If
the child control has a button click event rise to the parent control,
do you react based on the CommandName and CommandArgument? How do you
handle the context? (btw, your link did not make it through the news
reader)
I am sure there is sufficient reason to use either approach. But I do
think bubbling between a Page and User Control is where I would not
apply the bubbling approach. In the case of a complex templated server
control, like a GridView, I can see how you would have a button in an
individual templated cell allow the event to bubble up to a parent
where it would capture it and raise the RowCommand event. In this way
you use both named events and bubbling in a very smart way so you do
not have to set up all of those subscribers, but still give the user of
this control a robust interface.
Having a User Control bubble up events which may be used across
multiple pages seems to create relationships which are difficult to
manage which would get out the line quickly.
Perhaps in the future when I create a complex server control I will
internally bubble events and wrap them with my named events. I do not
know if that is how the GridView actually works, but it seems like a
reasonable approach to me.
Brennan Stehling http://brennan.offwhite.net/blog/
ASP.NET JAD (Just Another Developer)
kferron wrote:
hey i like what you're saying, but i disagree with you in a lot of
asp.net scenarios, and the reason is that bubbling events is a really
key lever that asp.net provides for you for navigating the event model
gracefully, and if you're not taking advantage of it, odds are, your
asp.net code ends up doing a lot to compensate for control order
execution, which is critical domain because in the web, you can be
frequently rendering the same page in different orders depending on
many scenarios.
bubbling events offers distinct ways in the context of asp.net that are
advantageous beyond that of custom events, in which you have some
immediate and direct control over the execution flow of your various
webcontrols that are also performing their duties.. the situation that
occurs in a poorly written asp.net application is that by bringing a
control into a page, you break the existing page because of event
wiring issues. the costs of continually rewiring events to subscribers
leads me to believe this isn't getting us anywhere closer to the goal
of reducing headache.
anyway, im rambling, but i do think this is a principle that you should
at least spend some time thinking about, if you were interested in
hearing more about why i think you've overlooked something important
about asp.net, this is from msdn: "Event bubbling ensures that the
event handlers for all elements in which an event occurs have an
opportunity to respond to the event"
On Dec 1, 5:07 pm, "Brennan Stehling" <offwh...@gmail.comwrote:
Here is what I would do to add event handling support.
I tried the OnBubbleEvent once but it was just counter-intuitive for
object oriented coding. I prefer defining an event with a good name
which makes sense the the subscriber. I also like how it gives you
Intellisense support. Now I simply add events to my child controls and
subscribe to them.
public event CancelEventHandler ChangingThing;
public event EventHandler ChangedThing;
There is a lot of ways you can define events now, but I like the above
syntax the best. The first one is called before change and the second
one after. The first one uses the CancelEventHandler. Then the
convention is to create a method like the one below to trigger the
event.
protected virtual void ChangingThing(CancelEventArgs e)
{
if (SendingMail != null)
{
SendingMail(this, e);
}
}
Where it is called, you will do this.
CancelEventArgs args = new CancelEventArgs();
OnChangingThing(args);
if (!args.Cancel)
{
// do stuff
OnChangedThing(EventArgs.Empty);
}
This way you can have the event prevent an action from taking place. I
did this for a contact form control. The full source is here... http://svn.offwhite.net/svn/SmallSha...runk/ClassLibr...
BrennanStehlinghttp://brennan.offwhite.net/blog/
kferron wrote:
The best practices way is to override the OnBubbleEvent on the hosting
page.
In your UserControl, you have it contain its events. When an event
occurs, lets say in your ItemCommand eventhandler on the usercontrol,
you call RaiseBubbleEvent(source,e).
This will pass the event properly up the chain without your hosting
page needing to know anything about the specific user control.
Kevin Ferron
Benton wrote:
It sounds like you want the Page to tell the User Control to do
something, or to at least set a value it can use.
Actually it's the opposite: I want the UserControl to tell its container
page to do something when "something happens" in the UserControl itself,
i.e., the container page should switch the active view when a button is
clicked on the UserControl.
Thanks for any hint,
-Benton
What I do is create a public property on User Controls. That exposes a
value I can set for behavior. Then in the Load or even PreRender event
handler for the User Control you can use that property to control
behavior.
What I would not do is set up a method on the User Control because this
is an event driven model. You will want to stay in that event driven
model and let the User Control respond to properties as you do with
controls like TextBox and ListBox. You just adjust properties on those
controls as well.
>BrennanStehling
>http://brennan.offwhite.net/blog/
Benton wrote:
>Hi there,
>I have a UserControl with a couple of textboxes and a couple of buttons
>("Save" and "Cancel"). The Click event for this buttons is in the
>UserControl's codebehind of course, so here's my question.
>Once the UserControl is dropped onto the container page, how can I
>perform
>some action on the codebehind of the container page from the codebehind
>of
>the UserControl? For instance, suppose that the UserControl is dropped
>inside one of the Views of a Multiview control on the container page. By
>clicking the "Cancel" button of the UserControl, I would like to change
>the
>active view of the container page's Multiview control.
>How can this be done in ASP.NET 2.0?
>Thanks in advance,
>-Benton- Hide quoted text -- Show quoted text -
Brennan,
if you use bubbling, you can put a UserControl in another UserControl
and still ensure the firing all the way up (or down) the chain. This
would happen without any of the usercontrols along the chain knowing
anything about each other.
although your first point is valid, the typical approach is to
implement a command factory that actually knows how to interpret the
commands (building the command concrete types based on commandname and
commandargument), and then having your Page class execute the command,
without actually knowing the details.
certainly both approaches can make sense, and even in combination, and
i didnt mean to come across as bubbling was always the correct
mechanism to utilize!
have a good one
kferron
Brennan Stehling wrote:
kferron,
I do not see what is wrong with making a parent control subscribe to a
named event on the child control. By just capturing bubbled events you
will not have the same relationship set up between the controls. If
the child control has a button click event rise to the parent control,
do you react based on the CommandName and CommandArgument? How do you
handle the context? (btw, your link did not make it through the news
reader)
I am sure there is sufficient reason to use either approach. But I do
think bubbling between a Page and User Control is where I would not
apply the bubbling approach. In the case of a complex templated server
control, like a GridView, I can see how you would have a button in an
individual templated cell allow the event to bubble up to a parent
where it would capture it and raise the RowCommand event. In this way
you use both named events and bubbling in a very smart way so you do
not have to set up all of those subscribers, but still give the user of
this control a robust interface.
Having a User Control bubble up events which may be used across
multiple pages seems to create relationships which are difficult to
manage which would get out the line quickly.
Perhaps in the future when I create a complex server control I will
internally bubble events and wrap them with my named events. I do not
know if that is how the GridView actually works, but it seems like a
reasonable approach to me.
Brennan Stehling http://brennan.offwhite.net/blog/
ASP.NET JAD (Just Another Developer)
kferron wrote:
hey i like what you're saying, but i disagree with you in a lot of
asp.net scenarios, and the reason is that bubbling events is a really
key lever that asp.net provides for you for navigating the event model
gracefully, and if you're not taking advantage of it, odds are, your
asp.net code ends up doing a lot to compensate for control order
execution, which is critical domain because in the web, you can be
frequently rendering the same page in different orders depending on
many scenarios.
bubbling events offers distinct ways in the context of asp.net that are
advantageous beyond that of custom events, in which you have some
immediate and direct control over the execution flow of your various
webcontrols that are also performing their duties.. the situation that
occurs in a poorly written asp.net application is that by bringing a
control into a page, you break the existing page because of event
wiring issues. the costs of continually rewiring events to subscribers
leads me to believe this isn't getting us anywhere closer to the goal
of reducing headache.
anyway, im rambling, but i do think this is a principle that you should
at least spend some time thinking about, if you were interested in
hearing more about why i think you've overlooked something important
about asp.net, this is from msdn: "Event bubbling ensures that the
event handlers for all elements in which an event occurs have an
opportunity to respond to the event"
On Dec 1, 5:07 pm, "Brennan Stehling" <offwh...@gmail.comwrote:
Here is what I would do to add event handling support.
>
I tried the OnBubbleEvent once but it was just counter-intuitive for
object oriented coding. I prefer defining an event with a good name
which makes sense the the subscriber. I also like how it gives you
Intellisense support. Now I simply add events to my child controls and
subscribe to them.
>
public event CancelEventHandler ChangingThing;
public event EventHandler ChangedThing;
>
There is a lot of ways you can define events now, but I like the above
syntax the best. The first one is called before change and the second
one after. The first one uses the CancelEventHandler. Then the
convention is to create a method like the one below to trigger the
event.
>
protected virtual void ChangingThing(CancelEventArgs e)
{
if (SendingMail != null)
{
SendingMail(this, e);
}
}
>
Where it is called, you will do this.
>
CancelEventArgs args = new CancelEventArgs();
OnChangingThing(args);
if (!args.Cancel)
{
// do stuff
OnChangedThing(EventArgs.Empty);
}
>
This way you can have the event prevent an action from taking place. I
did this for a contact form control. The full source is here...
> http://svn.offwhite.net/svn/SmallSha...runk/ClassLibr...
>
BrennanStehlinghttp://brennan.offwhite.net/blog/
>
>
>
kferron wrote:
The best practices way is to override the OnBubbleEvent on the hosting
page.
>
In your UserControl, you have it contain its events. When an event
occurs, lets say in your ItemCommand eventhandler on the usercontrol,
you call RaiseBubbleEvent(source,e).
>
This will pass the event properly up the chain without your hosting
page needing to know anything about the specific user control.
>
Kevin Ferron
>
Benton wrote:
It sounds like you want the Page to tell the User Control to do
something, or to at least set a value it can use.
>
Actually it's the opposite: I want the UserControl to tell its container
page to do something when "something happens" in the UserControl itself,
i.e., the container page should switch the active view when a button is
clicked on the UserControl.
>
Thanks for any hint,
>
-Benton
>
What I do is create a public property on User Controls. That exposes a
value I can set for behavior. Then in the Load or even PreRender event
handler for the User Control you can use that property to control
behavior.
>
What I would not do is set up a method on the User Control because this
is an event driven model. You will want to stay in that event driven
model and let the User Control respond to properties as you do with
controls like TextBox and ListBox. You just adjust properties on those
controls as well.
>
BrennanStehling http://brennan.offwhite.net/blog/
>
Benton wrote:
Hi there,
>
I have a UserControl with a couple of textboxes and a couple of buttons
("Save" and "Cancel"). The Click event for this buttons is in the
UserControl's codebehind of course, so here's my question.
>
Once the UserControl is dropped onto the container page, how can I
perform
some action on the codebehind of the container page from the codebehind
of
the UserControl? For instance, suppose that the UserControl is dropped
inside one of the Views of a Multiview control on the container page. By
clicking the "Cancel" button of the UserControl, I would like to change
the
active view of the container page's Multiview control.
>
How can this be done in ASP.NET 2.0?
>
Thanks in advance,
>
-Benton- Hide quoted text -- Show quoted text -
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bill yeager |
last post by:
When trying to run my web project, I get the following
error:
Parser Error
Description: An error occurred during the parsing of a
resource required to service this request. Please review
the...
|
by: crjunk |
last post by:
I have a droped a UserControl named "ReceivedRecord1" onto my web
form. Currently, I have been saving information typed in by the user
with the following code that is located in the CodeBehind...
|
by: Mat |
last post by:
Hi,
I am having a bit of a problem trying to access / set properties of a
usercontrol from the parent codebehind.
This is what I have so far..
simple.aspx
<%@ Page...
|
by: Pete Davis |
last post by:
I'm fairly weak with ASP.NET. What I'm trying to do is pass an attribute to
a UserControl. The attribute is a value from the CodeBehind for the page.
So in my .aspx I have the following:
...
|
by: N. Demos |
last post by:
Hello,
I have a custom usercontrol, of which I have two instances of in my aspx
page. Both the usercontrol and page have codebehind. In the page
codebehind, I want a member variable for each...
|
by: Lee Chapman |
last post by:
Hi,
Can anyone tell me why in the code below, the call to ClearChildViewState()
has no effect?
To paraphrase the code: I'm using view state. I have a textbox and a submit
button (and a label...
|
by: Will Gillen |
last post by:
I know this has probably been asked before, but I can't seem to find a solid
answer in any of the archives. First, before my question, please forgive my
limited knowledge of the event lifecycle...
|
by: Marcelo Cabrera |
last post by:
Hi,
I have a user control that in turn creates a bunch of webcontrols
dynamically and handles the events these webcontrols raise. It used to work
fine on ASP .Net 1.1 but when compiled on 2.0 it...
|
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= |
last post by:
Hi. I have created a UserControl ("MyUC"). I've put a bunch of instances of
that control on a Page ("Defaul.aspx"). The control works fine.
Now, I want to be able to use "FindControl()" from...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |