Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > MS VS .NET passing parameter to Javascript

Reply
Thread Tools

MS VS .NET passing parameter to Javascript

 
 
renoreno renoreno is offline
Junior Member
Join Date: Aug 2007
Posts: 1
 
      08-23-2007
Hello,

I am attempting to pass a parameter into my JavaScript method call.

Code:
 <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="javascript:NewCal('TextBox6','ddmmmyyyy',true,12);" >HyperLink</asp:HyperLink>


TextBox6 is the ID for a textbox I have on the page. The problem occurs because the Masterpage I am using renames the ID from "TextBox6" to "ctl00$ContentPlaceHolder1$TextBox6" so I can use ‘TextBox6’ literally it needs to be a parameter that is recognised and changed accordingly when rendered.

What is the best way to overcome this?

Any ideas would be greatly appreciated

Regards

reno
 

Last edited by renoreno; 08-23-2007 at 05:25 PM..
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
passing parameter to javascript function alf ASP .Net 2 04-01-2011 10:32 AM
Passing parameter to function not expecting parameter Mister B C Programming 8 08-26-2010 08:01 AM
javascript parameter isn't passing Mary Kline Javascript 4 06-01-2009 04:05 PM
passing id of an element as a parameter in javascript... soyo Javascript 1 02-07-2006 02:55 PM
passing a parameter to pop up window by javascript how? Bishoy George ASP .Net 8 09-28-2005 12:47 AM



Advertisments