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 > february 2006 > threads for thursday february 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

Computed field in temp table causes error in .NET
Posted by nospam NO[at]SPAM nospam.sss at 2/2/2006 11:31:03 PM
I am getting "Input string was not in a correct format" error in a line like this: Int32.Parse(((DataRowView)e.Item.DataItem).Row.ItemArray[8].ToString()) Field #8 comes from a SQL Server stored proc. The stored proc returns a select statement from a temp table. The temp table was created by a...more >>


I can't add a Web Reference
Posted by Alexander Walker at 2/2/2006 11:20:43 PM
Hello I am developing a website that has a Web Service that I want to expose to Windows Forms based SmartClients when I try to add the web reference to the smart client I get the following message in the "Web services found at this URL:" box of the "Add Web Reference" dialog There was an...more >>

Reative Paths and VS2005 Web Server
Posted by Brien King at 2/2/2006 11:09:48 PM
Ok, I'm converting a 1.1 ASP.NET app to 2.0 and I am using the VS2005 Web Server to debug. The problem is that when I use a relative path in my links, it generates the wrong links. if I have http://localhost:666/WebApp/index.aspx Then in my code I do a myLink.NavigateURL = "/inde...more >>

Storing Images?
Posted by Adam J Knight at 2/2/2006 9:07:42 PM
Hi all, Just wondering whats everyones prefered method of storing images ? 1) File System 2) Database (SqlServer) (Seems to be easier, but has a performance hit) Appreciate some insight!!! Cheers, Adam ...more >>

Drop Down List control and RequiredValidator.InitialValue
Posted by Shimon Sim at 2/2/2006 5:42:29 PM
hi It should be easy but I can't make it work. I have DropDownList. I set first with text and value "Select". Then I add RequiredValidator and set it InitialValue to "Select" and I expect that the validator will not allow this value to stay the same but.. Validator never fires. What is wron...more >>

HTML Button running at=server
Posted by Kevin Lawrence at 2/2/2006 5:13:16 PM
Hi I have a HTML button that can be accessed server-side too - the only problem is when the button is disabled in the client (via onclick="this.disabled=true") it doesn't reflect this when a post-back occurs. Any ideas? Thanks Kev ...more >>

object instances when querying strings
Posted by Carlos at 2/2/2006 4:54:57 PM
Hi all, I get: Object reference not set to an instance of an object when trying tomdo the following: sEvent = Request.QueryString["EventId"]; if (sEvent.Length == 0) Response.Write("empty"); Which instance, and how is it to be created. I just want to test when the string ...more >>

detailsview.. insert button for empty datasource
Posted by Not Me at 2/2/2006 4:50:30 PM
Hi, I've seen this prob in a few places but the explanations/solution wasn't up to my understanding! I have a detailsview, with an insert button that works fine when there is already data in the bound datasource, but it appears blank otherwise. One solution was to make all fields templa...more >>



How to use buffering to show progress?
Posted by GS at 2/2/2006 4:38:42 PM
Hi, I'm using buffering to write to client about progress of long running = query, my question is how do I remove everything from browser screen = what was written so far once results are ready. Right now Response.Write writes to output stream even before <HTML> tag = is written so I can not ...more >>

ASPNET2: Master Page File Reference Problem
Posted by Mark Olbert at 2/2/2006 4:25:41 PM
I have some img tags on a master page which reference files in a top-level directory. They look like this: <img src="assets/test.gif" id="gnr" /> assets is a subdirectory of the website root. My problem is this: this kind of path reference in a master page won't work when the page using the...more >>

Deploying a site out in the WWW
Posted by Kevin Lawrence at 2/2/2006 3:51:51 PM
Hi all I was wondering if there were any guidlines to follow before a publishing a site out in the www. I'm most concerned about security, I can ensure the data is secure over HTTPS and i can ensure no-one views information that they shouldn't be. But what about things like using querys...more >>

