Click here to Skip to main content
12,503,681 members (54,507 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
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 28-Feb-12 18:31pm
Comments
ryanb31 29-Feb-12 8:27am
   
It is very unlikely anyone can help unless you provide some parts of your code.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

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.
  Permalink  

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
Web01 | 2.8.160919.1 | Last Updated 16 Oct 2014
Copyright © CodeProject, 1999-2016
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