XML : Manipulate A SubObjectList Element?
Jul 12, 2011<Element_List SubObjectList="Yes">
<Type>2</Type>
<Class>1</Class>
</Element_List>
<Element_List SubObjectList="Yes">
<Type>2</Type>
<Class>1</Class>
</Element_List>
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]...
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 RepliesI 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 RepliesI 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]...
I want to be able to reference an element in an array of structures by the name of the element in a visual basic 2010 function. For example
Public Structure myStruct
Public element1 as string
Public element2 as integer
Public element3 as boolean
[code]...
Is it possible to reference a structures element by the element's name in a similar way to that shown above. The code shown above does not work, as the expression obj(i).[elementName] does not work as hoped.
I have the following XML:
[Code]...
I am accessing the name of the child element like this:
[Code]...
I would like the following function to return Nothing if the element with the specified key is not in the collection. Instead, it returns an error - something to the effect of "no element found"
Public Class MyCollection
Inherits System.Collections.ObjectModel.Collection(Of MyType)
Public Function FindByActivityKey(ByVal searchValue As Integer) As MyType
[code]....
I would like to associate a web page element, a textbox for example, with a textbox in my form. When a user types something in the textbox, I would like it to be like he types it on the webpage.
View 1 RepliesI know I can create XML ouput in Example 1 as follows using the following code in Example 2. How do I create the same output in Example 3?[code...]
View 9 Repliesi have problem in manipulating DataSet, how can i filter rows without getting the whole records in tables.
[Code]...
Private sub updatelabels()
If me.invokerequired then 'entire form -- ok ?
me.invoke (new methodinvoker (addressof updatelabels))
[code].....
I have a form with a bunch of tabs on it, but I don't want them to all be visible all the time.[code]...
View 4 RepliesI am developing an intranet app (so security isn't such a problem). The client wants to drag eml files from Outlook to a folder. I would like put a file watcher control that monitors the folder. When the new file is added I want to run some javascript in the open intranet window. How can the file watcher app communicate with the intranet app (also there may be more than one intranet app open). I am experienced at asp.net but a total novice to Winforms so bear with me.
View 4 RepliesI don't know much about the CIL, except that there is metadata in assemblies that record the type information.Would it be possible to create some reflecting tool that is able to read a C# or VB.NET assembly and change its metadata so that all class members become public?
View 4 RepliesI need to create a code, that allows me manipulate a scanner for to do the functions of scanning and save the image.
View 1 RepliesI want to create and application (I'm a rather Jr. programmer, with just a few apps in production), but I'm not sure where to start.
The app needs to be able to join videos of the same types, for instance, divx1.avi and divx2.avi into divx_joined.avi.
I've already google...err I mean, searched bing for some how to's and what not, but I don't think I'm looking for the right terms.
Where do I start to learn to deal with video streams? Is there a book, SDK, etc?
I'm currently using system.data.oledb but I can't seem to make the update , search, & delete work fine. Are there any other ways on how to manipulate an ms access database in vb.net easier than my method? Here is my code for searching:
[Code]...
I had a treeview that had checkbox and its content is like file explorer. the checkbox is check when users want to delete that files or directory, after the selection, press the command button then all selection will be process (on this case deletion) how that to be code?
View 2 RepliesHere's my submission to sort a string of characters in numeric, then lowercase, then uppercase.
[code]...
Lets say I have a List Box called listBox1 on Form1 and on Form2 I have a button called Delete. Whenever the user presses the Delete button on Form2 it should delete an entry from listBox1 in Form1. How can I manipulate listBox1 from Form2's Delete button?
View 5 RepliesIs it possible to manipulate data in worksheets?[code]...
what i want to do is round off the time in if the time is greater than 6:00 example please look at the data date 8/2 and 8/3. i would like to modify it and make the 6:01 to 6:15, and 6:16 to 6:30 , every 1-15min late the time would round off to the nearest 15mins.. my question is how can i make loop in the column "time in" and every time the program sees a "late IN" it will round it up to the nearest 15mins.
Do you know of any beginner tutorial on how to manipulate(Add, Edit, Delete, Search, List) sql Server database in vb.net?
View 2 RepliesI have the following property in a class:
[Code]....
The problem is that when I try to set the property like this: myClass.Language = "English" The property is set to "English" and not to "<![CDATA[English]]>" which is what I want. What is the reason for that and how can I fix it? When placing a break point on End Set and use the Watch window to inspect the value of _Language after setting the property to "English" it remains "English" and doesn't change.
I want to create a program which inserts the person's data from a textbox into a form on the webpage named "name" (for example). I want to be able to make them select from a dropdown list named "cat" and what they select is selected on the dropdown form too.
I also want them to be able for the person to select a file on their machine which is entered in a form named "thumb"I'm completely stumped on how to do the above in VB 08. Also, how to use a submit button? On the page, the submit button's code is<input type='submit' value='Submit' />How to manipulate that in VB 08?
Excuse me if this was asked, Google wasn't in my favours today.
I use a Java web app (app/screenshot, you'd need to sign up, but it's just a java web app), however I'd like to automate its functionality inside of a .NET application (C# or VB, doesn't matter, I'd prefer C#).
I've tried searching but unfortunately "Java web" and ".NET" and "C#" etc, don't return me anything even remotely useful. Is it possible to load the page within a control (or through some other way) within a .NET application, and thus act upon the display itself (the data flow will be encrypted, since it's https - so I don't know if I'd be able to read the data coming to and from the java application, I assume not, but being able to read the application would be nice), to be able to select areas, click, read/input numbers and text, etc. I realize this is a pretty broad question, but, it'd be very helpful if someone could offer some advice/insight into this problem.
edit to add: I guess a better question would have been either "Ways to interact with a java web-start app with windows apis?" or "Possible to contain a java web-start app within a .NET app, and interact directly with components of the web app". I'm also wondering if it will be possible to load it into a browser in a form in .NET, although I assume that it would just launch web-start taking it out of the forms control.
In my website i have a script that return the current song that playing from my shoutcast server in a format of: "artist-track", what i want to do is to take that string and split it to 2 strings: artist and track, in order to do that i wrapped the script in server tag like this[code]...
View 3 RepliesI am fairly certain that the error is on my calling the SQL database, but just checking if there is something obvious that I am missing.
Class Form2
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
If (My.User.Name).Replace("server", "") = "u
[code].....
I have a mdb file hosted on my site [URL]. I am developing an application which will be running on multiple machines and will contact the mdb file via internet. I am not sure how do i go about it as building the connection string for an online connection.
View 2 RepliesBasically functionality i need is:
easy integration with ASP.NET application.user ability to crop image with handle prior to save image optimization from any image type to jpg (compression levels) during the save saving images with proper h/w ratios during the save user ability to rotate the image prior to save ability to translate application to foreign language as it won't be used on international site