473,385 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

VB.NET Simple error for closing bracket

Keeps giving an error of missing closing bracket. It is here, I have even tried adding one in different spots but still doesn't help.


Function GetData(ByVal queryString As String) As System.Data.DataSet
<connectionStrings><Add Name = "myconstring" connectionString="Data Source = MLIPSCOMB737;Initial Catalog=BID; Integrated Security = True" /></connectionString>
Dim ConnectionString As String = ConfigurationManager.ConnectionStrings("myconstrin g").ConnectionString
Dim ds As New System.Data.DataSet
Try
Dim connection As New System.Data.SqlClient.SqlConnection(ConnectionStri ng)
Dim adapter As New System.Data.SqlClient.SqlDataAdapter(queryString, connection)
adapter.Fill(ds)
Catch ex As Exception
'Message.Text = "Unable to connect to the database."
End Try
Return ds

End Function


There error : '>' expected

It highlights Name in this code.

<Add Name = "myconstring" connectionString="Data Source = MLIPSCOMB737;Initial Catalog=BID; Integrated Security = True" /></connectionString>

thanks!!
Nov 9 '07 #1
2 1158
Plater
7,872 Expert 4TB
Where is this code located?
I don't know any code file that allows using "<" and ">".
Seems like you're mixing vb code with your web.config code?
Nov 9 '07 #2
Where is this code located?
I don't know any code file that allows using "<" and ">".
Seems like you're mixing vb code with your web.config code?

oh. It is in my switchboard.aspx.vb code.. so that code probably goes in my aspx code.. got it.
Thank you for all your help and quick replys!!!
Nov 9 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
7
by: BWGames | last post by:
Can someone tell me whats up with this code please? $update_query = "UPDATE users SET creditremaining = creditremaining - " . $_REQUEST . "WHERE mobilenumber = " . $_REQUEST . ""; where...
7
by: J. Hall | last post by:
Hi dudes, Got a simple webpage, with three numeric text input boxes, the idea being that the user is asked to insert percentages of their business around the world... UK, Europe, Other ...
6
by: Ehartwig | last post by:
I recently created a script for user verification, solved my emailing issues, and then re-created the script in order to work well with the new PHP 5 that I installed on my server. After...
102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
2
by: Hendrik Schober | last post by:
Hi, I have some expression template code that I want to get to work. I had a typo in it and just spent two hours to find it, because VC7.1 gave a really weird error message for it. This is the...
8
by: SK | last post by:
Hi I am trying to write a simple C program with devc++ as the complier using the concept of arrays. I cannot get the program to compile without mutiple errors. If anyone has the time to help me...
1
by: kapa | last post by:
Hi The program is suppose to search tags from xml file and determine does every tag have a pair, meaning if there is a <startthere must be </start>, and make count how many there is that...
4
by: johnny | last post by:
I need to get the content inside the bracket. eg. some characters before bracket (3.12345). I need to get whatever inside the (), in this case 3.12345. How do you do this with python regular...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.