CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: Date Entered: 3/20/2006 3:36:19 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 219 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
"dabi123" <>
NewsGroup User
theForm undefined3/20/2006 3:36:19 PM

0

I am using the MasterPages for my website. When I added a javascript function, I am getting an error on all the pages that theForm is undefined.

I have added the following to the <head> section of Master Page
<script type="text/javascript" language="javascript" src="Script/FormFunctions.js" />

In the Formfunctrion.js, I have defined a simple function

function sayHello(str)
{
alert(str);
}

When I view the page, I get the error that theForm is undefined!!!!
When I see the source code for the page, I see

theForm = document.forms[aspnetForm] and the form id of my page is aspnetForm...

I can't understand what is causing the error...

can someone please explain!!!!!

Thanks
dabi123

 

 

"jmparmer" <>
NewsGroup User
Re: theForm undefined6/13/2007 3:36:28 PM

0

 Greetings!  I don't know if you found a solution or not but I too was beating my head against the wall on this one.  After searching to net and finding no "free" answer I turned to the site that provided the solution for a price.  It ticked me off that I had to pay for it so I will post it here so others will not have to do the same.  For some reason, MasterPages do not like <script type=... in the head. 

To solve this problem simply do the following:

protected void Page_Load(object sender, EventArgs e)
        {
            Page.ClientScript.RegisterStartupScript(typeof("AnyType"), "AnyName", "<script type='text/javascript' language='javascript' src='YourScript' />");
        }

 

Good luck! 


Blackholes occur when GOD divides by zero.

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:













entlib logger not logging to event viewer or flat file!

enterprise library 2.0 logging database trace listener (different schema)

sql server identity

extending security application block - web.config

web.config file with configuration block

transaction and connection closing in enterprise library january 2006

enterprise library daab

daab - performace issues..

.aspx page html cache disable doesnot works

removing items from cache.................

can some one verify this return value behaviour?

sandboxing cmab

daab presentation

graph navigation tool

datatable getchanges always return total number of rows

enterprice library 3.0 (april 2007) issue - configuration won't save

daab for oledb

dataset query

linq and the el dataaccess block

exception management application block.

microsoft data access application block v2.0 x medium trust

delete item from datagrid using daab

database trace listener

microsoft.applicationblocks.data - connections being left open

inherited a database at new job

uip error - resource file

multiple tables in one dataset via data application block?

the event source... does not exist when creating a new exception

logging application block: its it asynchronous?

microsoft enterprise library problem.

bug: sqlhelper.updatedataset

exe file...

ms logging application block only writes information type entries in the event log

caching object causes error

implementing em - are there any undocumented steps ?

what does numbertoremovewhenscavenging means ?

how do i handle output parameters in 3.1?

logging block does not log using local time zone

validation application block - enterprise library 3.1

access to parameters retrieved from stored procedure

still trying to get installed ....

stack overflow exception in uip manager plumbing for forms.

data access application block

question on sqlcommandbuilder.deriveparameters method

i have one problem when i use enterprise library!

bizarre exception

applying "blocks"

encrypt sections

multiple active result sets with odp.net

why sqlhelper didn't has a close method

   
  Privacy | Contact Us
All Times Are GMT