|
You need to use Javascript for this, not C#. Suppose I wanted to view your webpage on a Linux distro - how would you stop me from viewing the source there?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
JavaScript it is , thanks. I will post it in the other forum.
|
|
|
|
|
khalil.kamel wrote: i should use jquery not C# code
Again, it's clear you are clueless. The odds of you writing code anyone would want to steal, are low. You CANNOT replace C# with jquery. Your C# code is the only thing that's secure here. It's on the server, and the user can't access it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
khalil.kamel wrote: Does any body has any suggestion?
Ask the person who did it
only two letters away from being an asset
|
|
|
|
|
I will do so but first i wanted to search before i ask thnx anyways
|
|
|
|
|
Well you can use JScript.Ecode[^] (MSDN[^] )but that really isn't very secure because anyone can decode it using the utility that is free from MS.
Once your JScript is encoded just set the Type on the script tag to "JScript.Encode"
But it will stop your know nothing users from getting the source of your JScript.
You should also put all your JS in a separate file and include it ... just another step for someone to decode it.
Another option would be to use AJAX to load all of your scripts and stuff, that way if the user views source they will only see the content that was originally sent to the browser and not anything AJAX has loaded.
The AJAX method is the best in my opinion but it could cause you to have to re-write your entire project to get rendered this way (read as PAIN IN THE A$$)
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
Don't know about Web Application however i encrypt windows appilcation using Java. If you wish i can give you a whole bunch of security keys.
|
|
|
|
|
OK, so you're actually in the wrong forum ?
You can't stop it. Forget about it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Well you can use JScript.Ecode[^] (MSDN[^])but that really isn't very secure because anyone can decode it using the utility that is free from MS.
Once your JScript is encoded just set the Type on the script tag to "JScript.Encode"
But it will stop your know nothing users from getting the source of your JScript.
You should also put all your JS in a separate file and include it ... just another step for someone to decode it.
Another option would be to use AJAX to load all of your scripts and stuff, that way if the user views source they will only see the content that was originally sent to the browser and not anything AJAX has loaded.
The AJAX method is the best in my opinion but it could cause you to have to re-write your entire project to get rendered this way (read as PAIN IN THE A$$)
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
Hi,
try 'Remotesoft Protector' or 'MaxtoCode'
modified 27-May-14 5:35am.
|
|
|
|
|
My computer is affected by a virus 'regsvr.exe' which slows down the machine by eating proccessors time. I have to explicitly kill it from the process tab in the task manager.
For this reason i want to create a executiable that would kill its process. Also specify how to put my executiable in the startup menu.
|
|
|
|
|
Why not just clean the virus off your machine? and remember to practice safe computing in the future.
only two letters away from being an asset
|
|
|
|
|
Ishaan Karnik wrote: For this reason i want to create a executiable that would kill its process. Also specify how to put my executiable in the startup menu
I would rather use a anti virus to do this.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You can use this:
System.Diagnostics.Process.Start("tskill", "regsvr");<
But it much beter to use anti-virus to remove the virus or any other viruses.
|
|
|
|
|
I don't have a anti-virus software installed currently and the virus is not letting the anti-virus software install one.
|
|
|
|
|
Well this will do the job then:
System.Diagnostics.Process.Start("tskill", "regsvr");
|
|
|
|
|
Hi,
// you can kill process by PID
Process p= Process.GetProcessById(PID);
p.Kill();
modified 27-May-14 5:33am.
|
|
|
|
|
Hello
i am creating a Window based application having a button publish
a document is prepared containing Text,graphics audio Vedio. When a publish button is clicked the selected document is connerted into its Web Equivelent form
i do not have any idea about this how can i achive it
give me some Sugestion and steps to achive it
|
|
|
|
|
Is this a homework assignment or a work task? In either case we are not here to do your work for you. Try something, then ask questions about what you don't understand.
only two letters away from being an asset
|
|
|
|
|
santosh_anu wrote: i do not have any idea about this how can i achive it
your options are,
1 - think it over, and try to it yourself
2 - hire someone to do it for you.
You can't just tell us what you want and sit back while we write it for you
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
sorry to annoy you Christian Graus and Mark Nischalke
you took me wrong
actually im absolutely new user of .net ,don't have much experiance about its all advance features
i just wanted guidelines not the exact code .
i made a rough layout to achive this is generate a Xml equivelent file at bckend Which store all information about The Window form as the operation perform With form
but i have no idea Where to Write Xml Parsing file
|
|
|
|
|
Im not so clear about your description
try this:
first, copy what you selected to Clipboard.
second, paste it to web equivelent form.
Hope it's helpful
modified 27-May-14 5:33am.
|
|
|
|
|
hello
the publish button code i Want to include in my project i have an idea for that i want to use
1. generate the xml eqivelent form of Windows form (For Xml parsing)
after that i tranform this xml code to its Web eqivelent code
but how can i generate Xml equivelent code for each form
|
|
|
|
|
i try to use xml parsing for the code to publish butto
but do not have much idea about it
so if you links releated to this topic or any good book for xml parsing then sugest me the name
|
|
|
|
|
Hey All,
I know this is the C# forum, but there isn't a Crystal forum.
I am building a very simple report in a table format but i need the details section to repeat (even with empty data) to the end of the page.
For example;
If only 3 records are returned from the database I need empty rows to fill the rest of the page until the page / report footer.
I have tried setting the "Print at bottom of page" on the report footer, but all it does is stretch the last details section to the bottom of the page (not repeating but stretching) so the whole table look goes out the window and I'm left with an ugly report.
Any help or input will be greatly appreciated.
Oh yeah, I'm using the report designer in Visual Studio 2008 so I think it's Crystal X but all it says in about is "Crystal Reports for Visual Studio 2008" so i could be wrong.
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|