Click here to Skip to main content
15,894,955 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Newbie (but sort of advanced) Dependency Injection questions... Pin
Abhinav S6-Jun-11 2:36
Abhinav S6-Jun-11 2:36 
GeneralRe: Newbie (but sort of advanced) Dependency Injection questions... Pin
SledgeHammer016-Jun-11 6:58
SledgeHammer016-Jun-11 6:58 
AnswerRe: Newbie (but sort of advanced) Dependency Injection questions... Pin
James McConville6-Jun-11 3:39
James McConville6-Jun-11 3:39 
GeneralRe: Newbie (but sort of advanced) Dependency Injection questions... Pin
SledgeHammer016-Jun-11 6:53
SledgeHammer016-Jun-11 6:53 
GeneralRe: Newbie (but sort of advanced) Dependency Injection questions... Pin
James McConville6-Jun-11 22:21
James McConville6-Jun-11 22:21 
QuestionNeed to register click event for a Checkbox in side WPF Datagrid using MVVM Pin
Yogesh Jamkhindikar3-Jun-11 15:11
Yogesh Jamkhindikar3-Jun-11 15:11 
AnswerRe: Need to register click event for a Checkbox in side WPF Datagrid using MVVM Pin
Mycroft Holmes3-Jun-11 16:46
professionalMycroft Holmes3-Jun-11 16:46 
QuestionAttempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Vimalsoft(Pty) Ltd3-Jun-11 0:03
professionalVimalsoft(Pty) Ltd3-Jun-11 0:03 
Good Day All

i have an application that i use to test my example. i am creating a Cookie in Silverlight and access the Cookie in asp.net. In my example application works fine. The code for creating a Cookie is like this


private void SetCookies(string name, string value)
{
    // Call the SetCookie(name,value) JavaScript method
    string code = string.Format("document.getElementById('myIFrame').contentWindow.SetCookie('{0}','{1}')", name, value);
    HtmlPage.Window.Eval(code);
}


and in my Page load of the Silverlight Page i have this
HtmlElement iframe = (HtmlElement)radHtmlPlaceholder1.HtmlPresenter.Children[0];
// Set an ID to the IFrame so that can be used later when calling the javascript
iframe.SetAttribute("id", "myIFrame");



I am using it this way because i want to access a Cookie or a Value from Silverlight in asp.net. The Element "RadhtmlplaceHolder1" is a telerik control that is being used as described here [LINK]http://blogs.telerik.com/kirilstanoev/posts/11-05-10/reading_writing_cookies_with_htmlplaceholder_for_silverlight.aspx[/LINK]
i will not go to the aspx page where the Cookie is being accessed, but the problem comes when setting it in this line


HtmlPage.Window.Eval(code);



Attempted to read or write protected memory. This is often an indication that other memory is corrupt

Please note that this is on a SilverlightChild Window


Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

QuestionIs it possible to databind from a window.resources section? Pin
SledgeHammer012-Jun-11 6:37
SledgeHammer012-Jun-11 6:37 
AnswerRe: Is it possible to databind from a window.resources section? Pin
Ian Shlasko2-Jun-11 7:23
Ian Shlasko2-Jun-11 7:23 
GeneralRe: Is it possible to databind from a window.resources section? Pin
SledgeHammer012-Jun-11 7:34
SledgeHammer012-Jun-11 7:34 
QuestionSilverlight identification from server side Pin
bhavnvyas1-Jun-11 23:56
bhavnvyas1-Jun-11 23:56 
AnswerRe: Silverlight identification from server side Pin
Pete O'Hanlon2-Jun-11 0:57
mvePete O'Hanlon2-Jun-11 0:57 
AnswerRe: Silverlight identification from server side Pin
Abhinav S3-Jun-11 18:33
Abhinav S3-Jun-11 18:33 
QuestionHow to get new coordinates after a Rotation Pin
Suresh Suthar31-May-11 20:09
professionalSuresh Suthar31-May-11 20:09 
AnswerRe: How to get new coordinates after a Rotation Pin
_Maxxx_31-May-11 23:45
professional_Maxxx_31-May-11 23:45 
QuestionNeed Silverlight 3d chart Pin
Mikhael Ray Burton31-May-11 12:44
Mikhael Ray Burton31-May-11 12:44 
AnswerRe: Need Silverlight 3d chart Pin
BobJanova31-May-11 23:29
BobJanova31-May-11 23:29 
GeneralRe: Need Silverlight 3d chart Pin
Mikhael Ray Burton1-Jun-11 7:24
Mikhael Ray Burton1-Jun-11 7:24 
GeneralRe: Need Silverlight 3d chart Pin
BobJanova1-Jun-11 12:09
BobJanova1-Jun-11 12:09 
GeneralRe: Need Silverlight 3d chart Pin
BobJanova2-Jun-11 8:00
BobJanova2-Jun-11 8:00 
QuestionIEditableObject and WCF Pin
Mycroft Holmes30-May-11 17:32
professionalMycroft Holmes30-May-11 17:32 
AnswerRe: IEditableObject and WCF Pin
Pete O'Hanlon30-May-11 23:25
mvePete O'Hanlon30-May-11 23:25 
GeneralRe: IEditableObject and WCF Pin
Mycroft Holmes31-May-11 12:58
professionalMycroft Holmes31-May-11 12:58 
QuestionReading materials for WPF Pin
CodingLover30-May-11 2:29
CodingLover30-May-11 2:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.