Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > may 2008

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 31

Object reference not set to an instance of an object
Posted by Ben at 5/31/2008 11:39:37 PM
Hi, i try to change the display value of a radiobuttonlist embedded in a gridview, but only in normal mode. In edit mode, the radiobuttonlist must appears. With this code below, i get what i want in normal mode (displayed values (yes/no) are ok), but when i try to edit the row, i get: ...more >>


Rewrite URL this way, is it possible?
Posted by Iaml at 5/31/2008 8:53:56 PM
We have a lot of legacy pages written in HTML or classic ASP. A lot of our web users bookmarked these pages. Now we will rewrite these HTML or classic ASP pages in ASP.NET 2.0 or 3.5. I am using URLRewritingNet (http://www.urlrewriting.net/en/ Default.aspx) to redirect all requests in the ...more >>

ht write from remote in memory to local file
Posted by xzzy at 5/31/2008 5:06:59 PM
I am trying to save email attachments, that are in memory on a remote computer, to a file on my local computer. ..txt attachments are strings, everything else is byte[]. Thank you for any help. ...more >>

Visual Studio dialogue discrepancy
Posted by Joe Fawcett at 5/31/2008 2:20:47 PM
Dear All Can anyone explain why on some machines, when I choose to add a new item to a web site in VS 2008, I get the traditional dialogue that shows the checkbox for choose a master page and on others I get the choice of a Content Web Page instead? Thanks -- Joe http://joe.faw...more >>

DropDownList with Icons.
Posted by Rain at 5/31/2008 2:02:50 PM
Hello, I was wondering if there was a way to include an icon in a dropdownlist. I found one way, that is to set the background image of the 'option' to the desired icon and then set the padding to sat 50px, which offsets the text and makes it look as if the icon is appearing to the left of ...more >>

location element in web.config
Posted by Fred at 5/31/2008 8:28:19 AM
Hello, I made a little web site to share some files with a very few users. I used aspnet membership and roles. There are a few aspx files at the root. No problems to control access for these files using the location element and roles. Now, I created a folder private with one sub folder for ...more >>

Items Property - a newbie question
Posted by ata@mailinator.com at 5/31/2008 7:14:00 AM
Hi, I need to create a user control that has got a property named "Items" which is of StringCollection type. On the other hand, the collection is supposed to be populated declaratively through the aspx file. It would be highly appreciated if you could tell me how I am supposed to do so. R...more >>

Gridview row height
Posted by John at 5/31/2008 6:48:58 AM
Hi I have a grid view which is bound to a data source. When I run the form the grid view rows are expanded in height such that the header takes half of page and the first row takes the other half. So I end up viewing only one row with the header on the whole page. There isn't text long enou...more >>



Code library
Posted by John at 5/31/2008 6:06:44 AM
Hi Is there a way to have code modules that all pages in a web app can access kinda like a code library? Thanks Regards ...more >>

Getting the membership username
Posted by John at 5/31/2008 5:54:28 AM
Hi I have implemented asp.net membership in my app. How can I get the name of the currently logged user? Thanks Regards ...more >>

Web set up project problem
Posted by rachit.goyal@gmail.com at 5/31/2008 3:06:36 AM
Hi All, In my ASP.net 1.1 web application, there are 28 projects. I have created one web set up MSI project for web deployment. When I am installing my application using my web set up project, some of project output DLL are going inside wwwroot directory and other are going inside wwroot \...more >>

Gridview not picking the correct formatting
Posted by John at 5/31/2008 2:38:48 AM
Hi I have a grid view to which I have applied the format colorful. This format has white header text and the grid view code does have the following line; <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" BorderStyle="None" /> Unfortunately the grid view header text is ...more >>

Can't update to vs2008 sp1?
Posted by Andy B at 5/31/2008 1:33:58 AM
I downloaded a file to update vs2008 to sp1. It was about 450k in size and came directly from Microsoft. When I ran it and went through the installer, it told me it would take about 1.5 hours to download (I have a 1536kb dsl line). After it downloaded I got the error "Invalid win32 installer p...more >>

Menu control with horizontal orientation
Posted by gnanam.abraham@gmail.com at 5/30/2008 10:16:05 PM
i used menu control with horizontal orientation but item are very close each other,how to set gap between item ?please very urgent and send the coding with example?...more >>

Upload large data
Posted by Husam at 5/30/2008 8:42:00 PM
hi everybody: I have the follwing code that I used it to upload data to my web site: the code: Sub SaveFile(ByVal file As HttpPostedFile) Dim savePath As String = Hosting.HostingEnvironment.ApplicationPhysicalPath + "UserArea\" Dim fileName As String = FileUpload1.FileName ...more >>

Suspected vertical spacing of a DIV-element
Posted by K Viltersten at 5/30/2008 7:51:35 PM
I'm using this lines of code. ddd<div id=3D"advanced-search" style=3D"visible:false;overflow: = auto;"></div>eee I expected "ddd" and "eee" to be vertically close to eachother. As it looks, the DIV is taking up vertical space. What can be done to avoid it? I've tested "visibility:hidden"...more >>

jQuery?
Posted by Paulo at 5/30/2008 4:54:25 PM
http://jquery.com/ Is it good? Do you know? Any alternatives? Any suggestions? Thanks! ...more >>

ASP.net pages work in Internet Explorer 6, but not 7
Posted by COHENMARVIN@lycos.com at 5/30/2008 3:48:26 PM
I have an asp.net page that does something simple - it makes a panel visible when a radiobutton is clicked. This works fine in IE6. The panel becomes visible, along with the controls inside it, and everything after the panel is pushed downward to the bottom of the screen. In other words I see...more >>

How to prevent FileUpload from uploading on Prev click in a wizard?
Posted by Bogdan at 5/30/2008 3:31:07 PM
Hi, I have a FileUpload control on the last step in a wizard control. I'd like the control to upload the file only when the Finish button is clicked (present on the last step). Unfortunately the control also uploads the file when the Previous button is clicked. I'm assuming that this is...more >>

Datagrid example
Posted by Mark B at 5/30/2008 1:10:32 PM
Can someone write some VB.Net example code for me that does this: 1) Creates a gridview control with the results of a SQL stored procedure that has 1 parameter (text) 2) Adds an extra column that displays the result of a VB.Net function that uses a value from an existing column I have s...more >>

