473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

InnerHtml <error: an exception of type: {System.NotSupportedException} occurred> str

When I added a textbox and assigned the value to the textbox and added to htmltablecell while debugging I am able to see the correct assigned value but if I see the contents in the HTMLTABLE in quick watch it is showing the error of type
InnerHtml <error: an exception of type: {System.NotSupportedException} occurred> str

can any body tell the reason and tell the solution
Thanks in advance and greatly appreciated.

Thanks,
purnima
Feb 26 '07 #1
2 2914
kenobewan
4,871 Expert 4TB
Please display the relevant code. Have you tried using innertext instead of innerhtml?
Feb 27 '07 #2
Please display the relevant code. Have you tried using innertext instead of innerhtml?
Hi All,

Can anybody solve my problem.
I created a HTMLTable with a dataset by a method called addTable(dataset)
After creating a new table and new row I am adding cells and in each cell I am adding a HtmlInputText control as follows
cell = new HtmlTableCell();
cell.Width="100";
cell.VAlign="top";
input = new HtmlInputText("text");
input.ID = "Pwd"+"_"+r.ToString();
input.Value = row[3].ToString();
if((bool)ViewState["DeleteOptionvalue"] == true)
{
input.Attributes.Add("readonly","true");
}
input.Style["width"]="100";
cell.Controls.Add(input);
tableRow.Cells.Add(cell);

and assigning the data correctly in the HTMLTable object(table) and displaying in one DIV tag. Then there is no problem.
but in my webform I have a link SubIDSearch. when i click that link a popup window displays with all the SubID's and checkboxes. When we check some checkboxes then those respective SubID's details must be displayed in the htmltable in the DIV tag. For that I again recreated the same object(table) as table =new Htmltable();
and again called the addTable(with all subID's selected) then already existing subID's are remaining in the table but not new selected subID's. But if I repalce the above snippet as

cell.ID ="SubID"+"_"+r.ToString();
cell.Style["font"]="Verdana";
cell.InnerText = row[1].ToString();
tableRow.Cells.Add(cell);
It is working correctly. But I must be able to edit the values so this is not possible with this.

I think the problem is with the input.ID property. I want to read the values after updating the values in the input controls so for that I want to get by the ID property.

Here is the sample form

and I have a doubt Will the HtmlTable maintains any viewstates

thanks in urgent
Feb 27 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: vinu | last post by:
I have a javascript file named select.js. This is a file which is use to pop up a calendar, when clicked on a calendar icon in an ASP file. have a close button in the calendar. When i click on the...
17
by: malathib | last post by:
Hi, I have used a rich text editor in my application. I got it from one of the site.all are JS files. My problem is, i want to call a javascript function from the iframe. Can anybody help...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.