Showing posts with label call. Show all posts
Showing posts with label call. Show all posts

Saturday, March 31, 2012

Server Side code withoout page refresh

Is it possible if I can call server side code without the page
refreshing?

Thanks,

SeanShort answer : no, if it's a postback.
On the first call, yes, of course.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
<seanmle@.gmail.com> wrote in message news:1140807565.766741.128340@.v46g2000cwv.googlegr oups.com...
> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
yes. the techinque is call AJAX. google for toolkits. also asp.net 2.0 has a
very simple (feature wise) implementation for IE.

-- bruce (sqlwork.com)

<seanmle@.gmail.com> wrote in message
news:1140807565.766741.128340@.v46g2000cwv.googlegr oups.com...
> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
Yes.
You can use Remote Scripting callbacks (often now referred to as "AJAX").
This normally involves using XmlHttp from the client - side page DOM to make
a call into the server-side page and call a method on it, returning the
results as either javascript, JSON, or HTML which is used to update the DOM
at the client.

The new Atlas Framework does this for ASP.NET 2.0. You could also look at
Anthem.Net and MagicAJax.net over on Sourceforge.net if you are interested in
using a whole "framework" for this type of operation.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com

"seanmle@.gmail.com" wrote:

> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
>
Here you can find a comparison of AJAX frameworks, that allow page
updates with AJAX without reloading the whole page:
http://www.daniel-zeiss.de/AJAXComparison/Results.htm

Some frameworks allow roundtrips with ASP.NET server events without
updating any page content.
re:
>> Is it possible if I can call server side code without the page refreshing?
> yes. the techinque is call AJAX.

Sure, although you're still posting back...just not the whole page.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Bruce Barker" <brubar_nospamplease_@.safeco.com> wrote in message
news:e9I1uAYOGHA.3888@.TK2MSFTNGP10.phx.gbl...
> yes. the techinque is call AJAX. google for toolkits. also asp.net 2.0 has a very simple (feature
> wise) implementation for IE.
> -- bruce (sqlwork.com)

> <seanmle@.gmail.com> wrote in message news:1140807565.766741.128340@.v46g2000cwv.googlegr oups.com...
>> Is it possible if I can call server side code without the page
>> refreshing?
>>
>> Thanks,
>>
>> Sean

Server Side code withoout page refresh

Is it possible if I can call server side code without the page
refreshing?
Thanks,
SeanShort answer : no, if it's a postback.
On the first call, yes, of course.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
<seanmle@.gmail.com> wrote in message news:1140807565.766741.128340@.v46g2000cwv.googlegroups
.com...
> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
>
yes. the techinque is call AJAX. google for toolkits. also asp.net 2.0 has a
very simple (feature wise) implementation for IE.
-- bruce (sqlwork.com)
<seanmle@.gmail.com> wrote in message
news:1140807565.766741.128340@.v46g2000cwv.googlegroups.com...
> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
>
Yes.
You can use Remote Scripting callbacks (often now referred to as "AJAX").
This normally involves using XmlHttp from the client - side page DOM to make
a call into the server-side page and call a method on it, returning the
results as either javascript, JSON, or HTML which is used to update the DOM
at the client.
The new Atlas Framework does this for ASP.NET 2.0. You could also look at
Anthem.Net and MagicAJax.net over on Sourceforge.net if you are interested i
n
using a whole "framework" for this type of operation.
Peter
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"seanmle@.gmail.com" wrote:

> Is it possible if I can call server side code without the page
> refreshing?
> Thanks,
> Sean
>
Here you can find a comparison of AJAX frameworks, that allow page
updates with AJAX without reloading the whole page:
http://www.daniel-zeiss.de/AJAXComparison/Results.htm
Some frameworks allow roundtrips with ASP.NET server events without
updating any page content.
re:
> yes. the techinque is call AJAX.
Sure, although you're still posting back...just not the whole page.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Bruce Barker" <brubar_nospamplease_@.safeco.com> wrote in message
news:e9I1uAYOGHA.3888@.TK2MSFTNGP10.phx.gbl...
> yes. the techinque is call AJAX. google for toolkits. also asp.net 2.0 has
a very simple (feature
> wise) implementation for IE.
> -- bruce (sqlwork.com)
> <seanmle@.gmail.com> wrote in message news:1140807565.766741.128340@.v46g200
0cwv.googlegroups.com...

