Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
AnswerRe: Attach to Process, how to do in C#? Pin
Douglas Troy8-May-06 8:50
Douglas Troy8-May-06 8:50 
QuestionClear a WebBrowser's History???? Pin
FoxholeWilly8-May-06 7:22
FoxholeWilly8-May-06 7:22 
AnswerRe: Clear a WebBrowser's History???? Pin
led mike8-May-06 7:51
led mike8-May-06 7:51 
GeneralRe: Clear a WebBrowser's History???? Pin
FoxholeWilly9-May-06 3:57
FoxholeWilly9-May-06 3:57 
GeneralRe: Clear a WebBrowser's History???? Pin
led mike9-May-06 7:04
led mike9-May-06 7:04 
GeneralRe: Clear a WebBrowser's History???? Pin
FoxholeWilly10-May-06 3:55
FoxholeWilly10-May-06 3:55 
AnswerRe: Clear a WebBrowser's History???? Pin
kalyanhere8-May-06 19:07
kalyanhere8-May-06 19:07 
QuestionEmbedded javascript not working. Pin
Loophole8-May-06 6:48
Loophole8-May-06 6:48 
I'm trying to get javascript to work from within a js file which is embedded into a custom control. I am able to get embedded style sheets and images in the same control to work fine. I have used reflector to verify that the .js file is there and has the correct path. I have tried three methods of referencing the js file in my OnPreRender method. I have used RegisterClientScriptInclude in conjunction with GetWebResourceUrl. I have used RegisterClientScriptResource. I have tried just setting up a LiteralControl with the script reference and adding it to the header, using GetWebResourceUrl to get the URL. In all these cases, the script tag is rendered on the page with a url that looks like this:

<script src="/control_test/WebResource.axd?d=kN16ZCatkm1MQ5JqEow-rFnxOlL1FcRrnlZIuw4pdq5WQtMe1QPxJ5N0g5Bj_QiVljlpuyQ3oGq1EsHpF2JdEw2&t=632826839637949892" type="text/javascript"></script>


but when I try to call a function from the file, I get an 'object expected' error. If I put http://localhost plus the url listed in the script tag into my browser, it returns a file called WebResource.axd which has the contents of the javascript file. It seems like if that is happening, then the browser should have access to the file. Could this be some type of mime type problem? I have the mime type in my AssemblyInfo.cs as text/javascript.

Jason
AnswerRe: Embedded javascript not working. Pin
Loophole8-May-06 8:24
Loophole8-May-06 8:24 
Questionmemory allocation Pin
torNAdE8-May-06 6:34
torNAdE8-May-06 6:34 
AnswerRe: memory allocation Pin
Judah Gabriel Himango8-May-06 6:40
sponsorJudah Gabriel Himango8-May-06 6:40 
GeneralRe: memory allocation Pin
torNAdE8-May-06 6:49
torNAdE8-May-06 6:49 
GeneralRe: memory allocation Pin
Judah Gabriel Himango8-May-06 7:06
sponsorJudah Gabriel Himango8-May-06 7:06 
GeneralRe: memory allocation Pin
Judah Gabriel Himango8-May-06 7:08
sponsorJudah Gabriel Himango8-May-06 7:08 
GeneralRe: memory allocation Pin
torNAdE8-May-06 7:16
torNAdE8-May-06 7:16 
GeneralRe: memory allocation Pin
Judah Gabriel Himango8-May-06 9:51
sponsorJudah Gabriel Himango8-May-06 9:51 
GeneralRe: memory allocation Pin
torNAdE8-May-06 13:35
torNAdE8-May-06 13:35 
QuestionAttaching C# project to running instance of the same project - Very Urgent Pin
kumar.bs8-May-06 6:18
kumar.bs8-May-06 6:18 
AnswerRe: Attaching C# project to running instance of the same project - Very Urgent Pin
Judah Gabriel Himango8-May-06 6:44
sponsorJudah Gabriel Himango8-May-06 6:44 
GeneralRe: Attaching C# project to running instance of the same project - Very Urgent Pin
kumar.bs8-May-06 6:57
kumar.bs8-May-06 6:57 
GeneralRe: Attaching C# project to running instance of the same project - Very Urgent Pin
Judah Gabriel Himango8-May-06 7:10
sponsorJudah Gabriel Himango8-May-06 7:10 
AnswerRe: Attaching C# project to running instance of the same project - Very Urgent Pin
leppie8-May-06 9:12
leppie8-May-06 9:12 
QuestionSerialization Exception Pin
sjdevo3gsr8-May-06 6:14
sjdevo3gsr8-May-06 6:14 
AnswerRe: Serialization Exception Pin
Judah Gabriel Himango8-May-06 6:37
sponsorJudah Gabriel Himango8-May-06 6:37 
AnswerRe: Serialization Exception Pin
sjdevo3gsr8-May-06 9:31
sjdevo3gsr8-May-06 9:31 

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.