Advertisement

03.20.2006 at 07:26PM PST, ID: 21781826
[x]
Attachment Details

1.1: VB.NET, getting nut over RegisterStartupScript()

Asked by Kelmen in Programming for ASP.NET

Tags: registerstartupscript, alert, submit

holy cow,

  I coding some adhoc stuff, trying to make a page to submit it-self using client script and RegisterStartupScript().
But the heck it give me REALLY WEIRED result!!!!

Me.RegisterStartupScript("test01", "<script lang='javascript'>document.forms[0].submit();</script>")

As simple as this, but the script never get rendered in the html!!! And so not working.

But if I change it to <script lang='javascript'>alert(document.forms[0]);</script>

It WORKED!!!!

is it somekind of ASP.NET security or something I need to shit-out about?

TIA
Start Free Trial
[+][-]03.20.2006 at 08:45PM PST, ID: 16243880

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 08:54PM PST, ID: 16243916

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 08:55PM PST, ID: 16243922

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 09:12PM PST, ID: 16243994

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming for ASP.NET
Tags: registerstartupscript, alert, submit
Sign Up Now!
Solution Provided By: aki4u
Participating Experts: 3
Solution Grade: C
 
 
[+][-]03.20.2006 at 09:14PM PST, ID: 16243998

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.20.2006 at 09:16PM PST, ID: 16244006

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 10:08PM PST, ID: 16244216

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 10:13PM PST, ID: 16244237

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 10:17PM PST, ID: 16244255

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 10:19PM PST, ID: 16244260

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 10:22PM PST, ID: 16244270

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 10:23PM PST, ID: 16244280

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 10:39PM PST, ID: 16244331

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.20.2006 at 10:40PM PST, ID: 16244336

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32