P
psb
QUESTION IS AT BOTTOM...
------------- ASPX -----------------------------------------
<form id="form1" runat="server">
<asp
laceholder id="plhA" runat="server"/>
<input type="submit" id="btnS" runat="server"/>
</form>
-------------------
myControl.ascx ---------------------------------------------
<input type="text" id="txb1" runat="server"/>
-------------- code
behind --------------------------------------------------
function page_load()
if not page.ispostback then
plhA.controls.add(LoadControl("c:\webs\myControl.ascx"))
end if
end function
------------------------------------------
function btnS_Serverclick()
Page.FindControl("txb1") 'IS NOTHING WHY??
plhA.FindControl("txb1") 'IS NOTHING WHY??
request.form("_ctl45_txb1") IS CORRECT!!!
end function
HOW DO I GET THE VALUE OF THE TEXT BOX WITHOUT USING REQUEST.FORM() INSIDE
btnS_Serverclick() FUNCTION???
thanks,
~psb
------------- ASPX -----------------------------------------
<form id="form1" runat="server">
<asp
<input type="submit" id="btnS" runat="server"/>
</form>
-------------------
myControl.ascx ---------------------------------------------
<input type="text" id="txb1" runat="server"/>
-------------- code
behind --------------------------------------------------
function page_load()
if not page.ispostback then
plhA.controls.add(LoadControl("c:\webs\myControl.ascx"))
end if
end function
------------------------------------------
function btnS_Serverclick()
Page.FindControl("txb1") 'IS NOTHING WHY??
plhA.FindControl("txb1") 'IS NOTHING WHY??
request.form("_ctl45_txb1") IS CORRECT!!!
end function
HOW DO I GET THE VALUE OF THE TEXT BOX WITHOUT USING REQUEST.FORM() INSIDE
btnS_Serverclick() FUNCTION???
thanks,
~psb