http://pietschsoft.com/post/2008/06/Silverlight-and-JavaScript-Interop-Basics.aspx
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Browser;
namespace DiggSample
{
public partial class Page : UserControl
{
public Page()
{
InitializeComponent();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
}
private void MyButton_Click(object sender, RoutedEventArgs e)
{
MyButton.Content = "按到了!" + DateTime.Now.ToLongTimeString();
//HtmlPage.Window.Alert(HtmlPage.Document.GetElementById("XCsp").version2);
ScriptObject myScriptObject = (ScriptObject) HtmlPage.Window.Eval("XCsp;");
if (myScriptObject != null)
{
HtmlPage.Window.Alert((string)myScriptObject.GetProperty("Version2"));
double bRdrReady = (double)myScriptObject.Invoke("ConnectReader");
if (bRdrReady == 0)
{
myScriptObject.Invoke("ListReaders");
double totalReaders = (double)myScriptObject.GetProperty("inor");
if (totalReaders > 0)
{
for (int i = 0; i < totalReaders; i++)
{
ReaderList.Items.Add(myScriptObject.GetProperty("caReader"+(i+1).ToString()));
}
}
else
{
HtmlPage.Window.Alert("請安裝讀卡機");
}
}
else
{
HtmlPage.Window.Alert("bRdrReader=" + bRdrReady.ToString());
}
}
}
}
}
35 則留言:
I rarely create remarks, however i did some searching and wound up
here "SilverLight 2.0 如何使用網頁上的 ActiveX control".
And I do have a few questions for you if you usually
do not mind. Is it simply me or does it look like some of
the comments come across as if they are coming from brain dead individuals?
:-P And, if you are posting at additional online sites,
I would like to keep up with anything fresh you have
to post. Could you list of all of all your shared pages like your linkedin profile, Facebook page
or twitter feed?
My website ; cheap Macbooks
Everything is very open with a very clear description of the issues.
It was definitely informative. Your website is very helpful.
Many thanks for sharing!
My web site - reborn dolls
Hello I am so grateful I found your blog, I really found you by accident, while I
was researching on Yahoo for something else, Anyways I am here
now and would just like to say thanks a lot for a marvelous
post and a all round entertaining blog (I also love the theme/design), I don’t have time to go through it all at the minute
but I have bookmarked it and also included your RSS feeds, so when
I have time I will be back to read much more, Please do keep up
the awesome b.
My blog post electronic cigarette wholesale
I know this web page provides quality dependent articles or reviews
and other information, is there any other web page
which presents such information in quality?
my website - la nautica.com
Inspiring quest there. What occurred after? Take care!
My web site ; Forex Trading Demo
Malaysia & Singapore & brunei ideal on-line blogshop for wholesale & supply korean accessories,
accessories, earstuds, necklace, rings, hair, bracelet
& trinket add-ons. Promotion 35 % wholesale rebate. Ship Worldwide
Here is my blog buy hcg
you are in reality a just right webmaster. The web site loading velocity is amazing.
It sort of feels that you are doing any distinctive trick.
Also, The contents are masterwork. you've performed a wonderful activity on this matter!
my webpage: best weight loss plan Miami
My partner and I stumbled over here from a different web address
and thought I may as well check things out. I like what I see so now i'm following you. Look forward to looking over your web page for a second time.
Here is my homepage ... seo services india
Now I am ready to do my breakfast, after having my breakfast coming yet again
to read other news.
Look into my website ... web hosting delhi
Hi friends, pleasant article and pleasant arguments commented
at this place, I am really enjoying by these.
Here is my web site ... weight loss
My brother suggested I might like this blog.
He was totally right. This post truly made my day.
You can not imagine simply how much time I had spent for this information!
Thanks!
My page: grand-jewelry
Nice!-- China bathroom vanities
Woah! I'm really loving the template/theme of this blog. It's simple, yet effective.
A lot of times it's difficult to get that "perfect balance" between usability and visual appeal. I must say you have done a amazing job with this. Additionally, the blog loads very fast for me on Firefox. Exceptional Blog!
Here is my web site: Resort Management Association
Hi to every one, the contents existing at this website are in fact remarkable for people knowledge,
well, keep up the good work fellows.
My website :: http://en.mmmpedia.org/
Hi, I think your website might be having browser compatibility issues.
When I look at your website in Safari, it looks fine but
when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other then that, fantastic
blog!
Feel free to visit my web blog - Spazio-kovan
Hello to every body, it's my first pay a quick visit of this website; this web site consists of remarkable and genuinely good material designed for readers.
My web blog :: Spazio-kovan
For most up-to-date information you have to go to see internet and on internet I found this web site as a finest web page for hottest updates.
Also visit my web page ... maxoderm
it is interesting-- 1000mw powerful laser pointers
I blog often and I truly appreciate your information. This
great article has really peaked my interest. I will book mark your blog and keep checking
for new details about once a week. I subscribed to
your RSS feed as well.
Visit my blog post :: juegos para pc
Birkenstock Sale Many women that want a much more elegant wedding obtain an artist dress. The price of these kind of outfits is dependent, of course, about the actual reputation of the particular custom made along with the number modifications that need to be built to the basic layout. The reason which custom made garments are generally much more well-liked for elegant marriages is that they carry nearly a year to perform. Normally, it will require among four along with seven several weeks to supply a designer bridal dress. That is why nearly all shotgun in addition to Lasvegas women get away from the holder.
[url=http://www.wimac.co.uk/partners]Karen Millen Outlet[/url] Your daughter were only available in at this time and claimed, Father, it's time to hold mom available. For you to him or her, seeing his papa holding his / her mommy out became an essential part of his / her lifestyle. My lady gestured in our boy to come more detailed as well as hugged your ex closely. I actually transformed our experience apart because I was afraid I will transform my mind with this last second. I then kept the woman in my biceps, walking in the bed room, throughout the sitting room, to your hallway. The woman's give encased my personal fretboard delicately and indeed. I actually organised the woman's physique firmly; it had been the same as our special day.
[url=http://birkenstockshop.tumblr.com/]Birkenstock[/url] An increasing number of best developers are creating formal dresses pertaining to full-figured females. Another thing they have found would it be is much simpler compared to they anticipated. In the end, bigger ladies tend to be well-proportioned, which suggests the garments need not hide troublesome areas. In other words, getting good balance to any plus-size costume is really a cinch. Many moms with the bride with this physique choose a amount which flaunts his or her shapes. Any reduced skirt having a d neck-line is a popular selection which brings harmony in the complementary method. Old mothers of the star of the wedding typically decide on a coordinating attire, specially in wedding ceremonies that are locked in the wintertime or even the tumble.
Thanks in favor of sharing such a good thinking, paragraph is fastidious, thats
why i have read it entirely
my site www.learnpaintlessdentremoval.com
I was wondering if you ever thought of changing the page layout of your
website? Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content so people could
connect with it better. Youve got an awful
lot of text for only having one or two images.
Maybe you could space it out better?
Also visit my page semenax
I think this is among the most important information for me.
And i am glad reading your article. But wanna remark on few general things,
The website style is wonderful, the articles is really great :
D. Good job, cheers
Here is my blog post: review of semenax
It's difficult to find well-informed people in this particular topic, however, you sound like you know what you're talking about!
Thanks
Here is my page ... increase Seminal volume
I am not sure where you are getting your info, but great
topic. I needs to spend some time learning much more or understanding more.
Thanks for excellent information I was looking for this information for my mission.
Visit my blog virility ex
Woah! I'm really loving the template/theme of this site. It's simple, yet effective.
A lot of times it's challenging to get that "perfect balance" between user friendliness and visual appearance. I must say you've done a very good job with this.
In addition, the blog loads extremely quick for me on Internet explorer.
Exceptional Blog!
Also visit my blog post - the best supplements for muscle gain
Ridiculous story there. What happened after?
Thanks!
Also visit my web page: buy eazol
excellent issues altogether, you simply received a
new reader. What would you recommend about your post that you just made a
few days in the past? Any positive?
Feel free to visit my web site - phytopharm hoodia gordonii
Hi there every one, here every person is sharing such experience,
therefore it's fastidious to read this web site, and I used to pay a quick visit this weblog daily.
Here is my website ... Thyromine
given know big You phones http://www.ghd2.co.uk/ to right stuff job long cheap michael kors the ensure http://www.cheaptomsbobsshoes.com/ Moreover, Both ray ban clubmaster hard in takes add too http://www.cl0online.co.uk/ are from the
Its like you read my mind! You seem to know a lot about this, like you wrote
the book in it or something. I think that you can
do with some pics to drive the message home a bit, but other
than that, this is great blog. An excellent read.
I will definitely be back.
Also visit my web site ... thyroid gland
And customers, he said, must be able to find and access content that they desire.
When the Blu-ray is loaded to Blu-ray Ripper, you can select subtitles and audio track (English, French, German, Spanish)
for each chapter. The Apple TELLY is far from a mass-marketplace
machine, but its sales numbers display that even in the reasonably small
industry, Apple dominates the levels of competition.
Feel free to surf to my web-site; apple tv review
The reason is - video-on-demand market is the only model that works on subscriptions.
The report which questioned 2046 US participants and was run by consulting firm Deloitte revealed that 65% want to connect the internet to their home TV to twatch streams, this figure was 58% in
the same survey in 2009. This is useful if your TV is connected to an audio system, as you can browse your i - Pod library and select songs wirelessly from the handheld device.
My blog: roku
I love what you guys tend to be up too. Such clever work and coverage!
Keep up the wonderful works guys I've added you guys to blogroll.
Feel free to visit my webpage :: buy breast actives
The unibody looks amazing and the rigid aluminum body is better than any we have seen.
Select these with the assistance of a chemical engineering professional.
Compared to the Mac - Book Professional especially, it has the slow processor.
my page :: macbook air
張貼留言