Advertisement

05.16.2008 at 06:58AM PDT, ID: 23408259
[x]
Attachment Details

ASP.NET data source

Asked by lrbrister in .Net Editors & IDEs, Visual Studio .NET 2005

In my code below the textbox is getting populated with "adTitle" instead of the actual data.

A little help?

        Dim _subdivision As String = ListSubDivision.SelectedValue
        Dim _lprice1 As Integer = listPrice.Text
        Dim _lprice2 As Integer = _lprice1 / 1000000
        Dim _furnished As String = ListFurnished.SelectedValue
        Dim _adTitle As String = _subdivision & " " & "$" & _lprice2 & " " & "Million" & " " & _furnished
        'txtAdTitle.Text = _adTitle

        Dim dbCon As New System.Data.SqlClient.SqlConnection
        Dim objCmd As New SqlClient.SqlCommand

        dbCon.ConnectionString = System.Configuration.ConfigurationManager.AppSettings("strConPEP")

        dbCon.Open()

        Dim adapter As New SqlDataAdapter("SELECT dbo.adTitle('" & _adTitle & "') as adTitle", dbCon)
        Dim dt As New DataTable()
        adapter.Fill(dt)
        dbCon.Close()
        txtAdTitle.Text = "adTitle"
        txtAdTitle.DataBind()Start Free Trial
[+][-]05.16.2008 at 07:14AM PDT, ID: 21582853

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 07:16AM PDT, ID: 21582885

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 07:24AM PDT, ID: 21582967

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 07:35AM PDT, ID: 21583096

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 07:40AM PDT, ID: 21583142

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Visual Studio .NET 2005
Sign Up Now!
Solution Provided By: fosiul01
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.16.2008 at 07:42AM PDT, ID: 21583163

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 07:46AM PDT, ID: 21583196

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906