Click here to Skip to main content
15,905,782 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: login control not redirecting to previous page after login Pin
Kornfeld Eliyahu Peter5-May-14 0:12
professionalKornfeld Eliyahu Peter5-May-14 0:12 
Questionhelp with making inner table borders white Pin
Nico Haegens1-May-14 5:34
professionalNico Haegens1-May-14 5:34 
AnswerRe: help with making inner table borders white Pin
Richard Deeming1-May-14 6:00
mveRichard Deeming1-May-14 6:00 
GeneralRe: help with making inner table borders white Pin
Nico Haegens1-May-14 6:20
professionalNico Haegens1-May-14 6:20 
GeneralRe: help with making inner table borders white Pin
Richard Deeming1-May-14 6:27
mveRichard Deeming1-May-14 6:27 
GeneralRe: help with making inner table borders white Pin
Nico Haegens1-May-14 7:00
professionalNico Haegens1-May-14 7:00 
Questionhelp with CSS Pin
Jassim Rahma30-Apr-14 12:44
Jassim Rahma30-Apr-14 12:44 
AnswerRe: help with CSS Pin
vbmike3-May-14 12:13
vbmike3-May-14 12:13 
QuestionHow do I extract contents of php file and dump into a variable called aaData? Pin
samflex30-Apr-14 7:12
samflex30-Apr-14 7:12 
QuestionOwin Pin
ernest_hemingway07730-Apr-14 2:56
professionalernest_hemingway07730-Apr-14 2:56 
Questionwhat & how to prepare for ASP.net and php interview in one month Pin
Akash Tripathi29-Apr-14 4:03
Akash Tripathi29-Apr-14 4:03 
SuggestionRe: what & how to prepare for ASP.net and php interview in one month Pin
Richard Deeming29-Apr-14 4:40
mveRichard Deeming29-Apr-14 4:40 
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 

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.