Thursday, March 29, 2012

server side kepress event on textbox

HI There,
I have a webform and I am wanting to call a function from a textbox control
located on the webform when a key is pressed. Can this be done in server sid
e.
already know do like this
on ASPX page within javascript tags
<script laguage=javascript>
function trapKeypress() {
alert (window.event.keyCode);
}
</script>
and in .vb page of the .aspx page ..'
textbox1.attributes.item("onkeypress") = "javascript:trapKeypress();"
Can I do it without using JavaScript .
RegardsYou can submit the form in trapKeypress(). This will cause a postback and
you can pass to the server a sort of info telling what exactly caused the
postback. This will resemble a server event. You can't avoid using
javascript on the client side. How can server know what is happening in the
browser?
Eliyahu
"Raed Sawalha" <RaedSawalha@.discussions.microsoft.com> wrote in message
news:1D18DAD2-5F54-4F85-8E27-8F63BB1F3B7E@.microsoft.com...
> HI There,
> I have a webform and I am wanting to call a function from a textbox
control
> located on the webform when a key is pressed. Can this be done in server
side.
> already know do like this
> on ASPX page within javascript tags
> <script laguage=javascript>
> function trapKeypress() {
> alert (window.event.keyCode);
> }
> </script>
> and in .vb page of the .aspx page ..'
> textbox1.attributes.item("onkeypress") = "java script:trapKeypress();"
> Can I do it without using JavaScript .
> Regards

server side kepress event on textbox

HI There,

I have a webform and I am wanting to call a function from a textbox control
located on the webform when a key is pressed. Can this be done in server side.
already know do like this

on ASPX page within javascript tags
<script laguage=javascript>
function trapKeypress() {
alert (window.event.keyCode);
}
</script
and in .vb page of the .aspx page ..'
textbox1.attributes.item("onkeypress") = "javascript:trapKeypress();"

Can I do it without using JavaScript .

RegardsYou can submit the form in trapKeypress(). This will cause a postback and
you can pass to the server a sort of info telling what exactly caused the
postback. This will resemble a server event. You can't avoid using
javascript on the client side. How can server know what is happening in the
browser?

Eliyahu

"Raed Sawalha" <RaedSawalha@.discussions.microsoft.com> wrote in message
news:1D18DAD2-5F54-4F85-8E27-8F63BB1F3B7E@.microsoft.com...
> HI There,
> I have a webform and I am wanting to call a function from a textbox
control
> located on the webform when a key is pressed. Can this be done in server
side.
> already know do like this
> on ASPX page within javascript tags
> <script laguage=javascript>
> function trapKeypress() {
> alert (window.event.keyCode);
> }
> </script>
> and in .vb page of the .aspx page ..'
> textbox1.attributes.item("onkeypress") = "javascript:trapKeypress();"
> Can I do it without using JavaScript .
> Regards

Saturday, March 24, 2012

Server was unable to process request. --> Array cannot be null...

Hello,
I am trying to call a simple web service from .net environment. The service
gets an array parameter. When I run it, it becomes the error:
Server was unable to process request. --> Array cannot be null. Parameter
name: bytes
I am sure that my array is not null. Besides, its name isn't "bytes".
What is wrong with it?
Regards..Have you tried using the debugger to step through the code and see
where the exception occurs? Did the error message include a stack
trace with line numbers? Something is null when it shouldn't be,
you'll have to find it.
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 15 Mar 2005 09:28:04 +0200, "Diner" <dincer"AT"o2.pl> wrote:

