Ajax, ASP.NET question

Ajax, ASP.NET question

am 19.01.2008 19:54:47 von laziers

Hi,
I have a question

this is very simple code:







asp:Label>
onclick="Button1_Click" />







everything is fine, but is there any way to "call" the ajax using href="">button instend of clicking on the button control?

bye

Re: Ajax, ASP.NET question

am 19.01.2008 23:09:54 von lexa

On Jan 19, 7:54=A0pm, "lazi...@gmail.com" wrote:
> Hi,
> I have a question
>
> this is very simple code:
>
> =A0


> =A0 =A0

> =A0 =A0 =A0 =A0 =

> =A0 =A0 =A0 =A0

> =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Text=3D"Label"> > asp:Label>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 " Text=3D"Button"
> onclick=3D"Button1_Click" />
> =A0 =A0 =A0 =A0 =A0 =A0

> =A0 =A0 =A0 =A0

>
> =A0 =A0

> =A0 =A0 el>
> =A0 =A0
>
> everything is fine, but is there any way to "call" the ajax using > href=3D"">button instend of clicking on the button control?
>
> bye

Do you mean you don't want to do a postback, or you want to change a
look of the submit control? If you would add a LinkButton control
instead of the Button, you will see that the output you're getting on
the client is something about trigger a partial postback of the UpdatePanel

Check this link
http://encosia.com/2007/07/13/easily-refresh-an-updatepanel- using-javascript=
/

Re: Ajax, ASP.NET question

am 20.01.2008 09:50:38 von laziers

> Do you mean you don't want to do a postback, or you want to change a
> look of the submit control?
yes
If you would add a LinkButton control
> instead of the Button, you will see that the output you're getting on
> the client is something about
Index | Impressum | Datenschutz | XODOX