G_rose42's Profile
Reputation: 1
Apprentice
- Group:
- Active Members
- Active Posts:
- 50 (0.06 per day)
- Joined:
- 15-December 10
- Profile Views:
- 926
- Last Active:
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
-
tlhIn`toq 
23 Nov 2012 - 07:29 -
darek9576 
29 Oct 2012 - 09:21 -
raghav.nagana... 
29 Oct 2012 - 04:28 -
modi123_1 
24 Sep 2011 - 09:46 -
November-06 
26 May 2011 - 18:40 -
CodingSup3rna... 
26 May 2011 - 00:53 -
marinus 
22 Apr 2011 - 14:01 -
Erber 
20 Apr 2011 - 11:19 -
no2pencil 
22 Dec 2010 - 02:01
Posts I've Made
-
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 -
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.. -
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 fieldex: update tblename set fname=val
then check 2nd box its not null executeupdate tblename set Lname=val
if its null do not execute the query put in else part that's it -
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]); } -
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:
-
Be a best developer and tester
Friends
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
G_rose42 has no profile comments yet. Why not say hello?