|
Thanks for help but i didn't understand the answer of my second question:
==============================================
2) this.cbclientname.selectedValue = dr.GetString(0); //Client Name
wont work. You will have to assign the actual object from the list.
The workaround is to set the text property.
this.cbclientname.Text = dr.GetString(0);
The combobox will automatically try to find a match from the datasource and if a
match is found SelectedIndex changes automatically.
========================================
I get Value from GetString(0) is SK Technology and in combox it exits in second index i want to select SK Technology. which property of combox work.
1: SelectedItem
2: SelectedText
3: SelectedValue
Muhammad Waqas Butt
|
|
|
|
|
You should just set the Text property.
Setting the SelectedItem to work you must set the value to an actual object(not just text) from the source list.
Live Life King Size
Alomgir Miah
|
|
|
|
|
Hello, I have created a Solution in C#.Net which consists of 3 separate
projects and numerous dependency files which are organized into
directories such as databases, images, usage files, etc. When the
program runs, it searchs for the various files it needs in each of
these directories. I am now working on creating an Installer project
for this Solution so that it may be simply installed on a user's
computer. I have added all of the necessary files to this
Installer/Set-up project and I see that it is possible to specify where
these files are installed onto a new computer but changing the "Folder"
property for each dependency to either "Application Folder", "User's
Desktop", or "User's Programs Menu". I would like to know how I can
specify that a dependency file be installed to a custom location such
as "Application Folder/images/". There must be some simple way to do
this that I am just missing. Any help would be much appreciated.
Thank you.
|
|
|
|
|
Does anyone know any usefull sites that explain Microsoft Logging Application Block?
Thanks & Regards
Luke
Always trust your techno lust
|
|
|
|
|
|
i need something more basic and in dept
Always trust your techno lust
|
|
|
|
|
Is it possible to create any kind of script page that would serve as a tunneling application on a server? ASP/PHP or a .NET Webservice? Then use a windows application to perform the tunneling, etc...just like http-tunnel and hopster.
|
|
|
|
|
I am working on a project which it's language is not english.I can change between languages in winfows by pressing ALT+SHIFT.But How Can I DO it Programatically?
Ali Beirami
|
|
|
|
|
|
If I'm coding an RSS reader in C#, what's the method by which I can tell whether or not this specific item in this feed is new or not? There are no ID tags in the Item XML element in the feed. How can I tell whether or not the user has already downloaded this item?
Sammy
"A good friend, is like a good book: the inside is better than the cover..."
|
|
|
|
|
Most of the RSS feeds have a guid element (under the item tag). If it's not available, you're out of luck, you can probably make do with the value in the link tag.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I am trying to drill down a xml file having schema reference in c# .NET and while processing have added namespace using XmlNamespaceManager but it still gives error "Namespace Manager or XsltContext needed. This query has a prefix, variable,or user-defined function." Following is the code snippet
-----------------code snippet-----------------------------------------
XmlDocument objDoc = new XmlDocument();
XmlNode objRoot;
objDoc.Load("C:\\abc.xml");
XmlNamespaceManager objXmlNS = new XmlNamespaceManager(objDoc.NameTable);
objXmlNS.AddNamespace("xmlns:OrigoNS","http://www.origoservices.com");
objRoot=objDoc.DocumentElement;
string MsgID=objRoot.SelectSingleNode("//OrigoNS:message_id").InnerText
------------------- abc.xml ----------------------------------
<message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.origoservices.com" xsi:schemalocation="http://www.origoservices.com Origo_S_2_S_Valuation.xsd"><m_control><control_timestamp>2005-07-25T09:55:30<message_id>342C3E5F-xxx4-4073-Byyy-C543973AA296<retry_number>0<message_type>abc Valuation Request<message_version>v1.0<expected_response_type>synchronous<initiator_id>xyz<responder_id>abc<user_id>test
-----------------------------------------------------------------
Would appreciate your help if you have got any clue for this problem
Thanks
Share knowledge to enhance your learning
|
|
|
|
|
Hi Neel07,
The Problem is the line:
objXmlNS.AddNamespace("xmlns:OrigoNS","http://www.origoservices.com");
You register the namespace uri http://www.origoservices.com with the prefix xmlns:OrigoNS. But you request uses the prefix OrigoNS only.
Simple use following line:
objXmlNS.AddNamespace("OrigoNS","www.origoservices.com");
Good Luck!
Niedzi
PS:
If you use xml code in your message, please use the Symbols < and > of the formating line (above the smilies) for the angle brackets.
Or write simple < and > for < and >.
|
|
|
|
|
Thanks a lot
I have found the solution and you are right we should mention only "OrigoNS" as namespace prefix. Also it should call the 1st overloaded method of SelectSingleNode passing the XmlNamespaceManager object in the 2nd parameter.
Corrected code
XmlDocument objXmlDoc = new XmlDocument();
objXmlDoc.Load("C:\\abc.xml");
objRoot=objXmlDoc.DocumentElement;
XmlNamespaceManager objXmlNS = new XmlNamespaceManager(objXmlDoc.NameTable);
objXmlNS.AddNamespace("OrigoNS","http://www.origoservices.com");
XmlNode objRoot;
string MsgID=objRoot.SelectSingleNode("//OrigoNS:message_id",objXmlNS).InnerText;
Share knowledge to enhance your learning
|
|
|
|
|
I implemented article “Inserting relational data using DataSet and DataAdapter” from this link: http://www.codeproject.com/cs/database/relationaladonet.asp[^] In my code.
It has a perfect explanation; still I got stuck at one point.
Debugger shows when that when I’m at this stage:
static void CustDataAdapter_OnRowUpdate(object sender, OleDbRowUpdatedEventArgs e)
{
OleDbCommand custCmd = new OleDbCommand("SELECT @@IDENTITY", e.Command.Connection);
e.Row["CustID"] = custCmd.ExecuteScalar();
e.Row.AcceptChanges();
}
This method defines the OleDbRowUpdatedEventHandler event, which comes to solve the AutoNumber column issue.
I got a message box error:
Problem populating dataset Box: [System.NullReferenceException: Object reference not set to an instance of an object at (object sender, OleDbRowUpdatedEventArgs e) in [path to file name]
There is some more text below it, but this seems to be the main thing. Why do I get NullReferenceException? What did I missed?
sea#
|
|
|
|
|
Hi,
i have file containing JPEGs one after anothe in a single file, if i view that as single image first image is shown
can anybody tell me how to parse that file to view those images
i have size of each image stored as well.
thanks
|
|
|
|
|
Hi,
I want to have to different login sections. One section for customer login, and the other login for administrators. Customers should login at wwwroot/customer/login.aspx, and administrators should log in at wwwroot/admin/login.aspx. Is it possible to have this in the webconfig file, what I mean is, if the user tries to access a page in one of these two sections the he/she will be directed to the correct login section? Is the web config file the correct way to do? Will it be able to keep track if the user is logged in or not?
Where can I get decent articles to read about the webconfig file?
All help is appreciated!!
Thanks
|
|
|
|
|
My question to you is how are you going to find out if the user is an admin or a customer until the credentials are typed in. The routing may/should only happen after that.
modified 17-Jul-19 21:02pm.
|
|
|
|
|
Can you please advise?
If you have any good artices to read on this please let me know.
|
|
|
|
|
In ASP.NET you can use three different types of authentication. Form being the most used one, I take it as you're after this. Try reading from here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconthecookieauthenticationprovider.asp
modified 17-Jul-19 21:02pm.
|
|
|
|
|
does anybody have a clue how i can display and manipulate this format. it should be supported, but i can't handle it. perhaps the reason is the size of 2880*2160 px. please help
|
|
|
|
|
Hi all,
I have a statusbar with 3 panels an want to change the forecolor of one of them. Is there a way to do that ?
Thanks
regards
Frank
|
|
|
|
|
|
hi,
how do i give a name to a dialog box? when i put MessageBox.Text it gives me an error n i cant run the program.. what shd i do?
thz
|
|
|
|
|
When you do MessageBox.Show, the first parameter is the text to display in the box, the second parameter can be a string that will display as the name. Is that what you are looking for?
|
|
|
|