but the issue im not applying css class for link im applying for the webpage for the corresponding link...ie when i click on the links respective webpages will be dispalyed and i have a panel in the first page
and for that css class is not getting applied...on initial load...
the thing i on click of the each link corresponding css class should be applied for the web page not for the link....
I've made a menu manually by creating linkbuttons, each time i click on a button, i get the rest of the items in this way. the menu was created in a MASTERPAGE!
item 1 subitem11
item 2 subitem12
item 3 subitem13
and if i click on item 2 - what was before disappears and i get the subitems for item 2. and its working great.
anyway, when i click on any of the items, i change the color of this item, then i Response.Redirect it to the desired page. when i redirect it to the page it loses all of the proporties i have set to this specific linkbutton. Is there anyway i can save those proporties each time i redirect to another page?
here is the C# code i've made:
We will start development on a new ASP.NET web application and I wonder what are the best options for implementing membership services nowadays. We want to be able to support other databases other than MS SQL and the application should be hosted "on the cloud" or "on premises" depending on customer whim. Also, it would be great to be able to authenticate against AD and LDAP.
Microsoft membership? WCF Authentication, Role and provider services? My own custom machinations? Your custom machinations.
I just want some input so I can understand what my software architect says.
My site is based on ASP.NET (C#) with sql server as the data source.
Create a table based on the data source and when data is changed on the data source (sql server) update
the client table, but only update the cell with the data the was changed and not all the table – no page refresh.
Let’s say that checking for updates happens every 10 seconds.
There should be no data manipulation by the client such as insert/update/delete.
It’s something like a stock ticker that only updates data when it’s needed and only the data the was changed.
There’re lots of technologies out there: Ajax, Comet, jQuery, Linq etc.. and I’m getting lost with a task that shouldn’t be so complicated.
Comet requires a constant connection between the client & server and can be trouble when working with lots of clients.
What the right way to go?
Can you point me to a sample of such grid?
Given these requirements you will need to use Ajax to make an out of band call to retrieve the database info. From there JQuery will help, though it isn't necessary, with updating the DOM if necessary. That's it. There are plenty of examples on Using AJAX.
and I’m getting lost with a task that shouldn’t be so complicated.
Before you start to learn how
to do the updates you need something
to update.Have you already done something
similar to this ?
1. Create aspx page
2. Add to it a GridView
3. Fill a dataset from sql query
4. Set the GridView data source to the
dataset and bind
After this you can add methods to
when data is changed on the data source (sql server) update
the client table, but only update the cell with the data the was changed and not all the table
You can use updatepanel or XmlHttpRequest Object
or even an iframe to get the new data from server
without a page refresh.
Once you have this data you can then compare it to
existing data to find changes then update only the
cells whose data has changed.
Do you have any working code now ? If not follow the
steps i have laid out asking for help as needed.
If you're using Visual Studio 2008 or Visual Web Developer 2008, you can see the tools for Ajax Extensions or if is 2005, look here[^]
then add the timer and an update panel like...
your content here
You add a trigger and that means that the content template of the update panel will update every Tick event for the Tmr_Update Control...
you can Add the interval of the update like
your replt is very helpfull and it's the base for what i'm doing.
insted of "your content here" i'm using a datagrid that updates.
but the tricky part is that i want to be able to update only the certain cell data that was changed and not the whole grid.
also there could be n grids on my page and i can't know on advance how mant grid should be, also during running more grids can be added.
currently every "Tmr_Update_Tick" i'm doing a merge between the current datatable and the new one that i'm getting from the DB.
how can i do cell update, maybe even highlight it when there's a change?
also use n grids when n is known before runung?
my code right now shows one grid with the current data and one grid with only the changes: .aspx
Hi! you could use jQuery highlight effect Here[^]. Is the first thing I think you can use in to Highlight a cell.
And try using a updatepanel in a
<itemtemplate><asp:updatepanel runat="server" id="UpdPnl_Test" updatemode="Conditional">
< div class="DivTest">< %#Eval("DataToUpdate")%>< /div>
< / ContentTemplate>
< asp:AsyncPostBackTrigger ControlID="Tmr_Update" EventName="Tick" / >
< / Triggers>
< / asp:UpdatePanel>
< / ItemTemplate>
< / asp:TemplateField>
and on the timer.tick event you must compare the last data and the new. and performing the jQuery event in which divs satisfy the condition of "diferent than last time" or something like that.
That would be hard men...
would be like < div... ...showHL='< %#Eval("UpdateThis")%>'> ...
and in the DataTable add a column with 'UpdateThis' to change (from false to true for example) in case that the last data changed too. And in script side you must select all divs that have changed every post back (or timer.tick)
I'm working on n-tier application and I want to use html controls, for example, instead of dropdownlist I'll use the select and instead of gridview I'll use a html table,
the problem that I could not fill them using sql query, and all the result of research on google there are php, if someone can help me in this level, thank you
Last Visit: 31-Dec-99 18:00 Last Update: 29-Jul-21 8:20