Click here to Skip to main content
15,887,585 members
Home / Discussions / Web Development
   

Web Development

 
QuestionAbout PHP and ASP Discussion Pin
Abhinandan Nimsarkar29-Apr-14 0:35
Abhinandan Nimsarkar29-Apr-14 0:35 
AnswerRe: About PHP and ASP Discussion Pin
thatraja29-Apr-14 2:28
professionalthatraja29-Apr-14 2:28 
GeneralRe: About PHP and ASP Discussion Pin
Abhinandan Nimsarkar29-Apr-14 2:57
Abhinandan Nimsarkar29-Apr-14 2:57 
GeneralRe: About PHP and ASP Discussion Pin
thatraja29-Apr-14 3:33
professionalthatraja29-Apr-14 3:33 
QuestionMy data is not loading into another tab when clicked. Any ideas? Pin
samflex28-Apr-14 17:00
samflex28-Apr-14 17:00 
QuestionServer returned HTTP response code: 403 for URL: ....? Pin
Hy Chanhan28-Apr-14 16:40
professionalHy Chanhan28-Apr-14 16:40 
AnswerRe: Server returned HTTP response code: 403 for URL: ....? Pin
Kornfeld Eliyahu Peter28-Apr-14 21:55
professionalKornfeld Eliyahu Peter28-Apr-14 21:55 
QuestionHELP Coding search button in VB Pin
ynettep28-Apr-14 14:21
ynettep28-Apr-14 14:21 
I'm designing a web application to for users to input and retrieve data. The data is stored in a sql database. I need help coding the search button to retrieve the data and display in grid view based on search criteria. I can't get the data to display with my current code. PLEASE HELP!!
Here is my code:

VB
Imports System.Windows.Forms

Partial Class ExisitingApplication
    Inherits System.Web.UI.Page

   Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
      If Me.txtLastN.Text = "" Then

         Dim erMsg As Windows.Forms.DialogResult = MessageBox.Show("Must enter Last Name.", "Search", MessageBoxButtons.OK)

      End If

      'Define connection string with datasource
      Dim str As String = ConfigurationManager.ConnectionStrings("SqlDataSource1").ToString

      'Define sql statement to be used
      Dim strUSRACCESS As String = "SELECT FirstName, LastName, SSN from tblMAGIapplications where (FirstName = @FirstName and LastName = @LastName) or (SSN = @SSN)  "

      'Define sql connection using connection string defined above
      Dim USRconn1 As New Data.SqlClient.SqlConnection(str)

      'Define the compelete sql statement with connection and sql string
      Dim CMD As New Data.SqlClient.SqlCommand(strUSRACCESS, USRconn1)

      'Define reader for sql information returned
      Dim drUSR As Data.SqlClient.SqlDataReader = (0)

      'Open SQL Connection
      USRconn1.Open()

      'Dim number As Integer
      'If Int32.TryParse(Me.txtSS.Text, number) = True Then
      'CMD.Parameters.AddWithValue("@SSN", number)
      'Else
      'CMD.Parameters.AddWithValue("@SSN", 0)
      'End If

      'Add parameters
      CMD.Parameters.AddWithValue("@FirstName", Me.txtFirstN.Text)
      CMD.Parameters.AddWithValue("@LastName", Me.txtLastN.Text)
      'CMD.Parameters.AddWithValue("@SSN", Int32.TryParse(Me.TextBox1.Text, number))
      ''SqlDataSource1.DataBind()
      ''Me.GridView1.DataSourceID = SqlDataSource1
      GridView1.DataSourceID = String.Empty
      GridView1.DataBind()
      USRconn1.Close()


   End Sub
End Class

AnswerRe: HELP Coding search button in VB Pin
Richard Andrew x6428-Apr-14 14:49
professionalRichard Andrew x6428-Apr-14 14:49 
GeneralRe: HELP Coding search button in VB Pin
ynettep28-Apr-14 15:06
ynettep28-Apr-14 15:06 
AnswerRe: HELP Coding search button in VB Pin
Wes Aday28-Apr-14 15:10
professionalWes Aday28-Apr-14 15:10 
GeneralRe: HELP Coding search button in VB Pin
ynettep28-Apr-14 15:35
ynettep28-Apr-14 15:35 
GeneralRe: HELP Coding search button in VB Pin
Wes Aday29-Apr-14 1:08
professionalWes Aday29-Apr-14 1:08 
AnswerRe: HELP Coding search button in VB Pin
ZurdoDev28-Apr-14 15:53
professionalZurdoDev28-Apr-14 15:53 
SuggestionRe: HELP Coding search button in VB Pin
Richard Deeming29-Apr-14 2:26
mveRichard Deeming29-Apr-14 2:26 
QuestionDrag-nDrop in ASP.NET Pin
Bheem Sen Singh28-Apr-14 1:43
professionalBheem Sen Singh28-Apr-14 1:43 
AnswerRe: Drag-nDrop in ASP.NET Pin
ZurdoDev28-Apr-14 16:05
professionalZurdoDev28-Apr-14 16:05 
GeneralRe: Drag-nDrop in ASP.NET Pin
Bheem Sen Singh25-Jun-14 23:33
professionalBheem Sen Singh25-Jun-14 23:33 
QuestionI would like to have your advice to finish a big non-profit social project Pin
Pedro197027-Apr-14 13:09
Pedro197027-Apr-14 13:09 
QuestionRe: I would like to have your advice to finish a big non-profit social project Pin
ZurdoDev28-Apr-14 16:06
professionalZurdoDev28-Apr-14 16:06 
AnswerRe: I would like to have your advice to finish a big non-profit social project Pin
Pedro19701-May-14 12:20
Pedro19701-May-14 12:20 
AnswerRe: I would like to have your advice to finish a big non-profit social project Pin
ZurdoDev1-May-14 15:03
professionalZurdoDev1-May-14 15:03 
GeneralRe: I would like to have your advice to finish a big non-profit social project Pin
Pedro19703-May-14 11:03
Pedro19703-May-14 11:03 
GeneralRe: I would like to have your advice to finish a big non-profit social project Pin
hsuhsutin15-May-14 17:30
hsuhsutin15-May-14 17:30 
QuestionHow to pass parameter from one jQuery tab to another (Solved) Pin
samflex27-Apr-14 6:00
samflex27-Apr-14 6:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.