Click here to Skip to main content
12,452,056 members (58,697 online)
   

ASP.NET

 
GeneralRe: HELP T_T save image into database (binary format) Pin
Michael†Cheong18-Apr-13 9:44
groupMichael†Cheong18-Apr-13 9:44 
GeneralRe: HELP T_T save image into database (binary format) Pin
Richard Deeming18-Apr-13 10:03
professionalRichard Deeming18-Apr-13 10:03 
GeneralRe: HELP T_T save image into database (binary format) Pin
Michael†Cheong18-Apr-13 19:52
groupMichael†Cheong18-Apr-13 19:52 
Questionasp.net handler asking Pin
Michael†Cheong18-Apr-13 4:31
groupMichael†Cheong18-Apr-13 4:31 
AnswerRe: asp.net handler asking Pin
Richard Deeming18-Apr-13 5:20
professionalRichard Deeming18-Apr-13 5:20 
QuestionASP.NET performance Pin
Kalim_mughal18-Apr-13 1:38
memberKalim_mughal18-Apr-13 1:38 
AnswerRe: ASP.NET performance Pin
Richard MacCutchan18-Apr-13 1:48
mvpRichard MacCutchan18-Apr-13 1:48 
GeneralRe: ASP.NET performance Pin
Kalim_mughal18-Apr-13 2:06
memberKalim_mughal18-Apr-13 2:06 
GeneralRe: ASP.NET performance Pin
Richard MacCutchan18-Apr-13 2:10
mvpRichard MacCutchan18-Apr-13 2:10 
AnswerRe: ASP.NET performance Pin
ryanb3118-Apr-13 2:22
memberryanb3118-Apr-13 2:22 
GeneralRe: ASP.NET performance Pin
Kalim_mughal18-Apr-13 2:45
memberKalim_mughal18-Apr-13 2:45 
AnswerRe: ASP.NET performance Pin
ryanb3118-Apr-13 2:48
memberryanb3118-Apr-13 2:48 
AnswerRe: ASP.NET performance Pin
Marco Bertschi18-Apr-13 5:51
professionalMarco Bertschi18-Apr-13 5:51 
Questionparallel programming Pin
vasanth2vasu17-Apr-13 10:57
membervasanth2vasu17-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
Member6117-Apr-13 18:25
memberMember6117-Apr-13 18:25 
AnswerRe: parallel programming Pin
Member6117-Apr-13 18:27
memberMember6117-Apr-13 18:27 
AnswerRe: parallel programming Pin
Richard MacCutchan17-Apr-13 22:41
mvpRichard MacCutchan17-Apr-13 22:41 
GeneralRe: parallel programming Pin
vasanth2vasu18-Apr-13 1:24
membervasanth2vasu18-Apr-13 1:24 
GeneralRe: parallel programming Pin
Richard MacCutchan18-Apr-13 1:30
mvpRichard MacCutchan18-Apr-13 1:30 
GeneralRe: parallel programming Pin
vasanth2vasu18-Apr-13 1:46
membervasanth2vasu18-Apr-13 1:46 
GeneralRe: parallel programming Pin
Richard MacCutchan18-Apr-13 2:08
mvpRichard MacCutchan18-Apr-13 2:08 
AnswerRe: parallel programming Pin
Michael†Cheong18-Apr-13 4:36
groupMichael†Cheong18-Apr-13 4:36 
Questionabout forum source code Pin
ChandrusekarCS17-Apr-13 2:52
memberChandrusekarCS17-Apr-13 2:52 
AnswerRe: about forum source code Pin
Richard MacCutchan17-Apr-13 4:35
mvpRichard MacCutchan17-Apr-13 4:35 
AnswerRe: about forum source code Pin
@AmitGajjar17-Apr-13 4:54
professional@AmitGajjar17-Apr-13 4:54 
QuestionPassing data to another page without receive frm database Pin
Michael†Cheong17-Apr-13 0:18
groupMichael†Cheong17-Apr-13 0:18 
AnswerRe: Passing data to another page without receive frm database Pin
JammoD8717-Apr-13 3:01
memberJammoD8717-Apr-13 3:01 
GeneralRe: Passing data to another page without receive frm database Pin
Michael†Cheong17-Apr-13 3:17
groupMichael†Cheong17-Apr-13 3:17 
GeneralRe: Passing data to another page without receive frm database Pin
Michael†Cheong17-Apr-13 3:46
groupMichael†Cheong17-Apr-13 3:46 
GeneralRe: Passing data to another page without receive frm database Pin
JammoD8717-Apr-13 4:40
memberJammoD8717-Apr-13 4:40 
GeneralRe: Passing data to another page without receive frm database Pin
Michael†Cheong17-Apr-13 6:55
groupMichael†Cheong17-Apr-13 6:55 
GeneralRe: Passing data to another page without receive frm database Pin
Member6117-Apr-13 18:24
memberMember6117-Apr-13 18:24 
QuestionEmail Receiving and Sending complete code in asp.net using C# Pin
Abid Hussain-(Abid)16-Apr-13 18:59
professionalAbid Hussain-(Abid)16-Apr-13 18:59 
AnswerRe: Email Receiving and Sending complete code in asp.net using C# Pin
Member6116-Apr-13 19:20
memberMember6116-Apr-13 19:20 
AnswerRe: Email Receiving and Sending complete code in asp.net using C# Pin
Sandeep Mewara16-Apr-13 19:47
mvpSandeep Mewara16-Apr-13 19:47 
GeneralRe: Email Receiving and Sending complete code in asp.net using C# Pin
Abid Hussain-(Abid)16-Apr-13 20:16
professionalAbid Hussain-(Abid)16-Apr-13 20:16 
GeneralRe: Email Receiving and Sending complete code in asp.net using C# Pin
Richard MacCutchan16-Apr-13 21:26
mvpRichard MacCutchan16-Apr-13 21:26 
AnswerRe: Email Receiving and Sending complete code in asp.net using C# Pin
Marco Bertschi16-Apr-13 22:36
professionalMarco Bertschi16-Apr-13 22:36 
QuestionCSS radioButton list Pin
Michael511916-Apr-13 6:30
memberMichael511916-Apr-13 6:30 
AnswerRe: CSS radioButton list Pin
jkirkerx16-Apr-13 12:47
memberjkirkerx16-Apr-13 12:47 
GeneralRe: CSS radioButton list Pin
Member6116-Apr-13 18:12
memberMember6116-Apr-13 18:12 
GeneralRe: CSS radioButton list Pin
Michael†Cheong16-Apr-13 21:11
groupMichael†Cheong16-Apr-13 21:11 
Questionasp.net Pin
maharajothi16-Apr-13 1:43
membermaharajothi16-Apr-13 1:43 
AnswerRe: asp.net Pin
De, Subhendu16-Apr-13 2:27
memberDe, Subhendu16-Apr-13 2:27 
AnswerRe: asp.net Pin
Pete O'Hanlon16-Apr-13 2:30
protectorPete O'Hanlon16-Apr-13 2:30 
AnswerRe: asp.net Pin
Karthik Harve18-Apr-13 20:09
professionalKarthik Harve18-Apr-13 20:09 
Questionthe select control Pin
sara-setare16-Apr-13 0:44
membersara-setare16-Apr-13 0:44 
AnswerRe: the select control Pin
Joshua Omundson16-Apr-13 6:32
memberJoshua Omundson16-Apr-13 6:32 
GeneralRe: the select control Pin
Member6116-Apr-13 18:19
memberMember6116-Apr-13 18:19 
QuestionHow does .NET 2.0 app consume a WCF 3.5 HTTP POST RESTful service? Pin
Jun Du15-Apr-13 4:01
memberJun Du15-Apr-13 4:01 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 28 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid