Click here to Skip to main content

Comments by Prasad Khandekar (Top 200 by date)

Prasad Khandekar at 14-Sep-14 13:49pm View
   
Thank's
Prasad Khandekar at 14-Sep-14 13:48pm View
   
Hello,
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.
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 13-Jun-14 6:14am View
   
5+
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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 (http://www.hanselman.com/blog/FirefoxWPFAndXBAP.aspx)
 
Regards,
Prasad Khandekar at 13-Jun-14 5:36am View
   
Yes if that's cheaper, else you can look at other mentioned options as well.
Prasad Khandekar at 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 at 11-Jun-14 6:14am View
   
Hello Rajin,
 
You may want to look at
1. Aspose.Words for .NET (http://www.aspose.com/.net/word-component.aspx) - Commercial component
2. Spire.Doc for .NET (http://www.e-iceblue.com/Introduce/word-for-net-introduce.html#.U5gn21Ddfod) - Commercial component
3. DocImage SDK for .NET (http://www.rasteredge.com/how-to/vb-net-imaging/word-convert-pdf/) - Commercial Component
4. GemBox.Document (http://www.gemboxsoftware.com/document/overview) - Commercial Component
5. DynamicPDF Converter for .NET (http://www.dynamicpdf.com/PDF-Conversion-.NET.aspx) - Commercial Component
6. MyMorph (http://docmorph.nlm.nih.gov/docmorph/files.htm) - Command Line Tool
 

Regards,
Prasad Khandekar at 11-Jun-14 5:47am View
   
Are you able to ping to send.one.com? If not try using the correct IP instead.
Prasad Khandekar at 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 "http://192.168.10.119:8010/imgs/" 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 (http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest(v=vs.90).aspx)
 
Regards,
Prasad Khandekar at 10-Jun-14 8:19am View
   
Hello,
 
Checkout this thread (http://bytes.com/topic/c-sharp/answers/760091-max-tcp-client-connections).
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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?
 
Regards,
Prasad Khandekar at 9-Jun-14 3:35am View
   
Try setting the MailMessage.From to the email address provided to you by GoDadday.
 
Regards,
Prasad Khandekar at 9-Jun-14 2:55am View
   
Isn't this a server side configuration? Please have a look at (http://www.iis.net/learn/develop/developing-for-ftp/how-to-use-managed-code-c-to-create-an-ftp-authentication-provider-using-an-xml-database) this documentation.
Prasad Khandekar at 9-Jun-14 2:27am View
   
It will be very nice if you also post the code snippet.
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 6-Jun-14 11:48am View
   
Please have a look at
http://www.edidev.com/prog_guide_edifact.htm
http://www.codeproject.com/Articles/11278/EDIFACT-to-XML-to-Anything-You-Want
http://edifabric.codeplex.com/
Prasad Khandekar at 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).
 
Regards,
Prasad Khandekar at 5-Jun-14 5:44am View
   
are u able to ping abc.com 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.
 
Regards,
Prasad Khandekar at 5-Jun-14 5:38am View
   
Checkout this http://stackoverflow.com/questions/3213606/how-to-suppress-task-switch-keys-winkey-alt-tab-alt-esc-ctrl-esc-using-low.
Prasad Khandekar at 5-Jun-14 5:14am View
   
Hi,
 
Please have a look at this article. (http://www.codeguru.com/csharp/csharp/cs_misc/security/article.php/c16491/Working-with-Digital-Certificates-in-NET.htm)
 
Regards,
Prasad Khandekar at 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 (http://msdn.microsoft.com/en-us/library/9t4syfhh.aspx) to convert the image to desired format.
 
Regards,
Prasad Khandekar at 29-May-14 6:05am View
   
For ASP.NET you might want to take a look at (http://www.daypilot.org/)
Prasad Khandekar at 29-May-14 5:24am View
   
Please have a look at this article on CodeProject. (http://www.codeproject.com/Articles/14519/Using-Windows-APIs-from-C-again)
Prasad Khandekar at 29-May-14 4:12am View
   
Reason for my vote of 5 \n Seems to be interesting, thank's for sharing.
Prasad Khandekar at 27-May-14 11:23am View
   
5+
Prasad Khandekar at 27-May-14 11:15am View
   
Check this out (http://lmgtfy.com/?q=Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter+writer%2C+Object+renderedObject)+AND+stack+empty)
 
Or
 
(http://connect.microsoft.com/VisualStudio/feedback/details/817083/pageinspector-invalidoperationexception-stack-empty)
Prasad Khandekar at 27-May-14 10:41am View
   
Please checkout this (http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx) article.
Prasad Khandekar at 27-May-14 10:30am View
   
Please have a look at (http://www.asp.net/ajaxlibrary/tabs-control.ashx) or (http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/tabs/tabs.aspx)
Prasad Khandekar at 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 at 23-May-14 6:16am View
   
Hello,
 
You can use query similar to one shown below.
 
SELECT dialyzer_id,
COUNT(1) FROM reprocessor
GROUP BY dialyzer_id;
Prasad Khandekar at 23-May-14 5:29am View
   
Hello,
 
Are you talking of digital signatures as explained here (http://en.wikipedia.org/wiki/Digital_signature), 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 (https://github.com/Glamdring/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.
 
Regards,
Prasad Khandekar at 22-May-14 10:01am View
   
Reason for my vote of 5 \n Nice!
Prasad Khandekar at 22-May-14 9:57am View
   
Hello,
 
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.
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 22-May-14 9:47am View
   
Here are few links to get you started.
1. http://en.wikipedia.org/wiki/Gaussian_blur
2. http://docs.opencv.org/doc/tutorials/imgproc/gausian_median_blur_bilateral_filter/gausian_median_blur_bilateral_filter.html
 
Regards,
Prasad Khandekar at 22-May-14 9:40am View
   
As a general rule followed on this site never put your email address in the question/answer forums.
 
Regards,
Prasad Khandekar at 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 (http://www.codeproject.com/Articles/571813/A-Beginners-Tutorial-on-Creating-WCF-REST-Services).
 
Regards,
Prasad Khandekar at 21-May-14 11:04am View
   
5+
Prasad Khandekar at 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);
Console.WriteLine(result);
}
}
Regards,
Prasad Khandekar at 21-May-14 11:00am View
   
Are you user the user is authenticated? Please have a look at this thread (http://stackoverflow.com/questions/1056487/httpcontext-current-user-identity-name-is-always-string-empty).
 
Regards,
Prasad Khandekar at 21-May-14 6:51am View
   
Hello Sujeet,
 
AsyncTask should work. Another article you may find useful is (http://www.survivingwithandroid.com/2014/03/consume-webservice-in-android-intentservice.html). Are you getting ANR dialog (http://developer.android.com/training/articles/perf-anr.html)?
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 19-May-14 4:08am View
   
Hello,
 
Try specifying the widths on each column in %.
 
Regards,
Prasad Khandekar at 19-May-14 3:36am View
   
Hello Alif,
 
Please have a look at this discussion thread (http://stackoverflow.com/questions/4391109/how-do-i-load-html-into-webbrowser-control-for-wpf)
 
Regards,
Prasad Khandekar at 19-May-14 3:33am View
   
Hello Sujeet,
 
Are you able to access the web service from the emulator's browser?
 
Regards,
Prasad Khandekar at 19-May-14 3:32am View
   
Hello,
 
Look at the updated solution, the second link is what you are looking for.
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 18-May-14 13:35pm View
   
Hello,
 
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.
 
Regards,
Prasad Khandekar at 16-May-14 7:20am View
   
Hi,
 
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.
 
Regards,
Prasad Khandekar at 16-May-14 7:07am View
   
Hello,
 
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. (http://www.dotnetperls.com/datetime-format)
 
Regards,
Prasad Khandekar at 16-May-14 7:04am View
   
Hello Sujeet,
 
It starts a device monitor. (http://developer.android.com/tools/help/monitor.html)
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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?
 
Regards,
Prasad Khandekar at 16-May-14 6:01am View
   
I think you will have to call SetUnzipBaseDir to set the folder.
Prasad Khandekar at 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();
s.test();
}, TaskCreationOptions.LongRunning),
Task.Factory.StartNew(() => {
ServiceReference1.BankCardSoapClient s = new ServiceReference1.BankCardSoapClient();
s.test2();}, TaskCreationOptions.LongRunning)
};
Task.WaitAll(tasks, System.Threading.Timeout.Infinite);
}
 
Ragards,
Prasad Khandekar at 16-May-14 5:28am View
   
Please have a look at this example (http://www.techrepublic.com/article/pro-tip-inject-javascript-into-an-android-web-view-for-a-more-dynamic-ux/#.) for devices prior to kitkat, for kitkat the new API evaluatejavscript simplifies this a lot.
 
Regards,
Prasad Khandekar at 16-May-14 5:24am View
   
Hello,
 
Why not try using the MaskEdit control (http://msdn.microsoft.com/en-us/library/11405hcf(v=vs.71).aspx)
 
Regards,
Prasad Khandekar at 16-May-14 5:18am View
   
Hello Sameer,
 
Are you able to invoke this service via SOAPUI (http://www.soapui.org/) Just to ensure that the service does not have any errors.
 
Regards,
Prasad Khandekar at 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><
 
Regards,
Prasad Khandekar at 16-May-14 3:55am View
   
Hello Sameer,
 
Please check out this article (http://techbrush.org/simplest-way-to-create-a-multilingual-website/). 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)
 
Regards
Prasad Khandekar at 16-May-14 3:49am View
   
Similar question answered on devexpress forums (https://www.devexpress.com/Support/Center/Question/Details/Q213013) Please check it out.
Prasad Khandekar at 15-May-14 8:35am View
   
Hello Vikas,
 
Have a look at http://viewerjs.org/ or http://flexpaper.devaldi.com/
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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 at 14-May-14 3:53am View
   
In that case I think ARSoft.Tools.Net project should help you.
Prasad Khandekar at 13-May-14 12:25pm View
   
May be you want to give a try to this nifty utility. http://www.addictivetips.com/windows-tips/quickly-switch-between-multiple-hosts-files-without-editing-original/
 
You can even try ARSoft.Tools.Net (http://arsofttoolsnet.codeplex.com/) 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 at 13-May-14 7:46am View
   
Please have a look at this discussion. (http://sharepoint.stackexchange.com/questions/23626/how-to-restart-workflow-from-within-it-self)
Prasad Khandekar at 13-May-14 7:26am View
   
You can use [A-Z]{2,3}\d+
 
Sorry Griff did not look at your reply.
Prasad Khandekar at 13-May-14 7:25am View
   
+5
Prasad Khandekar at 21-Apr-14 9:57am View
   
Do you mind sharing a code snippet for the C# Client?
Prasad Khandekar at 21-Apr-14 9:46am View
   
Hello Ravi,
 
Please make sure that the function SendSms exists and is declared as public or protected.
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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 at 8-Apr-14 8:18am View
   
Use SHOW ERRRORS to get more info while running the proc script in SQLPlus.
Prasad Khandekar at 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 at 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 at 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 at 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 at 8-Apr-14 6:39am View
   
Please mark the answer as accepted to close the topic.
Prasad Khandekar at 4-Apr-14 9:35am View
   
It work's for IE, Please have a look at this (http://jsfiddle.net/X6s7Y/). 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 (http://jsfiddle.net/X6s7Y/2/)
Prasad Khandekar at 4-Apr-14 9:10am View
   
Prasad Khandekar at 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
 
Regards,
Prasad Khandekar at 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 at 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 at 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.
 
Regards,
Prasad Khandekar at 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).
 
Regards,
Prasad Khandekar at 1-Apr-14 10:23am View
   
My 5+
Prasad Khandekar at 31-Mar-14 2:40am View
   
Hello Mohammed,
 
Please have a look at http://msdn.microsoft.com/en-us/vstudio/hh500769.aspx.
 
Regards,
Prasad Khandekar at 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. (http://www.clickoffline.com/php-development/live-php-debugging-using-xdebug-notepad-and-dbgp-plugin.html)
 
Regards,
Prasad Khandekar at 21-Mar-14 9:53am View
   
Reason for my vote of 5 \n Nice!
Prasad Khandekar at 21-Mar-14 9:49am View
   
+5
Prasad Khandekar at 12-Mar-14 2:54am View
   
+5
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 11-Mar-14 9:39am View
   
Hello Kanan,
 
Please have a look at this tutorial. (GetExtension)
 
Regards,
Prasad Khandekar at 11-Mar-14 9:37am View
   
Hello,
 
Please refer to this tutorial. (http://www.phpro.org/tutorials/Dropdown-Select-With-PHP-and-MySQL.html)
 
Regards,
Prasad Khandekar at 11-Mar-14 6:54am View
   
Hello,
 
Have a look at (http://www.actatek.com/?action=Products&pro_id=115). They offer a SOAP API for integration.
 
Regards,
Prasad Khandekar at 11-Mar-14 6:52am View
   
Hello,
 
Please have a look at http://msdn.microsoft.com/en-us/library/aa367852(v=vs.85).aspx.
 
Regards,
Prasad Khandekar at 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 at 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.
 
Regards,
Prasad Khandekar at 30-Jan-14 7:55am View
   
Hello Mrinal,
 
You can configure this in IIS. Please have a look at this article (http://www.iis.net/configreference/system.webserver/security/authentication/iisclientcertificatemappingauthentication).
 
Regards,
Prasad Khandekar at 30-Jan-14 6:41am View
   
Hello,
 
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
 
Trousers_table
---------------------
trouser_id
wardrobe_id
trouser_desc
trouser_size
trouser_waist
trouser_height
 
Wardrobe_table
--------------------
wardrobe_id
wardrobe_desc
 
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
 
Regards,
Prasad Khandekar at 30-Jan-14 6:35am View
   
You can use roles for that purpose.
Prasad Khandekar at 30-Jan-14 4:05am View
   
Hello,
 

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.
 
Regards,
Prasad Khandekar at 30-Jan-14 4:02am View
   
Hello Sonali,
 
Can you share the source snippet?
Prasad Khandekar at 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 at 22-Nov-13 8:38am View
   
5+
Prasad Khandekar at 22-Nov-13 8:33am View
   
Are you referring to this link (http://msdn.microsoft.com/en-us/library/aa290350(v=vs.71).aspx)?
Prasad Khandekar at 22-Nov-13 8:26am View
   
You can not have multiple listeners for same port. Are u sure about your code.
Prasad Khandekar at 14-Nov-13 0:54am View
   
Have a look at this article (http://antezeta.com/news/avoid-search-engine-indexing).
Prasad Khandekar at 11-Nov-13 7:49am View
   
My 5+
Prasad Khandekar at 11-Nov-13 7:31am View
   
You are welcome Prashant.
Prasad Khandekar at 11-Nov-13 7:31am View
   
Hello Suresh,
 
For changing the color have a look at this MSDN forum thread (http://social.msdn.microsoft.com/Forums/windows/en-US/140096de-05d3-4d7e-8d4c-9f277bc72ddb/change-backcolor-and-forecolor-when-hovering-menu-items-of-menustrip?forum=winforms). For wordWrap try setting autosize property to false.
 
Regards,
Prasad Khandekar at 11-Nov-13 7:15am View
   
This may be a binding error. Please have a look at this article (http://blogs.msdn.com/b/jmstall/archive/2012/04/16/how-webapi-does-parameter-binding.aspx).
Prasad Khandekar at 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 at 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.
 
Regards,
Prasad Khandekar at 7-Nov-13 0:26am View
   
Hello Jhonnie,
 
Is function name GridView1_RowDataBound1 is correct or should it be GridView1_RowDataBound?
 
Regards,
Prasad Khandekar at 6-Nov-13 5:27am View
   
You are welcome!
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 1-Nov-13 3:58am View
   
Hello Karthik,
 
Perhaps this article can provide you some help. (http://www.codeproject.com/Articles/132809/Calling-WCF-Services-using-jQuery)
 
Regards,
Prasad Khandekar at 31-Oct-13 9:56am View
   
Hello,
 
Have a look the comments and discussion section of the article. Lot's of good suggestions and code there. (http://www.codeproject.com/Messages/2585538/Nice-article-but-what-about-different-parameters-w.aspx).
 
Regards,
Prasad Khandekar at 31-Oct-13 9:49am View
   
typeName is the name of the class.
Prasad Khandekar at 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 at 31-Oct-13 8:35am View
   
You're welcome!
Prasad Khandekar at 30-Oct-13 4:08am View
   
Hello,
 
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.
 
Regards,
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 30-Oct-13 2:30am View
   
Hi,
 
Very nice idea, please go ahead and implement one. I have not found one so far.
 
Regards,
Prasad Khandekar at 28-Oct-13 3:48am View
   
Thank's Rohan.
Prasad Khandekar at 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;
$.getJSON('JsonData.json')
.done(function (data) {
myList = data;
});
 
Regards,
Prasad Khandekar at 25-Oct-13 10:28am View
   
5+
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 25-Oct-13 10:12am View
   
Where in your file this variable (myList) is declared?
Prasad Khandekar at 25-Oct-13 10:08am View
   
Hello,
 
How about altering your code as shown below.
 
ALTER proc [dbo].[spCheckDuplicateRecordForUpdate] (@ID int, @Category int, @maxDaya int, @balDays int, @Value int Out)
AS
BEGIN
IF EXISTS (SELECT TOP 1 ID FROM LeaveTrans WHERE ID = @ID AND Category = @Category)
BEGIN
SET @Value = 2;
UPDATE LeaveTrans SET MaxDays = @maxDays, BalanceDays = @balDays
WHERE ID = @ID AND Category = @Category;
END
ELSE
SET @Value = 0;
END
 

Regards,
Prasad Khandekar at 25-Oct-13 9:33am View
   
5+
Prasad Khandekar at 25-Oct-13 9:32am View
   
Please mark the answer as accepted to close the question.
Prasad Khandekar at 25-Oct-13 3:50am View
   
Thank's
Prasad Khandekar at 25-Oct-13 3:49am View
   
Please post the relevant code?
Prasad Khandekar at 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 at 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.
 
Regards,
Prasad Khandekar at 25-Oct-13 2:59am View
   
PatientVerificationRequestDetails, MembershipDetails are the interfaces and PatientVerificationRequestDetailsImpl, MembershipDetailsImpl are the implementations of those interfaces (Concrete Classes).
 
Regards,
Prasad Khandekar at 25-Oct-13 2:56am View
   
Can you share the sample data in these tables?
Prasad Khandekar at 24-Oct-13 9:20am View
   
I have updated my solution, please check.
Prasad Khandekar at 24-Oct-13 8:15am View
   
Can you update your question to include the aspx code as well.
Prasad Khandekar at 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)
 
Regards,
Prasad Khandekar at 16-Oct-13 4:58am View
   
Hello Rohit,
 
Perhaps this stackoverflow thread should give you the answer. (http://stackoverflow.com/questions/14299634/luainterface-a-function-which-will-return-a-luatable-value)
 
Regards,
Prasad Khandekar at 16-Oct-13 4:44am View
   
It looks bit different, it talks about datatable and probably requires a different solution.
Prasad Khandekar at 16-Oct-13 4:12am View
   
Have you tried the sample presented in the solution.
Prasad Khandekar at 15-Oct-13 11:24am View
   
Try pasting az320820.vo.msecnd.net in browser address bar and check if is returning an xml response.
Prasad Khandekar at 15-Oct-13 10:56am View
   
If you are disabling a textbox then calendar won't show up on that textbox.
Prasad Khandekar at 15-Oct-13 8:36am View
   
Reason for my vote of 5 \n Useful, Thanks for sharing.
Prasad Khandekar at 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.
 
Regards,
Prasad Khandekar at 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. (http://technet.microsoft.com/en-us/library/bb380177%28SQL.90%29.aspx)
 
Regards,
Prasad Khandekar at 11-Oct-13 5:26am View
   
My 5+, I totally missed C# tag.
Prasad Khandekar at 11-Oct-13 5:24am View
   
Hello Deepak,
 
Nope, you will have to use cursor. In case the email contents are same for every one then sp_send_dbmail can send same email to multiple recipients (http://technet.microsoft.com/en-us/library/ms190307.aspx).
 
Regards,
Prasad Khandekar at 11-Oct-13 5:22am View
   
In your code snippet i is never going to be greater than 5. Your question is also confusing, what do you mean by submit the value of 'labour.asp' page and goto next page?
 
Are you talking about client side behavior? If yes then it's going to be JavaScript code, which either can get embedded in the ASP page (outside <% %> tags) or can get referenced in resulting HTML page via <script type="javascript" src="your_javascript.js"/> tag.
 
Regards,
Prasad Khandekar at 11-Oct-13 4:29am View
   
It's a html meta tag and will work for classic ASP as well. It just informs the browser that the page contains UTF-8 encoded characters.
Prasad Khandekar at 11-Oct-13 4:27am View
   
Nice, 5+
Prasad Khandekar at 8-Oct-13 11:52am View
   
Hello Ayesha,
 
You are already tagging the approver's id (ApproveBy) use it to filter out those rows which are already approved by the logged in admin.
 
Regards,
Prasad Khandekar at 8-Oct-13 11:50am View
   
fraction of second sounds to ambitious. You can perhaps use CSV file and then create a index file containing say line by line byte offsets or offsets for bunch of lines say 25 or 50. Use this index file later on with FileStream.Seek() to quickly traverse the file and read it.
 
I am not sure though about what you really want to do with the text data.
 
Regards,
Prasad Khandekar at 8-Oct-13 11:38am View
   
Hello Will,
 

Please check these projects. (http://sourceforge.net/projects/screencapturewp/)/(http://www.codeproject.com/Articles/91487/Screen-Capture-in-WPF-WinForms-Application)
 
Regards,
Prasad Khandekar at 8-Oct-13 11:37am View
   
Check this documentation (http://msdn.microsoft.com/en-us/library/39d1w2xf%28v=vs.100%29.aspx).
Prasad Khandekar at 8-Oct-13 11:35am View
   
Excellent, 5+
Prasad Khandekar at 8-Oct-13 11:34am View
   
Hello,
 
To develop the controls you have mentioned you need to understand Javascript, HTML DOM and perhaps JQuery. But there is no point in re-inventing the wheel. All the mentioned controls are really good though feature sets offered are different.
 
Regards,
Prasad Khandekar at 8-Oct-13 11:22am View
   
My 5+
Prasad Khandekar at 8-Oct-13 11:16am View
   
Please use 64 bit dll version of SQLite dll (http://system.data.sqlite.org/downloads/1.0.88.0/sqlite-netFx45-setup-bundle-x64-2012-1.0.88.0.exe) elase change the deployment target to x86 architecture.
 
Regards,
Prasad Khandekar at 8-Oct-13 11:13am View
   
My 5+
Prasad Khandekar at 8-Oct-13 11:12am View
   
Perfect. From your explanation it means that it's very likely that a row from one table in the old schema may result in rows getting created in multiple tables of the new schema & that will be your translation/migration logic. So as I said start with a table with lowest relations and transfer data from it row by row into new schema table(s). You can very well do it using C#. You already have the necessary mapping info available with you. This will ensure that all your tables gets populated appropriately and there will be very few or none foreign key mismatches.
 
Don't try to write/create a generalized tool. Instead focus only on specific transformations applicable to your new & old schema only.
 
You can even use third party ETL tools like Clover, Talend Open Studio and of course the SSIS.
 
Regards,
Prasad Khandekar at 8-Oct-13 10:48am View
   
Hello,
 
Every applications database is different and there is no single tool to get it done without custom development. You already have the necessary know how about your old and new database and various relationships between the tables. Since your old schema is using relations in a different manner (not via foreign keys as it appears from the example you have provided) you will have to do it all manually.
 
To begin with you will have to isolate static data (master setup) starting with the table with least relationships and then read record from old table and insert it new table possibly with additional foreign key values. Repeat it for each table to complete the migration.
 
Please remember though the program you will developing will not be usable with that database pair only.
 
Regards,
Regards,
Prasad Khandekar at 8-Oct-13 10:35am View
   
Hello Kwesi,
 
Looked at your question. HttpSession is not really associated with a form. ASP.NET uses a cookie to track users. When you try to write something to the session for the first time (Say upon user login) a cookie is sent to the client, something like ASP.NET_SessionId. This cookie is sent by the client on subsequent requests. Thanks to this cookie the server is able to identify the client and write/read the associated session data. It is important to note that this cookie is not persistent (wouldn't survive browser restarts) and is emitted with the HttpOnly flag meaning that client scripts cannot access it. This cookie also has a timeout associated with it and automatically expires after that time.
 

Regards,
Prasad Khandekar at 8-Oct-13 10:04am View
   
It should be changed to DropDownListSchool.DataSource = table;
 
Was a typo, really sorry for that.
Prasad Khandekar at 8-Oct-13 10:02am View
   
Hello Kwesi,
 
This article should help you (http://msdn.microsoft.com/en-us/library/xt50s8kz.ASPX). It has the example showing how parametric queries can be used with DataSource and then use it with say Dropdown control. My example shows how it can be done via code. Since you prefer to do it at design time look no further than the mentioned article.
 
Regards,
Prasad Khandekar at 7-Oct-13 11:36am View
   
No, yourDDL is the name of your combobox. Also note that if you are specifying the correct column names for DataTextField and DataValueFields in designer then you can comment those two lines.
Prasad Khandekar at 7-Oct-13 11:34am View
   
Yes change yourDDL to the actual name of your drop down same applies to SQL as well YOUR_TBALE, DISPLAY_FIELD_NAME, VALUE_FIELD_NAME needs to get changed accordingly. The fillDropdown procedure needs to be in the same class.
 
Regards,
Prasad Khandekar at 7-Oct-13 11:28am View
   
XAML itself is a larger language concept than WPF. This CP article (http://www.codeproject.com/Articles/36117/Easy-help-with-WPF) should help you.
 
Regards,
Prasad Khandekar at 7-Oct-13 11:16am View
   
Hello,
 
There are multiple ways of doing this. To start with you can check the Referer Header of the incoming HttpRequest. For the AJAX request's made from your application's page the domain and context part will be same as your applications domain and conrexr. eg. If your app's base url is http://www.foo.com/someapp then Referer header of ajax requests will also start with this base url. (Please remember though that the Refere header can be spoofed)
 
Another way is to use a hidden variable and session variable combination. In this scheme for every request you will generate a random token, store it in session and pass it to client via hidden field. The client is then expected to send this token in subsequent request. if token send does not matches with the one stored in the session then you can discard the request.
 
Regards,
Prasad Khandekar at 7-Oct-13 11:07am View
   
Please have a look at the answer provided to your earlier question (http://www.codeproject.com/Answers/662661/Using-WebBrowser-Control-how-to-display-chm-files#answer1).
Prasad Khandekar at 7-Oct-13 11:04am View
   
Hello Kwesi,
 
Please have a look at my solution.
 
Regards,
Prasad Khandekar at 7-Oct-13 10:31am View
   
You can put the code to populate the Combobox in Page_Load event handler. I am assuming that the login code is populating the USER_ID in session and that's the one you should be using in where clause of your SQL's. One more suggestion is to use Prepared Statement's instead of using String Concatenation (http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.prepare.aspx). It will protect your app from unwanted SQL Injections.
Prasad Khandekar at 4-Oct-13 6:26am View
   
May be this document will help you. (http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&ved=0CDoQFjAD&url=http%3A%2F%2Fwww.geocities.ws%2Fgolden_langur%2F1solution.pdf&ei=VpZOUt_qL4jsrAfftICoCg&usg=AFQjCNFiEAp_liKYGtB0Acg8a8eOZEfg6g&bvm=bv.53537100,d.bmk).
Prasad Khandekar at 4-Oct-13 6:17am View
   
Hello Kishore,
 
The reason you are not getting colors, styles and widths is because if you look at the generated HTML that you are pasing to the HTML Rendered does not contain that information. I suggest you also add the styelsheet rules in the generated html, make sure all images are referenced via relative paths and that the path does exists under your applications root folder.
 
Please also have a look at https://github.com/ArthurHub/HTML-Renderer/blob/master/Source/Demo/DemoForm.cs.
 
Regards,
 
Regards,
Prasad Khandekar at 4-Oct-13 6:04am View
   
Yes, Html Helper is a help authoring tool. It will open up the html or CHM file. But you want it get opened in the Webbrowser embedded in your WPF application. Unfortunately it won't work. Webbrowser control does not understand chm file format.
Prasad Khandekar at 3-Oct-13 6:39am View
   
Most of the email clients support read notification, but user can opt for not sending the read notification reply. Once an email gets downloaded into the client there is very little you can do to track users actions, unless you have a controlled environment in which everyone is using a particular email client and that it supports addon's/scripting.
Prasad Khandekar at 3-Oct-13 6:31am View
   
I don't think there is such a limit. It will mostly depends upon the server load and how fast IO is done and ofcourse network delays.
Prasad Khandekar at 3-Oct-13 6:30am View
   
My 5+
Prasad Khandekar at 3-Oct-13 6:23am View
   
Is that some time equals to 30 minutes? If not then check your entire code again chances are that it's getting cleared from your code only. Another thing you may want to check for is app recycling. If your state state mode ins InProc then upon app recycling the session state will be lost. Try using SQL Server for this.
Prasad Khandekar at 3-Oct-13 6:20am View
   
Hello,
 
There is a feature for requesting a read receipt via Disposition-Notification-To header. But I am afraid to say that it will not be possible to track other actions.
 
Regards,
Prasad Khandekar at 3-Oct-13 4:16am View
   
Hello John,T
 
The membership provider will not automatically change the existing cleartext passwords to encrypted format. However all new user's password will get stored in encrypted form.
 
Regards,
Prasad Khandekar at 1-Oct-13 0:23am View
   
Hello Trennon,
 
Try following methods. The first one being the safe and recommended even in the documentation.
 
$query = sprintf("INSERT INTO query (Name, Key, IGN) VALUES ('%s', '%s', '%s')", mysql_real_escape_string($name), mysql_real_escape_string($appkey), mysql_real_escape_string($usrname));
 
$query = "INSERT INTO query (Name, Key, IGN) VALUES ('" . mysql_real_escape_string($name) . "', '" . mysql_real_escape_string($appkey) . "', '" . mysql_real_escape_string($usrname) . "')";
 
Regards,
Prasad Khandekar at 26-Sep-13 9:56am View
   
Have a look at http://www.pixel-technology.com/freeware/tessnet2/ a c# wrapper around the library.
Prasad Khandekar at 26-Sep-13 9:55am View
   
Have a look at http://khanrahim.wordpress.com/2010/04/10/insert-update-delete-with-datagridview-control-in-c-windows-application/.
Prasad Khandekar at 26-Sep-13 9:48am View
   
First ensure that the version of the plugin you are trying to install matches with the version recommended for your the Eclipse IDE version. Since the error is about unexpected end of ZLIB input stream, it's likely that eclipse update manager is not able to download the file completely, Check the network connectivity. Try downloading the plugin and it's dependencies and do an offline install.
 
Regards,
Prasad Khandekar at 26-Sep-13 9:41am View
   
Hello Sahar,
 
The w3upload probably is good for older asp applications. For .NET upload control's saveAs method to work the account under which your ASP.NET application is running must a write access to the folder where you are trying to save the file. Please ask your hosting provider to find out which directory is writable for the hosted application. I am sure they must have one for your account. Once you get the details you can use that folder to save uploaded files. The other method is any way not recommended by Microsoft (http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.saveas.aspx).
 

Regards,
Prasad Khandekar at 24-Sep-13 3:47am View
   
My 5+

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