9,868,710 members (33,449 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*
100 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 2
Page Size:
10
·
25
·
50
Author filtered by: pramodhegde88
[x]
Google Analytics integration with Windows 8
by
pramodhegde88
Article
12 May 2013
license:
CPOL
This article shows how to track your windows 8 app in GA
Languages
»
C#
»
How To
C#
Dev
Intermediate
Visual-Studio
VS2012
LINQ querying collection objects
by
pramodhegde88
Answer
16 Apr 2013
license:
CPOL
Hi, This is an attempt to code your scenario. class Program { static void Main(string[] args) { IEnumerable empCollection = null; // populate the employee collection // now if you want to get primary contact of each...
General Programming
»
Uncategorised Quick Answers
»
General
C#
LINQ
collections
Entities
i m getting error of casting please tell me why
by
pramodhegde88
Answer
22 Nov 2012
license:
CPOL
Try this.using( SqlConnection cn =new SqlConnection(ConfigurationManager.ConnectionStrings["Conection Name here"].ConnectionString)){SqlCommand com=new SqlCommand();com = new SqlCommand("SELECT MAX(createddate) FROM Payout_Master WHERE sponcorid='" + code + "'", con);con.Open();var...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
How to pass username from one asp.net application to another at run time
by
pramodhegde88
Answer
22 Nov 2012
license:
CPOL
1. Have a common logout screen in outer app. From that you redirect the user to outer app's login screen.2. Session is a heavy object. Use it wisely. The inner 8 asp.net applications might be already using Session to manage data within each application.3. Store the logged in users info (from...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
ajax enabled WCF Service
by
pramodhegde88
Answer
22 Nov 2012
license:
CPOL
You need to add ajaxStart() method to your code. Within this method, you can have any type of loading indicator, or changing the screens transparency etc... $("yourDivOrAnyControl").ajaxStart(function(){ $(this).html(""); });So, final code would look something...
General Programming
»
Uncategorised Quick Answers
»
General
WCF
jQuery
Services
Plz Check this WCF-REST Project & Provide Me Solution !!!
by
pramodhegde88
Answer
26 Oct 2012
license:
CPOL
Hi, From your code, 1. It looks like namespace is missing in IService.cs and Service.cs files. Ideally it is a good practice to have a namespace.2. In web.config file, you are referencing a namespace. This is wrong.
General Programming
»
Uncategorised Quick Answers
»
General
WCF
REST
Calling wcf service from another domain
by
pramodhegde88
Answer
26 Oct 2012
license:
CPOL
Hi, You are using jQuery and you are calling a wcf service using ajax calls. Binding needs to be webHttpBinding. And this binding does not allow you to have cross-domain calls. So to fix that, 1. Try to have one Ajax Enabled WCF service in your project, and have multiple cross-domain...
General Programming
»
Uncategorised Quick Answers
»
General
.NET
why we get empty string in string cid = row.Cells[1].Text;
by
pramodhegde88
Answer
24 Oct 2012
license:
CPOL
Hi, Try modify the code a bit,CheckBox chkStatus = (CheckBox)sender;//GridViewRow row = (GridViewRow)chkStatus.NamingContainer;GridViewRow row = (GridViewRow)chkStatus.NamingContainer;toCheckBox chkStatus = (CheckBox)sender;GridViewRow row = (GridViewRow)chkStatus.Parent;This...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Redirecting to 2 different pages from one page
by
pramodhegde88
Answer
24 Oct 2012
license:
CPOL
Hi, After successful registration, you can redirect the user to a page where, you show the details in a non-editable mode (may be just Labels would help you). Along with showing these details, you can also give two buttons 'Print' and 'Continue'.If the user clicks Print use window.open to...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
user close the browser without click logout button.
by
pramodhegde88
Answer
24 Oct 2012
license:
CPOL
Hi, You can capture browser close button click event using JavaScript and you can call the Logout method in that.Something like this,window.onbeforeunload = function() {// make an Ajax call to server side Logout method.// In the Logout method you can get/set the success...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
String Builder in C# Windows form
by
pramodhegde88
Answer
24 Oct 2012
license:
CPOL
Hi, You already have a string. StringBuilder is recommended only in case where you need to append the string. Otherwise it is better to use string object directly. Because here you are allocating extra memory to StringBuilder object. And on top of that you need a method ToString() to convert...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Sending Email from web page
by
pramodhegde88
Answer
24 Oct 2012
license:
CPOL
Hi, Look at the exception message, it clearly says "No connection could be made because the target machine actively refused it 173.194.79.109:587". So try enabling inbound and outbound rules for port 587 on the server.You can find help from this...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Re: HELP
by
pramodhegde88
Forum Message
10 Oct 2012
To solve that you can slightly modify the code by searching for the sheet name. var firstSheet = excelDoc.WorkbookPart.WorksheetParts.ElementAt(0); Instead, you can try searchin
General Discussions
»
Tip/Trick "Sql Import Data From Excel"
Re: HELP
by
pramodhegde88
Forum Message
24 Sep 2012
When you are searching some object in the tree, you should always mention the type of the object in the object tree, i.e. change the following line Row row = sheetData.ChildElements.Of
General Discussions
»
Tip/Trick "Sql Import Data From Excel"
Re: Snap? (and Virtual Box?)
by
pramodhegde88
Forum Message
18 Sep 2012
In case of system resource access, Metro Apps work in the same way as Silverlight. So you need to explicitly provide access for the application to access Webcam and Microphone. You can give this permi
Feature Forums
»
Windows 8, Winrt & Metro
Re: Metro Camera AP snap shot event
by
pramodhegde88
Forum Message
17 Sep 2012
Have a button in the UI, called 'btnCapture' and an image called 'imgPhoto' In the click event of this button, have the following code. Also, make the click event asyn
Feature Forums
»
Windows 8, Winrt & Metro
Simple html analyzer
by
pramodhegde88
Answer
30 Aug 2012
license:
CPOL
Use LINQ to XML to achieve this.For example:string htmlString = @" hi ... ";XDocument htmlDoc = XDocument.Parse(htmlString);Now htmlDoc contains the DOM...
General Programming
»
Uncategorised Quick Answers
»
General
C#
HTML
How WCF Service returns multiple response from Method
by
pramodhegde88
Answer
30 Aug 2012
license:
CPOL
Use DataContract.For Example:[DataContract]public class Result { [DataMember] public List ListOutPut { get;set;} [DataMember] public String StringOutPut { get;set;}}Now, use this as the return type in your contract, i.e. both in service class and its...
General Programming
»
Uncategorised Quick Answers
»
General
WCF
C#
C#4.0
Re: How toimplement this in website .
by
pramodhegde88
Forum Message
30 Aug 2012
First, these are not in App_Code. Second, this is created by using ADO.Net Entity Model and using Entity Framework. You can actually avoid this, if you are planning to use direct SQL injection or SQL
General Discussions
»
Tip/Trick "Sql Import Data From Excel"
How To Set Vertical And Horizintal ScrollBar For A Div
by
pramodhegde88
Answer
28 Aug 2012
license:
CPOL
Set overflow property to either hidden, visible, auto and scroll depending on your requirement..Test{Width:500px;height:500px;background-color:Red;overflow:scroll;}
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Javascript
CSS
HTML
Open Excel file in webpage and user can use excel functions at browser
by
pramodhegde88
Answer
28 Aug 2012
license:
CPOL
There are lot of third party tools available which will provide the api support for their tools, which can be used with asp.net.The following threads might help...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Re: how to store datas in excel.
by
pramodhegde88
Forum Message
28 Aug 2012
Use Office Open Xml SDK to achieve this. Refer this thread. Create
General Programming
»
C#
Re: hello
by
pramodhegde88
Forum Message
28 Aug 2012
Here is a code project link. Panorama 360[
General Programming
»
C#
C# Application With MS Office Word
by
pramodhegde88
Answer
28 Aug 2012
license:
CPOL
When you are creating/editing the Microsoft Office Documents, always prefer Office Open XML SDK. This does not require Office installation on any of the machines. All office documents (word, excel, powerpoint) (2007 onwards) are xml packages. So, this SDK allows you to create or modify these...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Resize image to fit in picturebox
by
pramodhegde88
Answer
27 Aug 2012
license:
CPOL
You need to resize the image for the picture box height & width.Its pretty straight forward.Create a new Bitmap of size picture box height & width. Fill-in the new bitmap with the existing image.There is a nice article which describes it.Resizing an Image On-The-Fly using .NET
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Formatting...
by
pramodhegde88
Forum Message
27 Aug 2012
In many places of the article, there are extra line breaks. Please remove them. Article looks good.
General Discussions
»
Article "Application Of C++11 User-Defined Literals To Handling Scientific Quantities, Number Representation And String Manipulation"
How this is faster?
by
pramodhegde88
Forum Message
27 Aug 2012
When you say this code is faster, string hex = BitConverter.ToString(myByteArray).Replace(" ", ""); This is probably the worst choice performance wise. Anyway; my implementation is
General Discussions
»
Tip/Trick "High Performance C# Byte Array To Hex String To Byte Array"
formula for conditional sum in crystal report
by
pramodhegde88
Answer
27 Aug 2012
license:
CPOL
select Tax%, SUM(AMOUNT), SUM(TAXAMOUNT)from Accountsgroup by Tax%order by Tax%
General Programming
»
Uncategorised Quick Answers
»
General
CrystalReports
[My vote of 2] How this is faster?
by
pramodhegde88
Forum Message
27 Aug 2012
When you say this code is faster, string hex = BitConverter.ToString(myByteArray).Replace(" ", ""); This is probably the worst choice performance wise. Anyway; m
General Discussions
»
Article "High Performance C# Byte Array To Hex String To Byte Array"
anyOne Have Article for LinqDataSource
by
pramodhegde88
Answer
27 Aug 2012
license:
CPOL
The general syntax would look like,var result = from t1 in table1 join t2 in table2 on t1.Id equals t2.Id join t3 in table3 on t2.Id equals t3.Id select new { Col1 = t1.SomeColumn, Col2 = t2.Column, ...
General Programming
»
Uncategorised Quick Answers
»
General
LINQ
ASP:NET
Re: Controlling No. of Loggeed users
by
pramodhegde88
Forum Message
27 Aug 2012
If you are using vb.net, no problem at all. Copy these methods one by one any try converting them to Vb.net online. http://www.dev
General Programming
»
Visual Basic
how to resolve this problm .when i upload a images system r show (A generic error occurred in GDI+.
by
pramodhegde88
Answer
27 Aug 2012
license:
CPOL
"A generic error occurred in GDI+..." is a common error message when you are dealing with graphics.The reason may be,1. If you are uploading the images to the server, then perhaps the server location might not be having enough access(write permission).2. During upload, if the image cannot...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Error when using LINQ
by
pramodhegde88
Answer
27 Aug 2012
license:
CPOL
Let's make it more readable than just keeping it in objects.Have a class or a struct called UserInfo (lets' assume).public class UserInfo{ public int Id { get;set; } public string Name { get;set; }}Define the list/enumeration.List d = new...
General Programming
»
Uncategorised Quick Answers
»
General
LINQ
Re: C# obtain row values
by
pramodhegde88
Forum Message
27 Aug 2012
You can keep the break point in line 1 of your code. System.Data.DataTable dt = tt.GetExcelDataTable(); // line 1 for (int j = 0; j
General Programming
»
C#
How To Convert Var To List?
by
pramodhegde88
Answer
27 Aug 2012
license:
CPOL
Let's make it more readable than just keeping it in objects.Have a class or a struct called UserInfo (lets' assume).public class UserInfo{ public int Id { get;set; } public string Name { get;set; }}Define the list/enumeration.List d = new...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
LINQ
Re: Controlling No. of Loggeed users
by
pramodhegde88
Forum Message
27 Aug 2012
You need to handle it in Global.asax file. If you observe, this class inherits HttpApplication which has a property HttpApplicationState. So you can set a variable Logg
General Programming
»
Visual Basic
Re: Extend WebMethod
by
pramodhegde88
Forum Message
27 Aug 2012
As I understand, you require the approach of handling sessions and cultures in WebService. Have a look at these threads.
Web Development
»
Asp.Net
Re: programmatically determine presence of webcam
by
pramodhegde88
Forum Message
27 Aug 2012
Hi, There is a code project article on how to identify web cam, capture images etc.. Please have a look Versatile We
General Programming
»
C#
To place one field as next line to another field
by
pramodhegde88
Answer
27 Aug 2012
license:
CPOL
select Address1 + CHAR(13) + CHAR(10)+ Address2from SomeTable
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
insert multiple records from XML to sql DB
by
pramodhegde88
Answer
27 Aug 2012
license:
CPOL
You can read and write xml using SQL itself.Get the help from these linkshttp://blog.sqlauthority.com/2009/02/13/sql-server-simple-example-of-reading-xml-file-using-t-sql/[^]http://blog.sqlauthority.com/2009/02/12/sql-server-simple-example-of-creating-xml-file-using-t-sql/[^]However,...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
SQL2008
Windows Password retriving using C#
by
pramodhegde88
Answer
27 Aug 2012
license:
CPOL
Windows Password is a One way Hash password. With lot of effort you can retrieve the hash value of your password. But you cannot get the actual password itself.Retrieve the Windows 7 Password Hash on the Fly[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
how to split the a value in dotnet
by
pramodhegde88
Answer
27 Aug 2012
license:
CPOL
string s="1:3";int a,b;string[] sSplit = s.Split(':');a = Convert.ToInt32(sSplit[0]);b = Convert.ToInt32(sSplit[1]);
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
how to add header an footer to world document using html
by
pramodhegde88
Answer
26 Aug 2012
license:
CPOL
Use Office Open XML SDK to add headers and footers to the word document. As I understand you have an html file where you have header and a footer. So, its easy to do with Office Open XML SDK.You need to use like thisnamespace OOXML{ using DocumentFormat.OpenXml.Packaging; using...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Open C# Application with our MS Office in Client Machine
by
pramodhegde88
Answer
26 Aug 2012
license:
CPOL
If you are building office documents for MS Office 2007 onwards, then better to use Office Open XML SDK.Office Open XML SDK will allow you to create or edit(modify) the office documents. You need not have office installed for it. You can create office documents on server side also. This is a...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Sorting a list of a custom class
by
pramodhegde88
Answer
26 Aug 2012
license:
CPOL
public class Person{ public string FirstName {get;set;} public int Rank {get;set;} public string LastName {get;set;}}List personList = new List();personList.Add(new Person(){ FirstName="bob", Rank=2 });personList.Add(new Person(){ FirstName="wob", Rank=1...
General Programming
»
Uncategorised Quick Answers
»
General
C#2.0
ASP.NET
C#
Re: how to access a class of a file A.cs from other file B.cs
by
pramodhegde88
Forum Message
23 Aug 2012
Few Points: 1. Its better to have namespaces & separate class files. So, Cliente.cs would contain namespace TestNs { public class Cliente { public string nome;
General Programming
»
C#
Re: how to access a class of a file A.cs from other file B.cs
by
pramodhegde88
Forum Message
23 Aug 2012
I have answered it. It was due to namespace. I have placed classes under a namespace and it works. That's what I commented at last. 'Try this solution and the program should work'.
General Programming
»
C#
C# - How to read a text file using a openFileDialog?
by
pramodhegde88
Answer
23 Aug 2012
license:
CPOL
StreamReader/W...
General Programming
»
Uncategorised Quick Answers
»
General
C#
dialog
file
Text
read
how analyse a doc file
by
pramodhegde88
Answer
23 Aug 2012
license:
CPOL
If you have Microsoft Office 2007 onward formats then Office Open XML would help you to create/modify the existing office documents using programming.http://en.wikipedia.org/wiki/Office_Open_XML[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
Open XML Excel-Create BarChart
by
pramodhegde88
Answer
23 Aug 2012
license:
CPOL
ChartSpace object is the main object in chart creation. Chart object and many properties to it are added later point of time.Whenever you are dealing with Office Open Xml please have Open XML SDK 2.0 Productivity Tool installed in your system. Create a chart in excel manually. Open up the...
General Programming
»
Uncategorised Quick Answers
»
General
C#
.NET
Office
Chart
Page 1 of 2
1
2
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