15,900,433 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 Mantu Singh (Top 93 by date)
Mantu Singh
26-May-15 1:26am
View
Use system.io directory info and some string work like substring on folder name work on length of folder name use texwriter finally
Mantu Singh
19-May-15 6:33am
View
Great sir I can remember
where should you store your data!!
Mantu Singh
19-May-15 6:23am
View
I think u should close connection before redirecting to other page
Mantu Singh
19-May-15 6:16am
View
You want each computer to have separate data or same data as in a network ?
Mantu Singh
19-May-15 5:50am
View
What's ur problem
Mantu Singh
19-May-15 5:48am
View
Simple edit the query like date='2015-05-19'
Mantu Singh
13-May-15 14:26pm
View
Your IP address has a dot in the end remove and try connecting
Mantu Singh
6-May-15 6:20am
View
Pray tell me why is it impossible
Mantu Singh
5-May-15 13:04pm
View
what are columns of your table ?
Mantu Singh
5-May-15 10:34am
View
welcome !!
Mantu Singh
5-May-15 9:57am
View
how have u saved the image in folder in database?
Mantu Singh
5-May-15 9:28am
View
my sample code works just fine
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:SKTConnectionString %>"
SelectCommand="SELECT * FROM [CLIENT_DET_SMRY]">
<asp:Button ID="Button1" runat="server" Text="Next" onclick="Button1_Click" />
<asp:GridView ID="GridView1" runat="server" Height="168px" Width="322px">
<asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Button" />
Select the Sql data source & see its ConnectionString property like
Data Source=sqlserver;Initial Catalog=DB;User ID=sa;Password=password
if not click small arrow top right corner of sqldatasource & Configure datasource...
Mantu Singh
5-May-15 9:18am
View
have you configured sqldatasource properly
Mantu Singh
5-May-15 9:08am
View
try removing If IsPostBack = False Then
because when u click button page is posted to server got it!!
Mantu Singh
29-Mar-15 13:09pm
View
Man u can't expect someone to do whole work for you you have books internet teachers friends...
Mantu Singh
29-Mar-15 10:17am
View
Dim I as integer=sql.ExecuteNonQuery()
Msgbox(I)
See value it must be >0 for successful insert
Mantu Singh
29-Mar-15 9:49am
View
Code pls
Mantu Singh
29-Mar-15 9:45am
View
I have worked using ado.net code on several access based project but this time I plan to save coding by using components created by Vstodio and do in one line which manual coding requires10 lines. And this data deletion prob is quite nagging since morning then only I posted it
Anyway thanks for or help
Mantu Singh
14-Apr-14 6:13am
View
if U can do it in sql server you can do it in Oracle
Mantu Singh
13-May-13 9:18am
View
Web config file does not have connection string it worked automatically
Mantu Singh
9-Apr-13 3:08am
View
Dear sir i install ajax extension and used scriptmanager and updatepanel as shown in link but the problem is same when i click other button the button in updatepanel disappear
further only one button is added even if i click end exam button 10 times to add 10 buttons
pls help!!
Mantu Singh
9-Apr-13 2:45am
View
Deleted
Dear Sir;
i referred it says to use update panel is this control in VS 2005 pls guide me
Mantu Singh
5-Feb-13 3:34am
View
are null values allowed on the date column of the database..........
Mantu Singh
2-Feb-13 5:52am
View
so what's the problem ?
Mantu Singh
2-Feb-13 4:24am
View
To delete you can use
ds.Tables[0].Rows[0].Delete(); //delete first row
ds.Tables[0].Rows[1].Delete(); //delete second row
Mantu Singh
2-Feb-13 4:14am
View
Pls be kind to accept the answer too ! welcome
Mantu Singh
2-Feb-13 3:50am
View
You need to create a byte array as I hope in the database you column datatype will be varbinary or image where you need the bytes of image
byte [] img=File.ReadAllBytes("image name");
Add(New SqlParameter("@Photo",img));
Remove semicolon as it wont work in VB
Mantu Singh
2-Feb-13 3:14am
View
read all database of sql server in my application of vb.net in combo box ;-)
Mantu Singh
1-Feb-13 7:46am
View
Have you tried something yet!! sounds like H/W
Mantu Singh
31-Jan-13 5:26am
View
updated the solution!!
Mantu Singh
31-Jan-13 5:19am
View
Use comment under question to elaborate or further query Do not post your query in solution!!
Mantu Singh
30-Jan-13 9:17am
View
Try improving the connection string!!
Mantu Singh
30-Jan-13 9:13am
View
yes u can!!
Mantu Singh
29-Jan-13 8:09am
View
Thanks a lot sir!!
Mantu Singh
23-Jan-13 8:57am
View
Thanks a lot Got it!
One doubt pls
cout << sum(5,4,6) << endl; //5 -no of args still runs with
//junk value like4245556
Is there any clearer type safe way to do this like
param arrays in C#
Mantu Singh
19-Jun-12 14:57pm
View
thanks a lot sir for reminding the mistake but I only wanted to run the code and see if i would be able to help and i found index out of range exception on first run.........
Mantu Singh
17-Jun-12 6:41am
View
using treeview might not be good choice as you need to add child nodes dynamically leaving the evnt handling to be followed use this link may be this helps
http://www.codeproject.com/Answers/271528/Treeview-every-next-number-should-be-child-of-Prev
Mantu Singh
7-Jun-12 6:29am
View
mention column names of both tables and what columns you want in the output then the query could be framed properly.........?
Mantu Singh
7-May-12 8:56am
View
Sir;
Pls add using System.Diagnostics;
on the top...............
Mantu Singh
7-May-12 8:33am
View
Pls post code where you got error.......!
Mantu Singh
7-May-12 3:52am
View
Try this........
where is one more connection string code......?
OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Soure=|DataDirectory|\Schooldb.mdb");
Mantu Singh
5-May-12 10:42am
View
pls post the code for both connection strings you use...........
Mantu Singh
5-May-12 9:03am
View
Crash has come.....? Pls elaborate
Mantu Singh
5-May-12 7:52am
View
Thanks a lot!
Mantu Singh
5-May-12 7:43am
View
a pretty tough task u r onto u need lot of expense hardware leave along software....(plus compete with giants like google ?)Anways keep trying Best of luck.......
Mantu Singh
4-May-12 11:07am
View
Thanks for reply sir!.....
Nice article
So there is no way out...?
Actually I need to give this app to operators for data entry after which
collect it back and merge it on single database.......
i wanted that operators may not see the MDB file and mess with eg. copy data from it
(password is not enough it can easily be cracked by free tools) so i thought of embedding it in exe itself
Mantu Singh
4-May-12 10:33am
View
In properties window.........
Mantu Singh
4-May-12 6:25am
View
pls be more clear.....
Mantu Singh
4-May-12 3:59am
View
Sry now I hv updated the answer
After adding progress bar ensure that enabled is set to false
best of luck.....
Mantu Singh
4-May-12 3:50am
View
pls elaborate more as to what prob u face
Mantu Singh
3-May-12 11:15am
View
Sire! Pls mention type of pressure u would like to measure...
1)Atmospheric ?
2)Blood pressure ?
3)underwater ?
: D
Mantu Singh
3-May-12 11:10am
View
U r welcome......!
Mantu Singh
3-May-12 11:02am
View
Doe sthis happen in prog or SSMS(I hope)
Some Msg level,Line no might appear with the error pls bestow ur kindness to specify it.....seeing the length of code
Mantu Singh
3-May-12 10:44am
View
U r welcome.........!
Mantu Singh
3-May-12 9:35am
View
I hope windows services run automatically after deployment when system starts.........
Mantu Singh
3-May-12 8:49am
View
U r welcome...........!
Mantu Singh
3-May-12 5:00am
View
pls give more info code where you encounter the error so we may be able help u
Mantu Singh
3-May-12 4:41am
View
Pls elaborate more............
Mantu Singh
1-May-12 5:14am
View
Thanks a lot sir.....
Mantu Singh
30-Apr-12 9:07am
View
Thanks a lot sir.....!
Mantu Singh
30-Apr-12 9:04am
View
Reason for my vote of 1
looks like HW!
Mantu Singh
30-Apr-12 3:46am
View
Welcome;
use following
string path=Application.ExecutablePath;
Mantu Singh
28-Apr-12 10:55am
View
Is you data grid empty....?
if not you are passing null value to parameter
I noted a line above in u r ques
try this
cmd.CommandText = "Insert into table2(aa,bb) Values(@firstname,@lastname)"
cmd.Parameters.AddWithValue("@firstname",val1)
cmd.Parameters.AddWithValue("@lastname",val2)
Mantu Singh
28-Apr-12 10:45am
View
Thanks for guidance .......
Some complex out of way methods were given on various sites this one simple enough........
This didn't help FALILA may be but helped me
Regards;
Mantu Singh
26-Apr-12 7:23am
View
Dear sir;
I tried to change color of progress bar other than default green once for a project but after lot of hassles couldn't do it even through back color property....
Some help will be greatly appreciated as how to achieve this effect
Regards;
Mantu Singh
25-Apr-12 6:06am
View
Thanks Sir;
But the simple library i have is a simple class with public method if I skip renaming will the Class be obfuscated keeping its name for usability
Mantu Singh
25-Apr-12 5:58am
View
Thanks Sir;
Your suggestion is worth having
But I m doing this for my knowledge
My Purpose is to use library after obfuscation and see that it works well
when we add reference to other project.
i want the code to be secure but classes and methods defined be usable too.
Mantu Singh
25-Apr-12 5:46am
View
What prob r u facing
we r not able to see the project so if you need answers please put question in details and if some code as required.........
Mantu Singh
25-Apr-12 3:41am
View
try combobox1.selecteditem.tostring() this may work or may be some prob with connection string.......
Mantu Singh
25-Apr-12 3:38am
View
thanks at last i got some scripts from a friend Thanks for help
Mantu Singh
25-Apr-12 3:38am
View
thanks at last i got some scripts from a friend Thanks for help
Mantu Singh
24-Apr-12 7:19am
View
pls elaborate the detail if any code or error you face......?
Mantu Singh
24-Apr-12 7:02am
View
I tried the same but can't find such option in SSRS project however posible in Crystalreports
Mantu Singh
24-Apr-12 6:55am
View
Is ReportDocument1 object of CrystalReport added to project and can we adjust page size /orientation at time of designing the crystal report if yes how...?
Mantu Singh
19-Apr-12 5:59am
View
Did you get any exception or error like Dynamic generation of Sql Command is not supported when query does not have key column information IS tableView a DataAdapter?
Mantu Singh
17-Apr-12 9:04am
View
Before attaching the database u need to ensure it is on writable media like hard disk otherwise you wont be able to update any data......
Mantu Singh
16-Mar-12 5:23am
View
use vbscript or javascript to achieve this ......
Mantu Singh
14-Mar-12 1:21am
View
you can go microsft site and search for instructions to upgrade sql server installation maintining old databases..
But pls backup the database before doing anything......
Mantu Singh
14-Mar-12 0:51am
View
please clarify more.....?
Mantu Singh
28-Feb-12 3:14am
View
pls clarify more whether you want to search in the data grid or database
Mantu Singh
8-Feb-12 6:40am
View
You may think of using crystal report to do the job instead of doing overhead of linking to word you have option to save report to various formats (excel word pdf) etc
Mantu Singh
8-Feb-12 6:33am
View
I think you are not seeing sample databases or even worse SSMS is not to be seen; Sql Server setup is a bit tricky try seeing any manual or someone experienced with SQl installation Best of luck....
Mantu Singh
29-Oct-11 4:58am
View
logging in to server with sysadmin role you have privilege over all database objects this may not be possible with a limited role account Best of luck......
Mantu Singh
25-Oct-11 9:50am
View
Thanks for updating got to learn little VB
Mantu Singh
25-Oct-11 9:34am
View
Nice Answer...
Being lazy I would use..
foreach(Process pcs in p)
{
MessageBox.Show(""+p.Name);
}
Mantu Singh
25-Oct-11 9:14am
View
Agree totally doing simple entry in registry is better than loading a service in the system my 5!
Mantu Singh
25-Oct-11 9:13am
View
Use registry just set the installer to do that entry for the application you need to run its simple enough or use Microsoft.Win32.Registry class for you purpose.....
Mantu Singh
25-Oct-11 9:01am
View
Nice details my 5!
Mantu Singh
22-Oct-11 10:42am
View
Thanks a lot......! that worked...
Mantu Singh
21-Oct-11 8:36am
View
try to use Access 2002 data file format for better results
OleDbType.Date) may sometimes cause problem try using varchar instead
The format of date is not fixed in acces ;means if you insert 20/10/2011(d/m/y)
if ur system regional setting changes to(m/d/y) it automatically changes in table to 10/20/2011 so check that..........best of luck
Mantu Singh
21-Oct-11 8:30am
View
the col1,col2 etc must match the table columns
the order you give in columns you need to add parameters in same order
Try to use this @ symbol in parameter name............
cmd.Parameters.Add("@user_id", OleDbType.VarChar).Value=userIDBox.Text;
check insert statement according to columns you need to insert no of ? mark must be equal to no of columns for which you insert data
Mantu Singh
8-Oct-11 8:06am
View
Thanks a lot ! that worked
Mantu Singh
8-Oct-11 6:48am
View
please clarify the question and provide details.......
Show More