how do yoiu ASP.NET from changing the id attribute????

  • Thread starter Thread starter Trevor Braun
  • Start date Start date
T

Trevor Braun

This is the dumbest thing I've seen in ASP.NET.

I'm trying to submit information from one page to another external (it's a
Moneris pay page), using post method of a form that has a Master page.

However, ASP.NET renames all of my hidden fields so that they cannot be
identified by the external site. I'm trying to send information from my
site to a Moneris pay page, but every time the page loads, the id's of the
hidden fields is appended with some crap about the location of the control.

It seems to not be a problem on "plain" forms, but is a definitely a problem
on a forms that have a master page. How can I stop the ID's of the ASP
hidden fields from changing? I've also tried using just plain HTML hidden
fields, but ASP.NET drops these fields from Request when the form gets
posted. (BTW, I'm using a form with a wizard control if that makes any
difference)

Thanks for any help,
Trevor B
 
Hi Trevor,

Maybe you can you use the Name property to pass your form values
instead of ID?

HTH,
Chris
 
I don't believe so, but it doesn't matter anyway, because ASP.NET changes
the name to match the id.

Thanks for the thought
Trevor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top