Click here to Skip to main content
Page 1 of 2
Page Size: 10 · 25 · 50


Author filtered by: pramodhegde88 [x]
Article 12 May 2013   license: CPOL
This article shows how to track your windows 8 app in GA
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...
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...
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...
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...
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.
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...
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...
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...
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...
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...
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...
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
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
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
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
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...
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...
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
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;}
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...
C#
Forum Message 28 Aug 2012  
Use Office Open Xml SDK to achieve this. Refer this thread. Create
Re: hello by pramodhegde88
Forum Message 28 Aug 2012  
Here is a code project link. Panorama 360[
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...
C#
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
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.
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
Answer 27 Aug 2012   license: CPOL
select Tax%, SUM(AMOUNT), SUM(TAXAMOUNT)from Accountsgroup by Tax%order by Tax%
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
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, ...
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
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...
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...
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
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...
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
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.
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
Answer 27 Aug 2012   license: CPOL
select Address1 + CHAR(13) + CHAR(10)+ Address2from SomeTable
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,...
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[^]
C#
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]);
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...
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...
C#
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...
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;
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'.
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[^]
C#
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...

Page 1 of 2
1 2


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid