Inserting <Object> before <form> tag when rendering control - Can it be done?

I have an ActiveX object that must be delcared outside the default <form> tag of my  web control.    In other words, when the control renders and writes out the <form element>, I need to place an object tag BEFORE "<form>" is written.   

What happens now:
<form VIEWSTATE= " ... " >
<object> objectstuff </object>
</form>
what I need is:
<object>objectstuff</object>
<form VIEWSTATE= " ... " ></form>
I have tried the RegisterClientScriptBlock method on a whim, but it places the code inside the <form> tag. I've tried other methods to no avail. The object absolutely fails if placed inside the form tag. I am not sure what method to override or how I can register the ActiveX any other way.
How can I get the Web control to write out the Object Tag before the default Form Tag?
thanks -
David.
0
DavidInDC
2/27/2005 5:49:12 PM
asp.net.web-forms 93655 articles. 6 followers. Follow

0 Replies
955 Views

Similar Articles

[PageSpeed] 50
Get it on Google Play
Get it on Apple App Store

Reply:

Similar Artilces:

How to strip a string of <html>, ,</html>, <body>, </body>, <form ... >, </form> tags?
I have stream which is the HTML input of a page. Now I want to use only that part of this page, that is within <form .....> and </form> tags, and excluding these tags.How would I go about stripping <html>, ,</html>, <body>, </body>, <form ... >, </form>, <head> and </head> tags? I have to make sure that <head ...javascript..> and its corresponding </head> tags are not stripped in this process.sun21170    Wait... you said you wanted to strip the head tags, and you're also saying you need to NOT strip the ...

Viewstate <--> Methods; Session <--> Web Forms; Something?? <--> Email?
This is along shot but I'm cautiously optimistic someone has thought of it long before and possibly an simple answer does exist... If I want to move a thing between methods (I still call them subroutines) I can put the thing in a ViewState and then later take it out. If I want to move a thing between web forms, I can put the thing into a Session and then later take it out. Is there a somethingX that if I want to I can take the thing put it into a somethingX put the somethingX into a file and email the file take the somethingX out of the file read the somethi...

Need Help With <form runat=server></form> Tags
Hello everyone I have a real newbie question for anyone that wants to help me out...... I am creating a e-commerce website right now (yes a massive project for me) and I am having this problem. I have set up my site with a master page and then the content pages. On my master page I have a login view and inside that login view I have a login name <asp:LoginName ID="LoginName1" runat="server"> I just draged and dropped it so when my users are signed in they can see a welcome message... this login name requires a <form runat=server> Tag in which I've placed in it....(this works ...

Header and Footer user control contains <html>, <body>, and <form> elements
Hi, I have read that we can not/should not use html, body and form tag in the user control. But here these tags are used in the Header control. I would like to know that although we can use those tags in User Control, should we use or should we follow other alternative for this. Thanks in advance, ---------------------------- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcreatingpageletcontrol.asp ...

Firefox issue with dynamic height inside <form></form> tags
Maybe someone else has experienced this and has a work around.I have a site with a master page that has an iFrame the I load a dynamic URL into, all code works fine. In IE I have no problems but in firefox if the iFrame with the height as a % does NOT resize to the right height if the iframe is inside the <form></form> tags.I've copied the rendered html and put it in a plain html page and when I remove the form tags I have no problems. Has anyone encountered this?Below is my posted .aspx code I've put the style inline in the iFrame for ease of viewing, before it was in a ...

Is it possible to run custom controls in <title><meta> tags without placing the form tag at the start of the page?
Hi, I have created a group of custom controls to allow users/designers to edit the design of dynamic pages easily without doing any code, basically they get given the custom controls and can drop them into web pages and it pulls up the appropriate information when ran on my server (from the querystring/public properties etc), sounds great so far. But my problem is that I want them to be able to put the tags into other parts of the page outside of the body tag, including the pages metadata/title etc eg <title><mytag:pagename runat="server"></title> ...

Bug rendering <p> tags around <pre> or <code> tags
Name: Tim Robinson Email: tcr1272atgmaildotcom Product: Firefox Summary: Bug rendering <p> tags around <pre> or <code> tags Comments: Two Examples below, both render the <p> tags differently and incorrectly. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <body> <p> <pre> <div> my text </div> </pre> <p> <body> <html> <!DOCTYP...

