Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:
JavaScript
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
Updated 1-Oct-12 21:17pm
v2
Comments
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

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900