Hi. I have a side bar with a menu in an iframe, this sidebar is is very long (heigh). When I click on a button at the bottom of the menu, it reloads and gos up to the top. I want the srollbar to stay at the bottom when I click on this button. Can I somehow use the (not) IsPostBack on the button? How can I do this? Thanks! -- Evil geniuses for a better tomorrow --
_Searcher_
Posts
-
Scrollbar -
Java script in c#Hi I want to reload a page with a button. The page I wish to reload lies in an i frame, the button that I wish to use to reload lies in another i frame. I have this code in the *.aspx file and it works. The code lies behind a link, and I wish to have it behind a button. href="javascript:location.reload()" target="sub_top" can I use this code in code-behind? how do I do this? Thanks! -- Evil geniuses for a better tomorrow --
-
Converting an array list to double arrayHi I don't think that you understood me correctly, I'll try to explain it better this time. I want to get values from my db (that I have done). There are at the most 100 values, but there can also be less, but they are all in the same formate (numbers). I want to put theese number in to at double array so I can write them out in a graph. Thanks again!
-
Converting an array list to double arrayHi! I'm having some problems in my code. I want to get values from a datareader to a double[]. I have read the values to an array list, this is my code: int counter = 0; ArrayList al = new ArrayList(); while(dtr.Read()) { object[] values = new object[dtr.FieldCount]; dtr.GetValues(values); al.Add(values); counter = counter++; } If I write al it returns the correct values, but I can't get theese values in to a double. How can I do this? Is it maybe easier to put the values directly from the datareader to the byte array? Thanks!
-
Selecting one value from a cookieHello! I'm having some trouble geting one value (and only one) from my cookie, and would realy appreciate some help. This is my code: HttpCookie UserCookie; UserCookie = new HttpCookie( "strUserID" ); UserCookie.Values.Add("group", "1"); UserCookie.Values.Add("sim", "2"); Response.Cookies.Add( UserCookie ); How do I get only "group"? Thanks! -- Evil geniuses for a better tomorrow --
-
returning a datareaderThanks so much for the answers! It worked out great. I didnt try the data application block, but I will look in to that later!
-
returning a datareaderHello! I want to create a method that connects to a sql db and retrives some values. I want the connection in a method so I can reuse the code. My question is if I can return a data in the same way you return a string or int? And how do i do this?
-
Combining two db columns in one dropdown listThanks Suzanne! It worked great! :)
-
Combining two db columns in one dropdown listHi! I'm having a problem whit my page. I have a sql db, and I want to combine to columns, "lastname" and "firstname", from my "user" table. I want to put the the combined two colums in one dropdownlist. This is my sql query: SELECT DISTINCT u.UserID, Firstname, Lastname FROM [User] u, Course_User cu WHERE cu.UserID=u.UserID Does anyone have a suggestion on how i can solve this?