Ask a Question related to ASP.NET General, Design and Development.
-
Marcus Robinson #1
Server Controls in header file
Hi,
I have files called header.ascx and footer.ascx which are included in pages
by a class that inherits System.Web.UI.Page and overides OnInit. See:
-------------------------
Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
Me.Controls.AddAt(0, LoadControl("../header.ascx"))
MyBase.OnInit(e)
Me.Controls.Add(LoadControl("../footer.ascx"))
End Sub
--------------------------
I would like have a DropDownList server control (amongst others) in my
header. How can I achieve this. I am having problems with multiple form
tags and such like.
All help is much appreciated, if you need any more info please ask, thanks
in advance,
Marcus Robinson
The Programming Pages - [url]http://www.programmingpages.com[/url]
Mr ICT Web Hosting - [url]http://www.mrict.co.uk[/url]
Marcus Robinson Guest
-
using javascript in User controls to access server controls of the user control
Hello all, I have an asp.net textbox (named txtHidden) and an HtmlButton(named btnAction). I wanted to write a javascript function which will get... -
Server did not recognize value of HTTP Header SOAPAction
When creating my web service I set the namespace to test. Now that I have completed the service I have changed the namespace to... -
composite controls... Microsoft Press: Dev ASP.NET Server Controls
I have the Microsoft Press: Developing Microsoft ASP.NET Server Controls and Components book. It's starting to shine some light on control... -
Header Controls
Hi All, Can someone help me with what I believe could be a simple answer. I've created a datagrid, of which I have a template column containing... -
how to check controls that on datagrid header
Anyone know why when I loop thru my datagrid item list I don't see my header or footer? I only see the item and alternatingitem types. The footer... -
S. Justin Gengo #2
Re: Server Controls in header file
Marcus,
You should never put form tags into a .ascx control. The only form tags
should be on the .aspx page itself. Then when you drop your control onto the
form it get's included inside of the .aspx page's form.
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Marcus Robinson" <mDeErL1E0T8E@york.ac.uk> wrote in message
news:3f3683fb$0$18497$cc9e4d1f@news.dial.pipex.com ...pages> Hi,
>
> I have files called header.ascx and footer.ascx which are included in> by a class that inherits System.Web.UI.Page and overides OnInit. See:
> -------------------------
> Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
>
> Me.Controls.AddAt(0, LoadControl("../header.ascx"))
> MyBase.OnInit(e)
> Me.Controls.Add(LoadControl("../footer.ascx"))
>
> End Sub
> --------------------------
>
> I would like have a DropDownList server control (amongst others) in my
> header. How can I achieve this. I am having problems with multiple form
> tags and such like.
>
> All help is much appreciated, if you need any more info please ask, thanks
> in advance,
>
> Marcus Robinson
>
> The Programming Pages - [url]http://www.programmingpages.com[/url]
> Mr ICT Web Hosting - [url]http://www.mrict.co.uk[/url]
>
>
S. Justin Gengo Guest



Reply With Quote

