Showing posts with label names. Show all posts
Showing posts with label names. Show all posts

Wednesday, March 28, 2012

postback problem

i have asp.net web page,on page load i create a simple html table with fixed no of rows and no of columns and their names are determined dynamically.now i have few javascipt functions for adding a row to table,for adding another column to table and for removinga row from table.

also i have a asp:button on click of which a xml file is generated from the data filled in by user in the table.but as soon as i hit the asp button to generate xml all newley added rows and columns are deleated.Is it possible to call a server side function without posting the page back.

Yes, it is

take a look at this article about client scripts callbacks:

http://msdn.microsoft.com/msdnmag/issues/04/08/CuttingEdge/

Cheers,

Yani


hey went throught the article actually i mean new to all this so didnt get it completely some code help from ur side will be appriciated

actually i have a method on server side that accepts the html table parses it and writes the data of html table in a xml file.

and i want to call this method on click of a button and without postback.

thanx in advance

sandeep


Sorry man,

I haven't put the client scripts callbacks into practice yet too.

I was going to use them to create a dynamic progress bar, but then i've decided to use the ajax update panel.

It was much faster and cheaper.

Cheers,

Yani

Wednesday, March 21, 2012

problem in using atlas

I just installed Atlas and in VS.NET 2005 beta 2, I get this error:

Error 1 Unrecognized attribute 'appliesTo'. Note that attribute names are case-sensitive. (C:\AtlasWebSite\web.config line 53)
It seems it doesn't want the appliesTo keyword on web.config. Any suggestion?

Depending on the version of ASP.net you have, you can simply remove the "appliesTo" keyword and then the web.config will work.
Also, make sure you download the appropriate VSI file from this page:http://beta.asp.net/default.aspx?tabindex=7&tabid=47
Choose the VSI you want (either the Blank Project one, or the Hands on Lab one), and from there you can choose either the RTM version, or the Beta 2 version.
Thanks,
Eilon

Eilon :

the link you posted goes nowhere..asked to login..??No