Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net > november 2007 > threads for friday november 2

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

ASP.NET paging and return value
Posted by mazdotnet at 11/2/2007 7:45:24 PM
Hi guys, I can't figure out why this is not working? I need to display all the rows for a given query for a given page index (ex. row 10..20) and the total number of rows. I got the first part to work. However, when I added the return parameter value, the first part is empty but I do get tota...more >>


View State Error
Posted by Ritu at 11/2/2007 6:58:41 PM
Hi, I get a viewstate error on my machine when trying to load a page with grids. The error is The viewstate is invalid for this page and might be corrupted. The bizzare part is that the error occurs only one my machine. There are other developers working on the same piece of code and same...more >>

Global variables
Posted by PokerMan at 11/2/2007 5:35:30 PM
Hey guys Can people give me their views on this. When i make a cs class file for my asp.net app i cant use Application objects for my globals? But if i was to make a singleton class say and call it MyGlobals and load all my global vars into it at the start and then access this, any of m...more >>

How set Calendar defaultdate in FormView
Posted by Cirene at 11/2/2007 4:57:08 PM
I have a formview control. When the user goes into insert mode I want to set the Calendar to today's date. How can I accomplish this? I know it's probably only 1 or 2 lines of code. I tried this, but it doesn't work.. Protected Sub FormView1_ModeChanging(ByVal sender As Object, ByVa...more >>

Async Upload Control
Posted by PJ on Development at 11/2/2007 3:49:38 PM
Greetings, I'm just writing to announce that I've just uploaded an Asynchronous Upload Control in my website, and I'd like some feedback about it. The control was built for a project I'm currently working on and it's pretty self explanatory. Please take a look and feel free to leave comme...more >>

Confused by ViewState
Posted by msch-prv NO[at]SPAM bluewin.ch at 11/2/2007 3:41:25 PM
This is a very elementary problem but it'is really confusing me. To summarize, I have a simple textbox on a page with some data. After post-back, the textbox contents show up fine. When I attempt to read the textbox contents during the Pre-render event however, I get nothing. (Note that the t...more >>

GridView and Thumbnails
Posted by Jim McGivney at 11/2/2007 3:02:23 PM
In a VWD project I have a folder that contains images that users have uploaded. On the aspx page I have a GridView that displays information from a table in a database. The table contains the paths and filenames of each of the images. I would like to add a column to the GridView to display ...more >>

Method not found: 'System.Collections.Generic.Dictionary`2
Posted by Monty at 11/2/2007 2:51:45 PM
[vs2005, ASP.Net, VB.Net, XP SP2] I have a bit of common code that I've been using for a while to return a dictionary collection of dataobjects. I've made some changes to it and other areas of the project, and suddenly I am getting this error (below) whenever I call it. My changes were smal...more >>



"Stopping" A DataList
Posted by Barrie Wilson at 11/2/2007 1:55:44 PM
How can I arbitrarily terminate iteration in a DataList or Repeater? I'm thinking along these lines: protected void DataList1_OnItemDataBound(object sender, DataListItemEventArgs e) { myRowCount++; if (myRowCount > 200) { // cancel the iteration ... but how? ...more >>

HttpWebRequest proxy problem
Posted by SushiSean at 11/2/2007 1:55:38 PM
Hello, I have some code which use HttpWebRequest class and I see by default it use IE proxy settings. It means If I will not put any proxy this class get IE proxy and use it. How turn this off? Can I use some global settings in code force this class don't use IE by default?...more >>

Search through data returned from stored procedure
Posted by CSINVA at 11/2/2007 1:55:04 PM
I have a stored procedure that returns columns from a table called UserProfile. Within the table, it has a column called ProfielD, PropertyValue, Visitbility. I need to be able set the values returned to a variable to be used later. Here is an example of the data without filtering stored proc...more >>

Fire Event
Posted by shapper at 11/2/2007 1:53:34 PM
Hello, I have two custom controls: Parent and Child. I added Child to Parent. How can I from Child control make a custom Parent event to fire? Thanks, Miguel ...more >>

div onmouseout event help
Posted by rodchar at 11/2/2007 1:36:23 PM
hey all, i have a div on my page that has controls on it. i trying to use the onmouseout event and everytime i mouse over a control that's in the div the event runs. is there a way around this? (to exclude the controls inside the div as mouseout? thanks, rodchar...more >>

CSS positioning cross-browser (well IE, FF)
Posted by celoftis at 11/2/2007 1:29:38 PM
I've got html page with has a fixed height - there are five buttons on the page. The page has a fixed, known height - but the width can change. The five buttons should be arranged on the page as follows (all buttons should always be 3px from the top): "button1" - left edge always 3px from left...more >>

Using CDO.Message - ReadOnly errors
Posted by CSINVA at 11/2/2007 1:11:16 PM
I'm trying to resolve some error message I'm getting from this code: Property "To" is "ReadOnly" objEmail.To = sUserEmail Proeprty "CC" is "ReadOnly" objEmail.CC = pUserEmail ---- CODE-------- Protected Sub SendEmail(ByVal sender As Object, ByVal e As System.EventArgs) 'S...more >>

Find Control
Posted by shapper at 11/2/2007 12:59:28 PM
Hello, I have a custom control, MyCustomControl, with a property named Childs of type Generic.List(Of MyChildControl). I added a MyCustomControl to my page and added a few MyChildControls to MyCustomControl Child properties. How can I later find a MyChildControl in Childs given its ID? ...more >>

Label won't display when modified in code behind
Posted by AlBruAn at 11/2/2007 12:46:03 PM
I have a label control on my form I'm using the same way a label is used with a validator control; the reason for this is lost somewhere in antiquity at my employer. Anyway, I do a substantial amount of client-side data validation via JavaScript, setting the Text property of the label to some...more >>

Row height of GridView
Posted by rkbnair at 11/2/2007 12:33:08 PM
How can I decrease the height of a gridview control? I modified the values in the stylesheet as given below ..gridview tr.even td,.detailsview tr.even td{ background: #FFFFFF; height:50px; However, the row height is not reduced after 50PX. Thanks. -- test...more >>

Custom Repeater Class
Posted by Shannon Carver at 11/2/2007 12:04:46 PM
I'm trying to create my own extended repeater class containing a PagedDatasource instead of the normal datasource. I'd then create a custom template and insert it at the bottom of the repeater. I'm not really sure where to start though.. Anyone help? ...more >>

can you still add request headers?
Posted by Adam at 11/2/2007 11:33:00 AM
can you still alter request headers? in some reading it seemed a security update made that no longer available. There was a posting related to that at http://bigjimindc.blogspot.com/2007/07/ms-kb928365-aspnet-requestheadersadd.html dealing with MS KB928365, ASP.NET Request.Headers.Add() Hac...more >>

Net framework1.1 to net frame work2.0 and applications compatible
Posted by david at 11/2/2007 11:18:01 AM
I have developed web applications over .Net Framework1.1 by Visual studio 2003. Now I would like install .Net Framework2.0. Does it affect my application operations? Dabin...more >>

Best approach to use different datasources - ?
Posted by alexandis NO[at]SPAM gmail.com at 11/2/2007 10:30:52 AM
I have a big database, a lot of tables, so I will have a lot of pages where i create a new record. There will be a lot of 'reference' items - let's say 'Create user' -> 'Select user type' <Dropdownlist> -> Admin, Partner, Client type A, Client type B, Contract (is taken from UserTypes table) ...more >>

Could not load file or assembly or one of its dependencies.
Posted by jackiechen858 NO[at]SPAM gmail.com at 11/2/2007 9:05:08 AM
I was updating one of my .Net 2.0 web application on a customer's server yesterday. after I replaced the new dll, I got a error when I access it : Could not load file or assembly "xxxxx" or one of its dependencies. Access is denied I did google it and found some articles. I tried to s...more >>

asp.net find Page Size
Posted by Rob Thomson at 11/2/2007 8:31:02 AM
Hi is there a way in asp.net 1.1 to in code behind query the page size that is generated, I realise IIS does it as it has that data in the logs, I would like to capture this data so that I can create a log for performance on our site that is all held in the database TIA...more >>

How to maintain the display state of a <div> element?
Posted by msch-prv NO[at]SPAM bluewin.ch at 11/2/2007 7:24:59 AM
How to maintain the display state of a <div> element? Is there a simple way to maintain the display state of a <div> element? On my page, a div block can be hidden/shown by js function showhide(). I would like to maintain the block's display state when the page is posted back. I'm having dif...more >>

httpcontext.current OR httpruntime ?
Posted by zino at 11/2/2007 7:02:03 AM
in asp.net 2, I load a dataset from the Cache object into a local object to use to perform processing. I had been using httpcontext.current.cache and what I noticed is sometime I'm not able to get the dataset out of the cache. the application is under heavy hits, and is set to email me on ev...more >>

Invalid_Viewstate exception with Invalid character in a Base-64 st
Posted by Paul Phillips at 11/2/2007 6:37:00 AM
I have read many things about this but I haven't got a clear vision on what to do if anything about this. I have a system that tries to find holes in my web site. One of the things it has found and has been sent to me is an Invalid_Viewstate exception. I will provide the stack trace ...more >>

Using profile in a Class
Posted by James Page at 11/2/2007 4:29:00 AM
Im accessing my profile in a Class using: Dim P As ProfileBase = HttpContext.Current.Profile Dim myInt As Integer = P.GetPropertyValue("myProfileId") All is working fine, however how do I use the profile.myProfile.items.clear() method in a Class? Any thoughts? Thanks J...more >>

Browser back button in AJAX
Posted by Anshul Bansal at 11/2/2007 12:40:16 AM
Hi I have a search page in which the results are shown in a repeater which is inside an UpdatePanel. The results cotain links to other pages in the site. After clicking any of those links and then click "Bowser Back" button I lose the contents in my repeater. Is there a way we can retain...more >>

need to open the aspx page in another window(just as popup)
Posted by Valli at 11/2/2007 12:00:00 AM
Hi, I have an htm page which transfers to another aspx page(Default.aspx). I need to open the aspx page in another window(just as popup). How can I set target property here? Can anyone help me to achiev this... My coding in htm page is <script language="javascript" type="text/ja...more >>

Cookies
Posted by Keld at 11/2/2007 12:00:00 AM
have a problem with saving values into cookies. In a grid i have a imagebutton which which rowcommand looks like this Dim BookMarkCookie As New HttpCookie("BookMarks") BookMarkCookie.Value = MyID BookMarkCo...more >>


DevelopmentNow Blog