9,869,444 members (35,744 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*
798 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 16
Page Size:
10
·
25
·
50
Author filtered by:
Aarti Meswania
[x]
querying view is taking too much time
by
Aarti Meswania
Answer
9 May 2013
license:
CPOL
Try this...1.select x,y,z from view1 WITH (Index(Index_x)) where x in (select x from table1 WITH (Index(Index_y)) where y='1234')2.select x,y,z from view1where exists (select * from table1 where y='1234' and table1.x=view1.x)Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
SQL
view
Sql Update Query - Update data with dynamic column name, table name using Temp table to bulk insert
by
Aarti Meswania
Answer
9 May 2013
license:
CPOL
change set @sql ='update MedicalListMedicationType set MedicationType = #tempTable.Name WHERE MedicationType_ID = #tempTable.Id left outer join #tempTable on #tempTable.Id= MedicationType_ID'withset @sql ='update mt set mt.MedicationType = #tempTable.Namefrom MedicalListMedicationType...
General Programming
»
Uncategorised Quick Answers
»
General
SQL
please solve the crystal report problem
by
Aarti Meswania
Answer
9 May 2013
license:
CPOL
visit link,http://forums.asp.net/t/1401755.aspx/1[^]Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Unable to attach mdf files in SQL Server 2008 R2
by
Aarti Meswania
Answer
9 May 2013
license:
CPOL
visit link and see full discussion http://social.technet.microsoft.com/Forums/en-US/sqltools/thread/0a533d8d-b646-44ca-9125-c7de517d4b81[^]Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
What is difference between null and empty in sql server
by
Aarti Meswania
Answer
9 May 2013
license:
CPOL
NULL EmptyString-----------------------------------------------------------1. No datatype could belong to char/varchar,nvarchar,nchar etc ...datatype2. occupy 1 bit per column Occupy 0 bytes for each row to state it's NULL Happy...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
List of Months and years between two dates
by
Aarti Meswania
Answer
8 May 2013
license:
CPOL
ALTER PROCEDURE dbo.Addmonthslist @BeginDate AS Datetime, @EndDate AS Datetime, @ProjectID AS varchar(50)ASSELECT BeginDate, EndDate from tblProjects where ProjectID = @ProjectID SELECT DATENAME(MONTH, DATEADD(MONTH, x.number, @BeginDate)) + '-' +...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Javascript
SQL
VB
VB.NET
Want to disable a Button column based on other column text in DataGridView
by
Aarti Meswania
Answer
8 May 2013
license:
CPOL
In Datagridview's cell value changed event,if(dataGridView1.Rows[e.RowIndex].Cells["yourcolumn"].Value == "Clear"){ dataGridView1.Rows[e.RowIndex].Cells["yourBtnColumn"].ReadOnly = True; dataGridView1.Rows[e.RowIndex].Cells["yourBtnColumn"].DefaultCellStyle.BackColor =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
how to set the max -width for the same div differently for FF and IE .
by
Aarti Meswania
Answer
8 May 2013
license:
CPOL
try setting width in percentage e.g. 100% of screen or 70% Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
CSS
HTML
Web-Development
How to add many column in crustal report
by
Aarti Meswania
Answer
8 May 2013
license:
CPOL
either decrease fontsize of fieldsorset paper "Landscape" or e.g. if using A4 size then increase Papersize to A3 you can also set paper margin it also affect available-space in Paper to paste fieldsHappy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
C#3.0
C#
CrystalReports
C# Controls flickering while MainForm Resizeing.
by
Aarti Meswania
Answer
8 May 2013
license:
CPOL
check you have done some paint event that is conflicting or adding some dynamic control and which you are adjusting runtime on load event or in constructor...if you want to not show flickermeans below code will show your form after it complete paintingput this property in your form and...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
How to Remove comma if the cell is empty?
by
Aarti Meswania
Answer
8 May 2013
license:
CPOL
e.Row.Cells[1].Text = e.Row.Cells[1].Text + ((e.Row.Cells[2].Text.ToString().Trim().Length>0)? ("," + e.Row.Cells[2].Text) : string.Empty )+ ((e.Row.Cells[3].Text.ToString().Trim().Length>0) ? ("," + e.Row.Cells[3].Text) : string.Empty );Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
C#
WE have a table name (employee) & we have column name Name,ID,Age .i have created procedure in sql & pick the data in this
by
Aarti Meswania
Answer
8 May 2013
license:
CPOL
do not use bracketsexec salary 'a',2000Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
SQL
Stop data duplication in crystal report
by
Aarti Meswania
Answer
8 May 2013
license:
CPOL
insert group of you date field in reportnow in create 3 formulas1. Reset_SpareParts //Put in Header-section of Date group //Suppress itGlobal StringVar SpSP:= '';2. Merge_SpareParts //Put in Detail section //Suppress itGlobal StringVar SpSP := SP + ',';3. Print_SpareParts...
General Programming
»
Uncategorised Quick Answers
»
General
CrystalReports
how to use count in a storedporcedure
by
Aarti Meswania
Answer
7 May 2013
license:
CPOL
Use SUM Not Countalter procedure sp_insertticketsforcustomer(@custid int,@custname varchar(50),@date datetime,@noofseats int,@rowname char(10))asbegindeclare @noofcounts intselect @noofcounts= SUM(Noofseats) from CustomerDetails where RowName=@rownameselect @noofcountsendHappy...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
Check the Date comparison ?
by
Aarti Meswania
Answer
7 May 2013
license:
CPOL
echo sql query and check it by execute that in MySQLCheck Date format passed from PHP it should be yyyy-MM-ddand in first query you are using >= then in second query you should use
General Programming
»
Uncategorised Quick Answers
»
General
PHP
MySQL
what is difference between pixel and point in computer graphics
by
Aarti Meswania
Answer
7 May 2013
license:
CPOL
visit link...http://graphicdesign.stackexchange.com/questions/199/point-vs-pixel-what-is-the-difference[^]Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
GUI
how can use DataGridView with CheckBox
by
Aarti Meswania
Answer
7 May 2013
license:
CPOL
1.add DatagridviewCheckboxColumn2. Use CurrentCellDirtyStateChanged event put color changing code stuff insidePrivate void dgv1_CurrentCellDirtyStateChanged(Object sender, System.EventArgs e) { If (dgv1.IsCurrentCellDirty) { ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL Query Problem in SQL SERVER 2008
by
Aarti Meswania
Answer
7 May 2013
license:
CPOL
use distinctselect DISTINCT mt.MachinaryType, md.MachinaryName, md.Model, md.CountryOrRegion, md.WarrentyPeriod, md.PriceBDT, d. DeptName, c.CompanyName, mp.MaintencePlanType, em.EmpCode, em.EmpName from tblMachinaryDetails md ...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
SQL2008
How to get a single output for two different statements using sql
by
Aarti Meswania
Answer
7 May 2013
license:
CPOL
you have not provide table structure but for hint,...Select Class_Nm, Sum(TotalStudents) TotalStudents, sum(Pur_students) Pur_students,Sum(TotalStudents)-sum(Pur_students) as Not_Pur_StudentFrom( select Class_Nm,sum(Student_Id) as TotalStudents,0 as Pur_students from...
General Programming
»
Uncategorised Quick Answers
»
General
SQL
multiply 2 columns in datagridview
by
Aarti Meswania
Answer
7 May 2013
license:
CPOL
Use Datagridview's CurrentCellDirtyStateChanged eventPrivate void dgv1_CurrentCellDirtyStateChanged(Object sender, System.EventArgs e) { If (dgv1.IsCurrentCellDirty) { dgv1.CommitEdit(DataGridViewDataErrorContexts.Commit) If...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
why text box blank after click on button submit
by
Aarti Meswania
Answer
6 May 2013
license:
CPOL
because page is going refreshHappy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
PHP
Passing in single quote into function REPLACE gives error. How can I achieve this?
by
Aarti Meswania
Answer
6 May 2013
license:
CPOL
DECLARE @questionDesc VARCHAR(MAX)Set @questionDesc=REPLACE(@question,'''''''''','''')--for one ' use two '' ... dark single quote is expressing starting & ending of string.insert into tblTestQuestions values(@questionDesc)Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
SqlServer
Adding Custom Control into gridview in win application using c#.net
by
Aarti Meswania
Answer
6 May 2013
license:
CPOL
1.you can not add custom control in datagridviewyou should create a column of that type of custom control2.you can add custom control in button but you should use containers like panel, tabellayoutpanele.g. button1.Controls.Add(new MyCustomControl1());Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to Create Custom size page of Crystal Report in .Net C# by Coding
by
Aarti Meswania
Answer
6 May 2013
license:
CPOL
You should set papername custom and then set paper's Height & widthHappy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
CodeProject
printing
CrystalReports
Printer
Re: In Diploma 5th sem
by
Aarti Meswania
Forum Message
6 May 2013
No I had seen result on site
General Discussions
»
Survey "Do You Write Gaming Apps?" (29 Apr 2013)
how to make update file for desktop application using c#
by
Aarti Meswania
Answer
6 May 2013
license:
CPOL
It is quite simpleJust copy new exe and replace old exe on client pc with new one.And if any new dll or reference file is used then also put them on client machine in installation folderHappy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
C#
Re: In Diploma 5th sem
by
Aarti Meswania
Forum Message
6 May 2013
I have not started preparations yet It was E grade in last exam. I hope so, this time it will clear :-O
General Discussions
»
Survey "Do You Write Gaming Apps?" (29 Apr 2013)
Re: In Diploma 5th sem
by
Aarti Meswania
Forum Message
6 May 2013
yes dear How ur preparations going on for AMIE exam?
General Discussions
»
Survey "Do You Write Gaming Apps?" (29 Apr 2013)
Adding spaces between the string
by
Aarti Meswania
Answer
6 May 2013
license:
CPOL
Try this"2012-04-02T12:04:47.9010868+10:00".Tostring().Replace("T"," T ").Replace("+"," + ")Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Error in saving hindi font......
by
Aarti Meswania
Answer
6 May 2013
license:
CPOL
1.use StoreProcedure and pass values through sql parameters2.else use... Textbox1.Text.Replace("'","''")1st Method is best approch.Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
how to receive sms and read it directly in richtextbox?
by
Aarti Meswania
Answer
5 May 2013
license:
CPOL
visit link...http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/280300/code-for-receiving-sms-on-pc-using-at-coomand-and-in-vb6[^]Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB10
update single record with multiple values
by
Aarti Meswania
Answer
5 May 2013
license:
CPOL
select table1.id, case when companyid=1 then 'c' Else 'd' end as flagfrom table1 join table2 table1.id=table2.idHappy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
How to display label in center irrespective of size of monitor screen?
by
Aarti Meswania
Answer
5 May 2013
license:
CPOL
If it is windows application,set welcome label's properties...Label1.Dock = Fill;Label1.TextAlign = MiddleCenter;Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
SQL2005
.NET3.5
C#
.NET
SQL-Server
C#4.0
IF/ELSE in WHERE statement in ORACLE
by
Aarti Meswania
Answer
5 May 2013
license:
CPOL
Try This,SELECT P.*FROM PTABLE PLEFT JOIN MTABLE M ON P.MATERIALID = M.MATERIALIDLEFT JOIN NTABLE R ON P.MATERIALID = N.MATERIALIDWHERE M.MATERIAL = CASE WHEN P.MATERIAL IS NOT NULL THEN N.MATERIAL ELSE P.MATERIAL ENDHappy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
Oracle
T-SQL
data fetching from three table in mysql
by
Aarti Meswania
Answer
5 May 2013
license:
CPOL
If you want datewise summary then,SELECT Date(table_sale1.bill_date) as Date_, sum(table_sale1.total_amount) as bill_amt, sum(table_sale1.amount_paid) as amt_paid, sum(table_sale1.amount_due) as amt_due, sum(table_invoice.total_amount) AS invoice_amt,...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Update column based on data from another column of same data
by
Aarti Meswania
Answer
5 May 2013
license:
CPOL
if it's series then simply,select c1,c2,case when (c1-1)=0 then NULL else (c1-1) end as C3from tblnmHappy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
SQL
Server2008
Crystal Report Problem
by
Aarti Meswania
Answer
5 May 2013
license:
CPOL
Visit Links...How to Use Crystal Report Step by step in Asp.net-c#[^]http://www.aspdotnet-suresh.com/2012/01/crystal-reports-sample-in-aspnet.html[^]Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
How to split the Multiple strings values in sqlserver 2008
by
Aarti Meswania
Answer
2 May 2013
license:
CPOL
Create this function that will used for parse values set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOALTER FUNCTION [dbo].[ParseValues](@String varchar(8000), @Delimiter varchar(max) )RETURNS @RESULTS TABLE (ID int identity(1,1), Val varchar(max))ASBEGIN DECLARE @Value...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
how to add dynamic columns in gridview using c#
by
Aarti Meswania
Answer
2 May 2013
license:
CPOL
visit link...http://www.c-sharpcorner.com/uploadfile/Shawpnendu/dynamically-creating-bound-and-template-columns-in-gridview-using-Asp-Net/[^]Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
SQL
Error inserting datepart
by
Aarti Meswania
Answer
2 May 2013
license:
CPOL
example...insert into tablename( mysqldate ) values( '2013-12-25'--format is yyyy-MM-dd )Happy coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
Oracle
Flash analog clock in c#
by
Aarti Meswania
Answer
2 May 2013
license:
CPOL
Visit link...http://stackoverflow.com/questions/1037/displaying-flash-content-in-a-c-sharp-winforms-applicationhttp://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/511d8bb4-3674-4717-9bd9-71cfc5d921e5[^]Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to list all data in one table in sql join query ...
by
Aarti Meswania
Answer
2 May 2013
license:
CPOL
Try this...SELECT a.AssetStatusId, s.AssetStatus, COUNT(*) as [Assets] from TblAssetStatus sleft join TblAsset a on a.AssetStatusId = s.AssetStatusIdINNER JOIN dbo.TblStoreStock ON a.StoreStockId = dbo.TblStoreStock.StoreStockIdINNER JOIN dbo.TblStock ON dbo.TblStoreStock.StockId =...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
Get Distinct column value rows
by
Aarti Meswania
Answer
2 May 2013
license:
CPOL
select * from ( select Row_Number() over(Partition by KitComponentID,Created_on order by KitComponentID,Created_On desc) as SrNo, * from tblnm ) as tmptbl where SrNo=1for sql 2000select * from tblnm t1 where t1.stgID = (select top 1 stgid from tblnm t2 where...
General Programming
»
Uncategorised Quick Answers
»
General
SQL2000
SQL-Server
Re: New Ju-Ju ads...
by
Aarti Meswania
Forum Message
2 May 2013
they are showing common features which are also available in other service providers but they are just performing advertise well. so, we like to watch zoo-zoos... they are cute :-O
Non-English Language
»
General Indian Topics
avoid duplicate records while inserting a table in sql
by
Aarti Meswania
Answer
2 May 2013
license:
CPOL
In your table bankname Make BankId Primarykey and AutoincreamentALTER procedure [dbo].[sp_BankName] ( @BankId as int, @bankname as varchar(50), @banknamea as nvarchar(50) ) as begin if exists(select * from bankname where bankid=@BankId) begin insert into...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
SQL
Query for Select Manager
by
Aarti Meswania
Answer
1 May 2013
license:
CPOL
Self-joinselect e1.empid,e1.empnm,e2.empnm as ManagerNm from emptbl e1left join emptbl e2 on e1.ManagerId = e2.EmpId Happy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
sqlserver2008
How to write code in sql to avoid duplicate records while inserting
by
Aarti Meswania
Answer
1 May 2013
license:
CPOL
In Table bankname ,set BankId as PrimaryKey And AutoIncreamentthen write query...ALTER procedure [dbo].[sp_InsertBankName] ( @bankname as varchar(50) ,@banknamea as nvarchar(50) ) as begin insert into bankname (bankname,banknamea) ...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
SQL-Server
display confirm message box on delete selected row in datagridview using c#.net
by
Aarti Meswania
Answer
1 May 2013
license:
CPOL
set datagridview's UserCanDeleteRow Property to falseNow in cell click event of datagridviewCheck e.ColumnIndex is equal to column index of deletebtnColumnthen... show message dialog..DialogResult dr = Messagebox.Show("Are you sure to delete...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Reminder in WindowsApplication
by
Aarti Meswania
Answer
29 Apr 2013
license:
CPOL
use timer control (with / without thread)when time match with desired then show popup windowHappy Coding!:)
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL "LIKE" query with multiple condition
by
Aarti Meswania
Answer
29 Apr 2013
license:
CPOL
It will not stop searching if one match found but you can filter records so, finally you will get result you wantTry this...with tbl1 as ( select 'Abc' as A1 union all select 'xyz' as A1 )select * from( select Row_Number()...
General Programming
»
Uncategorised Quick Answers
»
General
SQL
Page 1 of 16
1
2
3
4
5
6
7
8
9
10
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web04 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid