Create A ConfigurationSectionHandler That Can Store All The Child Element Of A Section?
Oct 28, 2011
I want to create a custom section Handler for the 'Security' section of the following config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
[Code].....
View 2 Replies
ADVERTISEMENT
Feb 14, 2012
I have a number of rewrite rules for a lot of things that I did in IIS7, like removing trailing slashes, canonnical URLs, lowercase lettering, and such. IIS altered my web.config, and everything works fine on the website, like it should. But in the Visual Studio web.config, the opening < rewrite > statement is underlined in blue, and at the bottom of VS, it says that the element 'system.webServer' has invalid child element 'rewrite'. But this is how IIS made it. I didn't do this manually. Should I be concerned with this VS error, or should I just leave as be, since it's working how it should work? Here's an example of my web.config:
[Code]...
View 1 Replies
Mar 10, 2009
My program handles XML files that have certain elements within a root-child node that are identical expect for their inner text value. So while populating my combo box with all of a root-child's child element's names I get like five identical items listed. Which brought about the problem of selecting say the third item and getting the value of the first displayed. So I came up with a loop function that determines if the selected combo box item is preceded by one of the same name, if it is, then it adds +1 to a counter variable and keeps checking farther and farther up the list. Once it loops to an item that doesn't have the same name it exits and it reads the Xth (X = counter mentioned earlier) element's inner text from the file. This works great for elements 1, 3, 4, and 5. But not for 2. A while back when I was focused on this problem I discovered the root of the problem but I was unable to circumvent it. I'll put the loop below so you can see the problem in action instead of trying to follow my verbose explanation:
[code]...
View 3 Replies
Aug 24, 2010
I would like to set up a custom app configuration element collection section like this
<logSectionGroup>
<logSection name="Testttt">
<properties name ="Pride">[code]....
Properties would be the configuration element, and log section would be the configuration element collection.The problem is, I've only seen where you can have multiple instances of a single element instead of multiple elements.
<Section name="Section1">
<Section name="Section1">
<SubSection name="SubSection1">[code]....
View 2 Replies
Sep 2, 2009
I am building the 'TheBeerHouse' project in vb.net (the book is written in C#). Once I understand the concepts, I can usually convert it to vb. However, there are a few areas that give my some problems (which I will address individually). The first issue I have is the C# 'base' to VB 'MyBase'. [code] My understanding of this conversion is that I need to grab the attributes of the <articles> element under the <theBeerHouse> custom section in the web.config file.This code does not compile and the get the following error: 'MyBase' must be followed by '.' and an identifier.
View 4 Replies
May 23, 2012
I have the following XML:
[Code]...
I am accessing the name of the child element like this:
[Code]...
View 1 Replies
Apr 21, 2011
I created one xml file. i need to remove the child1 element i m using vb.net
<root>
<child1>
<grandchild2 />
<grandchild3 />
</child1>
[Code]...
View 2 Replies
Aug 26, 2009
I am new in LINQ world.I need an urgent help in reading the xml elements using LINQ with specific where condition.I need to find the max air_temp for a county i.e where county name = "Boone" and hour id = "06/03/2009 09:00CDT".[code]
View 3 Replies
Jul 9, 2009
I have several threads all relating to this same subject but I have yet got a answer which I could work with. I think most of that is because of my explaining..So..[code]...
View 3 Replies
Apr 15, 2012
"Create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store. An Invoice should include four pieces of information as instance variables--a part number (type String), a part description (type String), a quantity of the item being purchased (type Integer) and a price per item (Type Integer). Your class should have a constructor that initialize for each of the four instance variables. Provide a property for each instance variable. If the quantity is not positive it should be set to zero. If the price per item is not positive it should be set to zero."
I attached the code I have. obj is underlined and says "Argument not specified for parameter 'Invoice4' of the 'Public Sub New (Invoice1 As Object, Invoice2 As Object, Invoice3 As Object, Invoice4 As Object)' and so the program won't run. What am I doing wrong?
Public Class Form1
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim obj1 As New Invoice(Val(TextBox1.Text))
TextBox1.Text &= obj1.Invoice1 & vbNewLine
TextBox1.Text &= obj1.Invoice2 & vbNewLine
TextBox1.Text &= obj1.Invoice3 & vbNewLine
TextBox1.Text &= obj1.Invoice4 & vbNewLine
[CODE]...
View 14 Replies
Mar 22, 2012
I am coding a program that will allow the user to input 5 payrolls for Store 1, Store 2, and Store 3. The total of the 5 payrolls are then added together and shown in the respective Store's labels. A total label is also there to add up all the totals into one number. The numbers in the label must be in currency form. My problem is the numbers don't add correctly when I hit calculate. The first two numbers add together, but then after that the number just seems to subtract a random amount.
So far I have this --
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
[CODE[...
View 14 Replies
Feb 18, 2011
Im working with MDI parent/child objects. when closing the child objects i need the child to check to see if it is the last child object before closing. i couldn't find anything on google, maybe im searching for the wrong thing.
View 2 Replies
May 2, 2012
I am creating a custom config section that will allow me to manage what ELMAH exceptions I want to ignore from my VB.NET/ASP.NET app. Here's my code. I made it easy to paste in a blank code file if anyone's up to the challenge of diagnosing the problem.
CODE:
When I execute this code:
CODE:
I get the error An error occurred creating the configuration section handler for IgnoredExceptionSection: Could not load file or assembly 'WEB' or one of its dependencies..
What boggles my mind is that this all works fine in my C# console test app after I convert the code from VB.NET using a web utility. However, when I paste the VB code from my web app into my VB.NET console test app, it doesn't work there, either, so it appears to be a C#/VB issue. What am I doing wrong here?
View 1 Replies
Dec 27, 2009
I wish to read a web page that had various frames and div elements.To start with I would like to create a routine that justs lists all of those elements values and then display each element name and its value so I know what I have and how to reference it later on.I have been using the WebBrowser control and have managed to do a few basic things so far like go to a website and auto login.
View 2 Replies
Oct 14, 2011
I'm having trouble figuring out the logic to this problem:Thus, you can create the bar graph with each store's name, and a separate label that has the sales information for each store. Since each asterisk represents $100 sales, you can just do # of sales mod 100 to get the number of asterisks you need for that store, then loop and add asterisks until the label has the correct number of asterisks. Repeat for each store input that the user gives.
[Code]...
View 5 Replies
Apr 13, 2011
Is there a way to control the way a browser behaves such as if I click on this link it doesn't navigate to that link but instead show me the source code behind that button?
View 1 Replies
Mar 11, 2010
I need to randomly pick an element from an array and I can only use that element three times,I can randomly pick the element but how do I go about only using it three times.
View 4 Replies
Dec 11, 2009
I am building a small office application that requires users to log in dont need encryption or other sophisticated aproaches. all i need is an array of passwords that users can log in.
So If passtext.text= "test" or "test1" or test2" then
else
msgbox("Fix password")
View 9 Replies
Oct 21, 2009
I am extremly fresher in the above things. I want to create a store procedure in my programme and use it or call the store procedure. give me a standard sample code so that I can understandand.
View 4 Replies
Feb 21, 2012
I have been doing well and also I am a noob I know it and you know it a lot has started making sense and I am evening figuring new things out without using Google but of course I have hit another snag in my program so here goes
I am waiting for an email to arrive (the page automatically refreshes) and then I want to click the link (I do not need to click to open the email or anything like that) I also have the code to click and navigate to the address reason being it was the only way I could figure out how to stop it opening in a new window on IE
So my only problem is I need a way to check every x seconds for the element and then if its there proceed with my code and if its not wait and then check again or however this is done in VB.If this is not the way its done please point me in the right direction the code I am using to find and then navigate to the link is
Dim emailpageelements As HtmlElementCollection = WebBrowser2.Document.GetElementsByTagName("a")
For Each emailver As HtmlElement In emailpageelements
If InStr(emailver.InnerHtml, "https://twitter.com/account/confirm_email/") Then
WebBrowser1.Navigate(emailver.InnerText)
[Code]...
View 1 Replies
Sep 3, 2009
I create a new mdi child inside my mdi parent. do the work, save the data and close the form.Then I open the same form again, different record, and it opens up cascading as if the 1st form is still open. (even though it is closed)I've search the net for the past hour, and can find no concrete information regarding this issue.Now imagine sales department creating 100 sales orders a day. they keep on having the issue to move the form back to the top.
View 5 Replies
Sep 29, 2011
I want to create an application which acts like a file cabinet, where in i can store all my files viz. xls,doc,msg. So that i do not have to look for my files in hard drive, i can open an application and retrieve it from there.My application will be a standalone application whose data is stored on the location i mention in the application.Is it possible to build an application like this.
View 6 Replies
Oct 6, 2009
We're making a project named personal digital library. It works like an automatic file organizer, which organizes files accdg to different topics, which falls under document categorization. The problem is we don't know what algorithm will be used in our project, we're using VB.NET 2008. Another is do we need to create a database to store the files to be organized?
View 5 Replies
Oct 22, 2010
First off, I am a total VB noob. I want to create a program so that I can store usernames and passwords. I want to be able to search by username and pull up their password. What VB program do I need to write this? Can I just use the VB in excel?
View 9 Replies
Mar 30, 2011
i want to create an application to store all the source code snippets and help information(as i keep learning vb.net) to refer to when i forget or need help.i came across this software.., [URL]
i want to create a similar application. how do i go about creating it? does it require a database? if yes, what kind of database?
View 2 Replies
Jul 19, 2011
I have text file that is saved as comma delimited. There are 3 columns with x number of rows. I cannot seem to figure out how to create an array that will store all three columns with the variable intProductArray as the length of the array. I have been opening the file with only one column and putting it into a textbox and using the lines of the textbox as the variable for length. I cannot figure out the array for all 3 columns.
Private Sub btnChoose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnChoose.Click
Dim myFileDlog As New OpenFileDialog()
myFileDlog.InitialDirectory = "c:"
myFileDlog.Filter = "All Files (*.*)|*.*" & _
[Code] .....
View 12 Replies
Apr 13, 2010
"Create an array to store 10 integers. Initialize all the array elements with -1."
View 1 Replies
May 15, 2012
I have an xml file with following structure:
<table name="tblcats">
<row>
<Id>3680</Id>
<Industry>Associations</Industry>
[code]....
I want to create a treeview using this XML file. I have written following code
' Load a TreeView control from an XML file.
Private Sub LoadTreeViewFromXmlFile(ByVal file_name As String, ByVal trv As TreeView)
' Load the XML document.
[code]....
where as I want table as parent element like this
->table
->Associations
->Fortune 100
so that If i click table node, all tree collapses or expands.
View 1 Replies
Jun 5, 2011
Basically I am trying to create a child management system for a nurse using vb.net and SQL as my backend dbThe application consists of a number of differen forms. Two of these forms are called "frmSearchInfo" and "frmChildDetails".
frmSearchInfo consists of:
- three textboxes "SFirstName" "SLastName" and "SDOB"
- one button "BtnSend"
[code].....
When users enter details on form "frmSearchInfo" I want it to be able to search records in the database and return the same first name, second name and DOB as well as the ID, phone, addressline1, addressline2, county. I also want the datagrid to show dates of appointments for the children.The records needed are stored in the Child Table.
View 3 Replies
Jun 18, 2009
i am doing windows application in vb.net , i want to know how to create a child window in single form.
View 3 Replies