473,385 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
Apr 13 '06 #1
3 1442
Hi Trevor,

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

HTH,
Chris

Apr 14 '06 #2
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

"Chris Fulstow" <ch**********@hotmail.com> wrote in message
news:11*********************@z34g2000cwc.googlegro ups.com...
Hi Trevor,

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

HTH,
Chris

Apr 14 '06 #3
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/
"Trevor Braun" <tb**********************@codetrue.com> wrote in message
news:u5**************@TK2MSFTNGP05.phx.gbl...
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

"Chris Fulstow" <ch**********@hotmail.com> wrote in message
news:11*********************@z34g2000cwc.googlegro ups.com...
Hi Trevor,

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

HTH,
Chris


Apr 14 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: martin | last post by:
I needed a way to display calculated, multiple, changing values (numerical sums) as users interacted with the page, and do this without going back to the server to load the page again. What I...
2
by: clres | last post by:
Hi, I have an XSLT that needs to adjust height and width attributes of images. It sets the width to a particular value and should adjust the height correspondingly. I cannot seem to get it to...
2
by: Paolo Pignatelli | last post by:
I am trying to get an output/file like this (below) in an XML file (MyXmlFile.xml) (which I will use for a slide show) -- <gallery timer="3" order="sequential" fadetime="2" looping="yes"...
12
by: GaryDean | last post by:
In the original post I failed so indicate that I am using framework 1.1....... I need to be able to change the background color of a page from code. I found an answer to this question in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.