G_rose42's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Active Members
Active Posts:
50 (0.06 per day)
Joined:
15-December 10
Profile Views:
926
Last Active:
User is offline Dec 07 2012 09:55 PM
Currently:
Offline

Previous Fields

Country:
IN
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Ford
Dream Kudos:
0

Latest Visitors

Icon   G_rose42 has not set their status

Posts I've Made

  1. In Topic: C# - SQL Query

    Posted 22 Sep 2012

    Not only 100 records it may be more than 100.
    yes, am using asp.net gridview.
    in that i have to show top 10 customers and 11 record should be sum of balance records i ll put it as other customers
  2. In Topic: Report Viewer Problem asp.net with C#

    Posted 4 Aug 2011

    ya am sure ... asnd i solved it .. its because of IIS config.. no got a new problem.. am getting correct output in IE but in crome reports are not viewing properly.cant view the print button and showing buy single column one by one..
  3. In Topic: update query that ignores nulls?

    Posted 11 Jun 2011

    Try this

    first check the text box is null or empty
    then Ist box is not null execute update query for 1 field
    ex: update tblename set fname=val
    

    then check 2nd box its not null execute
    update tblename set Lname=val
    

    if its null do not execute the query put in else part that's it
  4. In Topic: sql query problem while using parameter

    Posted 25 May 2011

    ya i used that too while pass the value i added comma's but when it goes to the parameter its as-usual same problem it cannot take any records

    my following code to add comma's


    string testcode = Request.QueryString["code"].ToString();
    
                string[] arrcode = testcode.Split(',');
    
    
    
                StringBuilder buildValue = new StringBuilder();
    
                if (arrcode.Length == 1)
                {
                    buildValue.Append(arrcode[0]);
    
                }
                if (arrcode.Length == 2)
                {
                    buildValue.Append(arrcode[0]);
    
                    buildValue.Append("','");
    
                    buildValue.Append(arrcode[1]);
    
                    //obtainedValue = arrcode[0] + "','" + arrcode[1];
                }
                if (arrcode.Length > 2)
                {
    
                    buildValue.Append(arrcode[0]);
                    buildValue.Append("'");
    
                    for (int i = 1; i < arrcode.Length - 1; i++)
    
                        buildValue.Append(",'" + arrcode[i] + "'");
    
                    buildValue.Append(",'");
                    buildValue.Append(arrcode[1]);
    
                }
    
    
  5. In Topic: sql query problem while using parameter

    Posted 25 May 2011

    that code value is come from when i check check box, i have many check box that value is code value

    button click--
    con.Open();
            HiddenField2.Value = string.Empty;
            TextBox1.Text = "";
            using (cmd = new SqlCommand("select Code ,Desc  from MaterialType where CDM_Active=" + 1 + "order by CDM_MaterialType_Desc", con))
            {
    
                dr = cmd.ExecuteReader();
                int i = 0;
                while (dr.Read())
                {
                    if (((CheckBox)this.FindControl(dr["Code"].ToString())).Checked)
                    {
    
                        if (TextBox1.Text.Length > 0)
                        {
                            //TextBox1.Text = string.Empty;
                            TextBox1.Text += "," + dr["Desc"].ToString();
                            HiddenField2.Value += "," + dr["Code"].ToString();
    
                        }
                        else
                        {
                            TextBox1.Text = dr["Desc"].ToString();
                            HiddenField2.Value = dr["Code"].ToString();
                        }
                    }
    
                }
            }
            con.Close();
    


    am passing this hidden value in querystring then i aplly to parameter

     cmd.Parameters.AddWithValue("@Materialcode", Request.QueryString["code"].ToString());
    

My Information

Member Title:
D.I.C Head
Age:
24 years old
Birthday:
June 7, 1988
Gender:
Location:
india
Full Name:
G_KRISH
Programming Languages:
.net,c,c++,asp

Contact Information

E-mail:
Click here to e-mail me
AIM:
AIM  Be a best developer and tester

Friends

Comments

G_rose42 has no profile comments yet. Why not say hello?