15,902,905 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 MukeshSagar (Top 21 by date)
MukeshSagar
30-Oct-14 7:31am
View
refer the link :
http://stackoverflow.com/questions/18181909/count-the-number-of-checkboxlist-and-if-checked-items-more-than-1-check-another
MukeshSagar
30-Oct-14 7:29am
View
Use JQuery code to check the number of selected checked boxes
MukeshSagar
22-Oct-14 2:47am
View
No this is the key on the basis of which the data is encrypted
MukeshSagar
18-Oct-14 8:05am
View
Create log table:
DROP TABLE Emp_log;
CREATE TABLE Emp_log (
Emp_id NUMBER,
Log_date DATE,
New_salary NUMBER,
Action VARCHAR2(20));
Create trigger that inserts row in log table after EMPLOYEES.SALARY is updated:
CREATE OR REPLACE TRIGGER log_salary_increase
AFTER UPDATE OF salary ON employees
FOR EACH ROW
BEGIN
INSERT INTO Emp_log (Emp_id, Log_date, New_salary, Action)
VALUES (:NEW.employee_id, SYSDATE, :NEW.salary, 'New Salary');
END;
/
Update EMPLOYEES.SALARY:
UPDATE employees
SET salary = salary + 1000.0
WHERE Department_id = 20;
Result:
2 rows updated.
Show log table:
SELECT * FROM Emp_log;
Result:
EMP_ID LOG_DATE NEW_SALARY ACTION
---------- --------- ---------- --------------------
201 28-APR-10 15049.13 New Salary
202 28-APR-10 6945.75 New Salary
2 rows selected.
MukeshSagar
17-Oct-14 7:49am
View
Show the screen shot of the output, so that i can suggest solution
MukeshSagar
17-Oct-14 5:55am
View
I think first try this command from command line prompt whether it is working fine or nor
MukeshSagar
17-Oct-14 5:53am
View
no define at the page load event
MukeshSagar
17-Oct-14 4:57am
View
SqlConnection con = new SqlConnection("server=servername;uid=sa;pwd=password;initial catalog=databasename");
String qry = "insert into tablename values(@id,@name,@imageurl,@price,@item)";
SqlCommand cmd = new SqlCommand(qry,com);
try
{
cmd.Paramaters.AddWithValues("@id",id);
cmd.Paramaters.AddWithValues("@name",name);
cmd.Paramaters.AddWithValues("@imageurl",imageurl);
cmd.Paramaters.AddWithValues("@price",price);
cmd.Paramaters.AddWithValues("@item",item);
con.Open();
cmd.ExecuteNonQuery();
}
catch(Exception ee)
{
}
finally
{
if (con.State == ConnectionState.Open)
{
con.Close();
}
}
Also before that include the following namespaves:
1. System.Data
2. System.Data.SqlClient
and initialize the variables used
MukeshSagar
10-Oct-14 7:40am
View
download the file in the virtual folder and check the duplication of the file or five the file name along with the random number as filename and show the download link to download the file.
MukeshSagar
10-Oct-14 6:44am
View
Give the source path as the url of the page that is used and desitination as the location where to save the pdf file
MukeshSagar
10-Oct-14 6:26am
View
The first parameter is the name of the file/page that is to be converted to the pdf file, the second parameter is name of the file by which it is to be saved in pdf format
MukeshSagar
10-Oct-14 6:25am
View
The first parameter is the name of the page that is to be converted whether it is *.aspx or *.html; the second parameter is the name of file by which you want to save the file
MukeshSagar
9-Oct-14 4:37am
View
With the Microsoft.Office.Interop.Word assembly, we get the contents and formatting from the document.
Tip:
Add the Microsoft.Office.Interop.Word assembly to your project. Go to Project -> Add Reference...
To Read File:
using System;
using Microsoft.Office.Interop.Word;
class Program
{
static void Main()
{
// Open a doc file.
Application application = new Application();
Document document = application.Documents.Open("C:\\word.doc");
// Loop through all words in the document.
int count = document.Words.Count;
for (int i = 1; i <= count; i++)
{
// Write the word.
string text = document.Words[i].Text;
Console.WriteLine("Word {0} = {1}", i, text);
}
// Close word.
application.Quit();
}
}
To Write File:
var document = new DocumentModel();
// Add document content.
document.Sections.Add(
new Section(document,
new Paragraph(document, "Hello world!")));
// Save the document to a file.
document.Save("Document.docx");
// Open the document file with Microsoft Word.
Process.Start("Document.docx");
MukeshSagar
9-Oct-14 3:14am
View
Use the PageIndexChanged event and rebind the control
MukeshSagar
8-Oct-14 7:56am
View
("select * from '" + ComboBox1.SelectedValue.ToString() + "'
union
select * from '" + ComboBox2.SelectedValue.ToString() + "'
union
select * from '" + ComboBox3.SelectedValue.ToString() + "')
MukeshSagar
7-Oct-14 4:21am
View
Refer the link for details, regarding how to user validation controls within updatepanel.
http://weblogs.asp.net/scottgu/links-to-asp-net-ajax-1-0-resources-and-answers-to-some-common-questions
MukeshSagar
6-Oct-14 8:27am
View
Then send the code for aspx file and .cs file, then only i can check for the problem
MukeshSagar
6-Oct-14 7:21am
View
Before the UpdatePanel tag
MukeshSagar
6-Oct-14 7:20am
View
Deleted
<pre>put the <ScriptManager> tag before the <updatepanel> </pre>
MukeshSagar
4-Sep-14 2:43am
View
I don't want to use AJAX call.
MukeshSagar
6-Dec-13 7:36am
View
Provide me the code so that i can review the root cause.
Show More