User Profile

Collapse

Profile Sidebar

Collapse
ajinkya ragalwa
ajinkya ragalwa
Last Activity: Nov 28 '11, 06:26 AM
Joined: Feb 8 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ajinkya ragalwa
    started a topic problem in updating data

    problem in updating data

    Hey guys,

    I have made an application that uses sql server to keep data and retrieve it when needed. Today me and my friend tried
    to update data of same record from different computers, it threw exception. I have read a lot about 'Optimistic concurrency' but to be honest, I don't know how to implement it. Can anyone please help me or atleast guide me
    on how should i implement it.

    Thanks and regards
    ...
    See more | Go to post

  • ajinkya ragalwa
    started a topic How to handle following exceptions

    How to handle following exceptions

    Hey guys,


    I have an application that connects to DB that is on a remote PC.
    Problem is after a couple of minutes or so, it starts throwing exception.

    1. The specified network name is no longer available.
    2. Connection was forcibly closed by remote host.
    3. connection was closed by software on the remote machine.


    I couldn't find any solution for these problems.
    ...
    See more | Go to post

  • How to store data retrieved from sql DB into a file

    Hey guys,


    I am stuck at a point at this stage. I have made an application that shows data from sql server DB.
    Now, I want to make a change. The change is that whatever data is being displayed in datagrid view,
    i should b able to store it in a file. It can be a simple document file or a pdf or excel.
    Do you have any suggestions on how can i do it?



    Thanks
    Ajinkya
    See more | Go to post

  • how to create transaction id while inserting, updating data

    Hey Guys,

    I have gotta problem. I want to store data into database(which i can do) from C# application.
    Now the thing is every time I insert or update, I want my application to catch that transaction,
    create a 'TRANSACTION ID', and store it in table. So that it would be easier for me to update
    and delete the data.
    Any idea how can I do this?


    Thanks
    Ajinkya
    See more | Go to post

  • How to delete row from datagridview and update database?

    Hey guys,

    I have written a code that could delete selected row in data grid view. I gives lots of errors.

    Let me paste my code.

    Code:
    for (int i = 0; i < dataGridView1.Rows.Count; i++)
                        {
    
                            DataGridViewRow dr = dataGridView1.Rows[i];
                            if (dr.Selected == true)
                            {
    ...
    See more | Go to post
    Last edited by Niheel; Mar 5 '11, 08:22 PM.

  • Object reference Not set to instance of an object

    Hey Guys,

    I am now loosing my cool over this problem.
    let me paste my code an then i'll explain my problem.

    Here's my code :


    Code:
      if (rn < ds1.Tables["Company"].Rows.Count-1)
                    {
                        rn = rn + 1;
                        textBox1.Text = ds1.Tables["Company"].Rows[rn].ItemArray[0].ToString();
    ...
    See more | Go to post

  • How to rectify Exception 'Index Out of Range'

    Hey guys,


    I am making an application that generates 'ID'
    automatically. Let me post part of my code for ya all.



    Code:
    dt = dB1DataSet1.Tables["company"];
                len = dt.Rows.Count + 1;
                dr = dt.Rows[len];
                code = dr["C_ID"].ToString();
                cde = code.Substring(1, 2);
                ctr = Convert.ToInt32(cde);
    ...
    See more | Go to post

  • How to pass an IP address in connection string?

    I have a database that is stored on a remote machine.
    In my application i have used connection string with
    IP address of that remote machine. Now, the problem is
    every time the remote machine is turned on it has a new
    IP address. Is there any way that i can get that newly
    generated IP address stored in connection string automatically
    every time i try to connect to database.

    Here's my connection string...
    See more | Go to post
    Last edited by Niheel; Feb 24 '11, 05:12 PM.

  • How to delete selected row from data grid view and update the database?

    I need a code that would delete the row from not only from
    grid view but also from the table.

    I am able to delete the row from grid view but its not getting deleted
    from table.

    Any suggestions on how to do it.
    See more | Go to post
    Last edited by Niheel; Feb 24 '11, 08:58 AM.

  • ajinkya ragalwa
    replied to Help with structures in C#
    I have got only one file. But do you think it has anything to do with file? and hey i have tried running it and it ran well except for it did not show the text that i had selected in form1.
    See more | Go to post

    Leave a comment:


  • ajinkya ragalwa
    replied to Help with structures in C#
    hey leito,

    thanks for your reply.

    And yes i am sure that i added "s1 = comboBox1.Text" .

    But it still ain't working.
    See more | Go to post

    Leave a comment:


  • Yeah.
    I think rabbit is right.
    Try declaring DateOfBirth globally.
    It might help.
    I might be wrong.


    Regards
    Ajinkya
    See more | Go to post

    Leave a comment:


  • ajinkya ragalwa
    started a topic Help with structures in C#

    Help with structures in C#

    Hey guys,

    I have two forms, form1 and form2.
    My form1 has a combo box and a button.
    Here's form1 code.

    Form1

    Code:
    public partial class Form1 : Form
        {
            bool s;
            public Form1()
            {
                InitializeComponent();
                s1 = comboBox1.Text;
    
            }
    
            private void Form1_Load(object sender, EventArgs
    ...
    See more | Go to post

  • ajinkya ragalwa
    started a topic declare a global variable

    declare a global variable

    Need to know, how can i declare a variable as global
    in a form and if i can use it in another.

    (I hope this isn't a vague question)


    Thanks and regards
    See more | Go to post
No activity results to display
Show More
Working...