Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

Monday, March 26, 2012

Strange error

Hello,

I'm getting an error "Invalid pointer" with a javascript in my code. The script was working just fine and I don't know what caused it to stop working. I'm executing the script in a button's click event handler, so I tried to execute instead a simple javascript:


private void Button1_Click(object sender, System.EventArgs e)

{
Response.Write("<script>alert('Hi');</script>");
}

I'm getting the same error!

what could be causing the problem?

ThanksThis isn't another of the wonderfull windows XP service pack 2 glitches is it?

http://msdn.microsoft.com/security/productinfo/XPSP2/default.aspx

Regards

Jeff
Hi Jeff,

no I haven't made any changes to my Windows XP instalation and at first the code was working fine. I made some changes to the code but nothing related to the javascript.

Regards
Hi again,

I found the answer in other threads, should have searched before I ask. The error ocurs after setting SmartNavigatoin to true.

It's great to have a place for getting help!

Thank you all !

Tuesday, March 13, 2012

strange problem on ASPX page--loose the WebUIValidation.js

for one page in my application something weird happens.

It shows this error.

Unable to find script library
'/aspnet_client/system_web/1_1_4322/WebUIValidation.js'.

then it turns black, doesn't show the header.ascx control and locks up the
site.

Any ideas.

No other pages seem to have problems finding this sucker.

I really need a fix for this.

Thanks,

Shanei've seen this problem before and if it only happens on this page and no
other page in the application (the preceeding must absolutely be true)

what you need to do is insert a new aspx page and copy your controls over to
this new page. Essentially you need to build a new page and cut and paste
the controls and code to this new form. Then rebuild the project. I've had
success but only if the condition above is met.

"SStory" <TheStorys@.TAKETHISSPAMBUSTEROUT.Softhome.net> wrote in message
news:u9Sk5r1kDHA.2232@.TK2MSFTNGP09.phx.gbl...
> for one page in my application something weird happens.
> It shows this error.
> Unable to find script library
> '/aspnet_client/system_web/1_1_4322/WebUIValidation.js'.
> then it turns black, doesn't show the header.ascx control and locks up the
> site.
> Any ideas.
> No other pages seem to have problems finding this sucker.
> I really need a fix for this.
> Thanks,
> Shane
Thanks Alvin.

Guess I'll have to try that. Seems there has to be an easier way of just
correcting something in the page, but...
Maybe a Microsoft person reading this can answer this issue in a better
manner for us all.

Thanks,

Shane

"Alvin Bruney" <vapordan_spam_me_not@.hotmail_no_spamhotmail.com> wrote in
message news:%23H$n7U4kDHA.424@.TK2MSFTNGP10.phx.gbl...
> i've seen this problem before and if it only happens on this page and no
> other page in the application (the preceeding must absolutely be true)
> what you need to do is insert a new aspx page and copy your controls over
to
> this new page. Essentially you need to build a new page and cut and paste
> the controls and code to this new form. Then rebuild the project. I've had
> success but only if the condition above is met.
> "SStory" <TheStorys@.TAKETHISSPAMBUSTEROUT.Softhome.net> wrote in message
> news:u9Sk5r1kDHA.2232@.TK2MSFTNGP09.phx.gbl...
> > for one page in my application something weird happens.
> > It shows this error.
> > Unable to find script library
> > '/aspnet_client/system_web/1_1_4322/WebUIValidation.js'.
> > then it turns black, doesn't show the header.ascx control and locks up
the
> > site.
> > Any ideas.
> > No other pages seem to have problems finding this sucker.
> > I really need a fix for this.
> > Thanks,
> > Shane