Click here to Skip to main content
11,433,997 members (56,529 online)
   

ASP.NET

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

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web04 | 2.8.150428.2 | Last Updated 5 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid