开发者

Use different name in asp:hiddenfield

开发者 https://www.devze.com 2023-02-03 14:05 出处:网络
I have a for which is built within an ASP.net usercontrol.Th开发者_开发技巧is form is then used within a CMS as part of integration with a merchant gateway.The gateway requires that a number of hidden

I have a for which is built within an ASP.net usercontrol. Th开发者_开发技巧is form is then used within a CMS as part of integration with a merchant gateway. The gateway requires that a number of hiddenfields be passed in which is fine in the main however one of these needs to be called Profile. The CMS I am using also defines a global variable called Profile and as such when I try and add a hidden field with this ID I get errors.

Is there a way of setting the 'name' property to Profile, and the ID to something different?


How about using plain HTML:

<input type="hidden" 
       name="Profile" 
       id="SomeId" 
       value="<%= Server.HtmlEncode("some value") %>" 
/>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号