Click here to Skip to main content
15,915,734 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with panels Pin
OriginalGriff7-Feb-11 8:35
mveOriginalGriff7-Feb-11 8:35 
GeneralRe: Problem with panels Pin
nighttrain_7-Feb-11 8:43
nighttrain_7-Feb-11 8:43 
GeneralRe: Problem with panels Pin
OriginalGriff7-Feb-11 8:48
mveOriginalGriff7-Feb-11 8:48 
GeneralRe: Problem with panels Pin
nighttrain_7-Feb-11 8:55
nighttrain_7-Feb-11 8:55 
AnswerRe: Problem with panels Pin
Bassio8-Feb-11 0:55
Bassio8-Feb-11 0:55 
QuestionWebBrowser in Windows applications Pin
Zeyad Jalil7-Feb-11 7:05
professionalZeyad Jalil7-Feb-11 7:05 
AnswerRe: WebBrowser in Windows applications Pin
Luc Pattyn7-Feb-11 8:13
sitebuilderLuc Pattyn7-Feb-11 8:13 
QuestionMysqldatabase connexion Pin
Pierre besquent7-Feb-11 5:34
Pierre besquent7-Feb-11 5:34 
Hi guys,
I create a formular in my .js file.I create a mysql databes with navicat 8 editor.I wanna that when i enter my data in the formular and click in the save button,it will be saved in the database.For that,in my .aspx.cs file i have this code:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.Odbc;

public partial class application_Application : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
		switch (this.Request ["Action"])
		{
			case "SaveData":
			{
				string		nom = this.Request ["Name"];
				string		CIN = this.Request ["CarteIdentité"];
				string		Mat = this.Request ["Matricule"];	
				//Cration de la connexion et de la Command
				string ConnectionString= "Driver={MySQL ODBC 3.51 Driver};" 
				+ "Server=localhost;" + "Database="informations";" + " UID=root;" + "PASSWORD=root";			
				OdbcConnection conn=new OdbcConnection(ConnectionString);
string requete=??????
				OdbcCommand ODC=new OdbcCommand(requete,conn);
				OdbcDataReader ODR;
                conn.Open();
				ODR=ODC.ExecuteReader();
				//Affichage du DataReader
				//traitement du datareader  voir dans les sources
				//Fermeture du datareader
				ODR.Close();
				conn.Close();	
			}break;
			default:{}break;
		}
    }
}

my problem is how i will write in "string requete= " to send the information to my database table
Ty for u help
Smile | :)
AnswerRe: Mysqldatabase connexion Pin
Umair Feroze7-Feb-11 6:51
Umair Feroze7-Feb-11 6:51 
GeneralRe: Mysqldatabase connexion Pin
Pierre besquent7-Feb-11 21:01
Pierre besquent7-Feb-11 21:01 
AnswerRe: Mysqldatabase connexion Pin
OriginalGriff7-Feb-11 8:24
mveOriginalGriff7-Feb-11 8:24 
AnswerRe: Mysqldatabase connexion Pin
RaviRanjanKr9-Feb-11 3:59
professionalRaviRanjanKr9-Feb-11 3:59 
QuestionFileSystemWatcher how to wait for file copy completion? Pin
Chesnokov Yuriy7-Feb-11 4:02
professionalChesnokov Yuriy7-Feb-11 4:02 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Thomas Krojer7-Feb-11 4:09
Thomas Krojer7-Feb-11 4:09 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Chesnokov Yuriy7-Feb-11 7:18
professionalChesnokov Yuriy7-Feb-11 7:18 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
#realJSOP7-Feb-11 4:24
professional#realJSOP7-Feb-11 4:24 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Ennis Ray Lynch, Jr.7-Feb-11 4:26
Ennis Ray Lynch, Jr.7-Feb-11 4:26 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Luc Pattyn7-Feb-11 4:30
sitebuilderLuc Pattyn7-Feb-11 4:30 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Pete O'Hanlon7-Feb-11 5:17
mvePete O'Hanlon7-Feb-11 5:17 
AnswerRe: FileSystemWatcher how to wait for file copy completion? Pin
Dave Kreskowiak7-Feb-11 6:28
mveDave Kreskowiak7-Feb-11 6:28 
QuestionProblem by using an Object and a variable inside another function [modified] Pin
nstk7-Feb-11 2:59
nstk7-Feb-11 2:59 
GeneralRe: Problem by using an Object and a variable inside another function Pin
musefan7-Feb-11 3:15
musefan7-Feb-11 3:15 
GeneralRe: Problem by using an Object and a variable inside another function Pin
nstk7-Feb-11 7:19
nstk7-Feb-11 7:19 
Questiondynamic way to analyse settings Pin
arkiboys7-Feb-11 2:55
arkiboys7-Feb-11 2:55 
AnswerRe: dynamic way to analyse settings Pin
musefan7-Feb-11 3:08
musefan7-Feb-11 3:08 

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.