Writing outside <form></form> ?
Is it possible to write characters outside the form tag? I know, you can't insert controls there, but is it just possible to insert ordinary ascii characters? Yes you can.  Normal HTML tags can be outside of the <Form> tag.  What do you have in mind in relation to this question? Of course I meant how to do that programmaticaly, with asp.net. I believe you can, but haven't tried it.  For example, using Page.Controls collection should be possible to achieve this since your Form resides in this collection.  Again, I haven't tried this so I'm not sure what problem...

Rendering a Webform Without default tags <form>, <body> etc. for Ajax
 Hi,Just looking for best practice advice... I am developing using non-MS- Ajax library (prototype.js). I am doing updates on a page using content generated from a webform with <form>, <body> tags removed and just rendering the needed <div> tags with content. Ideally I would use ASP.NET MVC for this but this would be difficult if I (1) wanted to use an existing control (would not work in MVC) and (2) Were working in a project that would not approve MVC current beta state. SO I ended up using this scaled don WebForm in my web application.  My question: Is...

Control <> of type <> must be placed inside a form tag with runat=server
Hi, I created a User Control and tried to place it in the header but I get the following error message Control 'Header1_cal_DropDownList1' of type 'DropDownList' must be placed inside a form tag with runat=server. Why does this happen ? It also does not work for Calendar and Textbox. Thanks Gslick Hi Gslick, Thanks for downloading the Issue Tracker! Unfortunately, the Header.ascx and Footer.ascx files do not include the opening and closing <form runat="Server"> tags. These tags are contained in the individual pages. This means that you ...

superreview granted: [Bug 307819] HTML <label for> not exposed as name for form controls not in <form> : [Attachment 195496] Simple 1 line patch
neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> has granted Aaron Leventhal <aaronleventhal@moonset.net>'s request for superreview: Bug 307819: HTML <label for> not exposed as name for form controls not in <form> https://bugzilla.mozilla.org/show_bug.cgi?id=307819 Attachment 195496: Simple 1 line patch https://bugzilla.mozilla.org/attachment.cgi?id=195496&action=edit ...

superreview requested: [Bug 307819] HTML <label for> not exposed as name for form controls not in <form> : [Attachment 195496] Simple 1 line patch
Aaron Leventhal <aaronleventhal@moonset.net> has asked neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> for superreview: Bug 307819: HTML <label for> not exposed as name for form controls not in <form> https://bugzilla.mozilla.org/show_bug.cgi?id=307819 Attachment 195496: Simple 1 line patch https://bugzilla.mozilla.org/attachment.cgi?id=195496&action=edit ...

I've placed <forms loginUrl="home.aspx"></forms> in web.config and now all users that log in go to default.aspx
I've placed <forms loginUrl="home.aspx"></forms> in web.config and now all users that log in go to default.aspx.        <authentication mode="Forms">        <forms loginUrl="home.aspx"></forms>      </authentication>What attribute I should add, to make the user stay on the same page. Btw when I remove  <forms loginUrl="home.aspx"></forms>, users stay on the same page after login.Thanks. try one of these.....

>>>> Heads up <<<<
I just got a warning from Norton that "PamelaSetup-Basic.exe" has a virus in it. The name is "VirusBurst" Luckily, I did not install this software and Norton's quarantined it so I could delte it, which I have done. Symantec has not completed analysis of this particular piece of garbage but it did catch the sig. If you have installed Pamela, you may be in trouble. Duffy wrote: > I just got a warning from Norton that "PamelaSetup-Basic.exe" has a virus > in it. The name is "VirusBurst" > > Luckily, I did not install...

<form></form>'s Default Button??
I need some serious help here. I know that an asp page can only have one form tag and for all intensive purposes it seems that the first button in the form gets the enter focus. This is rather cumbersome and I was wondering how I could go about changing this? View this thread This is a sample for ASP.Net to show, how easy it is to 'force' a default button for a textbox. You can even try for some third party control http://www.metabuilders.com/Tools/DefaultButtons.aspx~ Firoz AnsariPune, Indiahttp://www.firozansari.comWhy product testing is important? I just found a much easy ...

Web resources about - Inserting <Object> before <form> tag when rendering control - Can it be done? - asp.net.web-forms

Resources last updated: 1/12/2016 5:41:52 AM