Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Javascript
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")
        {
            Response.Redirect("adrsbook.aspx");
        }
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
Edited 1-Oct-12 21:17pm
v2
Comments
Sandeep Mewara at 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 at 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
good
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.
  Permalink  

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



Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2014
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