Click here to Skip to main content
15,881,204 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP.NET performance Pin
Richard MacCutchan18-Apr-13 1:48
mveRichard MacCutchan18-Apr-13 1:48 
GeneralRe: ASP.NET performance Pin
Kalim_mughal18-Apr-13 2:06
Kalim_mughal18-Apr-13 2:06 
GeneralRe: ASP.NET performance Pin
Richard MacCutchan18-Apr-13 2:10
mveRichard MacCutchan18-Apr-13 2:10 
AnswerRe: ASP.NET performance Pin
ZurdoDev18-Apr-13 2:22
professionalZurdoDev18-Apr-13 2:22 
GeneralRe: ASP.NET performance Pin
Kalim_mughal18-Apr-13 2:45
Kalim_mughal18-Apr-13 2:45 
AnswerRe: ASP.NET performance Pin
ZurdoDev18-Apr-13 2:48
professionalZurdoDev18-Apr-13 2:48 
AnswerRe: ASP.NET performance Pin
Marco Bertschi18-Apr-13 5:51
protectorMarco Bertschi18-Apr-13 5:51 
Questionparallel programming Pin
vasanth2vasu17-Apr-13 10:57
vasanth2vasu17-Apr-13 10:57 
I have created a web application for inserting and updating a set of record using C#.net.
the coding is as follows.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class insert : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\PRAVINR\Documents\Visual Studio 2010\WebSites\strikers\App_Data\royal.mdf;Integrated Security=True;User Instance=True");
protected void Page_Load(object sender, EventArgs e)
{
DataBind();

}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand("insert rusty values(@CustID,@Name,@Address,@City,@Pin,@State,@Country,@ContactNO)", con);
cmd.Parameters.AddWithValue("@CustID", TextBox1.Text);
cmd.Parameters.AddWithValue("@Name", TextBox2.Text);
cmd.Parameters.AddWithValue("@Address", TextBox3.Text);
cmd.Parameters.AddWithValue("@City", TextBox4.Text);
cmd.Parameters.AddWithValue("@Pin", TextBox5.Text);
cmd.Parameters.AddWithValue("@State", TextBox6.Text);
cmd.Parameters.AddWithValue("@Country", TextBox7.Text);
cmd.Parameters.AddWithValue("@ContactNO", TextBox8.Text);

cmd.ExecuteNonQuery();
Label1.Text = "Inserted Completed..";
}
catch (Exception ex)
{
Label1.Text = ex.ToString();
}
finally
{
con.Close();
}

}

protected void Button2_Click(object sender, EventArgs e)
{

TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox8.Text = "";

}
}

i need to change the coding to parallel processing so that the process of inserting is done parallel.
Can anyone help me solving this ?
AnswerRe: parallel programming Pin
Rockstar_17-Apr-13 18:25
professionalRockstar_17-Apr-13 18:25 
AnswerRe: parallel programming Pin
Rockstar_17-Apr-13 18:27
professionalRockstar_17-Apr-13 18:27 
AnswerRe: parallel programming Pin
Richard MacCutchan17-Apr-13 22:41
mveRichard MacCutchan17-Apr-13 22:41 
GeneralRe: parallel programming Pin
vasanth2vasu18-Apr-13 1:24
vasanth2vasu18-Apr-13 1:24 
GeneralRe: parallel programming Pin
Richard MacCutchan18-Apr-13 1:30
mveRichard MacCutchan18-Apr-13 1:30 
GeneralRe: parallel programming Pin
vasanth2vasu18-Apr-13 1:46
vasanth2vasu18-Apr-13 1:46 
GeneralRe: parallel programming Pin
Richard MacCutchan18-Apr-13 2:08
mveRichard MacCutchan18-Apr-13 2:08 
AnswerRe: parallel programming Pin
Michael†Cheong18-Apr-13 4:36
Michael†Cheong18-Apr-13 4:36 
Questionabout forum source code Pin
ChandrusekarCS17-Apr-13 2:52
ChandrusekarCS17-Apr-13 2:52 
AnswerRe: about forum source code Pin
Richard MacCutchan17-Apr-13 4:35
mveRichard MacCutchan17-Apr-13 4:35 
AnswerRe: about forum source code Pin
AmitGajjar17-Apr-13 4:54
professionalAmitGajjar17-Apr-13 4:54 
QuestionPassing data to another page without receive frm database Pin
Michael†Cheong17-Apr-13 0:18
Michael†Cheong17-Apr-13 0:18 
AnswerRe: Passing data to another page without receive frm database Pin
JammoD8717-Apr-13 3:01
JammoD8717-Apr-13 3:01 
GeneralRe: Passing data to another page without receive frm database Pin
Michael†Cheong17-Apr-13 3:17
Michael†Cheong17-Apr-13 3:17 
GeneralRe: Passing data to another page without receive frm database Pin
Michael†Cheong17-Apr-13 3:46
Michael†Cheong17-Apr-13 3:46 
GeneralRe: Passing data to another page without receive frm database Pin
JammoD8717-Apr-13 4:40
JammoD8717-Apr-13 4:40 
GeneralRe: Passing data to another page without receive frm database Pin
Michael†Cheong17-Apr-13 6:55
Michael†Cheong17-Apr-13 6:55 

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.