472,378 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

ASP.Net with AJAX Textbox question

I'd like to have an AJAX textbox that after the user fills in, will
auto-fill another textbox on the page without having a postback
occur. It doesn't have to do any filtering or any other thing like
that. I'm fairly experienced with ASP.Net, but new to AJAX. Please
help if you can. Thanx.

May 14 '07 #1
6 3906
OJ
On 14 May, 14:59, HockeyFan <les.stock...@gmail.comwrote:
I'd like to have an AJAX textbox that after the user fills in, will
auto-fill another textbox on the page without having a postback
occur. It doesn't have to do any filtering or any other thing like
that. I'm fairly experienced with ASP.Net, but new to AJAX. Please
help if you can. Thanx.
Hi,
if you don't want a postback then don't use AJAX. The effect you are
looking for can be achieved through client Javascript if you want to
avoid a postback. On the other hand, if you are only looking to do a
PARTIAL postback, then use an AJAX updatepanel and the Trigger
functionality....I guess it depends on where the data for the 2nd
textbox is originating...

Hth,
OJ

May 14 '07 #2
On May 14, 9:03 am, OJ <ofe...@gmail.comwrote:
>
Hi,
if you don't want a postback then don't use AJAX. The effect you are
looking for can be achieved through client Javascript if you want to
avoid a postback. On the other hand, if you are only looking to do a
PARTIAL postback, then use an AJAX updatepanel and the Trigger
functionality....I guess it depends on where the data for the 2nd
textbox is originating...

Hth,
OJ
I thought the whole point of AJAX was client-side javascript. Am I
wrong about that? If so, then what is AJAX really and how does it
different from ASP.Net?

May 14 '07 #3
OJ
On 14 May, 15:23, HockeyFan <les.stock...@gmail.comwrote:
On May 14, 9:03 am, OJ <ofe...@gmail.comwrote:
Hi,
if you don't want a postback then don't use AJAX. The effect you are
looking for can be achieved through client Javascript if you want to
avoid a postback. On the other hand, if you are only looking to do a
PARTIAL postback, then use an AJAX updatepanel and the Trigger
functionality....I guess it depends on where the data for the 2nd
textbox is originating...
Hth,
OJ

I thought the whole point of AJAX was client-side javascript. Am I
wrong about that? If so, then what is AJAX really and how does it
different from ASP.Net?
hi,
yeah...it uses client side scripting to enable partial page postbacks
and partial page rendering. It stands for Asynchronous Java with XML.
If you don't want/need to postback to the server for information for
the second Textbox then you only need the "Java" bit of AJAX. If you
need data from the server you need the Async...with XML" bit!!

Basically, is the info you need for the 2nd textbox originating from
the server? If so, then use the AJAX updatepanel. If the information
is not on the server (for instance, it is calculated based on the
entry in the 1st textbox, then this can be done entirely client side
using Javascript only, hence no postback to the server). I hope this
is a bit clearer..

Regards,
Oliver

May 14 '07 #4
On May 14, 9:51 am, OJ <ofe...@gmail.comwrote:
On 14 May, 15:23, HockeyFan <les.stock...@gmail.comwrote:


On May 14, 9:03 am, OJ <ofe...@gmail.comwrote:
Hi,
if you don't want a postback then don't use AJAX. The effect you are
looking for can be achieved through client Javascript if you want to
avoid a postback. On the other hand, if you are only looking to do a
PARTIAL postback, then use an AJAX updatepanel and the Trigger
functionality....I guess it depends on where the data for the 2nd
textbox is originating...
Hth,
OJ
I thought the whole point of AJAX was client-side javascript. Am I
wrong about that? If so, then what is AJAX really and how does it
different from ASP.Net?

hi,
yeah...it uses client side scripting to enable partial page postbacks
and partial page rendering. It stands for Asynchronous Java with XML.
If you don't want/need to postback to the server for information for
the second Textbox then you only need the "Java" bit of AJAX. If you
need data from the server you need the Async...with XML" bit!!

Basically, is the info you need for the 2nd textbox originating from
the server? If so, then use the AJAX updatepanel. If the information
is not on the server (for instance, it is calculated based on the
entry in the 1st textbox, then this can be done entirely client side
using Javascript only, hence no postback to the server). I hope this
is a bit clearer..

Regards,
Oliver- Hide quoted text -

- Show quoted text -

Client-side only:
So if I can do it with Javascript, what do I put in my textbox control
to tell it to run the javascript? Is there any OnChange event or what
will I be hoping to invoke the javascript with from inside the
Asp:Textbox control?
May 14 '07 #5
OJ
On 14 May, 15:57, HockeyFan <les.stock...@gmail.comwrote:
On May 14, 9:51 am, OJ <ofe...@gmail.comwrote:


On 14 May, 15:23, HockeyFan <les.stock...@gmail.comwrote:
On May 14, 9:03 am, OJ <ofe...@gmail.comwrote:
Hi,
if you don't want a postback then don't use AJAX. The effect you are
looking for can be achieved through client Javascript if you want to
avoid a postback. On the other hand, if you are only looking to do a
PARTIAL postback, then use an AJAX updatepanel and the Trigger
functionality....I guess it depends on where the data for the 2nd
textbox is originating...
Hth,
OJ
I thought the whole point of AJAX was client-side javascript. Am I
wrong about that? If so, then what is AJAX really and how does it
different from ASP.Net?
hi,
yeah...it uses client side scripting to enable partial page postbacks
and partial page rendering. It stands for Asynchronous Java with XML.
If you don't want/need to postback to the server for information for
the second Textbox then you only need the "Java" bit of AJAX. If you
need data from the server you need the Async...with XML" bit!!
Basically, is the info you need for the 2nd textbox originating from
the server? If so, then use the AJAX updatepanel. If the information
is not on the server (for instance, it is calculated based on the
entry in the 1st textbox, then this can be done entirely client side
using Javascript only, hence no postback to the server). I hope this
is a bit clearer..
Regards,
Oliver- Hide quoted text -
- Show quoted text -

