Click here to Skip to main content
15,925,181 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCrystal Reports Pin
metallica_rock109-Mar-07 22:44
metallica_rock109-Mar-07 22:44 
QuestionClear browser history once user logoff. Pin
KETAN K.9-Mar-07 22:43
KETAN K.9-Mar-07 22:43 
QuestionReportViewer does not show Print option. Pin
mohd imran abdul aziz9-Mar-07 22:29
mohd imran abdul aziz9-Mar-07 22:29 
Questionconvert Bitmap to Image Pin
Imran Khan Pathan9-Mar-07 21:09
Imran Khan Pathan9-Mar-07 21:09 
AnswerRe: convert Bitmap to Image Pin
Guffa10-Mar-07 9:05
Guffa10-Mar-07 9:05 
QuestionPaging in Data Grid Pin
Khan.Bangash9-Mar-07 19:58
Khan.Bangash9-Mar-07 19:58 
AnswerRe: Paging in Data Grid Pin
JustChiragPatel9-Mar-07 20:20
JustChiragPatel9-Mar-07 20:20 
GeneralRe: Paging in Data Grid Pin
Khan.Bangash9-Mar-07 20:32
Khan.Bangash9-Mar-07 20:32 
Thank u very much for Help.
Here is my Load function
<b>Public Sub DgBound()
Try
If (Conn.State <> ConnectionState.Open) Then
Conn.Open()
End If
strQry = "Select cust_order.order_id as order_id, cust_order.customer_id as cust_id, cust_order.order_date as order_date, customers.fname as fname, customers.lname as lname from cust_order, customers, cust_order_ship where cust_order.customer_id = customers.customer_id and cust_order.order_id = cust_order_ship.order_id"
Command = New OleDbCommand
With Command
.Connection = Conn
.CommandText = strQry
.CommandType = CommandType.Text
End With
da = New OleDbDataAdapter(strQry, Conn)
da.SelectCommand = Command
ds = New DataSet
da.Fill(ds, "cust")
dgProfit.DataSource = ds
dgProfit.DataBind()
totalreclbl.Text = ds.Tables(0).Rows.Count
Catch ex As Exception
Response.Write(ex.ToString)
Finally
Conn.Close()
End Try
End Sub</b>
and Here is My Search Code
Try
If (Conn.State <> ConnectionState.Open) Then
Conn.Open()
End If
strQry = "Select cust_order.order_id as order_id, cust_order.customer_id as cust_id, cust_order.order_date as order_date, customers.fname as fname, customers.lname as lname from cust_order, customers, cust_order_ship where cust_order.customer_id = customers.customer_id and cust_order.order_id = cust_order_ship.order_id and cust_order.order_date >=#" & ViewState("startDate") & "# and cust_order.order_date <=#" & ViewState("endDate") & "#"
Command = New OleDbCommand
With Command
.Connection = Conn
.CommandText = strQry
.CommandType = CommandType.Text
End With
Command2 = New OleDbCommand(strQry, Conn)
total = Command2.ExecuteReader()
If Not total.Read() Then
lblMsg.Visible = True
Else
lblMsg.Visible = False
End If
da = New OleDbDataAdapter(strQry, Conn)
da.SelectCommand = Command
ds = New DataSet
da.Fill(ds)
dgProfit.CurrentPageIndex = 0
dgProfit.DataSource = ds
totalreclbl.Text = ds.Tables(0).Rows.Count
dgProfit.DataBind()
btnBack.Visible = True
totVatSubSearch()
txtStart.Text = ""
txtEnd.Text = ""
Catch ex As Exception
Response.Write(ex.ToString)
Finally
Conn.Close()
End Try

I dont know where should I change my code.
Once Again Thank u very much.
GeneralRe: Paging in Data Grid Pin
Khan.Bangash9-Mar-07 20:34
Khan.Bangash9-Mar-07 20:34 
GeneralRe: Paging in Data Grid Pin
JustChiragPatel9-Mar-07 21:45
JustChiragPatel9-Mar-07 21:45 
Questionhow to insert image in database from image control Pin
Imran Khan Pathan9-Mar-07 19:25
Imran Khan Pathan9-Mar-07 19:25 
AnswerRe: how to insert image in database from image control Pin
Atif Ali Bhatti9-Mar-07 23:13
Atif Ali Bhatti9-Mar-07 23:13 
Questionurl rewritting problem... Pin
JustChiragPatel9-Mar-07 19:00
JustChiragPatel9-Mar-07 19:00 
AnswerRe: url rewritting problem... Pin
Michael Sync9-Mar-07 20:59
Michael Sync9-Mar-07 20:59 
QuestionHOw to Display or prompt message for asking user for further action Pin
mohd imran abdul aziz9-Mar-07 18:37
mohd imran abdul aziz9-Mar-07 18:37 
AnswerRe: HOw to Display or prompt message for asking user for further action Pin
Khan.Bangash9-Mar-07 19:04
Khan.Bangash9-Mar-07 19:04 
AnswerRe: HOw to Display or prompt message for asking user for further action Pin
Michael Sync9-Mar-07 20:53
Michael Sync9-Mar-07 20:53 
QuestionFree ASP.NET 2.0 Shipping cart Pin
szmulder9-Mar-07 17:03
szmulder9-Mar-07 17:03 
Questionimage does not display. Pin
Eyungwah9-Mar-07 12:27
Eyungwah9-Mar-07 12:27 
AnswerRe: image does not display. Pin
Guffa9-Mar-07 15:14
Guffa9-Mar-07 15:14 
AnswerRe: image does not display. Pin
JustChiragPatel9-Mar-07 20:11
JustChiragPatel9-Mar-07 20:11 
QuestionRe: image does not display. Pin
Eyungwah12-Mar-07 7:03
Eyungwah12-Mar-07 7:03 
Questiona little help again [modified] Pin
blitz2bleach9-Mar-07 10:41
blitz2bleach9-Mar-07 10:41 
QuestionHow to Secure my default.aspx page Pin
Eyungwah9-Mar-07 9:02
Eyungwah9-Mar-07 9:02 
AnswerRe: How to Secure my default.aspx page Pin
kubben9-Mar-07 10:21
kubben9-Mar-07 10:21 

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.