473,396 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Ajax, ASP.NET question

Hi,
I have a question

this is very simple code:

<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text="Label"></
asp:Label>
<asp:Button ID="Button1" runat="server" Text="Button"
onclick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>

</div>
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
</form>

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

bye
Jan 19 '08 #1
2 1042
On Jan 19, 7:54*pm, "lazi...@gmail.com" <lazi...@gmail.comwrote:
Hi,
I have a question

this is very simple code:

*<form id="form1" runat="server">
* * <div>
* * * * <asp:ScriptManager ID="ScriptManager1" runat="server">
* * * * </asp:ScriptManager>
* * * * <asp:UpdatePanel ID="UpdatePanel1" runat="server">
* * * * * * <ContentTemplate>
* * * * * * * * <asp:Label ID="Label1" runat="server" Text="Label"></
asp:Label>
* * * * * * * * <asp:Button ID="Button1" runat="server" Text="Button"
onclick="Button1_Click" />
* * * * * * </ContentTemplate>
* * * * </asp:UpdatePanel>

* * </div>
* * <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
* * </form>

everything is fine, but is there any way to "call" the ajax using <a
href="">button</ainstend 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 <a href="__doPostBack.... which would
trigger a partial postback of the UpdatePanel

Check this link
http://encosia.com/2007/07/13/easily...ng-javascript/
Jan 19 '08 #2
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 <a href="__doPostBack.... which would
trigger a partial postback of the UpdatePanel

Check this linkhttp://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-jav...
ok, thx for answare, that helped me :)

bye
Jan 20 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I'm about to finally make the jump and start a new site using AJAX. THe question i have for all of you AJAX developers out there is which one? 1. The Standard AJAX frame work 2. The Tool kit....
2
by: =?Utf-8?B?VG9u?= | last post by:
Hello, I want to understand teh benefits of ajax technology. Does anyone has a good website where AJAX EXTENSIONS is worked out so I really understand it. There a 2 main questions: 1) How about...
2
by: Cirene | last post by:
3 quick questions... 1. Are the controls in the AJAX Futures download "beta" or the release and stable version? 2. Also, where is the best way to learn how to implement these? (Other than by...
6
by: Jonathan Wood | last post by:
Greetings, I'd like to implement some AJAX features on an existing ASP.NET site. I have one example of doing this but, otherwise, don't know much about it. I have one question, though, about...
22
by: sheldonlg | last post by:
I am looking for a clean solution to a problem that I solved in, what I call, a "dirty" way. Here is what I want to do. I have a dropdown list. Clicking on an item in the dropdown list invokes...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.