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

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
 
C

Chris Fulstow

Hi Trevor,

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

HTH,
Chris
 
T

Trevor Braun

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
 
C

clintonG

We can't change the ID naming schema because the compiler requires control
to keep track of all page related criteria.
I'm just taking a guess but perhaps a Server.Execute to a page that does not
use a Master may be a work-around.

<%= Clinton Gallagher
URL http://clintongallagher.metromilwaukee.com/
 

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

Top