|
May i suggest you to do so .?
Strange_Pirate
|
|
|
|
|
Child project not seeing web.config from parent project
|
|
|
|
|
Hi,
I have hyperlinks in each of the table rows and user is tranfered to a different page upon clicking. What I would like to have instead is that they click on the row rather than the hyperlink. How could I do it, while still keeping those hyperlinks.
Thanks
|
|
|
|
|
There other ways you could achieve this but it will mostly revolve around setting an onclick for your row(s). You could call a function javascript way or jQuery way thats ya choice.
<table>
<tr onclick="window.location='test.aspx'">
<td>
<asp:HyperLink NavigationUrl="test.aspx"></asp:HyperLink>
</td>
</tr>
</table>
|
|
|
|
|
Can you use the onselect action and determine the row you are on and then take the url from link cell in that row and go to that link?
Brother Miles
|
|
|
|
|
Hi,
if you take a look, the tr onclick will take you to the link in the hyperlink below it.
|
|
|
|
|
And, if none of the other ways work, you can make every field the same hyperlink then use CSS to change the appearance so they don't look like hyperlinks. The user will still have to click text, but it won't matter which in the row.
|
|
|
|
|
Hello everyone, I am not much of a designer so I lack the artistic ability to make a crisp looking website for anyone. And so in that case, I use templates made by actual designers.
I am trying to use a template for my MVC 3 application from this website: http://www.freecsstemplates.org/[^]
Anyways, the template comes with the folder of images, the index.html file, and the style.css txt file. I would really like to use this template for my application. I've looked around for similar topics on the internet and none of the tutorials I found really helped me.
I would really appreciate any help you could give me.
Thanks,
Nik
|
|
|
|
|
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.
|
|
|
|
|
It is a bit of a trial and error, but with the links, I am able to slowly figure out which parts fit where.
Thanks for the help!
|
|
|
|
|
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)
http://i303.photobucket.com/albums/nn140/pereskjo/listplayer.jpg
http://i303.photobucket.com/albums/nn140/pereskjo/remote_1.jpg
Best Regards
P.E.Skjold
Electronics engineer.
vb.net hobby programer since 2009.
Arduino hobby programer since 2009.
modified on Monday, August 29, 2011 3:19 PM
|
|
|
|
|
Something tells me that I should not be answering this question. You should probably ask this question in a hacking forum.
|
|
|
|
|
Shameel wrote: You should probably ask this question in a hacking forum.
I do not think so.
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
It seems perfectly reasonable thing to want to try to me too.
|
|
|
|
|
Don't you think that you will be able to access the file system (since the client app can play media files) and even upload them to a server in the background without the user even knowing about it?
|
|
|
|
|
Wrong:
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
a hack?
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.
Best Regards
P.E.Skjold
Electronics engineer.
vb.net hobby programer since 2009.
Arduino hobby programer since 2009.
|
|
|
|
|
per78 wrote: 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.
|
|
|
|
|
Hello
I know you can check who owns a particular domain via whois (if it's not a private registration) - but what about history of domain ownership?
Thanks
dev
|
|
|
|
|
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.
|
|
|
|
|
Hi,
I need a DB2 provider for .NET and then please suggest how can i access the DB2 physical file in db2 stored procedure.
Example:
physical file CUSTMAST in Db2.
Guhananth.S
|
|
|
|
|
how to add dotfuscated output to web setup project in vs2008
|
|
|
|
|
I have a class file called MyDropDownList.vb which extends the asp.net DropDownList control in App_Code folder.
Public Class MyDropDownList
Inherits System.Web.UI.WebControls.DropDownList
' my codes
End Class
How can I register MyDropDownList in web.config and use it in my pages?
Thanks,
modified on Friday, August 26, 2011 2:07 AM
|
|
|
|
|
You can register user control either in web.config file or in the web page where you want to use the control.
To register in web.config
<configuration>
<system.web>
<pages>
<controls>
<add tagPrefix="prefix" src="path of the control" tagName="tag name"/>
</controls>
</pages>
</system.web>
</configuration>
To register in page at this line at the start of the page:
<%@ Register TagPrefix="prefix" src="path of the control" TagName="tag name"/>
Hope this helps.
All the best.
I quit being afraid when my first venture failed and the sky didn't fall down.
|
|
|
|