My prob is:
is there a way to disable imagebutton postback in order to execute only the clientside script when i click on the imagebutton, without reload the main page ?
how can i remove all style attribs unless the style collection has a count > 0. I have overriden the renderbegintag of the table i am using and i cannot access the style tags, it is being rendered by the writer but i dont want to override the HtmlTextWriter just to remove these aqttributes.
I have no idea about what your custom control looks like, so you might consider the AddAttributesToRender method as well. Does stuff get rendered depending on the client browser being used? or It always does this? I'm not sure what you mean by overriding the HtmlTextWriter, but you can override the Render method, uses another writer object internall inside in the control to render the control, and after you manage to remove the style attributes, you can send the result markup to the current writer object passed in as the method parameter.
I am looking for a few references on how to implement some basic client scripting for the treeview. All I really need to do is set the checked state of all client nodes to be the same as that of the highest parent clicked. There is the server side function which won't execute until postback. I would really like this to be on the client side. Thanks for any info.
I'm writing some code that will only be accessed by users of windows PC's on an intranet and I would like to be able to get thier windows login ID's to save them having to login twice (once for the system and once again for the web page).
Is it possible to retrive this via an ASP.NET page ?
I am using a repeater control bound to an objectdatasource. the objectdatasource has a slectmethod that brings back a list of product objects (wine in this case). Everything is hunky dory except when it comes to paging the repeater so that only x amount of priducts are shown.
I am using a tableadapter to get the info from the database into a dataset and then using a method to put that dataset into the list (which is being used by the objectdatasource).
Below is the code that inserts the info into the list. I figure this would be the easiest place to page by just saying that it must be bewtween certain indexes, however a datarow doesn't have an index
Public Shared Function testing1() As List(Of Wine)<br />
Dim objList As New List(Of Wine)<br />
Dim objTemp As New List(Of Wine)<br />
Dim tbl As Data.DataTable = WinesBLL.Testing()<br />
Dim row As Data.DataRow<br />
For Each row In tbl.Rows<br />
Dim objWine As New Wine(row("WineName"), row("WineryName"), row("WineVintage"))<br />
Return objList<br />
End Function<br />