Advertisement
Advertisement
| 08.26.2008 at 09:09PM PDT, ID: 23680890 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: |
Imports System.Data.OleDb
Imports System.Web.Security
Public Class Testdata
Inherits System.Web.UI.Page
Dim k As Integer
Dim con As New OleDbConnection("Provider = Microsoft.JET.OLEDB.4.0; Data Source =" & Server.MapPath("AZODB.mdb"))
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents dattxt As System.Web.UI.WebControls.TextBox
Protected WithEvents mark3txt As System.Web.UI.WebControls.TextBox
Protected WithEvents mark4txt As System.Web.UI.WebControls.TextBox
Protected WithEvents mainlink As System.Web.UI.WebControls.LinkButton
Protected WithEvents logoutlink As System.Web.UI.WebControls.LinkButton
Protected WithEvents header2 As System.Web.UI.WebControls.Label
Protected WithEvents submitbtn As System.Web.UI.WebControls.ImageButton
Protected WithEvents errlbl As System.Web.UI.WebControls.Label
Protected WithEvents DataGrid1 As System.Web.UI.WebControls.DataGrid
Protected WithEvents DataGrid2 As System.Web.UI.WebControls.DataGrid
Protected WithEvents scalendar As System.Web.UI.WebControls.Calendar
Protected WithEvents ImageButton1 As System.Web.UI.WebControls.ImageButton
Protected WithEvents billddl As System.Web.UI.WebControls.DropDownList
Protected WithEvents tdlink As System.Web.UI.WebControls.LinkButton
Protected WithEvents temptxt As System.Web.UI.WebControls.TextBox
Protected WithEvents printbtn As System.Web.UI.WebControls.ImageButton
Protected WithEvents usertxt As System.Web.UI.WebControls.TextBox
Protected WithEvents RegularExpressionValidator1 As System.Web.UI.WebControls.RegularExpressionValidator
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If User.Identity.IsAuthenticated = False Then
Response.Redirect("LoginPage.aspx", False)
End If
Try
If Not IsPostBack Then
dattxt.Text = Format(Date.Now, "dd-MM-yyyy")
Dim bill As String
Dim cmd As New OleDbCommand("Select billno1 from WCbilltbl where billno1 not in (select billno from Memomastertbl) Order by Billno1 Desc", con)
Dim dr As OleDbDataReader
con.Open()
dr = cmd.ExecuteReader
While dr.Read()
bill = dr("Billno1")
billddl.Items.Add(bill)
End While
con.Close()
printbtn.Attributes.Add("onclick", "newpage();")
End If
Catch ex As Exception
Response.Write(ex.Message)
End Try
End Sub
|