I want to update the grid using the signal R. I have multiple tab. For one specific tab i want update the grid. I am unable to access the any session related value for tab or page.
Related
in asp.net
i create one web user control and create it online(dynamic load)
when i use it static,micro soft asp.net support it and hold all data after post back ,hold all data
but when i create by code and set id
lost data after any post back, reload data and set grids and drop down list is needed.
drop down list lost data and selected index.
how i can use asp.net dynamic web user control as static mode
i need hold all data
i use update panel and create my controls into a panel that placed in update panel
thanks
I want to display a online user indication in image item template of gridview inside a update panel which triggers by a timer in a certain time period. The image item template is getting image from a generic handler (.ashx) using a sql server database. the gridview is getting data from another sql server table which is inside an update panel as mentioned earlier. the problem is- when i login the main page from different browser (IE, Firefox,Chrome) in same pc the first browser which i login first, it is not displaying the latest user online indication. What should i do??? Plz help me.
I am Having two dropdowns. based on the selection of one the other dropdown must be filled. Using Ajax is one way but some times it takes time to load the second dropdown.
How to avoid this ?
Is any thing like i pull all the data and do all manipulations at client side and shown instead using server resource and ajax ?
You could preload several hidden dropdowns and then display the appropriate one when the first dropdown is selected.
you can preload all the values (assuming they are not too many, say <1000) and then populate the second dropdown with a script, not hitting the server again.
I have two problems:
I am trying to connect a form view that is inside the content section of an accordion. I choose my ObjectDataSource, configure it and drop it on the page with the designer. When I switch back to the code view there is no code at all for the ObjectDataSource connection. When I run the page the form view displays no data whatsoever. I even told the accordion that the datasource ID was Object DataSource and it errors out saying that it doesn't exist! Why is this happening?
I need to click a button and dynamically create a new accordion pane with a blank form view that can be filled out and update the database. Theoretically I need to be able to create as many new forms as needed. How can I accomplish this?
So i have an ASP.NET GridView control in which each column is a 'BoundField'. I did not create a TemplateField(ItemTemplate/EditItemTemplate), because i was planning on using JQuery to convert the BoundField row to a 'Edit' field by just converting the text in each cell to a textbox or textarea when that row was clicked. This is done all client side.
So far all the client side stuff works great. But I have a 'Save' button on each row of the grid that triggers an eventhandler on the server side. In that server side method, i try to grab values of that current row, but they are all the OLD cell values before I modified the fields/data using jquery/javascript.
When i iterate through each cell of the row, it's the same state as it was when it was rendered.
So what i'm trying to understand is. Why do all of this fancy javascript/jquery stuff when the state of the Grid stays exactly as it was when it was rendered when posting back to the server ?
someone please shed some light on this!!!
Thanks!
The GridView controls uses ViewState to persist its state between postbacks. When you do a postback it loads its previous state from the ViewState. Changes that you do via client-side Javascript are ignored. This is simply how the control works.
If you want to keep using the GridView control with inline editing, the easiest option would be to move to edit mode via a postback.
Another option is to have the fields in each row to begin with, only hidden. Then, you could show them via Javascript. You'll be able to access the values on the server.
Yet another option is not use a postback but an Ajax call, so that the grid is not re-rendered when you click the button. But that means you would have to manually collect the values from the grid via client-side code and pass it to the server.