Disable entire asp.net form (using vb.net)
Posted by Chris at 2/2/2006 3:49:12 PM
I have an asp.net page say page1.aspx. The form in html code is <form id = "Form1"> And i want to disable all the fields of the form after some code steps. I had created a javascript funct: function disable() { alert("Forms length is :" + Form1.length); for (i = 0; i < Form1.length; i++) ...more >>

insert into/update table in db with long text
Posted by Alexander Widera at 2/2/2006 3:28:17 PM
Hi, i connect to a ms sql2000server via SqlConnection. if i make an SqlCommand "INSERT INTO mytable (mytext) VALUES (@mytext)" (or i make an update), and i pass the parameter @mytext a simple string, i get NO ERROR and the database has an new empty row instead of the string which should be ...more >>

Changing the DropDownList Selected Item via a Property
Posted by g at 2/2/2006 3:11:52 PM
I have a user control that contains a dropdownlist. Using a public property, I can get the selected item. However, I am unsure of how to use that same public property to set the selected item. Here's my code: private string m_item = ""; public string Item { get { m_item = ...more >>

IIS & ASP.NET 1.1 and ASP.NET 2.0 errors?
Posted by Rob R. Ainscough at 2/2/2006 3:11:21 PM
Does anyone know why two separate ASP.NET web application running under the same web server (IIS 6) would cause this error (Application Event viewer): "It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure yo...more >>

viewstate .net 1.1 vs 2.0
Posted by Simon Gorski at 2/2/2006 2:53:42 PM
Hi, I have a webfarm - every server has the same machinekey. - Everything works fine with the asp.net viewstate (every server run with .net 1.1) Now I want one server upgrade to .net 2.0 - so I set the machinekey as the same with 1.1. But it looks like that .net 1.1 produces other viewstate...more >>

Question on article by Scott about "Shadow copy of an assembly"
Posted by Diffident at 2/2/2006 2:28:40 PM
Hello All, I just finished reading an interesting article by Scott about App Domains: http://odetocode.com/Articles/305.aspx Scott, I have a question about the section "Shadow Copies and Restarts". You talked about "Drain Stopped" and "Shadow Copy" concepts in this article. I maintain a w...more >>

Problem with 2005 aspnet Wizard Control
Posted by Kevin Lawrence at 2/2/2006 2:27:13 PM
Hi all I've been using the wizard control for a while now and it works fine - however, if I want to resume the wizard from a certain step it won't allow me to go back to previous steps. Any ideas why this is? Thanks Kev ...more >>

Validation controls are finicky
Posted by Buddy Ackerman at 2/2/2006 2:24:07 PM
I don't know what the problem is. I have a form with several controls that need to be validated, I put a validation group in every form control, every validatoino control, the submit button and the validation summary control. I want it to do client side validation so I set every validation contr...more >>

what's the problem here
Posted by Ashe Sjedic at 2/2/2006 2:15:42 PM
Imports Microsoft.VisualBasic Imports System.Data Imports System.Data.SqlClient Public Class Claim Sub getrecordset() Dim connstring As String ConnString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Movie_Data.MDF;Integrated Security=True;User Instance=True" ...more >>

connString
Posted by Ashe Sjedic at 2/2/2006 2:08:58 PM
How can i use a connString out of the web.config file in another page? ...more >>

.NET 1.1 AND 2.0
Posted by Just D. at 2/2/2006 1:50:43 PM
All, I know that I can install 1.1 AND 2.0 on same machine at the same time, I'm working in the VS 2003 with my aspx projects and it works great even having 2.0. I'd like to install VS 2005 to migrate to 2.0, I guess that the VS2003 and the VS2005 can coexist on the same machine and work ma...more >>

asp instead of aspx
Posted by Richard Meetze at 2/2/2006 1:42:09 PM
Is it popssible to make aspx pages with the extension of asp? I am redisging an ASP site to .Net and we need to have the same links, I know I could just go to every ASP page and redirect them to the correct ASPX page, but this is a HUGE waste of time. Anyone know of a way to have asp extension...more >>

how to set language system wide
Posted by Jason at 2/2/2006 1:41:27 PM
In VS2003, we we able to declare pages and controls without using the Language attribute. We specified that our default language was c# in the machine.config file and everything worked OK. In VS2005, this also works for run-time compilation. However, when we edit our codebehind files in V...more >>

VB Code to retrieve 1 value from sql database
Posted by Ashe Sjedic at 2/2/2006 1:34:40 PM
Hi how do i do that in code please thanks ...more >>

I can't get httpWorkerRequest.ReadEntityBody() to work !!!
Posted by madhattan NO[at]SPAM newsgroups.nospam at 2/2/2006 1:19:42 PM
I am trying to write a httpModule that will process file uploads but I can't get httpWorkerRequest.GetPreloadedEntityBody() or httpWorkerRequest.ReadEntityBody() to work at all! Thanks - Will httpWorkerRequest.GetPreloadedEntityBody() (always returns 0 bytes) httpWorkerRequest.Read...more >>

Themes and Skins + Style-sheets: general question
Posted by Griff at 2/2/2006 1:17:38 PM
We're replacing a CLASSIC ASP application. In this application, we presented a dialogue box that allowed end users to specify exactly how they wanted their screen to look. So, they could set the font size, font colour, border widths/style/colour etc, etc. This information was then held in...more >>

IE Web Controls on Windows Server 2003...
Posted by Blue Streak at 2/2/2006 12:49:16 PM
SFX: Banging head against wall... *Thud! Thud! Thud!* Hello, folks. I am trying to get a web application to work on a Windows Server 2003 (standard edition) Intranet server. It uses a number of the IE Web Controls. Right now, it is sitting pretty in a test environment on a Wi...more >>

matching on part of node's attribute
Posted by Joe at 2/2/2006 12:35:33 PM
Hello All: I have an xml document that contains <Control> nodes, each of which has a "name" attribute (i.e. <Control name="myControl" />. I want to find all of the nodes that have "Recipient" anywhere in the name attribute's value. So, if I have the following: <Controls> <Control na...more >>

Worker process and Cache object's lifetime
Posted by Diffident at 2/2/2006 12:35:29 PM
Hello All, I have been caching an object in a web app and I am running the web app on my localhost i.e., local machine which has its own IIS web server. Now my question is if I access web application from my localhost where would that cached object live? Is it in web server's memory OR insi...more >>

ASP->Stored Procedure Properties
Posted by ACase at 2/2/2006 12:25:28 PM
Hello; I am having an interesting problem. I have an application which allows a user to enter data on the front end (Broswer HTML/ASP), click on a button and using the entered data runs some calculations and returns the data. Everything works fine, all the fields all the calulcation...more >>

ASP.NET datagrid is cutting off bound text column
Posted by Dave at 2/2/2006 12:17:44 PM
I have a datagrid in my asp.net page (using VS 2003). One of the columns is bound to a text field. The length of some of these text field values is more than 255 characters but when the grid displays it cuts off the text displayed in the grid at 255 characters. How do I change this?? I am creatin...more >>

dynamically add columns to datagrid
Posted by wapsiii at 2/2/2006 12:02:29 PM
I'm unsure how to best approach this challenge: A stored proc returns a dataset where the last four columns have dynamic column names [current year - 3], [current year - 2], [current year - 1] [current year] (ie. Company, [2003], [2004], [2005], [2006]). The row values of these last four ye...more >>

Session Variables not available in UserControl
Posted by Lee Moore at 2/2/2006 11:09:09 AM
I have some user controls defined that represent a common header and footer for a particular site. the footer contains links with querystring parameters based on session variables. The problem is, I cannot access the session variables within my user control. The user controls work perfectly ...more >>

c# reference manual
Posted by Bahman at 2/2/2006 11:08:29 AM
Hello! I spend lots of time finding out about the .net object model. Is there an easy way (a website) where I can lookup a complete set of objects, methods and properites (web controls, forms, etc.)? That would help me greatly! Right now, I am using the matrix class browser and it doesn't h...more >>

appsettings
Posted by Mark at 2/2/2006 10:47:20 AM
I"m getting an error on the following line during execution stating something about the server not liking the character < I have many key variables in my appsettings, but this is the only one not working..this is the only one though that has a < in the string..obviously something related to th...more >>

Printable version
Posted by RS at 2/2/2006 10:27:25 AM
Hi guys, I am trying to make printable versions for some ASP.NET reports that I have. The data is in a gridview control. Does anyone know how to auto set the page orientation to Landscape, rather than having the user to manually change it everytime they try to print? Thanks R ...more >>

Wrong parameter being passed from an ObjectDataSource's SelectMethod
Posted by Damon at 2/2/2006 10:21:04 AM
Help! Need this fixed ASAP. I have a GridView/DetailsView master/details form set up, with both bound to separate ObjectDataSource objects. Both the GridView and the DetailsView have a DataKeyNames parameter of "UserCompany, BillableCompany". The DetailsView has control parameters for its ...more >>

Edit Template with blank fields
Posted by MasterChief at 2/2/2006 10:13:14 AM
I have a list of jobs using a datagrid. When the user clicks on the job it brings up a seperate page with an edit template. If all the fields are filled in then it lets me make changes. If one field is missing like Date In: in doesn't update anything. It will just refresh the page and not make a...more >>

Regular expression, how can I format it?
Posted by ThunderMusic at 2/2/2006 10:09:30 AM
Hi, In fact, I would like to have two answers 1) Is there a place where I can get escape sequences needed to build regular expressions? 2) what would be the regular expression for a tring that must always for formated this way : Z9Z 9Z9 or z9z 9z9 or z9z9z9 or Z9Z9Z9 (canadian postal code...more >>

DropDownList seperate width for control and droped down section
Posted by ian at 2/2/2006 9:36:47 AM
Is it possible for the list of items that drops down from a dropdownlist to be wider than the control itself? Id this possible either doing something with the server control or the rendered SELECT tag? I am using ASP.NET 2.0. Thanks Ian ...more >>

ASP.NET 2005 Solution Problem
Posted by mkd1919 at 2/2/2006 9:31:29 AM
I'm developing a web service that will eventually be sent to other like organizations to communicate for a particular application. After a few weeks, I decided it would be better to split of the web service and custome code from the required code. In doing so, I created a class project. T...more >>

BC30456, Compiler says something I defined is not a member of my aspx page
Posted by ericw3 NO[at]SPAM gmail.com at 2/2/2006 9:04:04 AM
I am switching from Java to the .Net framework. In order to separate page layout design from the application code, I studied the codebehind tutorial by John at http://www.asp101.com/articles/john/codebehindnovs/default.asp In my GetQueryResult.aspx, I defined a DataGrid as follows: ...more >>

Regular Expression??
Posted by Frank at 2/2/2006 8:56:24 AM
Hello, I am working on an ASP.net/vb.net app. I have an address field that I requires a street address, but disallows a P.O. Box. Question: What would be the best way to go about this? Would a regular expression work? Or should I just check the string and ensure that it doesn't contain P.O. ...more >>

Text Box Loses Value On Page Load
Posted by Clayton Hoyt at 2/2/2006 8:36:15 AM
Hi Folks...this is a wierd issue I've noticed and wanted to know of a) anyone else has noticed this and b) if so, why does it happen. On page load, I have a text box named me.txtMemberName. I enter data into this field then submit the page. If I check the value of me.txtMemberName.text duri...more >>

KeyPress Event
Posted by Dusty Hackney at 2/2/2006 7:57:27 AM
Hello, I am programming aspx pages in VB ASP.NET. When using Windows forms, I am able to use an event called KeyPress. However, I haven't been able to get this to work in a Web Form. What do I need to do to be able to use the KeyPress Event in a Web Form? Thanks, Dusty Hackney ...more >>

get user id
Posted by rodchar at 2/2/2006 7:32:09 AM
hey all, using javascript, how do you get the user id of whose logged in currently? thanks, rodchar...more >>

debugging issue 2003
Posted by NuB at 2/2/2006 7:31:42 AM
I'm trying to debug a asp.net page and when I step through the code, its hitting comments, commented out code (//comment, //string test;) also when I do a mouse over of a variable its not showing me the value of the varaible, and when I step through the entire line is not being highlighted, ex...more >>

Classifieds Starter Kit
Posted by beaverme at 2/2/2006 7:31:33 AM
Hi, I found this and wondered if/when Microsoft planned to release this starter kit: http://www.goldmandesign.com/folio/microsoft-starter-kit-classifieds.shtml Regards, B ...more >>

string split ??
Posted by CsharpGuy at 2/2/2006 7:29:41 AM
I need to pass a string to a query such as server\filelocation, but its breaking on the '\', how can I execute my query BUT have the '\' in the string being passed to the SQL? I need the full string to return me the file information. ...more >>

ASP.NET 2.0 C# XML Comment Documentor
Posted by netcommander at 2/2/2006 7:28:07 AM
Hi, anyone used a 3rd party documentor that will extract the XML Comments from a ASP.NET 2.0 C# project into standalone documentation, e.g. in MSDN style format? You can't do it from within VS2005 for a web project :( Any links to the 3rd party sites etc would be appreciated. -- Go ea...more >>

Validate Only One Control In Server Side Code On PostBack
Posted by Joey at 2/2/2006 6:45:11 AM
Does anyone know how to validate only one certain control in server side code on postback? Instead of Page.Validate() and Page.IsValid, is there some functionality equivalent to txtMyTextBox.IsValid... I could also make it work if I could figure out how to use server side code to compare a str...more >>

Viewstate between pages
Posted by sendtobiren NO[at]SPAM gmail.com at 2/2/2006 6:26:03 AM
Hi All, I have a question regarding viewstate. Suppose I have two pages Page1.aspx and Page2.aspx. If I save something in the viewstate of Page1.aspx and want to use that thing in Page2.aspx. Is it possible anyways? As we know viewstate is encrypted by .net so, can we use .net to decrypt i...more >>

ActiveX and asp.net
Posted by poppy at 2/2/2006 2:45:22 AM
I have developed an active x control which is used within a windows application. The activex control acts as an interface with an api com component registered on all client machines (Intranet). This all works great. The problem I now have is that the windows application needs to be repl...more >>

WebRequest.GetResponse gives "Bad Request"
Posted by Mange at 2/2/2006 2:19:15 AM
I'm using WebRequest class to access a PHP script, but keep getting a 400 error from the server when calling the GetResponse() method. I have added the url to the script in the bypass list in machine.config to bypass the proxy server for this request, so it should not be a proxy issue. Also, I...more >>

ASP + Ajax + __VIEWSTATE = BAD ?
Posted by GTi at 2/2/2006 1:32:47 AM
I have a ASP 2.0 page where I use some Ajax code. The Ajax code (JavaScript) is inserted from CodeBehind. In my page I have a submit button and some links for Ajax functions. When I load the page and use the submit button it give me some results that is fine. Then I press the links that activat...more >>

HTTP 500 error message
Posted by barry at 2/2/2006 1:29:26 AM
Hi when trying to open a page of type .asp i get the following error message The page cannot be displayed HTTP 500 - Internal server error how do i correct the error? TIA Barry ...more >>

Code For Image Filtering
Posted by selvapradeep at 2/2/2006 1:17:36 AM
SIR I am a student from india doing Master of Engineering, willing to do project in image filtering using Fuzzy Logic. So, send me some example codes regarding this. thanking you -- selvapradeep ------------------------------------------------------------------------ Posted via h...more >>

sir this is my quary about dotnet
Posted by hema chandran at 2/2/2006 12:57:20 AM
Hello sir I am fresher in DOTNET sir, so plz help me referents book Thank u sir This is my mail i.d hemudotnet@yahoo.com *** Sent via Developersdex http://www.developersdex.com ***...more >>

Custom controls attributes
Posted by Julien at 2/2/2006 12:52:53 AM
Hello, I'm creating a custom control which inherits from Calendar. I wanted to know which attributes should I put to my properties and on my control to make the designer recognize it. For example, if you create a textbox by starting to write : <asp:Textbox and then you hit the space bar (or C...more >>

WebHost4Life
Posted by Alex Greenberg at 2/2/2006 12:13:53 AM
This might be slightly off-topic, so don't hate me. I have my site hosted on www.webhost4life.com. I've had them for a while, but I just started doing serious dev with ASP.NET 2.0. Since I've put the site up, I've got nothing but very long delays connecting my code to their Database servers...more >>

HELP: RSS Aggregator
Posted by Newbie at 2/2/2006 12:00:00 AM
Hi all, Anyone know how to build web application like this one: http://onlinebusinessarticles.demositeonline.com/ If I'm not wrong, this appl consume RSS feeds, in this site from http://www.article-emporium.com/. I appreciate any helps. TIA, Andy ...more >>

Sorting is slow how???
Posted by Dan at 2/2/2006 12:00:00 AM
Hey guys I have a datagrid that i can sort, great. Problem is when i click to sort it the grid takes ages to re-populate. Someone advised me that to fix this I should turn off view state as its read only, which i did. Now the grid is very fast at re-populating...again great. Only problem is...more >>

OT: Is it possible to install Personal Web Server on XP Home?
Posted by Visual Systems AB (Martin Arvidsson) at 2/2/2006 12:00:00 AM
Hi! I have ended up in a dilema, i bought a computer from HP, Windows Home Ed. was installed as standard. I tried to upgrade to Pro, but under the installation the computer just keapt on rebooting when trying to start the updated windows. So i had to use the emergency cd to recover the os a...more >>


DevelopmentNow Blog