15,867,488 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 sandipapatel (Top 17 by date)
sandipapatel
10-Dec-10 6:55am
View
Try to change
StringFormat={}{0:C} to different possiblity
sandipapatel
9-Dec-10 11:41am
View
Bad idea :)) :(
How perfect it works n being maintained in ESB,JSF,EJB.... n more n more Azure,Nuke and even Microsoft lync tools.
sandipapatel
9-Dec-10 11:39am
View
Deleted
Bad idea :)) :(
How perfect it works n being maintained in ESB,JSF,EJB.... n more n more Azure,Nuke and even Microsoft lync tools.
sandipapatel
6-Dec-10 10:01am
View
Hi, Mark I want to know the other options of dynamically loading dll and invoke its method at runtime.
As per you said please send me the idea or link for doing so.
Due I am currently in R&D dept. in our university & really wanted to do this stuff before a month ago. So, please send me the needful that I can improve my code
sandipapatel
6-Dec-10 4:05am
View
put condition:
if(sr!=null) // execute your statements
sandipapatel
6-Dec-10 4:01am
View
No need to worry.
Add the .chm file in u r project folder and then publish the application/create setup.
Now,suppose u have added that file in a folder called "Help" so, use
String strPath = "~/Help/Filename.chm";
....
So, simple man. Try it. Because it will be so easy and manageable in future also.
sandipapatel
6-Dec-10 1:22am
View
Not so clear.
What do you want to do? handle an event for a control or just func calls?
Try out : (sample is for a button)
Button1.Click += new EventHandler(EventHandlingMethodNameWithORWithoutParameters);
It will register the event for buttonclick dnamically and invokes it as per button clicks occur.
sandipapatel
6-Dec-10 1:15am
View
Hey, only the pathofdll is hardcoded. Due my mistake i didn't remove it. But reflection is the only way in the universe to invoke dll methods resides outside the project folder.
Thanks for voting & showing my mistake.
No boarders for improvement
sandipapatel
5-Dec-10 23:32pm
View
Try out :
listBox1.DataSource = null;
in second if-else both block. Also try out
listBox1.DataBind()
in last line.
Hope it will work
sandipapatel
5-Dec-10 7:48am
View
DO NOT FORGET TO VOTE ME IF IT WORKS FOR YOU.
Student Database has two fields : ID , Name
By entering correct Name it will show FormView with details and if incorrect name or emptry name then Shows "Record Not Found" as per u r requirement.
sandipapatel
4-Dec-10 3:56am
View
I was facing same problem in restoring older database to current one.
I was using queries for selecting all data from same named table from both database and then comparing them and updating current db accordingly if new values are available or values are changed for rows.
New Approach:
You can map your database schema (all tables and fields) to an XML file.
Then go -----------
foreach node in xmlnodeofthexmlfile
getdata and compare for both db's same named tables.
It will be very easy. Try out this 1 as 1 organization is using this approach as I heard from my friend who's working in it. You won't need modification in this module ever even if u change the database schema. U need to simply update the XML file only.
sandipapatel
4-Dec-10 3:37am
View
Please provide if any error occurs.
Check the query & test it in inbuilt VS query builder.
Try :
cmd.Parameters.Clear();
Always in program for efficiency & reducing error chances.
sandipapatel
4-Dec-10 3:27am
View
Confusion for parameters used here.
Whats no_of_voting?
u can try different expression for evaluation at run time. Follow the given link:
http://michielvoo.net/blog/expressions-vs-statements-part-2-asp-net-code-block-types/
sandipapatel
4-Dec-10 3:21am
View
using MySql.Data.MySqlClient;
// Download MySQLConnectorfor VS2010 and add rederence of the DLL named
// MySql.Data.dll
String strcon = "Your connection string";
MySqlConnection con = new MySqlConnection(strcon);
String strQuery = "Your SQL Query";
MySqlCommand cmd = new MySqlCommand(strQuery,con);
MySqlDataAdapter da = new MySqlDataAdapter();
da.SelectCommand = cmd;
DataSet ds = new DataSet();
try
{
con.Open();
da.Fill(ds, "TableName");
// OOOORRRR
da.Fill(ds);
}
catch (Exception err)
{
//show error
}
finally
{
con.Close();
}
sandipapatel
3-Dec-10 13:08pm
View
Most probably its like typed datasets in VS.
So may be its hard to change when schema of db changes
sandipapatel
3-Dec-10 11:56am
View
As previously said...... I am novice.
Check out that text size is limited for providing answer. Otherwise I am not willing for doing such disgusting & frustrating task like reading u r comments.
sandipapatel
2-Dec-10 21:58pm
View
Thanks, for showing a better way JOAT-MON
Show More