Click here to Skip to main content
15,885,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I am placed a Html Editor on .aspx page and when i Running i am gettin
Exception Details: System.ArgumentException: Value cannot be null or empty.
Parameter name: elementID Error.

Pleas help me if any body have any Idea to sort out this error.
Your Help will be highly appreciate.
Posted
Comments
ZurdoDev 29-Feb-12 8:27am    
It is very unlikely anyone can help unless you provide some parts of your code.

You need to show your code for specific solution. But this exception normally comes generated when an invalid value is passed to a method argument. I believe, there is no relation with having a html editor in your aspx with this error. check your methods a null or empty is being passed where it should not be.

Try to do some defensive programming to avoid these type of errors. It is always better to check for nulls where appropriate.

You may look into "Design by Contract" concept which can be a safe guard for this type of issues.
 
Share this answer
 
When i got this same problem i sucked on this 2 hour and finaly i found one third party control"OBOUT" was there inside my code, after removed it everything is ok
 
Share this answer
 
Please use this code
   <cc1:editor id="ajxEditor" width="50%" runat="server" activemode="Design" autofocus="true" clientidmode="AutoID" xmlns:cc1="#unknown" />

ClientIDMode="AutoID"


Thanks
Nayeem Mansoori.
 
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