Hi , I hope someone can help me. I need to be able to insert a tag in an asp.net web page. Doesn't sound so hard does it? The problem is I need to put it between the pages <form runat="server" ...> tag and the hidden fields rendered by .net for viewstate, i.e.
the one that look like: <input type="hidden" name="__VIEWSTATE" value="dDwtMTk.......> i.e my page renders the following: <form name="Catalog" method="post" action="Catalog.aspx" id="Catalog"> <input type="hidden" name="__VIEWSTATE" value="dDwtMTk3MTcwNzY1O3Q8O2"
/> wherease I would like: <form name="Catalog" method="post" action="Catalog.aspx" id="Catalog"> <input type="hidden" name="__VIEWSTATE" value="dDwtMTk3MTcwNzY1O3Q8O2" /> Does anyone have any ideas other than why the hell do you want to do that!. Thanx in
advance
Why do you need to insert anything before the ViewState info? Browsers should render the markup the same, whether the tag you insert is before or after. As most people wont look at your markup, what's the problem if it appears after?
Arr, I thought someone might ask this. The reason is because the my pages may not always be called directly from the browser. I want the ability to have my pages proxied through Zope. The tags I want to put in before the ViewState fields will used by zope and
not sent to the browser. Is this as clear as mud?
Feline
Member
70 Points
14 Posts
Inserting a Tag between <form> and hidden fields created by .net
Oct 02, 2003 05:02 PM|LINK
macha27
Member
750 Points
148 Posts
Re: Inserting a Tag between <form> and hidden fields created by .net
Oct 02, 2003 06:32 PM|LINK
Page.RegisterHiddenField("myhiddenvalue", "myhiddenvalue")Feline
Member
70 Points
14 Posts
Re: Inserting a Tag between <form> and hidden fields created by .net
Oct 03, 2003 09:56 AM|LINK
stevenbey
All-Star
16526 Points
3378 Posts
Re: Inserting a Tag between <form> and hidden fields created by .net
Oct 03, 2003 10:55 AM|LINK
http://stevenbey.com
Recursion: see Recursion
Feline
Member
70 Points
14 Posts
Re: Inserting a Tag between <form> and hidden fields created by .net
Oct 04, 2003 09:01 AM|LINK