Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

microuser_2000

@microuser_2000
About
Posts
135
Topics
84
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • installing App in win98
    M microuser_2000

    hellow to all i am installing an app that i had wrote in win98 , that have all the framework updates .. and every time i run the program i get this error Application has generated an exception that could not be handled process id=0xfff87f77 (-491657) , thread id=0xfff96927 (-431833)

    .NET (Core and Framework) help

  • Reading Data From Database
    M microuser_2000

    hellow .. i am trying to read data from the server ... i use DataReader .. but when i try to pick the date to the Date Control i have many problems ... i try myReader.GetValue() and i try myReader.GetDateTime() but i can't i always get error message that the data is wrong ! any help appreciated ..

    C# help database sysadmin

  • Importing DataTable In SQL SERVER 2000
    M microuser_2000

    thxx my friend i was doing things fine , but i should refresh the list in order to see the new tables .. thxx

    Database database sql-server sysadmin question

  • Importing DataTable In SQL SERVER 2000
    M microuser_2000

    Hellow to all .. i am trying to Import Data into my sql server 2000 , the data is Access database when i creat new database, i go to tables and go into the wizard i follow the steps and when i finsh i don't see any tables ... but if i import data to a database name Master , i can see the tables .. anyidea ? thxx for anyhelp ..

    Database database sql-server sysadmin question

  • Returnig parametrs from sql statment
    M microuser_2000

    hellow to all .. i am trying to return a parameter from sql statment that i insert , how can i do it ? for example i have a sql statment that inset into a table i wanna when i insert a value to Return the indx that i just inset or created ... if anyone can please direct me or help me i will be thankfull ....

    C# question database help tutorial

  • SQL Statment
    M microuser_2000

    yaa , i will try it .. anyway .. anyone have idea how can i pick the value that i had insert to a table .. i use the code that i show in the first message of this post in VB.NET and it work's fine . i don't know why in CS it don't work ...

    C# database com help

  • SQL Statment
    M microuser_2000

    i saw the linkes that i gave me i don't see anything that i am doing wrong .. and if i validate the data in the forms befor i run the sql statment i can skep the injection attacks part ..

    C# database com help

  • SQL Statment
    M microuser_2000

    ok Pete so what do u suggest that i should do ... where do i find all the things that u told me about ? thank u ...

    C# database com help

  • SQL Statment
    M microuser_2000

    Hellow to all ... i am trying to run an SQL statment on my DB database i wanna pick from the statment a field after inserting i tried to run this code but i always recive this error " Multiple-step OLE DB operation generated errors .... " string SQLContract; int ContractIndx; ClsInfo Assist_Var = new ClsInfo(); try { SQLContract = "INSERT Contract( " + "ClientNum,ContractType,BDate,EDate," + "UDate,PDate,ContratOption,PropertyNum,"+ "HierMeters,MeterPrice,Remarks)" + "VALUES( " + txt_Client_Name.Text + "," + Assist_Var.PrepareStr("B") + "," + Assist_Var.PrepareStr(dtFromDate.Text) + "," + Assist_Var.PrepareStr(dtToDate.Text) + "," + Assist_Var.PrepareStr(dtChange.Text) + "," + Assist_Var.PrepareStr(dtLastPay.Text) + "," + Assist_Var.Val(txtYears.Text) + "," + Assist_Var.Val(txtPropertyID.Text) + "," + Assist_Var.Val(txtMeters.Text) + "," + Assist_Var.Val(txtMeterPrice.Text) + "," + Assist_Var.PrepareStr(txtRemarks.Text) + "); " + "SELECT @Indx = @@IDENTITY" ; OleDbConnection OleDbConn = new OleDbConnection(Assist_Var.SQLConnection()); OleDbConn.Open(); OleDbCommand OleDbCommand = new OleDbCommand(); OleDbCommand.CommandText = SQLContract; OleDbCommand.CommandType = CommandType.Text; OleDbCommand.Connection = OleDbConn; OleDbParameter MyPara = new OleDbParameter(); MyPara = new OleDbParameter("@Indx",OleDbType.Integer , 4); MyPara.Direction = ParameterDirection.Output; OleDbCommand.Parameters.Add(MyPara); OleDbCommand.ExecuteNonQuery(); ContractIndx = Convert.ToInt32(OleDbCommand.Parameters["@Indx"].Value); MessageBox.Show(ContractIndx.ToString()); OleDbConn.Close(); OleDbConn.Dispose(); OleDbCommand.Dispose(); } catch (Exception ex) { MessageBox.Show(ex.Message); } thxx to u ...

    C# database com help

  • wrong
    M microuser_2000

    ---

    Visual Basic

  • from vb.net to C#
    M microuser_2000

    hello sorry for the late reply , i wanna take the value of the indx after it has been inserted and to save it to use it in another statment ...

    C# csharp help

  • from vb.net to C#
    M microuser_2000

    hellow to all .. i have a vb.net code that use ADO.NET i need to make it work on C# .. but when i write it down i got two erros ... i don't know why ! it is ado.net code it have to work in anylanguage . i got the error where the arrows are .. thxx to anyhelp .. { string SQLContract,SQLContractPay; int ContractIndx; ClsInfo Assist_Var = new ClsInfo(); SQLContract = "INSERT Contract( " + "ClientNum,ContractType,BDate,EDate," + "UDate,ContratOption,PropertyNum,"+ "HierMeters,MeterPrice,Remarks)" + "VALUES( " + txt_Client_Name.Text + "," + Assist_Var.PrepareStr("B") + "," + Assist_Var.PrepareStr(dtFromDate.Text) + "," + Assist_Var.PrepareStr(dtToDate.Text) + "," + Assist_Var.PrepareStr(dtChange.Text) + "," + Assist_Var.Val(txtYears.Text) + "," + Assist_Var.Val(txtPropertyID.Text) + "," + Assist_Var.Val(txtMeters.Text) + "," + Assist_Var.Val(txtMeterPrice.Text) + "," + Assist_Var.PrepareStr(txtRemarks.Text) + ");" + "SELECT @Indx = @@IDENTITY" ; OleDbConnection OleDbConn = new OleDbConnection(Assist_Var.SQLConnection()); OleDbConn.Open(); OleDbCommand OleDbCommand = new OleDbCommand(); OleDbCommand.CommandText = SQLContract; OleDbCommand.CommandType = CommandType.Text; OleDbCommand.Connection = OleDbConn; OleDbParameter MyPara = new OleDbParameter(); ------->>>> 'MyPara = new OleDbParameter("@Indx",SqlDbType.Int, 4); MyPara.Direction = ParameterDirection.Output; OleDbCommand.Parameters.Add(MyPara); try { OleDbCommand.ExecuteNonQuery(); ---->>>> 'ContractIndx = OleDbCommand.Parameters("@Indx").Value(); } catch (Exception ex) { MessageBox.Show(ex.Message); }

    C# csharp help

  • public variable
    M microuser_2000

    hellow to all .. i am trying to creat a public variable in my forum that i could access it from othere forms .. but it is not working for me .. how can i creat it ... thxx

    C# question

  • geting time from the server
    M microuser_2000

    hellow to all .. i wanna get the date and the time from the main server that i am connected to , how can i do this ? thxx

    .NET (Core and Framework) question sysadmin

  • nested datagrids
    M microuser_2000

    thank u but i need samples for vb.net not asp.net

    Visual Basic help csharp question

  • nested datagrids
    M microuser_2000

    hellow to all .. i am trying to build a nested datagrid in vb.net i was looking for codes and samples or for the method , i found some but didn't help me much ... any one have any idea where i can found help on this issue ? thxx

    Visual Basic help csharp question

  • Crystal Report to PDF
    M microuser_2000

    Hellow to all , i am exporting a report to PDF Format when i open it in Acrobat 7 i got the report mixed and missing data , but when i open it in Acrobat 5 , i can read it in a right way ...

    Visual Basic

  • ValueMember in combobox
    M microuser_2000

    hellow to all .. i am trying to load data from a database in c# , but i am looking to be able in the combobox to select a valuemember , i saw a class that a member wrote nice idea , but is there any other way or simpler way like in the vb.net ? thxx

    C# csharp database question

  • Matrix Report
    M microuser_2000

    hellow to all .. i am trying to build in crystal report , Matrix report , anyone have idea how to to this ? if so please send me a link , or tell me , thxx

    Visual Basic tutorial question

  • ListView
    M microuser_2000

    yaa i know but it is bad idea when u are using the nodes number and when u move one the count get mixed up ..

    Visual Basic tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups