The best thing to do is to download the files and figure out which parts of the css target which elements in index.htm. If you are new to this w3schools has a CSS Selectors Syntax[^] that should help you figure out what is going where, the main css tutorial[^] provides some good examples.
I'd start by including the css in your mvc project, then adding the html elements to your view. Note that and id and class attributes are going to be very important, as is the nesting of the elements.
I dont know if this is the correct place for this question,
but here it is:
I have developed a media player in vb.net.
The app works great.
And now I'm thinking of expanding it with
remote control capabilities from ethernet or internet.
Like you push a button on a asp.net web page, and something happens
in your vb.net application on yor computer.
I have searched around for a solution. But Im confused.
Some speaks of web services, cassini web server, apache mod_aspdotnet.
Could you help me in the right direction to find a solution for this?
Links and examples are appreciated.
See attached pictures.
The Listplayer is created in vb.net and is working.
The Remote UI example is created in ASP.net webapplication.(code is missing at the time)
1) The application can access the filesystem anyway. If he wanted to write a trojan (as you desribe it), he wouldn't need to make a remote procedure call, the app could just upload files determined by algorithm to the server. If the user didn't have a firewall, they would never know. Every application on your PC has this potential.
2) He never mentioned uploading: just calling client player functionality from a webserver. Whether the user wants this or not is another thing: there are risks of other people starting the player on the local machine remotely, but that is an issue for the OP to work on.
This is obviously either a student or home project by someone trying who wants to try something interesting.
Yes you can do this, but not from ASP.NET directly. With ASP.NET the web server is exactly that: a server that takes requests from the client so the client must initiate communication, this is the opposite of what you want to achieve. You have two basic courses of action
1) Make the client poll the server periodically for actions it must perform. This has the advantage of not needing to open up any ports or other firewall settings, but has the disadvantage that actions are queued until polled, so there is a time delay. You could write a custom .HttpHandler[^] to take process Http posts requests which get the instruction to be processed by the client. The handler is registered on the web server it and you call it directly from your VB app.
2) Allow your application to take RPC (remote procedure calls): The client registers itself with the website and acts as a server, the "Web Server" then becomes a client: it calls a method on the Player app remotely from the asp.net interface. The main disadvantage of this is that you open up the client as a server, and users may not want this. The easiest way is to use WCF: you include a WCF service with your Player that calls the player functionality. The Web Server has a set of proxy classes (easy to generate) that call the service from the web-page.
Thank you for the reply Keith,
I will look into your suggestions.
Yes this is a hobby project.
The background for the project was when I used the Player at a party.
My friends asked me if I could make a "live" remote control for it on a web page, that
they could reach with their phones, from the coutch.
Software was running on a laptop connected to a Plasma TV, out of reach from the coutch.
What Shameel talks about is not my intention. Is it not possible to solve this challenge without being
I can see now that this might not be run on internet but on WLAN for safety, then its just to log on the
local IP e.g. 10.0.0.3 and voila, the player on your phone.
Or I could buy a pc remote from Ebay... But then I wold not learn this chapter in .net.
vb.net hobby programer since 2009.
Arduino hobby programer since 2009.
Is it not possible to solve this challenge without being a hack?
It's not really a hack. Shameel's problem is that you could theoretically use the mechanism to hack other people's systems using your player as a means of communication. As I said, any application is capable of doing this without communication from the web server at all. Pretending for one moment your intent is malicious, all the remote functionality would give you is control over what the "trojan" player does on the client machine.
Extending functionality pretty much always increases risk of one form or another, you need to work to a level you think is right/ applicable. The real risk is that others will use your software to get access to your system somehow, but good design will reduce this risk right down.
If this Player is just for you and your friends you don't need to worry unduly about external hack attempts, especially if the site is hosted, and communicates, on a local network. In this case I'd suggest a basic web service on the Player side that has methods for each function you want to access remotely.
The only source I am aware of is DomainTools.com. Tracking history is a matter of making reqular queries and storing the results, which takes database space. In other words, they offer this as a premium, paid membership only service.
I don't know of any free sources for this information.
I am working in visual studio 2010 I have a tab container with five tabs on one of the tabs i have a table in a repeater. I need to be able to insert a record. The problem is when the page loads the table does not display due to no data. I need a blank table to enter the data. Then click a button and add another table and another and so on. This takes place be fore the insert. Is there a better way to accomplish this. I am not seeing allot on inserting with repeater. I need to add multiple customers before insert. Any suggestions would be greatly appreciated. I need to have a layout in table form a grid will not work. Thanks in advance
Generally you would use the footer template to add controls with which to insert records into your data source. This will place your insert at the bottom of the layout, use the header template if you want it the top, and be visible regardless of whether data is present.
When I load the tab container there is no connection to the datasource. I need to start with the insert there are no records to bring back. Would that make a difference? In the repeater I have about table with about 30 fields and a few dropdowns. Could you post a small sample. I have a repeater to view the records already entered. I really like the way this repeater works. Just not seeing much in the way of examples starting with no records and inserting.