Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii everyone ...

i m working on a silverlight application....

now i wish that if someone would redirect to other website..then browser history and cookies must be deleted..


plz help me in this direction...


looking forward for immediate solutions....
Posted

First of all, you should edit your post to add detail, your posting of 'answers' that add to your question, is very confusing when the site doesn't show posts in order by default, and has no threading.

Second, if you've been doing silverlight for less than a month, I assume you're not writing commercial code, so it doesn't matter if you achieve this or not. I would suggest you accept the answers you have been given and make a note of the result, for the day when you're paid to write silverlight code.
 
Share this answer
 
"its not about paid/unpaid code-writing ...its all about requirement..

people says printing is not supported in SL3 and you can't generate a XPS file.so that doesnt nean that i should stuck to their statements.

offcourse,there is always an alternative to achieve the same goal...and that what i was trying to do.."

1 - PLEASE edit your post, instead of posting non answers.

2 - yes, it's all about you accepting a requirement on a project without knowing if it's even possible. Real programmers don't do that, they know what they are talking about WHEN THEY TALK TO THE CLIENT

3 - SOMETIMES it's possible to hack together something that's not supported. But, sometimes you have to man up and tell your client you just plain had no idea when you said yes to something.
 
Share this answer
 
When asking a question like this, maybe consider this:

What if javascript or a browser plugin like Flash or Silverlight could just trash your browser history and cookies. Maybe not the security risk the ability to access files would be, but still sites could cause users inconvenience.

If they're your site's cookies, configure them properly so they expire.
 
Share this answer
 
Just you need to write a Javascript function to clear out cookies made by the site. Now from silverlight application, when you need to delete the cookies, just call that Javascript and clear out cookies.

Browser history cant be cleared using Javascript. :(

Check this If you want to know how to call a javascript method from Silverlight
http://timheuer.com/blog/archive/2008/03/09/calling-javascript-functions-from-silverlight-2.aspx[^]

Hope you will like this.
Cheers
:rose:
 
Share this answer
 
As far as I know, it may not be possible to clear the history from a silverlight application. Silveright runs in an isolated environment and does not have access to the system's file structure.

Things may change with Silverlight 4 though.


Also, you can edit your question rather than posting something in the answer section.
 
Share this answer
 
v2
Aashish, the problem for you will be accessing the registry using a SL application.

Once again, as far as I know, I dont think you can (always remember, a SL application runs in a sand boxed environment). You may want to go through this post as well [^].
 
Share this answer
 
v2
Silverlight 3 supports 'navigational frames'. I dont know if you can use frames to track your application's history separately from the browser one. You could have a look there.
 
Share this answer
 
"every lock has its key.....i guess der should also be some solution of my question."

Rubbish. People constantly ask questions here like 'how to use a fingerprint reader in ASP.NET' on these forums. I believe it's mostly clueless people, with clueless clients, who agree to stuff, then expect us to tell them how it's done. In the real world, some things are just not possible, ESPECIALLY when you're talking about stuff running in a browser, which is always sandboxed.
 
Share this answer
 
---------------------------------------------------------------------------
 
Share this answer
 
v3
suppose

My_Silverlight_application------------->>>other_websites..
|
|
|
|
Clients Browser history $ cookies must be deleted
 
Share this answer
 
v2
abhinav,i have gone thru some tuitorials part ...after that i got to know that accessing system registry this task can be done in a very seamless manner....

[assembly:RegistryPermission(SecurityAction.RequestMinimum,ViewAndModify="HKEY_CURRENT_USER")]

[assembly:RegistryPermission(SecurityAction.RequestMinimum,ViewAndModify="HKEY_CURRENT_USER\\SOFTWARE\\MICROSOFT\\INTERNET EXPLORER\\TYPEDURLS")]

[assembly: RegistryPermission(SecurityAction.RequestMinimum, ViewAndModify = "HKEY_CURRENT_USER\\SOFTWARE\\MICROSOFT\\INTERNET EXPLORER")]

adding above code will enable u 2 change access permissions to registry....


bt things stuck at a point will deleting index.dat,history.ini..etc...
 
Share this answer
 
every lock has its key.....i guess der should also be some solution of my question.
 
Share this answer
 
dear Abhinav....i m a newbie to silverlight.....


its just 15-20 days being working on silverlight....


if u could elaborate concept of "navigational frames"..i ll be enormously grateful to u
 
Share this answer
 
its not about paid/unpaid code-writing ...its all about requirement..

people says printing is not supported in SL3 and you can't generate a XPS file.so that doesnt nean that i should stuck to their statements.

offcourse,there is always an alternative to achieve the same goal...and that what i was trying to do..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900