473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

embedd java script in C # code

Hi,
I have this javascript which i am trying to embedd in my C# code,i am not sure whether it is even possible or not! If it is possible then how can i do it?Any document or links will be helpful,

Thanks,
Ankit Khare
Sep 16 '09 #1
6 3427
cloud255
427 Expert 256MB
Hi

Javascript is a client side language and C# server side. This means that Javascript will be executed on the client while C# code is executed on the server and the result is returned to the client.

@ankitkhare
What exactly is it you are trying to achieve?
Sep 17 '09 #2
Hi,
Well i have this javascript for a "carousel menu" which i want to use in my C# standalone application.I was unable to find specifically for C# so i thought there might be some way out.
Can you suggest me any website where i can find any widgets etc for C#?


Regards,
Ankit Khare
Sep 17 '09 #3
cloud255
427 Expert 256MB
Well if you have the javascript code, you could just translate the algorithm to C# (using the appropriate libraries) and everything should work just fine...

There seem to be one or two engines capable of converting C# to javascript, I didn't find any that translate javascript to C#. But doing the translation by hand should not prove to difficult or time consuming.
Sep 17 '09 #4
GaryTexmo
1,501 Expert 1GB
If you manage to get it working and have a good process for doing it, this topic might make an interesting choice for the C# insights forum :)

That place is sadly sparse. I keep meaning to put something there but never get around to it, or second guess my topic choice. I keep thinking I want to do something on XML since a lot of questions come through here about that, but keep putting it aside. One day...
Sep 17 '09 #5
Hello,
Well i am not very sure how i am gonna do that...i mean manually converting javascript to C# code.I am totally new to C#,so dont have much idea on it.If you can guide me on this,that will be of great help.

Regards,
Ankit
Sep 18 '09 #6
ssnaik84
149 100+
javascript can be integrated into html pages.
you cant embed directly into winforms

try working around System.Windows.Forms.WebBrowser
you might find solution
Sep 18 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Don Grover | last post by:
I hope some one can help, I have a html table that is created with asp that has a row of repeated buttons down the side. these call a page passing a query string with invoice number. I need to...
0
by: Nuno Magalhaes | last post by:
How do I embedd the MediaPlayer (msdxm.ocx) in a Windows Form using C#? I do something like the code below: Player=new WindowsMediaPlayer();...
1
by: Anamika | last post by:
I am trying to embedd Ms Word object in asp.net application and retrieve from & save back to database. Anybody done this before ? I would appreciate if anybody send some sample code. TIA.
4
by: Jeff | last post by:
Hi, Are there anyone can help me? My questions are as following: Because I have a tools bar which coding with javascript, it will reuse very often. So I want to separate the client-side java...
34
by: kpg | last post by:
Hello all, I have an asp.net web application with tons of Java script files. I would like to protect the Java Script somehow so it can't be seen by a remote user. I found several 3rd party...
9
by: Mickey Segal | last post by:
The long-simmering Eolas patent dispute: http://www.microsoft.com/presspass/press/2003/oct03/10-06EOLASPR.mspx has led to an optional Microsoft Update: http://support.microsoft.com/kb/912945/en-us...
0
by: Tuhin | last post by:
Hi, In short I want to call a javascript function in a .js file from an aspx page while loading. here is the code <script type="text/javascript">// <!--...
0
by: Preeti | last post by:
Hi All I am new to WPF. I need to embedd a flash video on a WPF screen. But I think mediaelement does not support that. Can anyone tell me what do I need to be able to embedd a flv video on a...
4
by: Quill_Patricia | last post by:
I have a Python script which is used to load data into a database. Up to now this script has been run by customers from the Windows command prompt using "python edg_loader.pyc". Any error messages...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.