|
by: Anita C |
last post by:
I have the foll. code to update the value of an attribute:
xmlDocument.Load("abc.xml");
XmlAttribute xmlAttrib = xmlDocument.SelectSingleNode(root/web/theme/@desc);
xmlAttrib.Value = ddDes.SelectedItem.ToString();
xmlDocument.Save("abc.xml");
However, I get the foll. error:
Cannot implicitly convert type 'System.Xml.XmlNode' to
'System.Xml.XmlAttribute'
|
by: Christoph Boget |
last post by:
I am getting an error (a few among many) for the
following lines of code:
retval.BrokerName = (( curRow ==
System.DBNull.Value ) ? SqlString.Null : (string)curRow );
retval.BrokerGroupId = (( curRow ==
System.DBNull.Value ) ? SqlInt32.Null : (int)curRow );
The errors are (in turn):
|
by: juli |
last post by:
I declared:
public delegate void PaintEventHandler(object objSender,PaintEventArgs
pea);
and
this.Paint+=new PaintEventHandler(MyPaintHandler);
and the:
static void MyPaintHandler(object objSender,PaintEventArgs pea)
{
}
|
by: Assimalyst |
last post by:
Hi,
I am trying to write some server side validator code in C#. I want to
have a piece of code that can be used by all DropDownLists on a
webform, giving a false value if the SelectedIndex is 0.
Here's the code:
protected void serverValidateCboBx(object source,
ServerValidateEventArgs args)
|
by: Andy Sutorius |
last post by:
Hi,
I am receiving the error when compiling the project, "cannot implicitly
convert type object to string".
The error points to this line of code and underlines the
dtrRecipient: objMailMessage.To = dtrRecipient;
I'm not sure why I am getting this error. Below is the complete code I am
working with.
|
|
by: Paul Hemans |
last post by:
I am very new at .Net. I have a small project where I need to manipulate the
contents of a web page.
I have a form with a web browser control (webBrowser1) on it. Within the
webBrowser1_DocumentCompleted method I have the following code.
mshtml.HTMLDocument oDoc = new HTMLDocumentClass();
oDoc = (mshtml.HTMLDocument)webBrowser1.Document;
|
by: pankajprakash |
last post by:
hi all
i m creating a window application and i used a listview control in a window's form. But when i try to build that application then the following error prompts :
Cannot implicitly convert type 'string' to 'System.Windows.Forms.ColumnHeader'
i m not able the understand what is the problem.
|
by: alex21 |
last post by:
Ok i am trying to use a Linq query to access a dictionary.
public static Dictionary<string, Client> Clients = new Dictionary<string, Client>();Using this Linq query:
IEnumerable<Staff> loginquery = from staff in Database.Staff where staff.Value.Passcode == txt_password.Text select staff;but i get the error
Error 2 Cannot implicitly convert type...
|
by: ransaj |
last post by:
objCompanyRequirement.Salary = Convert.ToInt32 (txtCRF_Salary.Text);
cannot implicitly convert type 'int' to 'string'
objCompanyRequirement.InterviewDate = Convert.ToDateTime(txtCRF_InterviewDate.Text);
cannot implicitly convert type 'System.DateTime' to 'string'
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|