|
|
hi i need some help how into play the windows media player in .aspx page. where we will put dll file, in bin or any thing. how to store it
hi i need some help how into play the windows media player in .aspx page. where we will put dll file, in bin or any thing. how to store it
j somasekhar
|
|
|
|
|
|
hi thank you for ur concerning dude. and i need to store files in database. that files to be play when i click which it is.
any way thank you my dear.
|
|
|
|
|
how to take path of the image from a textbox and display the image on another form using asp.net
|
|
|
|
|
shwetha.bekal wrote: how to take path of the image from a textbox and display the image on another form using asp.net
There are various way to implement it. Either you can pass it as query string or you can store it in session variable.
|
|
|
|
|
Buy a book on ASP.NET, and read it. Try reading the forum rules, too.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
hi,
i am developing an ASP.NET video sharing site.
i want to make video files DRM protected so anyone can watch the downloaded videos only when logged into the website. videos can be watched online or saved and distributed by dvds, but the only way to watch should be the site authentication.
how can i do this?
thanks
|
|
|
|
|
i wud lik to take data read from a bar-code reader into my application and do the invetory manipulations , plz help
- Thanx in Advance.
|
|
|
|
|
Hi,
most barcode readers work by using keyboard emulation. If you press the button on your barcode scanner, the scanner will read the bar code and simulates a user input using the keyboard. You could place a texbox on your page, setting the focus on this texbox. Then the user uses the barcode scanner. This will put the barcode into the textbox. If the user presses a button, the input will be submitted to the application and you can handle it. (Or send the form automatically 2 seconds after the first input (done with js), this will avoid that the user has to press a button).
Does this help you?
Regards
Sebastian
|
|
|
|
|
Dear all
I am developing a website for a client in ASP.NET, Client wants to protect his webpages from copied. He asked me the following
1) Stop right click
2) Stop Context menu
3) Stop user saving and viewing source using "Save Page As" and "Page Source" in firefox. "Save As" and "view source" in internet explorer.
4) Stop taking print screen and saving it as image
In this i have accomplised the tasks 1 & 2 using javascript. is there any way to do the 3 & 4 tasks. If not possible please drop me the exact reason so i can make the client understand.
Thanks in advance
Regards
sc
|
|
|
|
|
I doubt 3 and 4 can be accomplished -- at least not in every browser.
And there is no way to completely protect the XHTML/CSS/JavaScript source (your serverside code is safe though, unless the server itself is compromised).
If someone has the will and know-how to get it, they will.
|
|
|
|
|
You can disable the menubars and tool bars using opendialog method.
If i were you, i would create a new startup page and use opendialog to launch the home page diabling the menu and tool bars.
|
|
|
|
|
rowdykuttan wrote: In this i have accomplised the tasks 1 & 2 using javascript.
And anyone can easily disable Javascript in the browser to undo that.
rowdykuttan wrote: is there any way to do the 3 & 4 tasks.
You might be able to accomplish part of task 3, but than can also easily be undone by simply requesting the page using some other program than the browser. All that is needed is a single line of code:
new WebClient().DownloadFile(url, fileName);
Anything that the browser can read can also be read by other programs, so there is no way that you can keep anyone from reading anything that you want to show on the web.
Task 4 is not possible at all using Javascript, as it's not a function in the browser, it's a function in the operating system.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
There is no way of preventing a web page being copied. The idea is that the source is easily accessible and trying to prevent the user from doing this won't really do anything, since the nature of the Internet is such that files that can be viewed in a web browser can be accessed by anyone.
Regards,
--Perspx
"A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year." -Andrew Tanenbaum
"Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer." -Fred Brooks
|
|
|
|
|
The simple answer is You can't.
Todd Smith
|
|
|
|
|
You think you've accomplished one and two. I guarentee you that I can get around it if I wanted to.
I suggest you shouldn't be taking clients if you can't answer their questions.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
The following sample will help you out for the points 1 and 4 for sure. Please try this and reply.
<html>
<head>
</head>
<!-- To disable Print Screen feature -->
<body onload=setInterval("window.clipboardData.setData('text','')",2) oncontextmenu="return false" onselectstart="return false">
Test Text
<!-- To disable right click in the web page -->
<script language=JavaScript>
function clickIE() {
if (document.all) {
return false;
}
}
function clickNS(e) {
if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS;
}
else{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")
</script>
<!-- To Disable Text Selection -->
<script>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
</html>
Thanks,
Rajdev K R
|
|
|
|
|
hi,
I have 2 dropdownlists-one for the selecting country and another for states.When I select a country from the first dropdownlist,the second dropdownlist should show the corresponding states to be selected.I want to do this without postback to the server.How can I do this?Should I use javascript and xml?Please,explain in detail with source code.
Regards,
Bill
|
|
|
|
|
hi dear. give database connections properly. when select the country then all fields in state will be selected. take different tables for states.
thank you
j somasekhar
|
|
|
|
|
You can use Ajax.
Use AjaxControlToolKit[^], where in you can place server side controls in UpdatePanel , and write serverside code.
Thus you can avoid postbacks.
I hope this helps you.
Cheers,
Sudhanva
|
|
|
|
|
store two tables data in some variables when page is loading.
then use javascript to change items in second dropdownlist.
here are steps:
1. store country and state data in two hidden fields, or two variables in JavaScript.
2. write function to change items in second dropdownlist.
...
Changing Select element content on the fly
[^]
Glad to discuss with you and best wishes.
|
|
|
|
|
The page that I am working on displays a set of readonly text boxes with databound values. The user may enter edit mode [achieved through javascript: TxtBox.removeAttribute("readOnly")], modify the value, then exit edit mode [again javascript: TxtBox.setAttribute("readOnly", "true")].
Now when this form is posted back, I want to read the modified value of the text boxes, but all I get is the original values. One possible way for me to do this is put an input type="hidden" corresponding to each texbox being displayed and then, set it's value when the user exits the edit mode of the textbox. This way, when the page is posted back, I can read the value of these hidden fields, instead of actual textboxes. But I don't think this is the right way - unnecessarily increasing the page size, because at times, there could be 100s of textboxes.
Is there another workaround? I am sure this is a common problem - I found many post, but no real solution. Any help is greatly appreciated.
Thanks, R
modified on Saturday, January 24, 2009 4:28 PM
|
|
|
|
|
SmartSpider wrote: Is there another workaround?
No, there is no workaround, there is, however, a way to use the controls correctly. Handle the TextChange event so you will get the updated value.
SmartSpider wrote: there could be 100s of textboxes.
You should rethink your UI design in this case.
only two letters away from being an asset
|
|
|
|