9,869,444 members (25,909 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
167 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 4
Page Size:
10
·
25
·
50
Author filtered by: sisir patro
[x]
Javascript function is not working
by
sisir patro
Answer
29 Jan 2013
license:
CPOL
Hi,Try like the following:function projectsclick() { document.getElementById("").css("display","none"); }Thanks
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
CSS
i want ans for this question
by
sisir patro
Answer
29 Jan 2013
license:
CPOL
HI,You need to create an event handler for the button-event of the usercontrol and fire it from the click event of the actual button.class MyControl : UserControl{ public delegate void ButtonClickedEventHandler(object sender, EventArgs e); public event...
General Programming
»
Uncategorised Quick Answers
»
General
C#
how to insert data in databse
by
sisir patro
Answer
28 Jan 2013
license:
CPOL
HI,Try like this:DECLARE @STARTDATE datetime;DECLARE @EntDt datetime;set @STARTDATE = '06/01/2012';set @EntDt = '12/31/2012';declare @dcnt int; with DateList as ( select @STARTDATE DateValue union all select DateValue + 1 from DateList where ...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
Converting Number to Hex with complications
by
sisir patro
Answer
28 Jan 2013
license:
CPOL
Hi,There are different solutions:int decValue = 182;// Convert integer 182 as a hex in a string variablestring hexValue = decValue.ToString("X");// Convert the hex string back to the numberint decAgain = int.Parse(hexValue,...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Logout issue in asp.net
by
sisir patro
Answer
28 Jan 2013
license:
CPOL
HI,On logout button click clear the session values using any one of the following code:Session.Clear();or Session.Abandon();Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
How to convert a word document to a pdf
by
sisir patro
Answer
27 Jan 2013
license:
CPOL
HI,Check the following links for variety of solutions.How do I convert Word files to PDF programmatically? [closed]Converting Word Documents to PDF using SharePoint Server 2010 and Word ServicesConverting Word Documents to PDF for Visual C#How to convert word document to pdf in...
General Programming
»
Uncategorised Quick Answers
»
General
C#
itextsharp
Tooltip of List Box item in asp.net
by
sisir patro
Answer
27 Jan 2013
license:
CPOL
HI,Here are some articles that will show you different ways to add the tooltip to listbox items. Have a look into them.Showing a Separate Tooltip for Each Item in a ListBox - .NET 2.0 (C# Code)List box control with tooltip for each itemASP.NET: ListBox TooltipThanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Session Timeout Problem in asp.net Intranet Application
by
sisir patro
Answer
27 Jan 2013
license:
CPOL
HI,You can check the session existance in the pageload and then perform your operations:if (!string.IsNullOrEmpty(Convert.ToString(Session["UserName"]))) { //Redirect to the respective page } else { ...
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
C#
ASP.NET
SQL-Server
session
how to concat first name and last name and display in label in asp.net C#
by
sisir patro
Answer
27 Jan 2013
license:
CPOL
HI,As mentioned in the above solution you can concatenate and there is another way to concatenate also. Session["username"] = string.Concat(firstName , lastName); myLabel.Text = Session["username"];For reference follow the following link:C# string.ConcatWhat's the...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Please guide on the following problem
by
sisir patro
Answer
26 Jan 2013
license:
CPOL
HI,Look brother google is there to help you in collecting the information regarding database and security. Use your knowledge to explore your capability. If you are facing any problem in getting the solution or coding then we are there to guide you.Don't be dependent on other people. If...
General Programming
»
Uncategorised Quick Answers
»
General
C++
C
C#
Java
Visual-Studio
What is the best Database to store and retrieve images efficiently ?
by
sisir patro
Answer
25 Jan 2013
license:
CPOL
HI,Database is a storage place to store your data. There is nothing like that one database is good and another is bad. Its fully dependent on you how you will store and manage your data in the database.According to me storing the images in the database is a bad idea. This will make the...
General Programming
»
Uncategorised Quick Answers
»
General
SQL
MySQL
Oracle
Change asp textbox mode to password
by
sisir patro
Answer
25 Jan 2013
license:
CPOL
Hi,You can use like the following:ChangeMode(){ document.getElementById("txtPassword").attr('TextMode', 'Password');}Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
Javascript
datetime formate problem
by
sisir patro
Answer
25 Jan 2013
license:
CPOL
HI,Checkout the following link for the formating purpose in the date and time case.string-format-datetimeThanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
javascript when masterpage is used
by
sisir patro
Answer
24 Jan 2013
license:
CPOL
HI,Make sure that you have added the following file to tour master page.Add this in the master page and then the following bunch of code in the page where the control present.function SurName() { var x =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Multiple File Download of Audio Files from asp.net gridview using jquery?
by
sisir patro
Answer
24 Jan 2013
license:
CPOL
HI,Refer the following links:Multiple File Drag and Drop Upload using HTML5 and Jquery.Upload-and-attach-multiple-files-as-attachmentsDownload Multiple Files Without Using Zip FileUpload Multiple Files in ASP.NET using jQueryThanks
General Programming
»
Uncategorised Quick Answers
»
General
VB
jQuery
VB.NET
get button client id on textbox event firing
by
sisir patro
Answer
24 Jan 2013
license:
CPOL
HI,You can get the clientID in 2 ways.1. $("#btnSearch") -- This will work aleays if you are using the master page or not It will search for the control ID ending with the ID "btnSearch".2. Make the control property as ClientIDMode="Static" and then use to get the control like the...
General Programming
»
Uncategorised Quick Answers
»
General
C#
javscript
how to display only time in a textbox
by
sisir patro
Answer
24 Jan 2013
license:
CPOL
HI,Check this useful link for the date and time this will really good and will resolve your problem.Thanks
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
C#
SQL-Server
How can I use spring concepts in .net
by
sisir patro
Answer
21 Jan 2013
license:
CPOL
HI,Checkout the following links for the spring concepts. Here are come articles of code project that contains the code snipet too to help you.Introduction to Spring.NETSpring FrameworkAOP Using Spring.NET - Part 1 ArticleIntegrating Spring.NET with ASP.NET Web SiteThanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
date format on c# windows form
by
sisir patro
Answer
21 Jan 2013
license:
CPOL
HI,Use the following link for parsing and formating any date format.Different date formatsThanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
access parent page controls in i frame page
by
sisir patro
Answer
21 Jan 2013
license:
CPOL
HI,The parent page control will not be able to render in the client page. But you can able to get the value of the control in any of the pages.You need to pass the value in a session or in querystring value to the child page.Thanks
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
in excel how the mutiple cells to be in border style
by
sisir patro
Answer
21 Jan 2013
license:
CPOL
Hi,Check the following links:How to set a border around multiple cells in excel with C#Multiple Formats in one cell using c#Setting cell styles in Excel from C# misbehavingThanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
c# and asp program for cropping an image
by
sisir patro
Answer
21 Jan 2013
license:
CPOL
HI,Check the following links:Image CorppingCropping Images code project articleThanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP
encrypted file like table
by
sisir patro
Answer
20 Jan 2013
license:
CPOL
HI,You can use the encription and decription of any kind of strings using the following two methods. public static string Decrypt(string stringToDecrypt) { MemoryStream ms = null; byte[] inputByteArray = new byte[stringToDecrypt.Length + 1]; ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Session Conflicts with different logins using asp.net
by
sisir patro
Answer
20 Jan 2013
license:
CPOL
HI,Use a finally{ if(_objMasters != null) { _objMasters = null; } } block in your code and dispose your _objMasters object there and assign null to that object.This may resolve your problem.Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
display html content in a textbox
by
sisir patro
Answer
20 Jan 2013
license:
CPOL
HI,You can do it by making the validation property to false in the page like:But storing the HTML data in the database creates some security problems....
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Assigning database values to textbox on Page_load
by
sisir patro
Answer
20 Jan 2013
license:
CPOL
HI,1St you check the data for number of rows returning from the database and then use to assign the values.protected void Page_Load(object sender, EventArgs e){ string str = Request.QueryString["uname"];SqlConnection conn = new SqlConnection();conn.ConnectionString =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Delete row from two sql tables that join together
by
sisir patro
Answer
19 Jan 2013
license:
CPOL
HI,Basically you can't be able to delete the record from the table having a foreign key in it. If you want to delete the record there are 2 ways of doing that.1. Make your "cascade delete property" on in sql tables. But this will delete the records from the parent table too. This is not...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
WPF
SQL-Server
SQL2008
DataGrid
databse
HELLO, in windows application form i need some codes. imagine we have to line with this formulas:
by
sisir patro
Answer
19 Jan 2013
license:
CPOL
Hi,Here are some links that have some examples on solving the linnear equations. check them:Solving a linear equationLinear Equations QuickStart Sample (C#)Linear equations in c#Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
datediff function in asp.net
by
sisir patro
Answer
19 Jan 2013
license:
CPOL
HI,you can use like the following:DateTime a = new DateTime(2008, 01, 02, 06, 30, 00);DateTime b = new DateTime(2008, 01, 03, 06, 30, 00);TimeSpan duration = b - a;double hours = (b-a).TotalHours;ORint days = (int)Math.Ceiling(diff.TotalDays);Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Compare validator exception
by
sisir patro
Answer
18 Jan 2013
license:
CPOL
Hi friends,I got the solution for the problem. I am sharing the problem and its solution here.Problem:When we are entering a date in dd/mm/yyyy format the compare validator couldn't able to get it and validation gets failed. This is because the validator implicitly gets the date format...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Closing an opened directory force fully.
by
sisir patro
Answer
17 Jan 2013
license:
CPOL
HI,Checkout this link:Is it possible to close a windows folder from C#?I am sure you will get your answer.Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
Compare validator exception
by
sisir patro
Question
17 Jan 2013
license:
CPOL
Hello All, I am using a compare validator to check the date format entered to a textbox. I am getting the following error.Exception message: The base class includes the field 'cmpvStartDateFormat', but its type (System.Web.UI.WebControls.CompareValidator) is not compatible with the type...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
SQL QUERY Question -- Find Dollar value of an Order without using AVG()
by
sisir patro
Answer
17 Jan 2013
license:
CPOL
HI,Change your code to :SELECT (COUNT(Orders.orderid) / SUM(Inventory.price)) AS Orders_AverageFROM ORDERITEMS LEFT OUTER JOIN Inventory ON OrderItems.partid = Inventory.partid RIGHT OUTER JOIN Orders ON OrderItems.orderid = Orders.orderid ...
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
SQL-Server
How to display database table ?
by
sisir patro
Answer
17 Jan 2013
license:
CPOL
HI,Check out the following link to display the table in windows form:Adding Tables and Columns to the Windows Forms DataGrid ControlTable in c# windows form apphttp://bytes.com/topic/c-sharp/answers/940680-display-google-map-windows-form[^]How to refresh the datagrid:Refreshing...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL
Converting String to Integer
by
sisir patro
Answer
17 Jan 2013
license:
CPOL
Hi,use like this:int decValue = int.TryParse(substring,decValue);// This will not even compile since TryParse returns a bool not an int.To convert hexadecimal values to integer use:int decValue = int.Parse(substring, System.Globalization.NumberStyles.HexNumber);You may be...
General Programming
»
Uncategorised Quick Answers
»
General
C#
strings
Date Time Question, Can the PC return different format?
by
sisir patro
Answer
17 Jan 2013
license:
CPOL
HI,Here is a nice link that will be helpful in future for converting the datetime formats.check out this.String Format for DateTime [C#]Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
session time out error
by
sisir patro
Answer
17 Jan 2013
license:
CPOL
HI,Use the following code in web config file: Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
input string was not in correct format (error)
by
sisir patro
Answer
17 Jan 2013
license:
CPOL
HI,Change your code to :private void textBox3_MouseClick(object sender, MouseEventArgs e) {int b = 0;int a = 0;int c = 0; if (string.IsNullOrEmpty(textBox1.Text)) { int.TryParse(textBox1.Text,a); }...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
set the div position using jquery
by
sisir patro
Answer
17 Jan 2013
license:
CPOL
HI,You can use some thing like :$(document).ready(function() { $('#imgBtnAddNewLineItem').click(function() { $('#container').append(''); });});Here I am sharing some links that can help you.Add Div Dynamically using JQueryusing jquery to...
General Programming
»
Uncategorised Quick Answers
»
General
C#
jQuery
HTML5/CSS
How to save values to Database with current Time.
by
sisir patro
Answer
17 Jan 2013
license:
CPOL
HI,Here you are passing only session values.string query = "insert into Table_1(SensorValue,Time) values(" +hexValue+ "," +DateTime.Now.ToString("HH:MM:ss")+")";Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
time
json parsing problem
by
sisir patro
Answer
16 Jan 2013
license:
CPOL
HI,Checkout some more links that can help you.How to retrieve JSON Data Array from ExtJS Storehow to get json data in jqueryhelp needed retrieving json data with jqueryRetrieving a JSON file using AjaxThese links can help you.You shouldn't need to do anything special to...
General Programming
»
Uncategorised Quick Answers
»
General
Javascript
JSON
I want to compare two stored procedures, and I need to find out which lines are different in the 2 stored procedures
by
sisir patro
Answer
16 Jan 2013
license:
CPOL
HI,You can do it in notepad++. take the two stored procedures in different files and then use compare option in notepad++. This will show you the difference.Thanks
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
Getting Error in Inserting Record
by
sisir patro
Answer
16 Jan 2013
license:
CPOL
HI,Insetead of using the code like: SqlDataAdapter sa = new SqlDataAdapter(); sa.InsertCommand = new SqlCommand("insert into Table_1(SensorValue)",sqlconn); sa.InsertCommand.Parameters.Add("@SensorValue", SqlDbType.Int).Value = SensorValue.Text;Use...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
Appending Array in C#
by
sisir patro
Answer
16 Jan 2013
license:
CPOL
Hi,Checkout these two links for your answer:How to combine two byte arraysBest way to combine two or more byte arrays in C#Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
how to check whether popup is blocked or not in asp.net for chrome
by
sisir patro
Answer
16 Jan 2013
license:
CPOL
HI,Check the following links for our answer:Detect blocked popup in ChromeHow to Detect whether Pop Up Blocker is active or inactive using java script. Thanks
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
Working with Dynamic File Upload control in c#
by
sisir patro
Answer
16 Jan 2013
license:
CPOL
HI,Check these following links for your answer:Iterating Dynamic FileUpload Control Collection in Panel Control using ASP.NET C#ASP.NET save files from dynamically added FileUpload controlsDynamically Create Multiple File Upload Control with ASP.Net C# Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
How To create Header of gridview dynamically?
by
sisir patro
Answer
16 Jan 2013
license:
CPOL
HI,Here is a link which explains the dynamic grid creation with the headers please check this.Dynamic gridview with headersThanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
how to get data from database when images are sliding with time interval
by
sisir patro
Answer
16 Jan 2013
license:
CPOL
HI,I can suggest you for store an ID value in the hidden field and use that hidden field value to retreive the related data from code behind.Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
just for knowledge,
by
sisir patro
Answer
15 Jan 2013
license:
CPOL
HI,Main() is the begining or the starting point of the execution. If the main() will be missing then The compilor compiler will not get a place to start from and will through error.Thanks
General Programming
»
Uncategorised Quick Answers
»
General
C#
condition an inner join
by
sisir patro
Answer
15 Jan 2013
license:
CPOL
HI,Change your query to a dynamic query like:DECLARE @SqlQuery VARCHAR(MAX)set @SqlQuery = 'SELECT M.ID, A.userName FROM MainTbl M' if exists(select M.IsActive from MainTbl M) begin set @SqlQuery = @SqlQuery +...
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
SQL-Server
Page 1 of 4
1
2
3
4
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid