Showing posts with label facing. Show all posts
Showing posts with label facing. Show all posts

Saturday, March 24, 2012

Paging using AJAX ASP.NET & DATAGRID

Hi all,

I am facing a problem ofPAGING in ajax with asp.net. I am not able to create paging on my web page. I have used update panel to view the data in datagrid.

I tried paging but its not working. Please suggest a solution to the above problem

Regards, Prem

Hi Prem,

I have a gridview and the Paging (WITHOUT causing postbacks) works just fine!

Did you check if all the callback options on the grid are disabled (enableSortingAndPagingCallbacks = false !!) ?
Then you just need to place it in an updatepanel.

If it still doesn't work, could you make me a (WORKING) demo with your grid which replicates the error/malfunction?

Kind regards,
Wim

Wednesday, March 21, 2012

parameters in a query string to a cascading combo box...

hi all.. i have 3 combo boxes working with the cascading extender.

the problem i facing is that the first combo data depends on an item from the query string...

since now the method is a web method, i dont have access to the querystring, (i can write the code, but it always returns nothing)...

any idea how can i catch this value? for the trace i made that's the only problem i'm having with it...

Might you be able to save the relevant information on the server in the page/session state and access it there from your web method?


hi there.. i don't understand what you mean...

Hi,
By save the relevant information on the server, means that instead of passing the value in the querystring, you could for example save what you need into a session variable (Session.Add("VariableName", Value) ... and then access it in your webservice...

 <WebMethod(EnableSession:=True)> _Public Function GetContent(ByVal contextKeyAs String)As String Dim TranslationAs String =""Dim langNbAs Integer = -999Try If (Session("ParamLang2") IsNotNothing)Then langNb =CInt(Session("ParamLang2"))End If Catch ExAs ExceptionEnd Try . . . . . . . . end function

well.. that's a good idea..

Thanks :)

Partial Page rendering Issues with AJAX 1.0

The partial page rendering is not working on the new release.Is anybody facing the same problem? what could be the reason ?

The EnablePartialRendering property is by default true. inspite of explicitly setting it to true also, the partial page rendering seems to be not working.

The parial rendering works fine in the RTM of ASP.Net Ajax 1.0, I have no problem with it. Can you be more specific what you are doing, maybe show some code, because if you have a ScriptManager on the page and not turn off partial rendering, it should work, but it depends on what attribute you have enabled on th UpdatePanel and how you use it etc. By default if you drag out a ScriptManager and UpdatePanel, the UpdatePanels content will be updated when a control inside the UpdatePanel do a postback (depends if you have several child controls etc inside the updatepanel, in that case it may not always be an update).