>Hello,
>I am trying to call a simple web service from .net environment. The service
>gets an array parameter. When I run it, it becomes the error:
>Server was unable to process request. --> Array cannot be null. Parameter
>name: bytes
>I am sure that my array is not null. Besides, its name isn't "bytes".
>What is wrong with it?
>Regards..
>
I can't do it, because I get the error in the production environment. It
works fine on test environment...
"Scott Allen" <scott@.nospam.odetocode.com> wrote in message
news:8h0e31pp1k11odv79slg0bpqhu6c6kioae@.
4ax.com...
> Have you tried using the debugger to step through the code and see
> where the exception occurs? Did the error message include a stack
> trace with line numbers? Something is null when it shouldn't be,
> you'll have to find it.
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
> On Tue, 15 Mar 2005 09:28:04 +0200, "Diner" <dincer"AT"o2.pl> wrote:
>
service
>
On Tue, 15 Mar 2005 19:44:49 +0200, "Diner" <dincer"AT"o2.pl> wrote:

>I can't do it, because I get the error in the production environment. It
>works fine on test environment...
>
Try to build with debugging information included and get a stack trace
with line numbers. Or try putting some trace statements inside. A
little more information makes tracking down the source of the
information easier. Once you have some information you can review the
code and see what could be going wrong.
http://odetocode.com/Blogs/scott/ar.../01/24/963.aspx
Scott
http://www.OdeToCode.com/blogs/scott/

Server was unable to process request. --> Array cannot be null...

Hello,

I am trying to call a simple web service from .net environment. The service
gets an array parameter. When I run it, it becomes the error:

Server was unable to process request. --> Array cannot be null. Parameter
name: bytes

I am sure that my array is not null. Besides, its name isn't "bytes".

What is wrong with it?

Regards..Have you tried using the debugger to step through the code and see
where the exception occurs? Did the error message include a stack
trace with line numbers? Something is null when it shouldn't be,
you'll have to find it.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 15 Mar 2005 09:28:04 +0200, "Diner" <dincer"AT"o2.pl> wrote:

>Hello,
>I am trying to call a simple web service from .net environment. The service
>gets an array parameter. When I run it, it becomes the error:
>Server was unable to process request. --> Array cannot be null. Parameter
>name: bytes
>I am sure that my array is not null. Besides, its name isn't "bytes".
>What is wrong with it?
>Regards..
I can't do it, because I get the error in the production environment. It
works fine on test environment...

"Scott Allen" <scott@.nospam.odetocode.com> wrote in message
news:8h0e31pp1k11odv79slg0bpqhu6c6kioae@.4ax.com...
> Have you tried using the debugger to step through the code and see
> where the exception occurs? Did the error message include a stack
> trace with line numbers? Something is null when it shouldn't be,
> you'll have to find it.
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
> On Tue, 15 Mar 2005 09:28:04 +0200, "Diner" <dincer"AT"o2.pl> wrote:
> >Hello,
> >I am trying to call a simple web service from .net environment. The
service
> >gets an array parameter. When I run it, it becomes the error:
> >Server was unable to process request. --> Array cannot be null. Parameter
> >name: bytes
> >I am sure that my array is not null. Besides, its name isn't "bytes".
> >What is wrong with it?
> >Regards..
On Tue, 15 Mar 2005 19:44:49 +0200, "Diner" <dincer"AT"o2.pl> wrote:

>I can't do it, because I get the error in the production environment. It
>works fine on test environment...

Try to build with debugging information included and get a stack trace
with line numbers. Or try putting some trace statements inside. A
little more information makes tracking down the source of the
information easier. Once you have some information you can review the
code and see what could be going wrong.

http://odetocode.com/Blogs/scott/ar.../01/24/963.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

server.execute - can i call a perl script on another server ?

How can I call a perl script from my asp.net page and get back the results ?

What problem have you had when you tried?

Jeff