Click here to Skip to main content
15,896,063 members

Comments by Al Hizbul (Top 4 by date)

Al Hizbul 17-Jul-13 18:11pm View    
Please provide your code which you try.
Al Hizbul 2-Oct-12 17:01pm View    
Do u want to display text from database according to selected date from calender?
Al Hizbul 2-Oct-12 16:40pm View    
Hey do u want to take 10 number from 10 individual textbox or from one textbox?
Al Hizbul 20-Sep-12 4:33am View    
First you should create a class name create_connection for Database connection. This class may help you to further use.
<pre lang="cs">
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace dailyNotes
{
class create_connection
{
public static SqlConnection CreateConnection()
{
string ConnString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Hizbul Bahar\Documents\dailynotes.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True";
SqlConnection Conn = new SqlConnection(ConnString);
Conn.Open();
return Conn;
}
public void disconnect(SqlConnection conn)
{
conn.Close();
}
}
}</pre>

With this you should remove time from date.
<pre lang="c#">String dt=transDate.remove(10);</pre>
and then use my code that i provide you before. There i use this class for DB connection.

Anyway tnx for your response.