Accessing Cache from Custom Web Server Control
Posted by Jordan S. at 5/30/2008 10:56:49 AM
In a "standard" aspx page I can access the system cache (System.Web.Caching.Cache), like this: Cache["SomeObject"] = someObject; How can I access the same Cache from *within* a custom composite Web server control I'm writing (that lives in it's own assembly) that is dynamically added to a ...more >>

ASP.NET, SQL Record Locking
Posted by John Walker at 5/30/2008 10:31:04 AM
Hi. Is there a convenient way to lock SQL records so that two users cannot attempt to update the same row, thereby preventing users from overwriting other user's data? For example, we have a asp.net 2.0 application which allows a user to pull up customer information, modify their information...more >>

Carriage Return in Web.config file?
Posted by Waldy at 5/30/2008 9:33:14 AM
Hi there, I am reading a string from a web.config file and displaying it in a label on an .ASPX page. I want a carriage return in the string so that it looks right, but can't get it to put one in.. I have tried using \n and &#13; e.t.c. in the config file setting but none of ...more >>

Hyperlink\HTML Table
Posted by gh at 5/30/2008 7:34:36 AM
I have a HTML table that I have labels in several cells and I populate them in the Page Load event, from a dataset. I have a hyperlink in one cell that I want to display a website address in. I tried the markup below but it doesn' t work. The cell is blank. <tr> <td>...more >>

combining funtionality from two pages
Posted by slinky at 5/30/2008 5:15:33 AM
Thanks for any help folks: I have two .aspx pages that are workling well: one is for entering entries in a blog and another for viewing those entries. What I want to do is combine the two into one so I have a textbox and submit button at the top and the blog entries below. Any ideas? Here...more >>

