Search Xml Using Linq - Get All The Node Values Of <customers></customers>
Apr 22, 2010[Code]...
how to do this. kindly show me some sample code for this
[Code]...
how to do this. kindly show me some sample code for this
How do I use for loop in vb.net something like
dim start as integer
Dim customers as New List(Of Customers)
Customers=dataAcess.GetCustomers()[code].....
I want to process some data for each 500 customers..
I want to add a query on a form called Customers.So, I want to type the begining of the Customer's name, and when i push the button, on the datagridview appear all the Customers with a name like that.
View 2 RepliesI have an access database which includes Customers table and one of its columns is the Birth date. In project in visual studio, using visual basic 2010, I have a form with a calendar. In this form I want to show who has birthday today. How can I compare all the customer�s birth date with the day we have today? And have as result a label with all birthdays?
View 1 Repliesi have a big problem i have no idea what i am doing and need to create a program that can add customers and calculate and add the car qoutes to a text file. the information also needs to be retrieved, basically i want someone to finish the qoutes form for me complete with code its like connect the dots but with code :P can you fill in the "dots", create and edit btw for some reason it was called !! ERROR !! because it was a bad second version of the first version that got deleted so i used this one anyway XD[URL]..
View 5 RepliesThis question appears to have died, so I've decided to offer a bounty.What I'm most interested in knowing is if my scenario in the ETA1 below is viable and is used. If it isn't, then a good explanation of why not would be a good answer. Another good answer would be an alternative (but not including the internalsvisibleto attribute).
The best answer would be, yes, it's viable, everyone does it and customers love it!ETA2: I think I've thought of a good solution. I provide the customer with a distributable edition that is as functional as their edition but is unlicensed and has the classes and members hidden, using attributes.
I can do this with compiler directives, on every single important member, but I wondered if there was some global way to hide all members of a class?
A simplified scenario I have a class that extends a control in someway and I want to sell my class under two licenses;
(1) Standard - The customer gets x number of controls that use my class but can't instantiate the class (its internal).
(2) Developer - The same as Standard except they can create their own controls that use my class.
My problem is that when the developer customer comes to sell their controls, they can't help but expose my class to all their customers.
The only way around it, in my scrambled mind, would be for the developer to somehow integrate my assembly into theirs, and in that way I can keep the constructor internal. Or, use the internals visible to attribute.
ETA1: I'm thinking aloud here, but, I could have a list of permissable calling assembly names which the customer could add to. When they ship their product, their customers' assemblies would not be in the list and therefore they wouldn't be able to instantiate certain classes. (The list could obviously be hashed).
I am using crystal report for displaying reports. I want to display group by customers in report that i am displaying using group by funtion but i also want subtotal of that group by customers. I want to display received amt date, received amt and balance amout between given two dates. That i am getting. output is like first customer name and below that list of there received and balance amt with received amt date. But before displaying second customers list i want to display subtotal of received and balance amt. and in last in page footer i am displaying grand total of received and balance amt.
All data are displayed instead of subtotal of all customers. how to display subtotal of all customers received and balance amt?
In this program I am suppose to use data to compute a customers electric bill. My code works correctly for the most part except for two things. I cant get the loop correct I want it to ask the customer to enter readings but once it does it outputs the same information from the original time so I am wondering what I have to do to have it recalculate when new values are entered by the customer. My other issues is it is suppose to continue to ask the customer for additional readings till the value entered by the customer is -99999, when I run my program and enter -99999 it does not stop.
[Code]...
I'm developing a small app to for a vehicle rental company. They require the app to print invoices for customers (fuel usage and etc) with charges. I was thinking of outputting row by row to a html (file) table and populating qty,amount,final amount etc programmatically. And letting the user view and print that html file.
View 3 RepliesWe have a rather large VB.NET accounting application that crashes occasionally for some customers. I have now been able to reproduce this particular almost 100% in my test nvironment using certain data. The crash happens when clicking a list box after printing a report. The form involved has a list box listing available reports. You select one or more reports from the list box and click the print button. After printing, if you click the list box again, the program crashes, with an exception that does not seem like one VB.NET should even be able to produce.The exception message is: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."The call stack is:
1. System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
2. System.Windows.Forms.NativeWindow.DefWndProc(Message& m) [IL offset: 0x3e]
[code]....
Using VB2008 I need to create an application that calculates and displays a customers bill.Business customers must have one connection.
Heres the data
Residential customers:
Processing fee: $4.50
Basic service fee: $30
Premium channels: $5 per channel
[code]....
I've been coding in VB.net for a while now, but still have never used the printing features. I've created a program which stores and creates customers and orders etc. I now require to print invoices related to these quotes.Is the following possible within VB.net when printing a document. Images i.e. Logo of company (which i've made already)Table of items orderedTotalshorizontal lines to split-up the design of the invoice/document.
View 2 RepliesI have an application I am creating that displays pump information based on customers in a database. I am using VB2008 .NET3.5.I have a combobox that has a selection for a unit of measure. What I want to happen is when that is changes the labels that have a unit of measure change to reflect the change. There are 15 labels total that need to be changed and all there names are the only ones in the project that start with a X if that helps at all.
I would like to avoid creating a bunch of labels and changing the visible property and just change the text value of each one. I have just started learning VB.NET
I made a program a month ago and i gave it to the customers.recently they report some bugs and i fixed them. when i send the new version installer to them, they have some problems running it.i used vs 2008 to write it, but i removed vs 2008 and installed vs 2010 last week. when i opened my project to start fixing program bugs it asked for convert wizard so i did it.i made changes and build it. i use installshield and i add framework 3.5 Sp1 as prerequisites.
note : i was using inno setup first time. so i changed the installer too.so i tried installing the program on my machine.i just noticed that i have only .net framework 4 installed my own system. so i have no idea how the program runs without any problems on my own system. i have even tried installing it on another machine who had framework 3.5. it it work on that too.the error shown on customers machines is related to framework version. everytime i send them a new version they have some problem installing/running it.
I need to create Encrypted "PayNow" paypal buttons on the fly for a website. I read all the documentation I can find on the paypal website. I understood that I need to use the BMCreateButton ButtonManager NVP API. But I've been unable to find any information, nor any reasonably simple and documented sample code, about HOW I'm supposed to call these API.
[Code]...
I am trying to find customers name that starts with "S" in my access database. If i run the following query in access its working fine. Select Lastname from employees where Firstname Like '*S*';. it displays two records which is right. if I use it in access it..its not working. Any idea why? All other queries are working in VB. like if I use Firstname equals "Sam" but it doesn't work when I use Firstname Like '*S*'
View 3 RepliesBelow the xml doc
<Root>
<Global>
</Global>
<local>
<section name="A">
<subsection name="A">
[Code] .....
Now I want the property1 whose section name="B" and subsection name="B" and innersection name="B" in one single query using linq to xml.
Given the following XML, I would like to return all eventtitles where the eventtype id = 23. My current query only looks at the first eventtype, so returns the wrong result.
<event>
<eventtitle>Garrison Keillor</eventtitle>
<eventtypes>[code].....
In my previous post I've ask how to add a new xml node..now that im knowlegable at that. but heres a followup question, how can I get the nodes' name and then tell vb to write a child node in that node?
Here my code:
Private Sub Button_Create_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_Create.Click
Try
[Code].....
I have the following list
[Code]...
I am trying to remove the Car node with ID = 1000, but i can't get it right Here is my Code, note that the debugger never hits e.Remove:
[Code]...
I was writing a generic class to read RSS feed from various source and to consolidate in one collection of object in VB.net.
Basically the function - using LINQ to XML - is working properly, but I have a problem when the RSS feed I am trying to read does not contain one of the node (as you know, many of them are optional). I would the returned value to be an empty string or nothing, but instead I get a runtime error back. I searched the web for the same problem and I found this post [URL] that apparently explain a workaround, but it does not work with my code.
I am also surprised by the little resources I am finding about this issue, so I am now wondering if I am even putting the question in the right terms...
Following you can find the code:
Dim PostsEnum = From BlogPost In XMLSource.Descendants("item")
Order By DateTime.Parse(BlogPost.Element("pubDate").Value) Descending
Select New Post() With {
[Code].....
im querying the name of a movie in an xml file contained within the node "name" I have no problems getting the node but i cannot match the name to the node name because of character like : -
[Code]...
How do I work out what the namespace declaration is for the Extension node?I want to return all of the child nodes under: GPO->User->ExtensionData->Extension..[code]I get the following error: Sequence contains no elements..Also, the XML sample I have provided is only a small snippet, the ExtensionData->Extension nodes can be nested in different areas, so I was hoping to find the way of specifying the full path.
View 2 RepliesAfter being quite sick of the my.settings-file behavior, I started to create an XML-file (with unique values). Now this works great!!! All my settings, connectionstrings, etc are loaded from an external file and won't be overwritten by the app. itself. But I was wondering how do I save a value/setting? Simple example:
HTML
<test>
<country>Holland</country>
[code]....
read the XML and node:
vb.net
Dim readXML = Xelement.Load(Application.StartupPath & "XMLFile1.xml") ' check if the node isn't empty (crash) If readXML.Descendants("country2).Nodes.Count > 0 Then Textbox1.Text = readXML.Descendants("country2).Nodes(0).Tostring() Else
[code]....
how can I search for a text in a tree view but by being able to tell from which level I want to start searching?
View 1 Replies[Code] my problem is if i search the class node with the name attribute of value "IT MAJEL 03", the xml reader reads through the first class which is "IT MAJEL 04" and read all of its child nodes(which i think is very awkward. why continue reading to its child nodes if the class name you're looking does not even match). is there another way to actually jump the reader of the xml node to the next xml node of the same level?
I mean if I search the class named "IT MAJEL 03", the reader should jump to the next same level element it does not match the query. It should skip reading the "IT Majel 04" child nodes. what I want to achieve here is I want to save nanoseconds of computing.
does anyone have an approach that can change the value of 'Sortorder' shown below so that they are incremented by 1 (all other data remaining the same)? For example, the first two rows are fine but the last two rows should be changed to <Row Sortorder="3"> and <Row Sortorder="4">, respectively.
<?xml version="1.0" encoding="utf-8"?>
<Rows>
<Row Sortorder="1">
[Code].....
I am creating an xml file with LINQ as follows...
Public Sub CreateXml()
Dim db As New MDataContext
Dim Customers = <gallery columns="3" rows="3">
[code]....
Could i mix local values with the ones returned from the LINQ query...Something like the following?
Public Sub CreateXml(ByVal **Col** As String, ByVal **Row** As String)
Dim db As New MDataContext
Dim Customers = <gallery columns="& **Col** &" rows="& **Row** &">
[code]...
I have built a database structure that represents a category tree to help classify some of the data we have stored. The implementation is that each record in the Category table has a nullable foreign key back into the Category table to represent the parent Category of this category (one-to-many), essentially allowing for subcategories within a broader parent level. There is a CategoryMembership table that links a record in the Item table to its respective Category (many-to-many). I have created the DBML for this database, and it has a member access structure that includes the following:
[Code]...
<?xml version='1.0' encoding='utf-8' ?>
<All>
<Customers>
[code].....