Click here to Skip to main content
12,997,146 members (74,058 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I got some problem by doing this:
I'd taken a gridview and bound it with data source and added command field 'edit,update, cancel'.
I made a redirection on this page by enabling post back of a dropdownlist like this:
if (taskmanager.SelectedItem.Text == "Contacts")

on running this page when i click on edit column i get following error
javascript runtime error:member not found
Why I'm getting this error?
and How to overcome from this?
Posted 1-Oct-12 21:15pm
Updated 1-Oct-12 21:17pm
Sandeep Mewara 2-Oct-12 3:29am
Not sure on how the mentioned details and code snippet related to error. Can you elaborate more? Do add details on what you see on troubleshooting and debugging.
Rutvik Dave 2-Oct-12 11:42am
I think the problem is with the 'if' condition, javascript is unable to find the element 'taskmanager'. try searching for the element using id/name, are you using master pages? because then you will have to so nested search, first search for the contentplaceholder and then search for the element inside it.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

the issue is not in your code. it is related to your java script, in your webpage if you are trying to load any js files or you have write any JavaScript function then it will conflict with its some object or member you used on that JavaScript function and you got that error. you can get that error while you are using IE, if you are using Firefox or any other browser then you can't directly get that error it will shown by "CTRL + SHIFT + J", this will open a window which will show that error or warning list related to JavaScript. if you remove that javascript function/loading any js files then it will not throwing any error, but it will stops your some functionality suppose to done by that part of javascript.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100