Problem passing data between pages
Posted by John at 5/30/2008 2:45:15 AM
Hi From the calling page I am assigning value a string to context as below; Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click Dim Msg As String Context.Items("Msg") = Msg Response.Redirect("Called_Page.aspx") End Sub In ...more >>

Application settings
Posted by John at 5/30/2008 12:13:19 AM
Hi Is there a way to have application settings in asp apps, like those in winform apps? Thanks Regards ...more >>

2 Datagrid columns questions
Posted by Mark B at 5/29/2008 11:03:09 PM
I have a Datagrid working fine, outputting: Group Most Popular Product Code -------- ------------------------------- Earth.New Zealand 32 Earth.New Zealand 32 Earth.New Zealand.Auckland 32 Earth.New Zealand.Auckl...more >>

Replace aspnetdb with an Access Database
Posted by Lars at 5/29/2008 10:21:33 PM
Hi How can I replace the aspnetdb database with an Access database file so I don't need an MSSQL connection. My ISP doesn't have an MSSQL Server running on the same server as where my homepage is hoasted. Lars ...more >>

POLL: Who is using VS2008 SP1?
Posted by Cirene at 5/29/2008 8:32:30 PM
Brief poll: Who is using SP1 beta of VS2008? If so, is it worth taking the leap and installing it? Thanks! ...more >>

Which Character Set to Specify (UTF-8 or ISO-8859-1) in ASP.NET Pages?
Posted by Jordan S. at 5/29/2008 8:04:05 PM
I have observed that there are a couple of character sets that are frequently specified in the meta tags. From my cursory review of public Web sites, it appears that the character set is either UTF-8 or ISO-8859-1 I am wondering what is the importance of this meta tag, and what are the impo...more >>

Access control on a page from inside an external class
Posted by Andy B at 5/29/2008 7:40:32 PM
I have a class I am creating for data access. I need to access controls from inside the class that are on a particular page. How do I do this? or is creating an instance of the page class and using FindControl the only way to do it? ...more >>

Getting Access Violation every time I modified web.config
Posted by Raymon Du at 5/29/2008 7:23:23 PM
Hi, I am getting the following exception every time I modified web.config, the only way to fix it is to recycle application pool or restart IIS, but I don't want to do that all the times. TIA . Description: An unhandled exception occurred during the execution of the current web request...more >>

LDAP from ASP.Net
Posted by Max at 5/29/2008 6:50:06 PM
Even if I've lot of experience with dotnet programming (web and desktop), I'm new to LDAP stuff. One of my customers would like my web application to read LDAP directory to provide authentication, to avoid rewriting user data into an sql table. So I'm looking into dotnet DirectoryServices, bu...more >>

Hide an ActiveX on an HTML page
Posted by PhilTheGap at 5/29/2008 5:27:56 PM
Hello, I woulf like to hide an activeX object in a aspx page. The ActiveX is decalred statically in the HTML code, and I'e tried to set the html visible "property" to "false" in the javascript page_load function (in the aspx page). It didn't do anything although the code is executed correct...more >>

can't change radiobuttonlist displayed value in normal mode of gridview
Posted by Ben at 5/29/2008 4:30:23 PM
Hi, The gridview contains a radiobuttonlist with boolean values (true/false) coming from a database. In normal mode, the gridview displays True or False for that field. What i want is to change True' and 'False' by 'Yes' and 'No' in normal mode. I tried this, but still get True / False. ...more >>

dataset merging
Posted by Neil Chambers at 5/29/2008 3:34:11 PM
I am trying to get my head around dataset merging but despite a little research I could still use a pointer (or ten). Basically I want to perform an outer join operation on a dataset (created from a file operation) and the resulting sql query based on the contents of said dataset. Effectively ...more >>

Validators
Posted by Mike Gleason jr Couturier at 5/29/2008 2:41:36 PM
Is there a way to always show the validators? I want to use validators and don't have to bother with field validation (Page.IsValid)... But there is an esthetic requirement : always show the little stars "*" beside the required fields. (I'm using ErrorMessage="*"). The stars disappear when...more >>

