Click here to Skip to main content
11,934,809 members (45,020 online)

Comments by Prasad Khandekar (Top 200 by date)

Prasad Khandekar 19-Nov-15 3:04am View

You may have came across these links, if not then please have a look. Personally I do not have a scanner with duplex capability, So I was not able to verify this.


Prasad Khandekar
Prasad Khandekar 17-Nov-15 4:46am View

Have you tried ScanWia ( This ( CP answer is for different scanner but you can definitely try.

Prasad P. Khandekar
Prasad Khandekar 17-Nov-15 4:32am View

Check whether the WIA service is running and the PC user has necessary permissions to use a COM component.

Prasad P. Khandekar
Prasad Khandekar 17-Nov-15 4:29am View
Hello member,

WIA 2.0 which was released with Vista offer support for legacy WIA 1.0 (Windows-XP) applications and devices through a WIA 1.0 to WIA 2.0 compatibility layer provided by the WIA service.

The MSDN WIA article ( describes in details the benefits offered by WIA.

As far as support for scanners is concerned it's the scanner manufacturer responsibility to provide the WIA compliant driver's.

Prasad P. Khandekar
Prasad Khandekar 17-Nov-15 4:08am View
Hello Member,

The link already includes the code for sample application.

Prasad P. Khandekar
Prasad Khandekar 7-Jul-15 7:49am View

You can have a look at PostSharp Aspect Framework. (

Prasad P. Khandekar
Prasad Khandekar 23-Jun-15 6:13am View
+5. Can you post this as an answer?
Prasad Khandekar 16-Jun-15 3:51am View
Hello Arun,

Try using System.Configuration.IgnoreSectionHandler instead of og4net.Config.Log4NetConfigurationSectionHandler as suggested in log4net samples. Also have a look at this stackoverflow thread.
Prasad Khandekar 26-Jan-15 14:31pm View
Basically it won't count . & .. folders. Thus will return you the exact file count.
Prasad Khandekar 26-Jan-15 14:14pm View
That omits . & .. folders.
Prasad Khandekar 26-Jan-15 14:06pm View
Hello Sana,

Have a look at below example.
Prasad Khandekar 26-Jan-15 14:03pm View
Please go through this thread (
Prasad Khandekar 26-Jan-15 13:59pm View
Counld not think of a better links than this ( Or this (
Prasad Khandekar 24-Jan-15 2:45am View
Here are couple of similar demos.
Prasad Khandekar 24-Jan-15 2:33am View
Reason for my vote of 5 \n Fantastic!
Prasad Khandekar 24-Jan-15 2:27am View
Reason for my vote of 5 \n Nice library!
Prasad Khandekar 26-Dec-14 7:05am View

You can use escapeHTML to properly escape the HTML content. However it will require more space while saving it in the persistent store. The better approach is to store the values as is and escape at the time of streaming from the server,
Prasad Khandekar 26-Dec-14 6:41am View
Prasad Khandekar 26-Dec-14 6:41am View
Prasad Khandekar 26-Dec-14 6:38am View
Prasad Khandekar 23-Dec-14 5:45am View
Hello Mandar,

Have a look at ( Class-Orientation is in-fact a style of Object Oriented Programming.

Prasad Khandekar 23-Dec-14 5:42am View
Please have a look at this article (
Prasad Khandekar 23-Dec-14 5:37am View
Perhaps this CP article should help you resolve the problem. (
Prasad Khandekar 14-Dec-14 1:25am View
The Simple Image Comparison solution tells you the percentage difference. You can have a threshold defined in your program and if difference is less than equal to that threshold then you can flag the image as duplicate.
Prasad Khandekar 28-Nov-14 5:12am View
You are welcome!
Prasad Khandekar 26-Nov-14 5:58am View
Prasad Khandekar 26-Nov-14 4:58am View
You may find following article interesting. Also note that the third party web app won't be able to perform single sign on automatically unless modified.
Prasad Khandekar 20-Nov-14 9:01am View
Prasad Khandekar 20-Nov-14 9:00am View
Prasad Khandekar 19-Nov-14 9:57am View
use /\*/g as your search pattern.
Prasad Khandekar 19-Nov-14 9:50am View
You can use RegExp("YourChar", "g") e.g.

var txt = document.getElementById('sometextbox').value;
var rechar = document.getElementById('replaceCharTextbox').value;
var srchChar = document.getElementById('searchCharTextbox').value;
var regx = new RegExp(srchChar, "g");
txt = txt.replace(regx, rechar);
Prasad Khandekar 19-Nov-14 9:44am View
Hello Umesh,

From your code it looks like that the client side on click handler (ChangeTextBox) is not getting reference to actual text box. Try using document.getElementById to retrieve the actual textbox reference.

Prasad Khandekar 19-Nov-14 9:30am View
Reason for my vote of 5 \n Nice!
Prasad Khandekar 19-Nov-14 9:27am View
Reason for my vote of 5 \n Nice!
Prasad Khandekar 19-Nov-14 9:16am View
Good to know that you solved it. Thank's for sharing your findings as well.
Prasad Khandekar 10-Nov-14 8:19am View
Hello Raj,

Have you checked the website of FusionCharts. You can find an elaborate example there and it will also show you the format for expected JSON.

Prasad Khandekar 7-Nov-14 9:28am View
Hello Member,

For windows have a look at an excellent article available right here on CodeProject ( MSDN also offers a similar guide ( For web please have a look at this JsFiddle ( sample.

Prasad Khandekar 7-Nov-14 8:41am View
As I said earlier, the choice depends upon your comfort level. In my opinion however desktop app will allow you to offer much richer user experience to end users compared to web based app.
Prasad Khandekar 29-Oct-14 5:37am View
Hello Dharmendra,

The basic <input type="file"/> element will render the textbox with a browse button which will allow end user to select the file from appropriate local folder. However as I said earlier it won't allow you to select anything but the file. However signed applets won't have such limitation & will allow you to write code to traverse the folder structure and upload multiple files. This ( Open Source project should get you started.

Prasad Khandekar 29-Oct-14 5:34am View
I wouldn't say C# is not a choice of language. It totally depends upon the UI, types of platforms you want to support & finally your comfort level with a particular language. For desktop based applications the basic windowing system & widgets needs to be available in the language library. For web based there are many options.

Prasad Khandekar 1-Oct-14 12:07pm View
Can you please elaborate your requirement? What exactly is the use of knowing file's complete path on the user's computer?
Prasad Khandekar 14-Sep-14 13:49pm View
Prasad Khandekar 14-Sep-14 13:48pm View
When browser is going to send the request for image it's IIS that's generally going to serve the image if the requested path point's to a static resource. In your case the image is going to be a static resource and hence for IIS to stream it back it needs to be in a virtual folder. Just check that the folder path you have entered in your configuration file is actually point's to be virtual directory under iIS.

Prasad Khandekar 13-Jun-14 7:28am View
Hello Member,

You are better of using a configuration file instead. In your web.config under appSettings add a new key say PayementSvcUrl with whatever desizerd URL and use it in your web service.

Prasad Khandekar 13-Jun-14 7:23am View
Hello Reza,

Uri.AbsoluteUri Property gets the absolute URL. In order to create a link to a new service you have to first strip everything after the last "/") and then append the partial service end point path to that value.

Prasad Khandekar 13-Jun-14 6:14am View
Prasad Khandekar 13-Jun-14 6:13am View
It looks like encoding issue. If I am not wrong you are sending the PDF data to browser and upon image click you are sending this data back to server which then streams it back to the page.

Please note that you will not be able to download the PDF via AJAX.

If you do not want to want change the current way, I suggest you send the ODF bytes in Base64 encoded form (System.Convert.ToBase64String(byte[]) & while sending out use System.Convert.FromBase64String(base64EncodedData); and stream the resulting byte array with Content-Disposition header. Also on Image Click instead of giving an Ajax Call open a new window and then make a POST request in that window.

Prasad Khandekar 13-Jun-14 5:47am View
Hello Alif,

Extremely sorry for my earlier response. It will not work. Instead May I suggest you to have a look at this excellant post by Scott (

Prasad Khandekar 13-Jun-14 5:36am View
Yes if that's cheaper, else you can look at other mentioned options as well.
Prasad Khandekar 12-Jun-14 8:40am View
MyMorph is not open source but free. However being a command line tool may not be suitable for use in ASP.NET.
Prasad Khandekar 11-Jun-14 6:14am View
Hello Rajin,

You may want to look at
1. Aspose.Words for .NET ( - Commercial component
2. Spire.Doc for .NET ( - Commercial component
3. DocImage SDK for .NET ( - Commercial Component
4. GemBox.Document ( - Commercial Component
5. DynamicPDF Converter for .NET ( - Commercial Component
6. MyMorph ( - Command Line Tool

Prasad Khandekar 11-Jun-14 5:47am View
Are you able to ping to If not try using the correct IP instead.
Prasad Khandekar 10-Jun-14 9:00am View
Hello Rajeev,

Are you using Ionic Zip Library? If So it has a method called AddEntry(String, Stream). You can use it to add the files. Assuming that a HTTP GET requests to the "" returns the file listing (HTML) you will have to parse this HTML and then send GET requests to each of those file. Use GetResponseStream method of the HttpWebResponse to get the handle to response stream. For more details on HttpWebRequest please see (

Prasad Khandekar 10-Jun-14 8:19am View

Checkout this thread (

Prasad Khandekar 10-Jun-14 8:13am View
URL will be a fixed url say download.aspx. It will receive a parameter say file_id which will allow server side code to locate the associated file with it. The download.aspx will always perform checks like whether the user is authenticated and optionally whether the user has access to the requested file. The download.aspx will then read the file contents and stream it back with Content-Disposition header. This will allow the browser to present the save as file dialog.

Prasad Khandekar 9-Jun-14 3:46am View
Hello Sreepad,

It will be very nice if you share the code which actually gets the data from WCF service?

Prasad Khandekar 9-Jun-14 3:35am View
Try setting the MailMessage.From to the email address provided to you by GoDadday.

Prasad Khandekar 9-Jun-14 2:55am View
Isn't this a server side configuration? Please have a look at ( this documentation.
Prasad Khandekar 9-Jun-14 2:27am View
It will be very nice if you also post the code snippet.
Prasad Khandekar 9-Jun-14 2:08am View
Hello Alif,

Image class is in System.Drawing namespace. You should be able to use it without any problems.

Prasad Khandekar 9-Jun-14 2:05am View
Well the download page is going to perform that check isn't it. The user must be first authenticating to the website.

Prasad Khandekar 6-Jun-14 11:48am View
Please have a look at
Prasad Khandekar 6-Jun-14 11:42am View
Hello Yitzhak,

From your web client use Window.Open(DOWNLOAD_URL, "_blank"). Where DOWNLOAD_URL is the URL for page which servers the content (the page in which the above mentioned code resides).

Prasad Khandekar 5-Jun-14 5:44am View
are u able to ping from command prompt. The error message indicates that there is a problem in resolving the given name to corresponding IP address. Try putting an entry in your host file or re-configure your DNS server.

Prasad Khandekar 5-Jun-14 5:38am View
Checkout this
Prasad Khandekar 5-Jun-14 5:14am View

Please have a look at this article. (

Prasad Khandekar 5-Jun-14 5:11am View
If you are referring to the code found in the above mentioned thread, then converting the image to a jpg is very simple. use save method of the Image class ( to convert the image to desired format.

Prasad Khandekar 29-May-14 6:05am View
For ASP.NET you might want to take a look at (
Prasad Khandekar 29-May-14 5:24am View
Please have a look at this article on CodeProject. (
Prasad Khandekar 29-May-14 4:12am View
Reason for my vote of 5 \n Seems to be interesting, thank's for sharing.
Prasad Khandekar 27-May-14 11:23am View
Prasad Khandekar 27-May-14 11:15am View
Check this out (


Prasad Khandekar 27-May-14 10:41am View
Please checkout this ( article.
Prasad Khandekar 27-May-14 10:30am View
Please have a look at ( or (
Prasad Khandekar 23-May-14 7:28am View
You will have to get rid of CryptoStream and instead use FileStream with StreamWriter/StreamReader to get rid of encryption.
Prasad Khandekar 23-May-14 6:16am View

You can use query similar to one shown below.

SELECT dialyzer_id,
COUNT(1) FROM reprocessor
GROUP BY dialyzer_id;
Prasad Khandekar 23-May-14 5:29am View

Are you talking of digital signatures as explained here (, if so then unfortunately this not possible without a client side active-x/applet. The DOMCrypt W3C standard is still in draft stage. IE leverages CAPICOM where as Mozilla guys depends upon window.crypto. For IE & FF you can try using js-signer (

And don't worry about digital signature getting stolen, the private key used by client is typically password protected by the end-user and hence unless other person has the private key and the password he/she will not be able to use the stolen keys alone. Now if the end user is not password protecting the private keys then no body can help him/her and on the server side you will not be able to distinguish the real user from fake user.

Prasad Khandekar 22-May-14 10:01am View
Reason for my vote of 5 \n Nice!
Prasad Khandekar 22-May-14 9:57am View

Perhaps wrong forum, post the question under Comments and Discussions sections of the article. This way you will be sending your query directly to the article author.

Prasad Khandekar 22-May-14 9:56am View
Hello Aaron,

The code might not be setting any cookies and hence on the server log no cookie information is available, since you are getting response status as 200 OK, there is no problem on the server side, perhaps the response is gzipped as your code is indicating to server that it can accept gzipped encoded response.

Prasad Khandekar 22-May-14 9:47am View
Here are few links to get you started.

Prasad Khandekar 22-May-14 9:40am View
As a general rule followed on this site never put your email address in the question/answer forums.

Prasad Khandekar 22-May-14 9:28am View
Hello Arshad,

Have you tried calling this web service as http://localhost:42813/ServiceContract.svc/news/2. Also suggest you to go through this CP article (

Prasad Khandekar 21-May-14 11:04am View
Prasad Khandekar 21-May-14 11:03am View
In that case change the implementation of sum function as shown below.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class ParamParmeters

public string sum(string name, params int[] marks)
int sum = 0;
foreach (int element in marks)
sum += element;
return (name + sum);

class Program
static void Main(string[] args)
ParamParmeters pp = new ParamParmeters();
string result = pp.sum("ABC", 10, 20, 30);
Prasad Khandekar 21-May-14 11:00am View
Are you user the user is authenticated? Please have a look at this thread (

Prasad Khandekar 21-May-14 6:51am View
Hello Sujeet,

AsyncTask should work. Another article you may find useful is ( Are you getting ANR dialog (

Prasad Khandekar 21-May-14 6:44am View
I have locally tested it with very simple tables (total 90). It seems html2canvas has some bug. In my tests it failed to render tables after 33 in IE. All table images thereafter were transparent images. In Chrome however it worked without any problems.

Prasad Khandekar 20-May-14 5:52am View
You are generally better off calling services in a separate thread. Use AsyncTask for this purpose. In my project I always doing it that way. Never really tried calling from main thread.

Prasad Khandekar 19-May-14 4:08am View

Try specifying the widths on each column in %.

Prasad Khandekar 19-May-14 3:36am View
Hello Alif,

Please have a look at this discussion thread (

Prasad Khandekar 19-May-14 3:33am View
Hello Sujeet,

Are you able to access the web service from the emulator's browser?

Prasad Khandekar 19-May-14 3:32am View

Look at the updated solution, the second link is what you are looking for.

Prasad Khandekar 19-May-14 1:45am View
Since your service takes more than 20 sec, increase the timeout for HttpTranspostSE, use alternate constructor which takes integer as second argument which specifies the timeout period.

Prasad Khandekar 18-May-14 13:35pm View

You will have to create your own TraceListener. This custom tracelistener can delegate the work to TextWriterTraceListener and this instance can be created using following syntax.

TextWriterTraceListener listener = new TextWriterTraceListener(new StreamWriter(@"C:\AppTrace.log", false, new UTF8Encoding(true)));

In your config file configure the custom tracelistener instead.

Prasad Khandekar 16-May-14 7:20am View

The TextWriterTraceListener class uses UTF-8 encoding by default. It's the excel which is not able to recognize the encoding as the resulting file does not contain UTF-8 preamble. While importing the file however you can select the File Origin as 65001: Unicode (UTF-8). File data should then get displayed correctly.

Prasad Khandekar 16-May-14 7:07am View

The value returned from the database is just the number representing the date & time. Have a look at this site to know more about formatting DateTime. (

Prasad Khandekar 16-May-14 7:04am View
Hello Sujeet,

It starts a device monitor. (

Prasad Khandekar 16-May-14 6:40am View
Hello Glenn,

If I understand correct The code snippet you have shown converts an integer to a binary string and that string you want to convert back to integer right? If answer is yes then you can use Convert.ToInt32(BinaryVersionSerialNumber, 2) to get the original Integer SerialNumber.

Prasad Khandekar 16-May-14 6:26am View
Hello Member,

The example does talk about the UI enhancements, in your case though I believe you are trying to call the click event of the button in the login form displayed in webview. But the underlying requirement is same, execute the javascript in a webview & that's why I suggested that article.

Is this appp of yours is meant to be used for any site or a particular site.

Prasad Khandekar 16-May-14 6:15am View
Hello Sujeet,

Since service has no errors, try running monitor.bat available in android sdk, this way you will be able to see all the errors. That error output may give some clues. The Default Timeout for HttpTransportSE is 20 sec. Does your service returns within this time?

Prasad Khandekar 16-May-14 6:01am View
I think you will have to call SetUnzipBaseDir to set the folder.
Prasad Khandekar 16-May-14 5:40am View
Try changing your code to

static void Main(string[] args)
Task[] tasks = new Task[] {
Task.Factory.StartNew(() => {
ServiceReference1.BankCardSoapClient s = new ServiceReference1.BankCardSoapClient();
}, TaskCreationOptions.LongRunning),
Task.Factory.StartNew(() => {
ServiceReference1.BankCardSoapClient s = new ServiceReference1.BankCardSoapClient();
s.test2();}, TaskCreationOptions.LongRunning)
Task.WaitAll(tasks, System.Threading.Timeout.Infinite);

Prasad Khandekar 16-May-14 5:28am View
Please have a look at this example ( for devices prior to kitkat, for kitkat the new API evaluatejavscript simplifies this a lot.

Prasad Khandekar 16-May-14 5:24am View

Why not try using the MaskEdit control (

Prasad Khandekar 16-May-14 5:18am View
Hello Sameer,

Are you able to invoke this service via SOAPUI ( Just to ensure that the service does not have any errors.

Prasad Khandekar 16-May-14 4:07am View
Hello Sameer,

Just ensure that following line is present in your AndroidManifest.xml.
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission><

Prasad Khandekar 16-May-14 3:55am View
Hello Sameer,

Please check out this article ( Please do note that you need to get all your static data (labels, messages) translated into Arabic. There are many agencies who can do this translation for you. (Paid Service)

Prasad Khandekar 16-May-14 3:49am View
Similar question answered on devexpress forums ( Please check it out.
Prasad Khandekar 15-May-14 8:35am View
Hello Vikas,

Have a look at or

Prasad Khandekar 15-May-14 8:28am View
Simplest way could be try to upload and download a fixed size file from a known destination using say apache HttpClient library and measuring the time required using Stopwatch class found in apache commons lang library. For reasonably accurate measurement you will have to carry out these operations multiple times and then take the average.

Prasad Khandekar 15-May-14 7:45am View
You get now records or wrong records or error? You must have replaced YOUR_TABLE with the actual table name right?
Prasad Khandekar 14-May-14 3:53am View
In that case I think ARSoft.Tools.Net project should help you.
Prasad Khandekar 13-May-14 12:25pm View
May be you want to give a try to this nifty utility.

You can even try ARSoft.Tools.Net ( which contains a DNS Server component, using which you can create a local DNS server and use it for DNS name resolution instead of Host File. This way you can achieve what you want.
Prasad Khandekar 13-May-14 7:46am View
Please have a look at this discussion. (
Prasad Khandekar 13-May-14 7:26am View
You can use [A-Z]{2,3}\d+

Sorry Griff did not look at your reply.
Prasad Khandekar 13-May-14 7:25am View
Prasad Khandekar 21-Apr-14 9:57am View
Do you mind sharing a code snippet for the C# Client?
Prasad Khandekar 21-Apr-14 9:46am View
Hello Ravi,

Please make sure that the function SendSms exists and is declared as public or protected.

Prasad Khandekar 21-Apr-14 9:21am View
Hello Subhash,

Have a look at tool called Reflector or ILSpy, these tools should help you see the code. May not work if code is obfuscated though.

Prasad Khandekar 21-Apr-14 8:21am View
As far as I know a computed column cannot be used as a DEFAULT or FOREIGN KEY constraint definition or with a NOT NULL constraint definition. My suggestion is to do this computation in your client code and store the computed value in the column. The column definition will be similar to other columns in your table.

Prasad Khandekar 17-Apr-14 13:32pm View
Using mvc is more preferred as it will help you clearly separate the business logic, lighter views, view reuse & more.
Prasad Khandekar 8-Apr-14 8:18am View
Use SHOW ERRRORS to get more info while running the proc script in SQLPlus.
Prasad Khandekar 8-Apr-14 8:10am View
with Groupedsalary(DepartmentId , totalEmp) as
select DepartmentId , SUM(salary) as totalEmp
from tblEmployee group by DepartmentId

SELECT DepartmentId , totalEmp FROM Groupedsalary
Prasad Khandekar 8-Apr-14 7:45am View
Please check the procedure script. The Object is Invalid error means that there are compilation errors in the proc.
Prasad Khandekar 8-Apr-14 7:42am View
May be what you can do is to define a result table with one additional column as say SEARCH_ID VARCHAR(20). Then before making a call to your stored procedure generate a unique number and pass it to the proc. The proc will save the search results with this number. Once proc is complete it's just a simple select query from result table with where clause containing search_id = generated_id.
Prasad Khandekar 8-Apr-14 6:54am View
Have you tried putting all those commands in a batch file and running that from command prompt for one file?
Prasad Khandekar 8-Apr-14 6:39am View
Please mark the answer as accepted to close the topic.
Prasad Khandekar 4-Apr-14 9:35am View
It work's for IE, Please have a look at this ( However it fails on browser's other than IE. Change il(i) to il[i]. The document.getElementsByTagName("input") is going to return an array. The updated demo is at (
Prasad Khandekar 4-Apr-14 9:10am View
Prasad Khandekar 4-Apr-14 8:48am View
Manish I think this is an file encoding issue. As suggested earlier
1. Open Notepad
2. Click File->Encoding->ANSI
3. Copy the code (from this page only). Make sure all the typo errors are fixed.
4. Save the file
5. Run the file by cscript.exe /E:JScript D:\Projects\Cron\CronScript.js

Prasad Khandekar 2-Apr-14 5:26am View
There is also a typo error related to variable containing urls (strUrl) in the for loop you are using strURLs.
Prasad Khandekar 2-Apr-14 5:23am View
Open the file in notepad. Click on File Menu then Encoding And make sure that menu item named ANSI is checked. The save the file.

The command to run will be

cscript.exe /E:JScript D:\Projects\Cron\CronScript.js
Prasad Khandekar 1-Apr-14 10:38am View
Hello Manish,

Have you used notepad for creating the script? If yes then may be you have saved it using UTF-8 encoding. Try saving it without UTF-8 encoding.

Also try running cscript with /E:JScript switch.

Prasad Khandekar 1-Apr-14 10:31am View
Looking at the code myStreamWriter.Close() is redundant and should not be in the with block. For PDF's you should be using binary mode. Just add .WriteLine("binary") statement before .WriteLine("put" & " " & output2).

Prasad Khandekar 1-Apr-14 10:23am View
My 5+
Prasad Khandekar 31-Mar-14 2:40am View
Hello Mohammed,

Please have a look at

Prasad Khandekar 31-Mar-14 2:37am View
Notepadd++ does not really support debugging, however you can take a look at this article, which shows how it is done for PHP. You will be able to draw some clues from this article. (

Prasad Khandekar 21-Mar-14 9:53am View
Reason for my vote of 5 \n Nice!
Prasad Khandekar 21-Mar-14 9:49am View
Prasad Khandekar 12-Mar-14 2:54am View
Prasad Khandekar 12-Mar-14 2:42am View
Have you tried running the query in MySQLWorkbench? Most likely it's not returning the data. i.e. the table in question does not contain any rows.

Prasad Khandekar 11-Mar-14 9:39am View
Hello Kanan,

Please have a look at this tutorial. (GetExtension)

Prasad Khandekar 11-Mar-14 9:37am View

Please refer to this tutorial. (

Prasad Khandekar 11-Mar-14 6:54am View

Have a look at ( They offer a SOAP API for integration.

Prasad Khandekar 11-Mar-14 6:52am View

Please have a look at

Prasad Khandekar 11-Feb-14 0:18am View
Are u using the correct distribution for your platform? The version you are installing is almost 9 years old. Why not use the latest stable release instead?
Prasad Khandekar 30-Jan-14 7:57am View
Hello Arjun,

Since you are also specifying Trusted Connection as True, ensure that the ASP_NET user also has appropriate privileges in Database.

Prasad Khandekar 30-Jan-14 7:55am View
Hello Mrinal,

You can configure this in IIS. Please have a look at this article (

Prasad Khandekar 30-Jan-14 6:41am View

From your query it appears that you need to use either an INNER JOIN or LEFT JOIN kind of SQL. Assuming the following table structure



You can use following SQL TO fetch the data

SELECT w.wardrobe_desc, t.trouser_desc, t.trouser_size, t.trouser_waist, t.trouser_height
FROM trouser_table t
INNER JOIN wardrobe_table w ON w.wardrobe_id = t.wardrobe_id

Prasad Khandekar 30-Jan-14 6:35am View
You can use roles for that purpose.
Prasad Khandekar 30-Jan-14 4:05am View

You are trying to access port 8094 which might be blocked? In firewall try opening port 8094 instead of 80, assuming that ISS is configured to listen on PORT 8094.

Prasad Khandekar 30-Jan-14 4:02am View
Hello Sonali,

Can you share the source snippet?
Prasad Khandekar 22-Nov-13 8:45am View
I guess you will have to write code in backend or use a database explorer to do this.
Prasad Khandekar 22-Nov-13 8:38am View
Prasad Khandekar 22-Nov-13 8:33am View
Are you referring to this link (
Prasad Khandekar 22-Nov-13 8:26am View
You can not have multiple listeners for same port. Are u sure about your code.
Prasad Khandekar 14-Nov-13 0:54am View
Have a look at this article (
Prasad Khandekar 11-Nov-13 7:49am View
My 5+
Prasad Khandekar 11-Nov-13 7:31am View
You are welcome Prashant.
Prasad Khandekar 11-Nov-13 7:31am View
Hello Suresh,

For changing the color have a look at this MSDN forum thread ( For wordWrap try setting autosize property to false.

Prasad Khandekar 11-Nov-13 7:15am View
This may be a binding error. Please have a look at this article (
Prasad Khandekar 7-Nov-13 10:45am View
A very simple way in your case is to keep a column containing the column counter. When it's one you will set the password in pass1 and then increment the counter by 1. if it is greater than equal to 6 then you will rest it to 1.
Prasad Khandekar 7-Nov-13 0:55am View
Please check the definition for your IDENTITY Column it should be of form IDENTITY [ (seed , increment) ]. So for number to start from 1 and increment by 1 it will e IDENTITY(1, 1). Please also note that a transaction inserting multiple rows is not guaranteed to get consecutive values for the rows because other concurrent inserts might occur on the table. If values must be consecutive then the transaction should use an exclusive lock on the table or use the SERIALIZABLE isolation level.

Prasad Khandekar 7-Nov-13 0:26am View
Hello Jhonnie,

Is function name GridView1_RowDataBound1 is correct or should it be GridView1_RowDataBound?

Prasad Khandekar 6-Nov-13 5:27am View
You are welcome!
Prasad Khandekar 1-Nov-13 6:06am View
It's not clear whether you are talking about an ASP.NET application or Windows Forms application. Please clarify and elaborate the problem.

Prasad Khandekar 1-Nov-13 3:58am View
Hello Karthik,

Perhaps this article can provide you some help. (

Prasad Khandekar 31-Oct-13 9:56am View

Have a look the comments and discussion section of the article. Lot's of good suggestions and code there. (

Prasad Khandekar 31-Oct-13 9:49am View
typeName is the name of the class.
Prasad Khandekar 31-Oct-13 9:36am View
Nope, Just an array of parameters in sequence as per the definition of the method being called.
Prasad Khandekar 31-Oct-13 8:35am View
You're welcome!
Prasad Khandekar 30-Oct-13 4:08am View

I assume that on your website whenever user clicks on the message you open a new window to display the message contents. In such a scenario you can write the necessary update count statement in the page responsible for displaying the message. (page load event).
If you are using AJAX to retrieve the message contents and display it in a dialog then in that scenario you can write this update code in the method which serves the data back to the caller.

Prasad Khandekar 30-Oct-13 2:35am View
Hello Srishti,

The HTTPSession is s server side container and available only on the server side. If you want to make the values stored in session to a client side script then you can
1. Write a HTTP Service which will take names of the session variables (Comma Separated) and return the values (as JSON)
2. Have a hidden field and store the serialized session (JSON format) in it.

Prasad Khandekar 30-Oct-13 2:30am View

Very nice idea, please go ahead and implement one. I have not found one so far.

Prasad Khandekar 28-Oct-13 3:48am View
Thank's Rohan.
Prasad Khandekar 25-Oct-13 10:31am View
Yes, but in your script you need to have the declaration. Try changing your code to something like one shown below.

var myList;
.done(function (data) {
myList = data;

Prasad Khandekar 25-Oct-13 10:28am View
Prasad Khandekar 25-Oct-13 10:27am View
Hello Member 10360144,

You have all the necessary information to create the classes all by yourself. Just use Eclipse/Netbeans and you will be ready in no time.

Prasad Khandekar 25-Oct-13 10:12am View
Where in your file this variable (myList) is declared?
Prasad Khandekar 25-Oct-13 10:08am View

How about altering your code as shown below.

ALTER proc [dbo].[spCheckDuplicateRecordForUpdate] (@ID int, @Category int, @maxDaya int, @balDays int, @Value int Out)
IF EXISTS (SELECT TOP 1 ID FROM LeaveTrans WHERE ID = @ID AND Category = @Category)
SET @Value = 2;
UPDATE LeaveTrans SET MaxDays = @maxDays, BalanceDays = @balDays
WHERE ID = @ID AND Category = @Category;
SET @Value = 0;

Prasad Khandekar 25-Oct-13 9:33am View
Prasad Khandekar 25-Oct-13 9:32am View
Please mark the answer as accepted to close the question.
Prasad Khandekar 25-Oct-13 3:50am View
Prasad Khandekar 25-Oct-13 3:49am View
Please post the relevant code?
Prasad Khandekar 25-Oct-13 3:47am View
Just create a new class as shown below

public class MyMembershipDetails implements MembershipDetails {

If you are using Eclipse for the development. Then In the Package Explorer right click on any package where you want to put the implementation and choose New->Class. In the resulting window Type in your desired class name in the Name textbox. Click On Add button next to Interfaces combo and type MembershipDetails in the Choose Interfaces textbox. The matched interface should appear in the Matiching Items. just docuble click to select it. Now in the New Java Class dialog tick the checkbox named Inherited abstract method and hit ok to generate the class. You will get a class with all the methods to be implemented.
Prasad Khandekar 25-Oct-13 3:01am View
May be it's a permission issue. The user you are using to connect to the database does not have INSERT privilege.

Prasad Khandekar 25-Oct-13 2:59am View
PatientVerificationRequestDetails, MembershipDetails are the interfaces and PatientVerificationRequestDetailsImpl, MembershipDetailsImpl are the implementations of those interfaces (Concrete Classes).

Prasad Khandekar 25-Oct-13 2:56am View
Can you share the sample data in these tables?
Prasad Khandekar 24-Oct-13 9:20am View
I have updated my solution, please check.
Prasad Khandekar 24-Oct-13 8:15am View
Can you update your question to include the aspx code as well.
Prasad Khandekar 16-Oct-13 5:01am View
Hello Rohan,

He is looking a C# solution in that thread and has also given the answer in the same. However in this question he is asking whether it can be done via a database query.

(I really liked the quote you have used on your profile)

Prasad Khandekar 16-Oct-13 4:58am View
Hello Rohit,

Perhaps this stackoverflow thread should give you the answer. (

Prasad Khandekar 16-Oct-13 4:44am View
It looks bit different, it talks about datatable and probably requires a different solution.
Prasad Khandekar 16-Oct-13 4:12am View
Have you tried the sample presented in the solution.
Prasad Khandekar 15-Oct-13 11:24am View
Try pasting in browser address bar and check if is returning an xml response.
Prasad Khandekar 15-Oct-13 10:56am View
If you are disabling a textbox then calendar won't show up on that textbox.
Prasad Khandekar 15-Oct-13 8:36am View
Reason for my vote of 5 \n Useful, Thanks for sharing.
Prasad Khandekar 11-Oct-13 6:25am View
Hello Banci,

I have updated my comments. The short answer is SSCE is not suitable for the way you want to use it. It allows multiple connections from same application but multiple applications accessing the same data file is a no no.

Prasad Khandekar 11-Oct-13 5:33am View
Hello Banci,

What you are doing is good for development. From installation perspective, I suggest you use some good installer. All installer's allow you to executes DDL required to create your database and DML's to pump the pre-load data. The installer should ask for the database details to connect to.

If installer is not an option then you can simply bundle the necessary DDL's & DML's along with your application files in a simple zip format. Keep a readme.txt containing instructions on how to configure the application and create the database using accompanied DDL's & DML's. The last step will be to ask user to enter the database details in your app config. file.

I think you are talking about SQL Server CE, in which case it's not really suitable for the intended use. You should either use the SQL Server Express or SQL Server. (


Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid