Click here to Skip to main content
15,900,725 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to upload all files from source folder to web path. Pin
.NetRams1-May-07 23:03
.NetRams1-May-07 23:03 
GeneralRe: How to upload all files from source folder to web path. Pin
N a v a n e e t h1-May-07 23:14
N a v a n e e t h1-May-07 23:14 
GeneralRe: How to upload all files from source folder to web path. Pin
.NetRams1-May-07 23:59
.NetRams1-May-07 23:59 
QuestionHow to import excel sheet datas into mysql database Pin
vijay_831-May-07 18:39
vijay_831-May-07 18:39 
AnswerRe: How to import excel sheet datas into mysql database Pin
N a v a n e e t h1-May-07 21:17
N a v a n e e t h1-May-07 21:17 
Questionhow to store word document content into access database Memo field using Asp.net 2 Pin
maxiachun1-May-07 17:32
maxiachun1-May-07 17:32 
Questionneed help with my asp.net2 - javascipt Pin
neodeaths1-May-07 16:09
neodeaths1-May-07 16:09 
AnswerRe: need help with my asp.net2 - javascipt Pin
Psycho-*Coder*-Extreme1-May-07 16:57
Psycho-*Coder*-Extreme1-May-07 16:57 
Try this, in your button click event (or even in its open function) add
Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
	' Do some other processing...

	Dim sb As New StringBuilder()
	sb.Append("<script>")
	sb.Append("window.open('http://msdn.microsoft.com', '', '');")
	sb.Append("</scri");
	sb.Append("pt>")

	Page.RegisterStartupScript("test", sb.ToString())
End Sub


Then in your button

<asp:Button id="Button1" onclick="Button1_Click" runat="server" text="Go!"></asp:Button>


Make sure you add
Imports System.Text

To the top of your code behind as this uses the StringBuilder Class


" In the next millennium there are two kinds of business, those on the Internet and those out of business"
Bill Gates

"Be nice to nerds. Chances are you'll end up working for one."
Bill Gates

"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates

GeneralRe: need help with my asp.net2 - javascipt Pin
neodeaths1-May-07 18:09
neodeaths1-May-07 18:09 
GeneralRe: need help with my asp.net2 - javascipt Pin
Psycho-*Coder*-Extreme1-May-07 18:18
Psycho-*Coder*-Extreme1-May-07 18:18 
GeneralRe: need help with my asp.net2 - javascipt Pin
neodeaths1-May-07 18:23
neodeaths1-May-07 18:23 
GeneralRe: need help with my asp.net2 - javascipt Pin
Guffa1-May-07 21:20
Guffa1-May-07 21:20 
AnswerRe: need help with my asp.net2 - javascipt Pin
Spunky Coder1-May-07 19:46
Spunky Coder1-May-07 19:46 
AnswerRe: need help with my asp.net2 - javascipt Pin
Guffa1-May-07 21:23
Guffa1-May-07 21:23 
Questionfield validation in content pages Pin
hahii1-May-07 13:32
hahii1-May-07 13:32 
AnswerRe: field validation in content pages Pin
firozu3-May-07 1:26
firozu3-May-07 1:26 
Questionhow can I modify the content of a contentplaceholder Pin
rom901251-May-07 11:09
rom901251-May-07 11:09 
AnswerRe: Link within a Textbox Pin
StianSandberg1-May-07 10:34
StianSandberg1-May-07 10:34 
GeneralRe: Link within a Textbox Pin
Ibuprofen1-May-07 11:52
Ibuprofen1-May-07 11:52 
QuestionSecurity Exception Pin
deepaks31-May-07 8:37
deepaks31-May-07 8:37 
AnswerRe: Security Exception Pin
CharlyBrownx31-May-07 9:11
CharlyBrownx31-May-07 9:11 
GeneralRe: Security Exception Pin
deepaks32-May-07 8:49
deepaks32-May-07 8:49 
QuestionMaster Pages Pin
hahii1-May-07 8:18
hahii1-May-07 8:18 
QuestionProblem in using timer control in asp.net Pin
RohitRajPokhrel1-May-07 8:04
RohitRajPokhrel1-May-07 8:04 
AnswerRe: Problem in using timer control in asp.net Pin
CharlyBrownx31-May-07 9:16
CharlyBrownx31-May-07 9:16 

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.