Click to See Complete Forum and Search --> : No PostBack on Button click


Martin_SBT
July 26th, 2006, 05:25 PM
webform contain couple of textboxes within panels and a server control button.

when i click on my server control button on my webform, my code retrieves new information from a collection and the the texboxes are updated with that new infos.

Now, the anoying thing is that each time i click on the button the enire page reloads including panels, textboxes and so on...

I would like my app to be more fluid, so when the user click on the button, he just see the content of the textboxes being updated!! Is this doable??

Or am i just too demanding? :confused:

Please help

Martin

mmetzger
July 26th, 2006, 06:27 PM
Look at Atlas - it's an AJAX implementation for .net which could do what you want.

hedge_fund
July 27th, 2006, 08:06 PM
If you only wish to update the text in a textbox, you can use a simple javascript:

Something like below


function setBoxText(newText)
{
ctrlName.value = newText;
}


and in the OnButtonClick clientside event, point it to this function with the text you wish to set the value to.

Shuja Ali
July 28th, 2006, 02:37 AM
You are actually talking about Ajax as posted by mmetzger. What version of .NET are you using?

Here is a place where you can find lot of information about Atlas.NET
http://atlas.asp.net/Default.aspx?tabid=47