Ask a Question related to ASP.NET General, Design and Development.
-
Sara T. #1
Submit in User Control
If I have one page aspx that is using two same user control, how can I know
in page load event of aspx that which id of user control is submit ?
Sara T. Guest
-
user control problem access value from user control to a page
Thanks a lot for paying attention to my problem , i tell u the problem i have a main form in which i gave a login label that points to a... -
Dynamically Adding User Control with Child User Control
I have a user control that has a child user control. If I drag this onto the page, it appears and functions normally. If I attempt to add the... -
Know in user control page_load if an user control event is going to be fired
Hi all, i have built a user control that shows a map and let the user zoom in, out, usual stuff. Putting this object in a webform the user can... -
control value after submit
QUESTION IS AT BOTTOM... ------------- ASPX ----------------------------------------- <form id="form1" runat="server"> <asp:placeholder... -
User Must Submit Twice For Data to Send
For an odd reason that I cannot figure out on my own, when a user attempts to log-in on my Log-In page, they must press the submit button twice. ... -
mike #2
Submit in User Control
You get the SubmitControl ID in the Request.form
Collection - if you have two usercontrols with ids UC1
and UC2 and in both there is a button PbSubmit, and you
press PbSubmit in Uc2, request.form["UC2:PbSubmit"]
exists and
request.form["UC1:PbSubmit"] doesn`t exists. So you could
write in PageLoad:
if (!IsPostback)
{
if (request.form["UC2:PbSubmit"]!=null)
{ Uc2 submitted}
if (request.form["UC1:PbSubmit"]!=null)
{ Uc1 submitted}
}
control, how can I know>-----Original Message-----
>If I have one page aspx that is using two same useris submit ?>in page load event of aspx that which id of user control>
>
>.
>mike Guest
-
Sara T. #3
Re: Submit in User Control
Almost done.
But below routine is for checking there is user control in form or not but I
need to check that which submit button is pressed from user control.
"mike" <docmike@gmx.at> wrote in message
news:019101c34bb3$700aefe0$a101280a@phx.gbl...> You get the SubmitControl ID in the Request.form
> Collection - if you have two usercontrols with ids UC1
> and UC2 and in both there is a button PbSubmit, and you
> press PbSubmit in Uc2, request.form["UC2:PbSubmit"]
> exists and
> request.form["UC1:PbSubmit"] doesn`t exists. So you could
> write in PageLoad:
>
> if (!IsPostback)
> {
> if (request.form["UC2:PbSubmit"]!=null)
> { Uc2 submitted}
> if (request.form["UC1:PbSubmit"]!=null)
> { Uc1 submitted}
> }
Sara T. Guest



Reply With Quote