SQLInCode
Posted by gh at 5/29/2008 2:19:31 PM
I was using the SQL in another program I had. When I try to use it in the C# it will not work. The ASP.NET compiler does not like the single quotes. Is there another way to do this with SQL? Thanks ("SELECT A.ADDR1||'' ''||A.CITY||'', '' " + "||STATE.ABBRV||'' ''||A.POSTALCODE AS...more >>

User Login
Posted by Lars at 5/29/2008 2:13:57 PM
Hi I have an ISO that stores the MSSQL database on a different folder. Is it possible to connect the Login Forms to a database on another MSSQL server or to an Access Database file? I can't use the file aspnetsb.mdf file for my Login forms on my honepage. Lars ...more >>

DataList or Gridview?
Posted by Michael at 5/29/2008 1:43:02 PM
Hello all, I want to put a view on my page that looks like an interactive table. In other words, like you might see in an access form. I need it to show the columns across the top, and the rows below them. I need the user to be able to modify any one of the cells. Then when done, click o...more >>

A way to refer to items in Session object without using Session directly
Posted by Andy B at 5/29/2008 1:38:28 PM
Is there a way to refer to things in Session object without calling Session itself? ...more >>

DotNetNuke modules with Vis. Web Devel. 2008 Express
Posted by galien8@zonnet.nl at 5/29/2008 1:26:31 PM
I use Visual Web Developer 2005 Express and web user control DLL's come in these weird places: C:\Documents and Settings\JohanStand\Local Settings\Temp\Temporary ASP.NET Files\website3\f1f514e3\dc9a00f7\assembly \dl3\8a06d240\2ee2e4db_a7c1c801 FILE: App_Web_hellodnn2.ascx.cdcab7d2.lxm65j8j....more >>

error constructor with no parameters does not exist
Posted by Paul at 5/29/2008 11:33:01 AM
Hi I am using a dataobject and trying to add two select parameters as follows: ObjectDataSource1.SelectParameters.Clear(); ObjectDataSource1.SelectParameters.Add("DepartmentID", ("1"); ObjectDataSource1.SelectParameters.Add("Active", "1"); I get the error message that ma...more >>

URL Rewriting in ASP.NET
Posted by Toni at 5/29/2008 11:00:37 AM
I have page www.mysite.com/?Name=John I want that it be www.mysite.com/John How to do this url rewriting? ...more >>

asp:button question
Posted by hal at 5/29/2008 8:41:15 AM
Is it possible when an asp:button is clicked I can have the button use javascript client side code and fire the click event for the button for server side code? Code below is an example of what i'm trying to do: <script type="text/javascript"> function SetImage() { ...more >>

Gridview and FileUpload ItemTemplate
Posted by Paul at 5/29/2008 8:00:01 AM
I have a gridview with 2 columns. One column is a BoundColumn to a part number (string). One column is an ItemTemplate with a FileUpload control. There can be multiple rows (i.e. part numbers) in the gridview. The user attaches a file for each part number / row. The user clicks a button...more >>

Append text to RTF file
Posted by Deshi at 5/29/2008 2:32:24 AM
Hi,. I am trying to append text into the RTF file, nothing seems to be working for me... here is the code FileStream fs = new FileStream("c:\\djj.rtf", FileMode.Append, FileAccess.Write); StreamWriter sw = new StreamWriter(fs); sw.WriteLine("Appending this text at the end of the file"); s...more >>

Taking lot of time in loading user control on a web page
Posted by Gouri.Mahajan7@gmail.com at 5/29/2008 1:59:59 AM
Hello, When I press the button on the web page I am loading the user control on the web page. This user control is invoking some methods of the web service. The control on the web page is loaded very soon when running on the local machine ( measns where the web service is running). But it is ...more >>

Use Excelsheet in ASP.NET for calculation
Posted by jelle79 at 5/29/2008 12:08:01 AM
Hi, I want to use a difficult Excelsheet as source for my calculation in a ASP.NET (C#) page. I have 5 input fields on my ASP.NET page and when I press the submit button I want to put these values into the sheet in cell A1:A5. And then in A6 an awnser will appear, this awnser needs to be sh...more >>


DevelopmentNow Blog