Click here to Skip to main content
15,892,737 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Problem (Lost Focus Event in ASP.Net) Pin
MissionSuccess20-Feb-07 2:10
MissionSuccess20-Feb-07 2:10 
QuestionProblem in ASP.NET Page when use Firefox Pin
Khan.Bangash19-Feb-07 23:18
Khan.Bangash19-Feb-07 23:18 
AnswerRe: Problem in ASP.NET Page when use Firefox Pin
Sandeep Akhare19-Feb-07 23:54
Sandeep Akhare19-Feb-07 23:54 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Khan.Bangash20-Feb-07 0:18
Khan.Bangash20-Feb-07 0:18 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Sandeep Akhare20-Feb-07 0:27
Sandeep Akhare20-Feb-07 0:27 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Khan.Bangash20-Feb-07 0:32
Khan.Bangash20-Feb-07 0:32 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Sandeep Akhare20-Feb-07 1:10
Sandeep Akhare20-Feb-07 1:10 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Khan.Bangash20-Feb-07 4:10
Khan.Bangash20-Feb-07 4:10 
sory sir i was out some where. my code behind file is here
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
Try
If (Conn.State <> ConnectionState.Open) Then
Conn.Open()
End If
If drpSelect.SelectedIndex = 1 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and customers.fname like '%" & txtSearch.Text & "%'"
End If
If drpSelect.SelectedIndex = 2 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and customers.lname like '%" & txtSearch.Text & "%'"
End If
If drpSelect.SelectedIndex = 3 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and cust_order.order_id = " & txtSearch.Text & ""
End If
If drpSelect.SelectedIndex = 4 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and customers.customer_id = " & txtSearch.Text & ""
End If
If drpSelect.SelectedIndex = 5 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and customers.zipcode ='" & txtSearch.Text & "'"
End If
If drpSelect.SelectedIndex = 6 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers,biz_cust_extra where customers.customer_id=cust_order.customer_id and customers.customer_id=biz_cust_extra.customer_id and biz_cust_extra.comp_name like '%" & txtSearch.Text & "%'"
End If
If drpSelect.SelectedIndex = 7 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and cust_order.trans_status = 0"
End If
If drpSelect.SelectedIndex = 8 Then
SelectQuery = "SELECT cust_order.order_id as order_id,cutomers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and cust_order.trans_status = 0 and customers.fname like '%" & txtSearch.Text & "%'"
End If
If drpSelect.SelectedIndex = 9 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and cust_order.trans_status = 0 and customers.lname like '%" & txtSearch.Text & "%'"
End If
If drpSelect.SelectedIndex = 10 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and cust_order.trans_status = -1"
End If
If drpSelect.SelectedIndex = 11 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and cust_order.trans_status = -1 and customers.fname like '%" & txtSearch.Text & "%'"
End If
If drpSelect.SelectedIndex = 12 Then
SelectQuery = "SELECT cust_order.order_id as order_id,customers.fname as fname , customers.lname as lname, cust_order.order_date as order_date,cust_order.order_status as order_status from cust_order,customers where customers.customer_id=cust_order.customer_id and cust_order.trans_status = -1 and customers.lname like '%" & txtSearch.Text & "%'"
End If

selectcommand = New OleDbCommand()
selectcommand2 = New OleDbCommand(SelectQuery, Conn)
total = selectcommand2.ExecuteReader()
If Not total.Read() Then
lblMsg.Visible = True
Else
lblMsg.Visible = False
End If
With selectcommand
.Connection = Conn
.CommandText = SelectQuery
.CommandType = CommandType.Text
End With
adapter = New OleDbDataAdapter
adapter.SelectCommand = selectcommand
dset = New DataSet("quote")
adapter.Fill(dset, "quote")
orderDG.DataSource = dset
orderDG.DataBind()
txtSearch.Text = ""
drpSelect.SelectedIndex = 0
btnBack.Visible = True
totalreclbl.Text = dset.Tables(0).Rows.Count
Catch ex As Exception
Response.Write(ex.ToString)
Finally
Conn.Close()
End Try
End Sub
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Sandeep Akhare20-Feb-07 4:15
Sandeep Akhare20-Feb-07 4:15 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Sandeep Akhare20-Feb-07 4:17
Sandeep Akhare20-Feb-07 4:17 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Sandeep Akhare20-Feb-07 4:21
Sandeep Akhare20-Feb-07 4:21 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Khan.Bangash20-Feb-07 4:24
Khan.Bangash20-Feb-07 4:24 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Sandeep Akhare20-Feb-07 4:28
Sandeep Akhare20-Feb-07 4:28 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Khan.Bangash20-Feb-07 4:32
Khan.Bangash20-Feb-07 4:32 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Sandeep Akhare20-Feb-07 4:35
Sandeep Akhare20-Feb-07 4:35 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Khan.Bangash20-Feb-07 4:42
Khan.Bangash20-Feb-07 4:42 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Sandeep Akhare20-Feb-07 4:40
Sandeep Akhare20-Feb-07 4:40 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Khan.Bangash20-Feb-07 4:45
Khan.Bangash20-Feb-07 4:45 
GeneralRe: Problem in ASP.NET Page when use Firefox Pin
Amit Kumar G20-Feb-07 15:59
Amit Kumar G20-Feb-07 15:59 
Questionhow to instal certificates Pin
selvakumar Panchatcharam19-Feb-07 23:16
selvakumar Panchatcharam19-Feb-07 23:16 
QuestionPostback in DropDown List Asp.Net 1.1 Pin
Phanindra Kumar19-Feb-07 23:05
Phanindra Kumar19-Feb-07 23:05 
AnswerRe: Postback in DropDown List Asp.Net 1.1 [modified] Pin
NanaAM19-Feb-07 23:24
NanaAM19-Feb-07 23:24 
GeneralRe: Postback in DropDown List Asp.Net 1.1 Pin
Phanindra Kumar19-Feb-07 23:38
Phanindra Kumar19-Feb-07 23:38 
GeneralRe: Postback in DropDown List Asp.Net 1.1 Pin
NanaAM19-Feb-07 23:56
NanaAM19-Feb-07 23:56 
QuestionSession timeout Pin
kksenthilraja19-Feb-07 23:04
kksenthilraja19-Feb-07 23:04 

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.