I was just wondering, did some research on internet as well, is there anyway to export a windows form which is coded in VB as HTML. Doesn't need to be directly I mean it can go over from excel to HTML or any other route which is possible. I just want my user to tick couple of check boxes and see the text which I retrieved from my database.
Thanks in advance.
You might want to try this one:
http://www.codeproject.com/Articles/15559/A-Windows-Forms-based-text-editor-with-HTML-output
There's nothing out that that I've seen that is a perfect solution.
I did see this interesting article on CodeProject which looks like it does a rough job of it, and might be sufficient.
However, if it's that simple, and you already know how to code WInForms, you could just bite the bullet and create ASP.NET pages. (Using WebForms instead ov MCV as it's more similar) The two programming/design models arean't really all that different.
there is a function in excel to export an datasheet to an HTML page.
SaveAs >>>> Html page or web page.
And the same goes for Word.
Good luck
Related
Sorry for asking such a dumb question. But I am not actually getting the name by which I should search this. I need a plugin for blog writing using which user can edit fonts and add image/s. While submitting, the generated html code can be entered into mysql. Can anybody help on this issue...
there are a bunch of text editors for weblogs, but I really like ckeditor. I think your issue has two sides. In the first place you should provide a text editor for users to enter their stuffs. In the second place you should have a server side approach to get what your users entered in order to save in your database.
Try CKEditor. You can download it from http://ckeditor.com/download
I'm currently working on a project using Umbraco and the client has asked for a drop-down menu with the states and once selected the cities in that state will be displayed.
When I'm in the text editor, it will save tables, but once I input a <select></select> tag or <option></option> tags and save the file and go back into it my coding will be converted to normal text. It doesnt seem to want to accept or is there a way to insert these, and if there is, is there a way to do it without creating a new doctype? The hours have been budgeted and I'm trying to find a quick fix if possible.
Thanx in advance.
Correction: It doesn't simply convert it to just plain text but the entire <select>/<option> tags will be completely gone and all that will remain is what was between the tags.
You cannot do this in the rich text editor, for this to work you need to create a macro (you have a choice: XSLT / Web User Control or Razor).
In said macro you will be able to render the dropdowns you want, if you're familiar with ASP.NET a user control will probably be most convenient, binding it to a datasource.
But it sounds like you're in over your head, as you haven't yet mentioned how you plan to post and save the form. You really should provide some more details on that.
Just a quick question, I have seen some web page if I click view page source, the html code is compressed, if I want my html code to be compressed like that, is there a function doing the compression or I need to use come compress tool to do it before the webpage is loaded on line? Thanks a lot.
I'm not a PHP/*nix guy, but since we have been chatting about it in comments, check these..
For PHP:
http://davidwalsh.name/compress-xhtml-page-output-php-output-buffers
For Apache:
http://perl.apache.org/docs/1.0/guide/modules.html#Apache_GzipChain__compress_HTML__or_anything__in_the_OutputChain
http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/
Check this discussion as well:
http://forums.macnn.com/79/developer-center/276604/compressing-html-output-with-php/
There are tools available for that purpose, basically these tools remove blank lines from the html code. Search for html optimizer or blank space remover tools on google and you'll find many easily.
If you are using j2ee, there are filter available (as jars), which you can download and edit your web.xml file to use them. They will remove the blank spaces when the page is being displayed.
If for "compressed" you mean without whitespaces, without line breaks, without tabs, etc, yes, there exist tools that could do the job for you, although it would be easy to write a personalized script.
By example, see this script. Here you have the live demo.
I want to know, how to make my html file code to encrypted?
So that if normal user see the code,
then they don't understand the code?
I don't remember how I did it, but I was just reading some of my own code recently and I couldn't even understand it. A normal user would not have a chance. I don't thing encryption was involved however.
You can't. If the user can't see it, the browser wouldn't be able to either!
This is called obfuscation, but it's pointless. People can still view your complete DOM tree in DOM Inspector or Firebug. As this Yahoo blog entry says, "If you don’t want people to see your programs, unplug your server." This applies equally to HTML.
Don't bother. All encryption will do for you is slow down your site. It's not worth 'hiding' it. Any moron can just open up Firebug and see everything without even having to decrypt the source code anyways.
This might be good: http://www.iwebtool.com/html_encrypter
it's free and online makes your code into unicode hope less to copy and edit!
You may try disable the mouse right click.
JS (jQuery):
$(document).bind('contextmenu',function(){return false;});
Again as shown in other posts this is actually meaningless because if someone want to view the source they can just press F12 to open the console and view all the codes.
Also, I don't think a normal user will want to see this kind of things. If they see that, they just think they're pressing the wrong button and close it.
You can use StatiCrypt to encrypt your HTML file using AES-256 encryption. You then get a simple HTML page with a password prompt, see example.
Two cautionary notes from the project's repository:
Disclaimer if you have extra sensitive banking data you should probably use something else!
...
AES-256 is state of the art but brute-force/dictionary attacks would be trivial to do at a really fast pace: use a long, unusual passphrase.
A similar tool is clientside-html-password. There might be others as well, but the bottom line is that you can make an HTML file encrypted.
I've written a tool to encrypt HTML files called PageCrypt. The tool asks for a password at the time of encryption, then spits out an encrypted HTML file. Then, when a user views the encrypted file, they need to input the set password to be able to unscramble and view it.
The tool is hosted here:
https://www.maxlaumeister.com/pagecrypt/
with source code available here:
https://github.com/MaxLaumeister/pagecrypt
Description of the project, from the project page:
PageCrypt - Password Protect HTML
This tool lets you securely password-protect an HTML file. Unlike other password-protection tools, this tool:
Has no server-side components (this tool and its password-protected pages run entirely in javascript).
Uses strong encryption, so the password-protection cannot be bypassed.
All you need to do is choose an HTML file and a password, and your page will be password-protected.
You can try DRM-X 4.0, it supports protect HTML JS CSS and Images. it also supports protect Dynamic Website.
https://www.haihaisoft.com/HTML-Encryption.aspx
https://www.haihaisoft.com/Dynamic-Website-DRM-Protection.aspx
In Word 2003 one can save as WEB PAGE and get document translatted into HTML coding.
You can use VIEW and see SOURCE CODE to get the HTML coding for that file.
In Word 2007 you can save as web page but I can't find how you VIEW the source code that was created with it.
What you need to do is right-click on the file and select Open With... and use notepad to view the HTML.
Shield your eyes; it's ugly, ugly code.
EDIT: To alleviate some of the bloat and make things more legible, I suggest http://textism.com/wordcleaner/ - I've had pretty good results with it in the past, but it only works for files up to 20kb.
For SO bonus points, check out Jeff's C# code here: Cleaning Word's Nasty HTML.
You can also change the extension of the .docx to zip, then view the contents. A .docx file is actually a zip file with several .xml files inside... but that probably won't give you what you're looking for.
If you've only got a simple HTML page (I can't imagine it being much more than that if it was wrote in Word) you can just view the source in your browser.