473,769 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

5 New Member
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.NotSupp ortedException} 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 2944
kenobewan
4,871 Recognized Expert Specialist
Please display the relevant code. Have you tried using innertext instead of innerhtml?
Feb 27 '07 #2
purnimakarnati
5 New Member
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(datase t)
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="to p";
input = new HtmlInputText(" text");
input.ID = "Pwd"+"_"+r.ToS tring();
input.Value = row[3].ToString();
if((bool)ViewSt ate["DeleteOptionva lue"] == true)
{
input.Attribute s.Add("readonly ","true");
}
input.Style["width"]="100";
cell.Controls.A dd(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
2527
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 button, th calendar is not closing. here is the select.js file x999NS4compatible = (document.layers); var x999IE4compatible = (document.all); var x999dayabbs = ;
17
5836
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 me in this regard
5
13379
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 http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
1
9990
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.