Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
SuggestionRe: Program for an older version than the one in GAC Pin
Abhipal Singh21-May-15 8:11
professionalAbhipal Singh21-May-15 8:11 
QuestionWant to ask about Memory (private working set) Windows Services Pin
Mercurius8421-May-15 1:54
Mercurius8421-May-15 1:54 
AnswerRe: Want to ask about Memory (private working set) Windows Services Pin
OriginalGriff21-May-15 2:24
mveOriginalGriff21-May-15 2:24 
AnswerRe: Want to ask about Memory (private working set) Windows Services Pin
Dave Kreskowiak21-May-15 2:28
mveDave Kreskowiak21-May-15 2:28 
QuestionHelp this code shows to me what to do?? Pin
abdo.kouta21-May-15 1:45
abdo.kouta21-May-15 1:45 
AnswerRe: Help this code shows to me what to do?? Pin
Pete O'Hanlon21-May-15 2:13
mvePete O'Hanlon21-May-15 2:13 
AnswerRe: Help this code shows to me what to do?? Pin
Dave Kreskowiak21-May-15 2:21
mveDave Kreskowiak21-May-15 2:21 
GeneralRe: Help this code shows to me what to do?? Pin
abdo.kouta21-May-15 2:29
abdo.kouta21-May-15 2:29 
this is my code
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RecievedTime.Text = DateTime.Now.ToString();


        if (IsPostBack)
        {
          

        }
    }
    protected void SOrder_Click(object sender, EventArgs e)
    {
        try
        {

            SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Data"].ConnectionString);
            conn.Open();
            string insertQuery = "insert into OrderData (RoomNumber, OrderCode, Details, ReceviedBy, AssignedTo ,RecievedTime) values (@RNumber, @OCode, @Det, @RBy, @Assto, @RTime)";
            SqlCommand com = new SqlCommand(insertQuery, conn);
            com.Parameters.AddWithValue("@RNumber", RoomN.Text);
            com.Parameters.AddWithValue("@OCode", OrderCode.SelectedItem.Text);
            com.Parameters.AddWithValue("@Det", Details.Text);
            com.Parameters.AddWithValue("@RBy", Receby.SelectedItem.Text);
            com.Parameters.AddWithValue("@Assto", Assto.SelectedItem.Text);
            com.Parameters.AddWithValue("@RTime", RecievedTime.Text);
            
            com.ExecuteNonQuery();
            Response.Redirect("Login.aspx");
            Response.Write("Registration SUCESSFULL");

            conn.Close();
        }
        catch (Exception ex)
        {
            Response.Write("Error:" + ex.ToString());
        }
    }
}



and i have great a database called Data and there is table in called OrderData and the connection is Orders
GeneralRe: Help this code shows to me what to do?? Pin
siddartha kopparapu21-May-15 3:12
professionalsiddartha kopparapu21-May-15 3:12 
GeneralRe: Help this code shows to me what to do?? Pin
Dave Kreskowiak21-May-15 6:44
mveDave Kreskowiak21-May-15 6:44 
QuestionC# Help with new level start in Unity Pin
Member 1170715120-May-15 17:33
Member 1170715120-May-15 17:33 
AnswerRe: C# Help with new level start in Unity Pin
mirdana20-May-15 18:52
mirdana20-May-15 18:52 
GeneralRe: C# Help with new level start in Unity Pin
Member 1170715120-May-15 21:24
Member 1170715120-May-15 21:24 
SuggestionRe: C# Help with new level start in Unity Pin
Richard MacCutchan20-May-15 21:32
mveRichard MacCutchan20-May-15 21:32 
GeneralRe: C# Help with new level start in Unity Pin
F-ES Sitecore20-May-15 22:20
professionalF-ES Sitecore20-May-15 22:20 
GeneralRe: C# Help with new level start in Unity Pin
Member 1170715120-May-15 23:46
Member 1170715120-May-15 23:46 
GeneralRe: C# Help with new level start in Unity Pin
Richard MacCutchan21-May-15 1:28
mveRichard MacCutchan21-May-15 1:28 
AnswerRe: C# Help with new level start in Unity Pin
mirdana31-May-15 21:08
mirdana31-May-15 21:08 
QuestionTCP Comm. <Data handling help needed> Pin
Member 1168908120-May-15 16:07
Member 1168908120-May-15 16:07 
AnswerRe: TCP Comm. <Data handling help needed> Pin
Richard MacCutchan20-May-15 21:29
mveRichard MacCutchan20-May-15 21:29 
QuestionRetreive blob as text SQLite Pin
DPaul199420-May-15 7:51
DPaul199420-May-15 7:51 
AnswerRe: Retreive blob as text SQLite PinPopular
Richard Deeming20-May-15 8:13
mveRichard Deeming20-May-15 8:13 
GeneralRe: Retreive blob as text SQLite Pin
DPaul199420-May-15 8:20
DPaul199420-May-15 8:20 
Questionpropeties in consuming class Pin
Cianide20-May-15 3:49
Cianide20-May-15 3:49 
AnswerRe: propeties in consuming class Pin
Sascha Lefèvre20-May-15 4:03
professionalSascha Lefèvre20-May-15 4:03 

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.