|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
From Windows Form to Web Page ...How can I convert my Windows application Form to Web Page by Importing some class from ASP.Net ? In other word I want to add the following editor which is htmlArea v2.03 code to my windows application forms : <head> <script language="Javascript1.2"><!-- // load htmlarea _editor_url = ""; // URL to htmlarea files var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } // --></script> </head> any help or redirection will be compltlly appreciated regard's Husam Husam,
You cannot, they do two different thing. There is in a WindowForms no type of browser problem, and as well can you than not run a JavaScript. The most that reaches that you can do with this Eval sample on our website http://www.vb-tips.com/default.aspx?ID=34241f3e-16ff-4e87-86d1-2b03e1a439ae change the scriptlanguage from VBScript to JavaScript I hope this helps, Cor Show quoteHide quote "Husam" <Hu***@discussions.microsoft.com> schreef in bericht news:948D5565-F1D4-45D2-B001-0C0282495ACB@microsoft.com... > Hi EveryBody: > > How can I convert my Windows application Form to Web Page by Importing > some > class from ASP.Net ? > > In other word I want to add the following editor which is htmlArea v2.03 > code to my windows application forms : > > <head> > <script language="Javascript1.2"><!-- // load htmlarea > _editor_url = ""; // URL to htmlarea files > var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); > if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } > if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } > if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } > if (win_ie_ver >= 5.5) { > document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"'); > document.write(' language="Javascript1.2"></scr' + 'ipt>'); > } else { document.write('<scr'+'ipt>function editor_generate() { return > false; }</scr'+'ipt>'); } > // --></script> > </head> > > any help or redirection will be compltlly appreciated > > regard's > > Husam
[VB.NET] How to store/load XML schema internally...
Passing values bewteen user controls is separate web forms Fields in Access database returned in alphabetical order datagridview combo box latency when loading forms Best way to implement 2 controls on one window Coding a TimeSpan Newbee ASP.NET Questions Best value Help file builder Best way to output form information |
|||||||||||||||||||||||