15,886,689 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Himanshu Yadav (Top 56 by date)
Himanshu Yadav
20-Sep-13 22:08pm
View
But how to convert in array if string is like "we are not a employee but we come in employee table" without using split('') method.......please help me out
Himanshu Yadav
14-Sep-13 0:19am
View
public ActionResult ActionName(string Selected) in is this Selected coming null
Himanshu Yadav
19-Jun-13 0:52am
View
Thanks Christian i will follow you..
Himanshu Yadav
15-May-13 2:01am
View
U can use findcontrol method thn check is it checked or not
Himanshu Yadav
12-Feb-13 0:32am
View
ys u r correct..
Himanshu Yadav
12-Feb-13 0:30am
View
Deleted
ys u r correct.........
Himanshu Yadav
7-Feb-13 2:26am
View
original order of row
dddd
ffff
gg
null
ss
null
after using DISTINCT
null
dddd
ffff
gg
ss
row order is changed...
Himanshu Yadav
7-Dec-12 6:58am
View
No we can not define
Himanshu Yadav
7-Dec-12 6:53am
View
its seems to complex so before executing save yr value in any local variable then pass to query this will makes you simpler and understable
Himanshu Yadav
5-Dec-12 0:44am
View
please elaborate yr question
Himanshu Yadav
15-Nov-12 5:23am
View
Hi Andrew,
It is not working for me
@Url.Action("CreateAlbumPartial")
This line is giving exception
Himanshu Yadav
11-Nov-12 22:51pm
View
Are you able to see path in grid.Your column is not filling with value thats why is giving exception when you trying to read the value.
Himanshu Yadav
11-Nov-12 22:49pm
View
In web Follow this link
http://www.codeproject.com/Articles/8055/Transferring-page-values-to-another-page
Himanshu Yadav
11-Nov-12 22:46pm
View
In web or window application
Himanshu Yadav
25-Oct-12 7:55am
View
Share your code please so that we can help you
Himanshu Yadav
22-Oct-12 3:46am
View
when u r getting this error
Himanshu Yadav
15-Oct-12 3:24am
View
Put try and catch block ones if any one enter wrong date it will exception and can be caught in catch block.
Hope this will help
Himanshu Yadav
13-Oct-12 9:18am
View
is this working ?
Himanshu Yadav
13-Oct-12 9:13am
View
asking regarding Connection String
Himanshu Yadav
13-Oct-12 9:12am
View
OP means
Himanshu Yadav
13-Oct-12 8:49am
View
Need more explation...Question is not clear...
Himanshu Yadav
13-Oct-12 8:46am
View
Need some more explanation....
Himanshu Yadav
11-Oct-12 6:24am
View
this.pictureBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseClick);
Discard previously
Himanshu Yadav
11-Oct-12 6:22am
View
Go to designer and check wther this code is there or not if not then copy and paste
this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click);
Himanshu Yadav
20-Sep-12 23:11pm
View
Nice....
This will solve yr problem.
Himanshu Yadav
20-Sep-12 10:04am
View
Use hidden field to store data and again assign data from hidden field to div
Hopes it will help
Himanshu Yadav
20-Sep-12 8:07am
View
Very Nice....Thnx mine 5!
Himanshu Yadav
20-Sep-12 1:13am
View
Nice......
Himanshu Yadav
19-Sep-12 23:34pm
View
When we go for view source we can see only HTML for asp button and Html button.How we can distinguish between server button and html Button.
Himanshu Yadav
11-Sep-12 13:28pm
View
Ctrl+Alt+P use this short cut to attach to process.once you attach to process it will start debuging
Himanshu Yadav
11-Sep-12 13:16pm
View
Bind the data from datatable again.Or you can hide and show on check and unchecked
Himanshu Yadav
11-Sep-12 6:46am
View
I think this line throwing Exception
document.getElementById("print_content").innerHTML;
Don't use innerHtml
Use .Value
It will work fine
Himanshu Yadav
11-Sep-12 5:48am
View
I think becouse u hard code value of textbox and i think you are assigning to session at page load that why it again retaining the same value which is in text box.So remove code if have kept on page load assign the value on some other event sure it will work.
Himanshu Yadav
11-Sep-12 1:42am
View
what you want to do please complete your question.
Himanshu Yadav
5-Sep-12 8:43am
View
Hi,
ok i agree with u but after exception all the updation will rollback so how to control that?
Himanshu Yadav
28-Aug-12 1:28am
View
Updation of Visual studio we will not get problem you can do it.As your saying to change connection string you can do that by clicking a button before uploading by accessing tag of web config file.
Himanshu Yadav
28-Aug-12 1:24am
View
Update yr service by right clicking on service.and u will get the property.
Himanshu Yadav
25-Aug-12 7:36am
View
hi,
It is in bulk not by query using for loop.
Himanshu Yadav
23-Aug-12 23:34pm
View
Hi,
Means any exception x,y,z.I want before exception what ever i inserted/Updated that should persist in data base How to handle this Please Guide me guys
Himanshu Yadav
23-Aug-12 23:34pm
View
Hi,
Means any exception x,y,z.I want before exception what ever i inserted/Updated that should persist in data base How to handle this Please Guide me guys
Himanshu Yadav
23-Aug-12 3:55am
View
string TableName = "EmpDat";
DataTable orgTable = new DataTable();
orgTable.TableName=TableName;
orgTable.Columns.Add("EmpName", typeof(string));
orgTable.Columns.Add("Desig", typeof(string));
orgTable.Columns.Add("EmpFname", typeof(string));
orgTable.Columns.Add("Salary", typeof(int));
orgTable.Columns.Add("Sex", typeof(string));
orgTable.Columns.Add("Branch", typeof(string));
DataRow dr = orgTable.NewRow();
dr["EmpName"] = "Jack";
dr["Desig"] = "Chawki Daar";
dr["EmpFname"] = "Khain The";
dr["Salary"] = 12;
dr["Sex"] = "H";
dr["Branch"] = "Not Allowed";
orgTable.Rows.Add(dr);
SqlTransaction tran;
SqlConnection con = new SqlConnection("Constr");
con.Open();
tran = con.BeginTransaction();
SqlCommand cmd = new SqlCommand("select * from EmpDetail", con);
cmd.Transaction = tran;
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds,"EmpDat");
DataRow[] dr1 = ds.Tables[0].Select("empname='Jack'");
dr1[0]["empName"] = "Good Morning";
orgTable.AcceptChanges();
DataTable f = orgTable.GetChanges(DataRowState.Modified);
// con.Open();
SqlCommandBuilder sqlcmdBuild = new SqlCommandBuilder(da);
da.Update(ds.Tables[0]);
Himanshu Yadav
23-Aug-12 2:59am
View
Hi i am agree with but the problem is that it was asked in an interview they told me to apply best approach I told them it can be attain by three process
(1.) storing record in view state and then we can fetch record from it but they raise two question
(a)its makes yr page heavier
(b)Pages number will not be displayed in grid view ( as i told to Maintain from some global variable by storing current page index and next page index.... )
2. By storing in Catche but in this case i will face problem (b) of first
3.By sql stored procedure by passing current index and next index as input parameter and fetch only that much of record.
But they were not satisfied so i need help please help me out
Himanshu Yadav
23-Aug-12 2:57am
View
Hi i am agree with but the problem is that it was asked in an interview they told me to apply best approach I told them it can be attain by three process
(1.) storing record in view state and then we can fetch record from it but they raise two question
(a)its makes yr page heavier
(b)Pages number will not be displayed in grid view ( as i told to Maintain from some global variable by storing current page index and next page index.... )
2. By storing in Catche but in this case i will face problem (b) of first
3.By sql stored procedure by passing current index and next index as input parameter and fetch only that much of record.again i will face problem (b)of first
But they were not satisfied so i need help please help me out
Himanshu Yadav
23-Aug-12 2:54am
View
Hi i am agree with but the problem is that it was asked in an interview they told me to apply best approach I told them it can be attain by three process
(1.) storing record in view state and then we can fetch record from it but they raise two question
(a)its makes yr page heavier
(b)Pages number will not be displayed in grid view ( as i told to Maintain from some global variable by storing current page index and next page index.... )
2. By storing in Catche but in this case i will face problem (b) of first
3.By sql stored procedure by passing current index and next index as input parameter and fetch only that much of record.
But they were not satisfied so i need help please help me out
Himanshu Yadav
21-Aug-12 3:21am
View
Hi,
I want to know how many worker process is created for an application?If number of client is accessing same application.
Himanshu Yadav
21-Aug-12 1:34am
View
Hi Ritesh,
i am agree with you but my question is how many worker process will be created per website?
Himanshu Yadav
1-Aug-12 5:19am
View
Hi in this query remove where condition and check data is coming or not.
SqlCommand comm2 = new SqlCommand("SELECT TC, Name, Surname, BirthDate, Phone from Pers_Info WHERE TC='" + TCNumber + "'");
SqlCommand comm2 = new SqlCommand("SELECT TC, Name, Surname, BirthDate, Phone from Pers_Info");
Himanshu Yadav
1-Aug-12 5:16am
View
I tried yr code like this is is working
SqlConnection conn = new SqlConnection("server=sam-pc;database=wipro;user id=sa;pwd=godfather");
SqlDataReader dr;
conn.Open();
//string TCNumber = Request.QueryString["TC"].ToString();
SqlCommand comm = new SqlCommand("select * from EmpDetail");
SqlDataAdapter adap = new SqlDataAdapter(comm);
comm.Connection = conn;
DataSet ds = new DataSet();
adap.Fill(ds);
MeasureRecord.DataSource = ds;
MeasureRecord.DataBind();
SqlCommand comm2 = new SqlCommand("select * from EmpDetail");
comm2.Connection = conn;
SqlDataAdapter adap1 = new SqlDataAdapter(comm2);
comm2.Connection = conn;
DataTable dt = new DataTable();
adap1.Fill(dt);
foreach (DataRow Datadr in dt.Rows)
{
string s = string.Empty;
}
//dr.Dispose();
conn.Close();
Himanshu Yadav
1-Aug-12 4:47am
View
Check by puting this either dr has rows.
bool chk= dr.HasRows;
Himanshu Yadav
1-Aug-12 4:41am
View
Hope this will work.
Himanshu Yadav
1-Aug-12 4:39am
View
try this code.....
SqlDataAdapter adap = new SqlDataAdapter(comm);
comm.Connection = conn;
DataTable dt = new DataTable();
adap.Fill(dt);
foreach (DataRow datarw in dt.Rows)
{
TCNo.Text= datarw["TC"].ToString();
....
.......
}
Himanshu Yadav
1-Aug-12 4:31am
View
what happen data is coming?
Himanshu Yadav
1-Aug-12 4:27am
View
Check yr query is data is comming
run that query in sql and check data is coming or not
Himanshu Yadav
1-Aug-12 4:26am
View
For me it is working fine are sure there is data against that query
Himanshu Yadav
1-Aug-12 4:13am
View
is it working now?
Himanshu Yadav
1-Aug-12 4:10am
View
Hi Please pass connection string As per your data base.
SqlConnection conn = new SqlConnection("server=sam-pc;database=wipro;user id=sa;pwd=godfather")
Show More