Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Silverlight
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 16-Dec-09 20:23pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 10

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 13

"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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 14

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 11

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. Frown | :(
 
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 | [Rose]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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 [^].
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 7

"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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 8

---------------------------------------------------------------------------
  Permalink  
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

suppose
 
My_Silverlight_application------------->>>other_websites..
|
|
|
|
Clients Browser history $ cookies must be deleted
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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...
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

every lock has its key.....i guess der should also be some solution of my question.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 9

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 12

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..
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 295
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,630
1 Sergey Alexandrovich Kryukov 7,022
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,525


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 18 Dec 2009
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100