Click here to Skip to main content
13,256,260 members (43,389 online)
Rate this:
Please Sign up or sign in to vote.
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 28-Feb-12 19:31pm
ryanb31 29-Feb-12 8:27am
It is very unlikely anyone can help unless you provide some parts of your code.
Rate this: bad
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.
Rate this: bad
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
Rate this: bad
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" />

Nayeem Mansoori.

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 |
Web02 | 2.8.171114.1 | Last Updated 16 Oct 2014
Copyright © CodeProject, 1999-2017
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