| 12
 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
 
 |  
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Server;
using Oracle.DataAccess.Types;
using System.Data.OleDb;
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
 
public partial class Calendar : System.Web.UI.Page
{
    OracleConnection Cnx;
    OracleCommand Cmd;
    OracleDataReader Jdd;
    string Req;
    string ChaineConnection = "user id=*****;password=******;data source=127.0.0.1:1521/";
    string txtJourneyDate;
 
    protected void Page_Load(object sender, EventArgs e)
    {
        this.GridView1.EmptyDataText = "niééééé";
 
        try
        {
            Cnx = new OracleConnection();
            Cnx.ConnectionString = ChaineConnection;
            Cnx.Open();
 
            Req = "SELECT LIBELLER FROM RECORDING";
 
            Cmd = new OracleCommand(Req, Cnx);
            Jdd = Cmd.ExecuteReader();
            Jdd.Read();
 
            this.GridView1.DataSource = Jdd;
            this.GridView1.DataBind();
            Jdd.Close();
 
        }
        catch (Exception ex)
        {
            System.Windows.Forms.MessageBox.Show(ex.Message.ToString());
        }
    }
 
    protected void Calendar1_SelectionChanged(object sender, EventArgs e)
    {
        txtJourneyDate = Calendar1.SelectedDate.ToString("dd/MM/yyyy");
        this.Etq_Date_Choisis.Text = "Evènements disponible pour le " + txtJourneyDate;
    }
} | 
Partager