i have an repeater and show some records in repeater, but 1 column value has been changed in database.
Then i want to update that value in repeater without page load on every second.
how can i achieve it.
in vb.net
i have an repeater and show some records in repeater, but 1 column value has been changed in database.
Then i want to update that value in repeater without page load on every second.
how can i achieve it.
in vb.net
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Mar 10, 2024, 5:31 PM
Correcting ScriptManager registration: Instead of
ScriptManager.RegisterStartupScript, it's recommended to useClientScript.RegisterStartupScriptbecause ScriptManager is primarily used with UpdatePanel controls, which are not mentioned in the provided code.Correcting the AJAX call URL: The URL should be the path to the page method, not the ASPX page itself. So, it should be
"YourPageName.aspx/GetUpdatedData", not"samplePageName.aspx/GetUpdatedData".rupesh gourPosted Feb 12, 2024, 6:26 AM
Sir i have an repeater , bind 4 records each record have an different amount.
In other hand may be amount is changed in database by other aplicant, but current amount value is show as per at the time of bind repeater.
now i want to do amount is updated showing in all rows without page load.
now please suggest.
Jithu ThomasPosted Feb 12, 2024, 6:13 AM
@rupesh,
Kindly elabricate the entire problem. the provided request is not suffient to work with...
Regards,
rupesh gourPosted Feb 12, 2024, 6:09 AM
i have an repeater there is multiple record each record have different amount i want to set Amount with updated amount for each record in amount to show updated Please help me with code. coding on vb.net In repeater multiple row i want to update each row amount
Jithu ThomasPosted Feb 12, 2024, 5:52 AM
try changing the vb.net code as per the below snippet
rupesh gourPosted Feb 12, 2024, 5:08 AM
Sir i have an repeater , bind 4 records each record have an different amount.
In other hand may be amount is changed in database by other aplicant, but current amount value is show as per at the time of bind repeater.
now i want to do amount is updated showing in all rows without page load.
now please suggest.
Jithu ThomasPosted Feb 10, 2024, 12:44 PM
Make sure you include jQuery in your project. You can do this by adding the following script tag in your Master Page:
create a VB.NET page with a repeater and use AJAX to periodically update the specific column:
In your ASPX page, add the following JavaScript function:
Make sure to replace "SamplePageName" with the actual name of your ASPX page, and adjust the code based on your repeater structure and database schema.
rupesh gourPosted Feb 10, 2024, 11:26 AM
i want without page load.
Jithu ThomasPosted Feb 10, 2024, 10:11 AM
UpdatePanel and Timer on ASP.NET Page: Place an
UpdatePaneland aTimercontrol on your ASP.NET page. TheTimercontrol will trigger an asynchronous postback at specified intervals.Server-Side Code (VB.NET): Handle the
Timertick event to update the data source for the repeater.Client-Side Script (jQuery): Add a script block to periodically make an AJAX request to the server to check for updates.
Make the changes like this and try.!