Wizard Control Adding $ To Control Names

I'm using the wizard control in .NET 2 beta which changes the name of the text boxes to [Name Of Wizard]$[Name Of Textbox].

I have a javascript function client side that looks up postcode data on exiting a textbox but the $ or some other change in the name is screwing up the process. It works on a form where the text boxes aren't on the wizard.

The event is set up by:

PrimaryPostcode.Attributes.Add("onblur", "javascript:getpafdata('form1','ApplicationWizard$PrimaryPostcode','ApplicationWizard$PrimaryAddress1','ApplicationWizard$PrimaryAddress2','ApplicationWizard$PrimaryAddress3','ApplicationWizard$PrimaryAddress4','ApplicationWizard$PrimaryAddress5')")

The javascript function is:

function getpafdata(formname,postcode, address1, address2, address3, address4, address5)


var zc;

zc = new ActiveXObject("ITSASP.Zapcode") ;

zc.PCode = document.forms[formname].elements[postcode].value;


document.forms[formname].elements[postcode].value = zc.FormattedPCode ;

document.forms[formname].elements[address1].value = zc.Address1;

document.forms[formname].elements[address2].value = zc.Address2;

document.forms[formname].elements[address3].value = zc.Address3;

document.forms[formname].elements[address4].value = zc.Address4;

document.forms[formname].elements[address5].value = zc.Address5;

zc = null;


I'm certain its the $ being invalid in the scripting language and in that case need to find a way to remove the $.

Can anyone suggest how?

6/3/2005 4:32:32 PM
asp.net.getting-started 91979 articles. 3 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 4


Web resources about - Wizard Control Adding $ To Control Names - asp.net.getting-started

Control - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Now you can control your GoPro Camera from Apple Watch
One of the nicest features of the GoPro camera is the ability to control it using the iPhone app. With the GoPro App , you can easily control ...

Microsoft Band updated to include music controls and inactivity alerts
... Microsoft Band came out, the company is adding functionality with a small software update. The two biggest features of this update—music controls ...

Control a car's features with a glance? Not science fiction
Filed under: Emerging Technologies , Infotainment , Technology Press a button to change your car's climate controls? Turn a knob to view your ...

FTC and healthcare cost control
... Pennsylvania, and lead to reduced quality and higher health care costs for the area’s employers and residents….the merged entity would control ...

"... Trump owns and controls the media... they can't not cover him... his audience is bigger than theirs ...
... their army (i.e., the media) can't take out their enemy. They don't have the slightest idea what to do.... The media, in their own minds, controls ...

How to control your iPhone by just tilting your head
... the best sight, hearing, or motor functions to still use iOS to its fullest capabilities — but they can also be used to customize your controls. ...

Fox Presents Ben Stein As An Awesome, Stupendous Gun Control Genius
Fox News host Neil Cavuto was super-impressed with “great writer and thinker” Ben Stein's opposition to gun control. “The problem is not gun ...

White House: We’re Not Going To Wait Until Something Happens To Pass Gun Control
Reporter: 'Where any of the recent mass shooters on the no-fly list?' Earnest: 'Not that I'm aware of'

The NFL Should Seize Control Of The Cleveland Browns
Drew Magary’s Thursday Afternoon NFL Dick Joke Jamboroo runs every Thursday during the NFL season. Email Drew here . Read more...

Resources last updated: 12/12/2015 7:25:51 AM