Thanks for the answers. Sometimes using a datasource and a gridview is an easy fast way to put together something that there is a need for. This little app is for viewing e-docs that are on an internal server.
I have been staying away from datasources for many of the projects that I work on...
Hello -
I would like to print the SQL query and the values that are being passed to a datasource.
I have used the following command and it shows the query but not the values:
Debug.Print("The SQL string = " + sdsFacilityList.SelectCommand.ToString())
This is the result that I get:
The...
I have been trying to use the ConfigurationManager.ConnectionStrings["key"]that I have been made aware of but I have been unsussessful. The following is from my web.config file (with the login data removed);
<connectionStrings>
<add name="TestCS" connectionString="Data Source=????;Initial...
Thanks for all of the help on this question. I knew about the ADO method for retrieving data but being new to ASP, I thought that it may be bad form to make use of it. It also seemed like it might be easier if I could pull the data from a datasource.
Another concern that I have is the...
Thanks for the answer, it helps but I do not think that I understand what I need to know.
Let's say that I have a datasource called DataSource1 which contains a select statement. To make this easy, lets say that the select returns one table that has two columns (A & B) and two records.
Say...
Hello,
On many occasions it would be very handy to be able to get data directly from an SQL datasource so that I can manipulate it with VB code in the code behind. My ASP text books mention that the data is stored in a dataset but they do not give any instruction on how to identify the dataset...
Thanks - I put the same code inside the click event of a button (for ease of testing) and it works. This is the first time that I have ever seen anyone break it down as you suggested. It seems like a very good and straight forward approach to the problem.
Now I have to make it work on a...
Thanks for your response. This is what I tried but it does not work. I get Object reference not set to an instance of an object.
Protected Sub fvMain_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles fvMain.DataBinding
Dim myFormView As FormView =...
I am a newbie to ASP. I have researched my problem before asking this question and found several similar postings. I have not been able to find a solution that I can make work for my situation.
I have a FormView control (fvCityLookup) that is nested inside another FormView control (fvMain)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.