Forum: VB.NET Dec 11th, 2008 |
| Replies: 3 Views: 809 hi,
fetch your leave start date and end date
startdate = stdt
enddate = nddt
if currentdate >= stdt AND currentdate <= nddt
{
msgbox (".....")
} |
Forum: C# Dec 9th, 2008 |
| Replies: 3 Views: 969 Hi,
dataGrid.DataBind() statement is missing.
dataGrid = new DataGridView();
this.Controls.Add(dataGrid);
dataGrid.DataSource = dataSet.Tables["Vertexes"];
... |
Forum: VB.NET Dec 9th, 2008 |
| Replies: 1 Views: 966 hi
you can do this using TreeView |
Forum: VB.NET Dec 8th, 2008 |
| Replies: 1 Views: 2,106 Hi,
oConn.open() statement is missing
(Data Source=NAWINSQL050;Initial Catalog=AlbatrossDB; Integrated Security=true)
oConn.open()
objFormatOut =... |
Forum: VB.NET Dec 8th, 2008 |
| Replies: 7 Views: 1,527 Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
Try
oConnOleDb = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data... |
Forum: VB.NET Dec 6th, 2008 |
| Replies: 7 Views: 1,527 try this
Dim con as new OledbConnection
con = new OledbConnection (constring)
con.open()
Dim cmd as new OledbCommand
cmd = new OledbCommand("Delete Query",con)
cmd.ExecuteNonQuery() |
Forum: VB.NET Dec 6th, 2008 |
| Replies: 7 Views: 1,527 |
Forum: C# Dec 5th, 2008 |
| Replies: 6 Views: 1,662 Hi,
try this
ds1.Merge(ds2);
dataGridView1.DataSource = ds1.Tables[0];
dataGridView1.DataBind(); |
Forum: VB.NET Dec 1st, 2008 |
| Replies: 7 Views: 1,527 Dim con as new OledbConnection
con = new OledbConnection (constring)
con.open()
Dim cmd as new OledbCommand
cmd = new OledbCommand("Delete Query")
cmd.ExecuteNonQuery()
cmd.Dispose()... |
Forum: VB.NET Nov 28th, 2008 |
| Replies: 2 Views: 848 Hi,
Dim con as new Oledbconnection
con = new Oledbconnection(constring)
con.open()
Dim cmd1 as new OledbCommand
cmd1 = new OledbCommand("Insert Query",con)
cmd1.executenonquery() |
Forum: VB.NET Nov 26th, 2008 |
| Replies: 6 Views: 1,420 while dr.Read()
idcombo.Items.Add(dr(0))
end while |
Forum: VB.NET Nov 24th, 2008 |
| Replies: 6 Views: 1,420 |
Forum: VB.NET Nov 24th, 2008 |
| Replies: 6 Views: 1,420 Hi,
dim con as new DqlConnection
con = new Sqlconnection(constr)
con.open()
dim objSqlCommand as new SqlCommand
dim objdr as SqlDataReader
objSqlCommand = new SqlCommand ("YOUR QUERY") |
Forum: VB.NET Nov 20th, 2008 |
| Replies: 1 Views: 319 Hi,
open Project -> "Project name" Properties
open application tab from left
select form name from startup form dropdown list |
Forum: C# Nov 20th, 2008 |
| Replies: 3 Views: 1,263 Hi,
private void button1_Click(object sender, EventArgs e)
{
txt1 = textBox1.Text;
txt2 = textBox2.Text;
String connectionString =... |
Forum: ASP.NET Nov 17th, 2008 |
| Replies: 2 Views: 1,238 Try
Dim ObjSqlDataAdapter As SqlDataAdapter
Dim ObjDataSet As New DataSet
ObjSqlConnection = New SqlConnection(ConnectionString)
If... |
Forum: VB.NET Nov 17th, 2008 |
| Replies: 2 Views: 3,195 Hi,
Private Sub frmDesigner_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
If Asc(e.KeyChar) = Keys.Enter Then
... |
Forum: VB.NET Nov 14th, 2008 |
| Replies: 1 Views: 3,864 ''' <summary>
''' FUNCTION TO CALCULATE SUM OF TWO TIME VALUES
''' PASS TWO DATE VALUES AS STRING
''' </summary>
Function GetTimeSum(ByVal dt1 As String, ByVal dt2 As String) As... |
Forum: VB.NET Nov 10th, 2008 |
| Replies: 5 Views: 1,603 hi,
I think messagebox will not work in ASP.NET.
you can solve it through JAVA SCRIPT |
Forum: VB.NET Nov 7th, 2008 |
| Replies: 3 Views: 2,904 Hi,
imports System.Data.OleDb
Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=DATABASE PATH")
con.Open()
If solved please mark as solved |
Forum: VB.NET Nov 5th, 2008 |
| Replies: 1 Views: 2,041 Hi,
I want to Convert
1. HTML file into PDF file and
2. PDF file into HTML file
through code in vb.net or c#.net without using third party component |
Forum: C# Nov 3rd, 2008 |
| Replies: 4 Views: 854 Hi
SqlConnection ObjConn = new SqlConnection(ConnectionString);
if (ObjConn.State != ConnectionState.Open)
{
ObjConn.Open();
}... |
Forum: VB.NET Oct 21st, 2008 |
| Replies: 8 Views: 627 |
Forum: VB.NET Oct 21st, 2008 |
| Replies: 9 Views: 1,649 CrystalReportViewer1.Visible = false; |
Forum: VB.NET Oct 21st, 2008 |
| Replies: 8 Views: 627 Try this
DataSet objDs;
int i = 0;
protected void Button1_Click(object sender, EventArgs e)
{
if (i == 0)
{ |
Forum: VB.NET Oct 21st, 2008 |
| Replies: 9 Views: 1,649 Private Sub CloseToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseToolStripMenuItem.Click
CrystalReportViewer1.ReportSource = Nothing
... |
Forum: VB.NET Oct 21st, 2008 |
| Replies: 9 Views: 1,649 Hi,
Take one button and on that Click write this code |
Forum: VB.NET Oct 21st, 2008 |
| Replies: 8 Views: 627 Hi,
There is WHILE loop to read the records
i.e. WHILE dr.read()
so it will read all the records one by one |
Forum: VB.NET Oct 20th, 2008 |
| Replies: 8 Views: 627 Hi,
try this
Dim conn As OleDbConnection
Try
conn = New OleDbConnection(My.Settings.ConnectionString)
conn.Open()
Dim asql As String = "Select... |
Forum: VB.NET Oct 20th, 2008 |
| Replies: 9 Views: 1,649 Hi,
CrystalReportViewer1.ReportSource = Nothing
If ur problem solved ,pls marked Solved |
Forum: ASP.NET Oct 20th, 2008 |
| Replies: 2 Views: 486 using System;
using System.Data;
using System.Data.SqlClient;
string sConnectionString = "Integrated Security=SSPI;Initial Catalog=;Data Source=localhost;";
SqlConnection objConn = new... |
Forum: ASP.NET Oct 20th, 2008 |
| Replies: 2 Views: 894 using System;
using System.Data;
using System.Data.SqlClient;
string sConnectionString = "Integrated Security=SSPI;Initial Catalog=;Data Source=localhost;";
SqlConnection objConn = new... |