Click here to Skip to main content
11,478,902 members (65,255 online)
Rate this: bad
good
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 19:31pm
Comments
ryanb31 at 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
0 Sergey Alexandrovich Kryukov 200
1 F-ES Sitecore 195
2 Frankie-C 120
3 OriginalGriff 105
4 DamithSL 95
0 Sergey Alexandrovich Kryukov 7,880
1 OriginalGriff 7,341
2 Sascha Lefèvre 3,064
3 Maciej Los 2,491
4 Richard Deeming 2,335


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 16 Oct 2014
Copyright © CodeProject, 1999-2015
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