Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerRe: convert class into xml schema? Pin
led mike2-Jul-08 9:33
led mike2-Jul-08 9:33 
AnswerRe: convert class into xml schema? Pin
blackjack21502-Jul-08 23:02
blackjack21502-Jul-08 23:02 
QuestionDeserialize an object and write it to a file Pin
Member 34494422-Jul-08 7:34
Member 34494422-Jul-08 7:34 
AnswerRe: Deserialize an object and write it to a file Pin
leppie2-Jul-08 8:17
leppie2-Jul-08 8:17 
QuestionResizing DateTimePicker to fit max value text Pin
hpjchobbes2-Jul-08 5:42
hpjchobbes2-Jul-08 5:42 
AnswerRe: Resizing DateTimePicker to fit max value text Pin
KaptinKrunch2-Jul-08 6:51
KaptinKrunch2-Jul-08 6:51 
AnswerRe: Resizing DateTimePicker to fit max value text Pin
led mike2-Jul-08 7:15
led mike2-Jul-08 7:15 
QuestionNeed help running Javascript when my toolbar button is clicked [modified] Pin
marc2212-Jul-08 5:30
marc2212-Jul-08 5:30 
I am creating an IE toolbar and I need it to launch a javascript page when the toolbar button is clicked.

Below is the code that I am using and getting errors.

private void btnToolStrip_Click(object sender, EventArgs e)
{

// Launches the post window
Page.ClientScript.RegisterStartupScript(this.GetType(), "CustomButton", "<script language=JavaScript> window.open('http://hvkclncswsvr10.gign.kcl.mtec.mds.lmco.com/tachyon_proj/post/?item='" + content.document.location.href + "'&title='" + encodeURIComponent(document.title) + "','Tachyon Post','width=850,height=500,resizable=yes');</script>");

}

When i build this i get errors on the name Page, content, encodeURIComponent, and document. Is it possible to run the JS this way from a ToolStripButton clcik event or do I need to do it another way?

<div class="ForumMod">modified on Wednesday, July 2, 2008 11:48 AM</div>
AnswerRe: Need help running Javascript when my toolbar button is clicked Pin
benjymous2-Jul-08 22:37
benjymous2-Jul-08 22:37 
GeneralRe: Need help running Javascript when my toolbar button is clicked Pin
marc2213-Jul-08 3:04
marc2213-Jul-08 3:04 
QuestionFileSystemWatcher filter problem and how it works Pin
Xmen Real 2-Jul-08 5:24
professional Xmen Real 2-Jul-08 5:24 
AnswerRe: FileSystemWatcher filter problem and how it works Pin
KaptinKrunch2-Jul-08 6:45
KaptinKrunch2-Jul-08 6:45 
GeneralRe: FileSystemWatcher filter problem and how it works Pin
Xmen Real 2-Jul-08 7:02
professional Xmen Real 2-Jul-08 7:02 
GeneralRe: FileSystemWatcher filter problem and how it works Pin
KaptinKrunch2-Jul-08 7:23
KaptinKrunch2-Jul-08 7:23 
GeneralRe: FileSystemWatcher filter problem and how it works Pin
Xmen Real 2-Jul-08 7:27
professional Xmen Real 2-Jul-08 7:27 
QuestionHow to open a windows form window from an outlook mail Pin
sivasankar anumula2-Jul-08 4:56
sivasankar anumula2-Jul-08 4:56 
RantRe: How to open a windows form window from an outlook mail Pin
Spacix One2-Jul-08 5:03
Spacix One2-Jul-08 5:03 
AnswerRe: How to open a windows form window from an outlook mail Pin
PIEBALDconsult2-Jul-08 5:22
mvePIEBALDconsult2-Jul-08 5:22 
Questionneed answer Pin
Miss_hacker2-Jul-08 3:18
Miss_hacker2-Jul-08 3:18 
AnswerRe: need answer Pin
Simon P Stevens2-Jul-08 4:06
Simon P Stevens2-Jul-08 4:06 
AnswerRe: need answer Pin
KaptinKrunch2-Jul-08 6:55
KaptinKrunch2-Jul-08 6:55 
Questionhow to implement keyboard hotkeys to minimize an application & reopen it? Pin
WebMaster2-Jul-08 3:07
WebMaster2-Jul-08 3:07 
AnswerRe: how to implement keyboard hotkeys to minimize an application & reopen it? Pin
Xmen Real 2-Jul-08 5:30
professional Xmen Real 2-Jul-08 5:30 
AnswerRe: how to implement keyboard hotkeys to minimize an application & reopen it? Pin
Giorgi Dalakishvili2-Jul-08 8:18
mentorGiorgi Dalakishvili2-Jul-08 8:18 
QuestionOLE Objects & .Net Pin
euroUK2-Jul-08 3:06
euroUK2-Jul-08 3:06 

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.