I am new to asp.net and learning various things. I want to make browser(For Fire Fox only) extension that will interact with asp.net website.
Purpose of this extension is to send data from client side to server side without opening website and save this data to database under user profile
Any help, self learning resources, Books on extension will be appreciated.
Thank you!!
Install addon-sdk from here and then see pageMod:
https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Installation
https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/page-mod
Related
If i write an desktop app in tidesdk or tide kit will it be possible for users to read my source code, just like from ordinary web page or not ?
Yes, if the user knows where to look. It's not viewable by right clicking the window and selecting source, but if they browse to the install directory, all the HTML / related files are there in broad daylight.
You could come up with some strategies to protect them, either using encryption or just providing a bootstrapper application which downloads the rest of the source from a server on startup or something like that...but if it's a huge concern of yours you're probably better off using a different platform.
I want to place a button in my ASP.NET Web Forms projec, that connects directly to my Scanner (hardware). Scan & Upload.
Is there a way to do so?
(Activex, etc.)
Thank you
Did you try TwainX, it says.
"Easily integrate Scanners into your web-based applications with a minimum of ... of indirection"
http://twainx.sourceforge.net/
If this is an internal scanner accesible to your company, there is sense in doing this, but if the general public has to do it, they will have to install the activex and all, not recommending your approach. Might as well ask the user to scan it, and then upload the image.
This article - Scan and Upload Documents in ASP.NET MVC App using Dynamic Web TWAIN - may help you as an alternative
I found this post that includes source code that uses the ASP.NET to show how to scan on the client side and then upload the images onto the server:
http://support.leadtools.com/CS/forums/20960/ShowPost.aspx
I am going to make a website which will show me live streaming. Of course technologies are C# ASP.NET or ASP.NET MVC. For testing purpose, Now I want to use my PC's webcam to shoot video and it will be displayed on the .aspx or say .cshtml page directly on the same time. So let me know what will I do? If anyone from India, just see the Saibaba Live Darshan official website and I just need to make same type of site.After successful testing,I will deploy and host this application on hosting server. There is a temple where I will integrate this system so that everyone can take live darshan on their web browsers. So please guide me how to achieve this. Tell me all possible ways and if you have complete project code,then let me know.
You can use HTML5/getUserMedia to capture a video stream from the users webcam.
You can then display this on a html5/canvas for the user, or if you prefer you can use WebRTC to stream it to a server.
You can also look into projects such as this one: https://code.google.com/p/telepresence/
If you prefer to implement it yourself you can look here: https://hacks.mozilla.org/2013/02/cross-browser-camera-capture-with-getusermediawebrtc/
I have a project which needs a little bit of web-scraping. The main requirement is to let the user enter his data on a java application. Then the application will connect to a data entry website then it will automatically inputs the data entered by the user to that website. I haven't started to code it since I don't know where to start. I already conducted some research about this and it points me to jsoup and desktop api(jsoup for webscraping and desktop api for opening a browser). Hope to receive a reply from the Java experts here.
Thanks!
JSoup will certainly do the scraping for you. However you need to handle HTTP (GETs/POSTs etc.) and for that I would recommend Apache Http Components.
I'm not sure you want to open a browser. Rather I would expect you to ask the user for input (perhaps via a Swing UI, or a browser-based UI) and then talk directly to the website using HTTP. I don't think you'd need to open a browser to the destination website. If you do, then check out Watij, which allows you to drive a browser directly from Java.
I am going to develope a module in ASP.Net. In this module I want to get the list of drives of the local system where this page is displaying. I have already tring with System.IO.... etc. but it gives me the server drives.
I want to get the list of LOCAL drive where page is displaying on server drives.
Thank you.
Do you mean the client's computer's drives?
That is not possible.
EDIT: However, it is possible with ActiveX or a browser plug in.
This absolutely cannot be done with neither server-side ASP.NET, nor with client-side JavaScript. You can try writing an ActiveX "control" (or how are these called?) or Java applet.
Fortunately you can not do that.
This is impossible, since your ASP.Net code runs on the server. The client only sees the rendered page (HTML and javascript).
Remember: your C# or VB.Net code runs on the server for the explicit purpose of sending html/javascript to the client browser. It does not get to peek directly at the "local" system, and the only thing the "local" system knows about is the html/javascript rendered on the server. That's just how the web works.
Furthermore, javascript runs in a sandbox that does not include any way to enumerate the local drives. This is by design.
So the only way to do this is via plug-in like flash, silverlight, or activex.
You can write a .NET control which is downloaded from your website to the clients' PC and looks at the drives there. As this could be abused (you could steal the users' files) you will have to convince the user to download the control in the first place. Look here for more info:
ClickOnce Deployment overview