Client-side only:
So if I can do it with Javascript, what do I put in my textbox control
to tell it to run the javascript? Is there any OnChange event or what
will I be hoping to invoke the javascript with from inside the
Asp:Textbox control?- Hide quoted text -

- Show quoted text -
Hi,
(depending on the client browsers Javascript support) There are
javascript events for all html controls....

have a look here to get you started...

http://www.w3.org/TR/html4/interact/scripts.html

Like I said though, it really depends on what you want in your 2nd
textbox and how you want to get it. Perhaps if you expand on this a
bit more I can give you a more relevant response..
Regards,
OJ

May 14 '07 #6
On May 14, 10:02 am, OJ <ofe...@gmail.comwrote:
On 14 May, 15:57, HockeyFan <les.stock...@gmail.comwrote:


On May 14, 9:51 am, OJ <ofe...@gmail.comwrote:
On 14 May, 15:23, HockeyFan <les.stock...@gmail.comwrote:
On May 14, 9:03 am, OJ <ofe...@gmail.comwrote:
Hi,
if you don't want a postback then don't use AJAX. The effect you are
looking for can be achieved through client Javascript if you want to
avoid a postback. On the other hand, if you are only looking to do a
PARTIAL postback, then use an AJAX updatepanel and the Trigger
functionality....I guess it depends on where the data for the 2nd
textbox is originating...
Hth,
OJ
I thought the whole point of AJAX was client-side javascript. Am I
wrong about that? If so, then what is AJAX really and how does it
different from ASP.Net?
hi,
yeah...it uses client side scripting to enable partial page postbacks
and partial page rendering. It stands for Asynchronous Java with XML.
If you don't want/need to postback to the server for information for
the second Textbox then you only need the "Java" bit of AJAX. If you
need data from the server you need the Async...with XML" bit!!
Basically, is the info you need for the 2nd textbox originating from
the server? If so, then use the AJAX updatepanel. If the information
is not on the server (for instance, it is calculated based on the
entry in the 1st textbox, then this can be done entirely client side
using Javascript only, hence no postback to the server). I hope this
is a bit clearer..
Regards,
Oliver- Hide quoted text -
- Show quoted text -
Client-side only:
So if I can do it with Javascript, what do I put in my textbox control
to tell it to run the javascript? Is there any OnChange event or what
will I be hoping to invoke the javascript with from inside the
Asp:Textbox control?- Hide quoted text -
- Show quoted text -

Hi,
(depending on the client browsers Javascript support) There are
javascript events for all html controls....

have a look here to get you started...

http://www.w3.org/TR/html4/interact/scripts.html

Like I said though, it really depends on what you want in your 2nd
textbox and how you want to get it. Perhaps if you expand on this a
bit more I can give you a more relevant response..

Regards,
OJ- Hide quoted text -

- Show quoted text -
The user types something in the first textbox. I'd like that copied
to the second, but the user can change the second if they want. One
is a name field. The second is a legal name field.

May 14 '07 #7

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

Similar topics

4
by: Rob Meade | last post by:
Hi all, I played with my first bit of AJAX the other week and was pleasantly surprised that I achieved my goal..now I'd like to try something else.. Question... If I have an updatePanel,...
4
by: Grant Merwitz | last post by:
Hi I am trying to implement the Microsoft Ajax.NET extensions to perform a lookup on a key press of a text box. What this will do is once a user enters a letter into the textbox, this will...
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...
4
by: davidson1 | last post by:
Hai friends, I am doing project in ASP.NET(vb) , I have Installed the software Microsoft ASP.NET 2.0 AJAX Extensions My Question is I have 2 Textbox Regno:- Textbox1 Name :- Textbox2
2
by: =?Utf-8?B?Q2hyaXMgRmluaw==?= | last post by:
I have a general question regarding VS2008 and Ajax Toolkit 3.5. Currently I have a dropdownlist populated from the database. When the user selects and item, the OnSelectedIndexChanged event...
3
by: Cirene | last post by:
I have a simple page - 2 dropdowns, 2 textboxes. 1 set of dropdown/textbox is in the updatepanel. 1 set of dropdown/textbox is not. When I select a dropdown the textbox is updated with teh...
4
by: Peter | last post by:
ASP.NET I have an application which use ASP.NET Autocomplete extender which works great. But I have a question how to update all the fields on the screen using Ajax. Users starts typing in a...
8
by: cyqotiq | last post by:
First, let me state that this is not necessarily a Firefox problem, as I haven't fully tested in IE just yet. Second, let me state that this is not the typical "getElementById not working Firefox"...
3
by: SAL | last post by:
Hello, I'm using vs2005 and ajax exentions 1.0.61025.0. I have a page with a Gridview control that's inside of an update panel. I also have a DetailsView on this page inside of another update...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

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.