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 > march 2006 > threads for tuesday march 21

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

Inserting a variable into the selectparameters of a SQL command
Posted by evandela NO[at]SPAM bigpond.net.au at 3/21/2006 11:33:00 PM
Hi evreyone, I am a newbie but my ASP.net is comming on thanks to you guys and the countless manuals I have downloaded... ummm... I mean 'bought' I am having a little bit of an issue though, I am sure it is easy to sort out - but I cant seem to find any info on it. I have a variable that I ...more >>

dectecting Background-Color setting
Posted by Sam at 3/21/2006 10:28:26 PM
Hi all I'm looking for a way to detect the background color of my internal webpage through a stylesheet. And so far, the only solution I find is to open the styles.css file and parse the BACKGROUND-COLOR field. The problem I'm having is that I don't know the exact absolute path of the styl...more >>

Importing a CSV file
Posted by BobLaughland at 3/21/2006 7:54:49 PM
What is the best way to import the contents of a CSV file into C# objects? E.G. a CSV file that looks like this a1,b1,c1,d1, a2,b2,c2,d2, a3,b3,c3,d3 Would be loaded up and then turned into 3 objects object 1 field1 = a1 field2 = b1 field3 = c1 field4 = d1 object 2 field1 = a2...more >>

Page_Load vs Submit_Click - which one first?
Posted by Neo Geshel at 3/21/2006 7:46:22 PM
Question: During the execution of code, which one is looked at first; the=20 Page_Load, or the Submit_Click? My problem arises when I specify a literal in the Page_Load, and attach=20 it to the page dynamically. When I assign it content in the Submit_Click = (say, a =E2=80=9Cupdate succes...more >>

ForeColor of validationSummary control
Posted by Sam at 3/21/2006 7:34:35 PM
Hi guys, Is it possible to update this property programatically? would someone please give me a hand? The message I got back when I run one of my web pages is: Parser error "<%errorColor%>" is not a valid value for int32. Here is what I have: Public headerColor as string = "00FFFF" Pub...more >>

Format datagrid
Posted by Peter Afonin at 3/21/2006 6:44:49 PM
Hello, I have a datagrid with 17 columns - too many for one page. Is there a way to format the datagrid so the columns are located in two rows instead of one, or something like this? I would appreciate your advice. Thank you, -- Peter Afonin ...more >>

Check for existence of an object?
Posted by CK at 3/21/2006 6:44:42 PM
How can I check for the exisitence of an object in C#/Asp.net? I have a routine that initailizes form values based on a loaded up object, however if the object hasn't been created I get an Object reference not set to an instance of an object. Is there a function I can use to see if the object...more >>

Testing Asp Moble apps from the desktop?
Posted by mae NO[at]SPAM me.com at 3/21/2006 6:30:25 PM
Is there a web program or a addon for IE/Firefox to allow testing Asp Mobile apps from the desktop? Eg. Have the webbrowser emulate the size and and features of the mobile device? Thanks...more >>



from DataReader to double[] array (asp.net20 c#)
Posted by Web learner at 3/21/2006 6:03:39 PM
At line unitsInStock.Add((double)dr.GetValue(1)); I get same error: Specified cast is not valid If you comment out above code line and also Response.Write(unitsInStock[0]); then the code works fine. That means it works for productName array. My purpose is to populate an array from SqlDataRe...more >>

Is this possible to render page in memory?
Posted by Piotr Strycharz at 3/21/2006 5:37:00 PM
Hi I want to render a page in memory. That is (pseudo-code): Page aPage = new Page(); LiteralControl lc = new LiteralControl("<form runat=server><asp:Label id=label Runat=server/>..."); aPage.Control.Add(lc) aPage.RenderControl(htmlWriter); Unfortunately, this does not work, as the...more >>

DropDownBox value after postback differs...
Posted by Lars Netzel at 3/21/2006 5:09:05 PM
Hi I'm having a DropDown box with 2 items... one with Value 1 and one with Value 2. If I load the page and it has Value 1 selected from page_load() and then select Value 2 on the form.. .and then from a checkbox use javascript to diasable to DropDownBox before I press a button to do the ...more >>

IHttpHandler problem
Posted by David Thielen at 3/21/2006 4:53:29 PM
Hi; I just wrote my first IHttpHandler and am having a problem. If the content type is "text/html" then the below code works fine. But if it's "text/plain" then my browser gets: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then cl...more >>

Part String
Posted by TCB at 3/21/2006 3:50:23 PM
How can I separate multiple email addresses entered in a single textbox so I can send email in ASP.NET 2.0, the email addresses are separated by (,) or (;) Thanks ...more >>

Stop HttpWebRequest on my site
Posted by Not4u at 3/21/2006 3:48:33 PM
Hello, Someone is using HttpWebRequest to automaticly post datas or retrieve datas from my site. How can i stop pages to be get by the HttpWebRequest method ? I know that pages get with HttpWebRequest have is no referer. So for me the solution is to check the referer of the calling page, ...more >>

Multiple Email Addresses
Posted by TCB at 3/21/2006 3:37:34 PM
How can I separate multiple email addresses entered in a single textbox, the email addresses are separated by (,) or (;) Thanks ...more >>

Session & Service keywords conflict....
Posted by Dhruba Bandopadhyay at 3/21/2006 3:30:04 PM
I am a current ASP developer. I have files: ServiceClass.asp & SessionClass.asp which are included in many of my asp files. Then they call objService = New Service (by using the Class Service from ServiceClass.asp file). Is it true that ASP.NET does not allow you to use Service or Session ...more >>

ASP.NET 2 - how can I embed variables in an email body text file
Posted by Mark1249 at 3/21/2006 3:22:43 PM
Hello, I am using ASP.NET 2 and using the CreateUserWizard I am wanting an email to go out to the new user informing them of their account details etc... I have a BodyFileName in the MailDefinition section of the CreateUserWizard component and have that currently pointing to a simple text ...more >>

Applying themes to html
Posted by Shimon Sim at 3/21/2006 3:16:59 PM
I have a master page that has a table. The table represents a banner. I need to change background images for the cells depending on the page theme. I set up css and defined styles with background -image: url(...). I set up images in theme folder and it didn't work. Then I decided to move image...more >>

SQL express vs SQL developer
Posted by simonZ at 3/21/2006 2:26:15 PM
I instal visual studio 2005 without express edition of SQL server. I had instal developer edition before. In the web.config it had this connection string: <add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|...more >>

Treeview in ASP.Net 2.0...javascript and selected node
Posted by Wes at 3/21/2006 2:22:27 PM
Hi there, Does anyone know how to get the selected node from a ASP.Net 2.0 TreeView in Javascript? I used to be able to get it in the old webcontrols one, but now the properties have changed and I can't seem to figure it out. Thanks, Wes...more >>

Object variable or With block variable not set
Posted by Neo Geshel at 3/21/2006 2:11:02 PM
I am trying to deal with an image in code-behind. I consistently get the = following error: Server Error in '/' Application. Object variable or With block variable not set. Description: An unhandled exception occurred during the execution of the = current web request. Please review the st...more >>

How do I use another ASPNET provider aside from the default?
Posted by Anonieko at 3/21/2006 1:42:51 PM
<!-- +-----------------------------------------------------+ | Case 1: | | Using another SQL Server | | Registered via aspent_regsql.exe utility | | | +...more >>

Posting PDF's securely on the internet
Posted by Joris De Groote at 3/21/2006 1:41:01 PM
Hello, I have to create something to access PDF files through the internet. However, these PDF files can not be accessed by simply typing in the name (for example: http://www.pdffiles.com/test.pdf ). The URL for accessing the file is with a link like this: http://www.pdffiles.com/SDCVUJHTGFRF...more >>

How to fix headers of a gridview
Posted by RS at 3/21/2006 1:28:43 PM
I am using gridview in my web application. I have also implemented sorting and paging. I problem is when I scroll the gridview, the header also scrolls with it. How can I make the gridview headers not to scroll. Thanks RS ...more >>

What is this for "Catch ex As Exception"
Posted by momo at 3/21/2006 1:22:12 PM
I need someone to please explain what the "TRY" does and how it work. How do I know if it is working or not. I have this in my code and I don't know what it does, especially this "Catch ex As Exception" Try 'Create the connection and command objects oConn = GetMsAccessOledbConnecti...more >>

Getting not declared Error
Posted by momo at 3/21/2006 12:23:12 PM
Can some take a look at this and tell me what I am doing wrong and how to fix it. I an new to ASP.NET Getting Name "GetMsAccessOldebConnection' is not declared " Error <%@ Page language="VB" Debug="false" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.OleDb"...more >>

GETTING DATA FROM A DataSet ??
Posted by glenn at 3/21/2006 11:37:25 AM
Can anyone tell me how to pull data from a dataset? In my Page_Load function, I use the following code: Dim str As String Dim ds As System.Data.DataSet Dim dt As System.Data.DataTable Dim dr As System.Data.DataRow Dim dc As Sy...more >>

Name 'ImageUpLoad' is not declared
Posted by Neo Geshel at 3/21/2006 11:27:15 AM
Greetings. I have a file upload form. I have a file upload input, with its ID set=20 as ImageUpLoad. When I try to submit the form, I get Name 'ImageUpLoad' is not declared This is the line causing the problem: Dim imgStream As Stream =3D ImageUpLoad.PostedFile.InputStream In every e...more >>

Variable declarations
Posted by TCB at 3/21/2006 11:18:29 AM
I am now a little confused about variable declarations in ASP.NET. Please if it is possible help me with this. Lets say I have an application where any registered user can modify his user profile using a WIZARD control. Suppose the UserModProfile.aspx receives a parameter in the QueryString...more >>

Err msg : "Invalid character in a Base-64 string"
Posted by Jon Paal at 3/21/2006 11:15:58 AM
how can I find which character is invalid in base-64 string ? ...more >>

Security of .dll files within a web site's bin/ directory
Posted by Oenone at 3/21/2006 11:12:34 AM
I've been working on migration of my company's VB6 ASP system to VB2005 over the last year or so, and am currently presenting my findings and recommended course of action to our management team. One of the concerns that has been raised is with regard to the .dll files that form our service bei...more >>

Repost: How to determine ID of object in custom web control
Posted by Jeffrey Frabutt at 3/21/2006 11:10:00 AM
Sorry about the repost... but my original post had funky characters that was causing it to get truncated. I've got a rather simple custom web control that has an object delcared as HtmlControls.HtmlInputHidden. I set the ID = 'PageNo' and the Name = 'PageNo'. However, when I look at the p...more >>

two aspnet_wp.exe processes??
Posted by Alex D. at 3/21/2006 10:52:10 AM
Is it OK to have two aspnet_wp.exe at the same time in the windows Task Manager? I have two, one small justo 3.316K of memory and a big one line 60K ...more >>

KB 812406 - Fixed in 2.0?
Posted by Rob Williams at 3/21/2006 10:41:44 AM
Hi Does anyone know if the following 'bug' has been resolved in 2.0? Response.WriteFile Cannot Download a Large File - http://support.microsoft.com/kb/812406/EN-US/ Cheers Rob...more >>

Upgrading ASP 1.1 to 2.0 problem - deploying - must clear assembly
Posted by Records For Living Support at 3/21/2006 10:41:34 AM
I've just upgraded from Visual Studio 2003 to 2005 and I've finally got my website working on my laptop. WHen I try to send it over to the real webserver - it fails miserably. I've had MULTIPLE problems - but right now - the proble appears to be that teh 2.0 assembly cache contains an inval...more >>

asp.net isn't resolving an IP address correctly
Posted by andrew at 3/21/2006 10:39:22 AM
I have a web application that uses a web.config file to set the url for a web service on another machine... when I run the app with an alias for the machine name I get: http://RptSvrWR/reportserver/ReportService.asmx "The request failed with HTTP status 401: Access Denied." When I literal...more >>

Using a 3rd party assembly
Posted by sklett at 3/21/2006 10:04:45 AM
I added a 3rd party control to my asp.net app on my development machine. However, when I published the site to the main server, I'm getting a Configuration error that states in can't find the assembly that my new control is in. I have added the dll to the bin directory, what else do I need ...more >>

Atlas
Posted by Alex at 3/21/2006 9:46:21 AM
Hi Everyone, I just installed Atlas and its samples, I'm trying to run the samples but I'm getting this error: Error 1 The type or namespace name 'Web' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) C:\Program Files\Microsoft ASP.NET\Atlas Sample A...more >>

Closing SQL Connections
Posted by bannaman at 3/21/2006 9:17:35 AM
Please can someone help. I have a routine as follows Public Function dbConnection() As SqlConnection Dim dbConn As New SqlConnection Dim errorH As New errorHandle Try Try dbConn.ConnectionString = ConfigurationManager.Connection...more >>

Changing thread priority on specific page
Posted by Amil at 3/21/2006 9:16:21 AM
I have a few web pages that do file crunching; I want to make sure these pages...only these pages, run at a lower priority. I'm not sure of how the threading architecture of ASP.NET works, but is it as easy as just doing a SetPriority on the current thread? I just want to make sure if I ch...more >>

ASP.NET 2.0 Form Security Error
Posted by Sumi at 3/21/2006 9:13:06 AM
Hi, I've the following code in my web.config - <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="30" name=".ASPXAUTH" requireSSL="false" slidingExpiration="true" de...more >>

revalidate on textbox's lost focus??
Posted by D. Shane Fowlkes at 3/21/2006 9:05:56 AM
I have a asp:textbox which I've applied a javascript function to strip off all non-numeric chanarcters. The js function is triggered with the textbox's onblur attribute. I also have a rangevalidator to make sure the value entered is numeric and is between 1 & 999999. The custom js works fi...more >>

Getting the true URL from an .asp site
Posted by DieSpammersDie at 3/21/2006 8:45:58 AM
The website allows you to search information by date, but it hides the true POST data for the entire URL. I am trying to write a script that will download the page each day, but can't find the true URL to do a GET command. BTW...the data I am trying to get is from a public sheriff's office site...more >>

Images and Themes (2.0)
Posted by ryan.mclean NO[at]SPAM gmail.com at 3/21/2006 8:24:55 AM
Hi all, I have a global theme on my machine. How do I access an image in the images folder in my theme from the page where the theme is applied? In the theme the images are in an images folder. I thought /themename/Images/img.gif would work, but no dice. Thank you for any assistance and hav...more >>

Microsoft Enterprise Library -do any ISP's allow using it?
Posted by Fred Exley at 3/21/2006 8:08:44 AM
I wrote a nice little app that relies entirely on the EL, as an example of a better way to do data access. Works fine locally, but when I uploaded it to my web, it bombed when I added any EL dll's to the /bin directory, with a Permissions error. I contacted my ISP tech support and here's wha...more >>

Keep panel from resizing
Posted by tjfdownsouth at 3/21/2006 7:57:30 AM
I am using a panel inside an asp.net 2.0 page so that I can have the scrolling capabilities. Inside the panel I have a datagrid that I would like to stay within a certain area. On the initial page load the panel works as expected but when I load the datagrid the panel expands off the side of...more >>

Object reference not set to an instance of an object.
Posted by somersbar NO[at]SPAM yahoo.com at 3/21/2006 7:48:17 AM
i have a webform with a dropdownlist and 2 textboxes. it has a dataset with a table with 2 fields, 'areaID' and 'areaName'. in the Data properties window of the DDL, i have the DataTextField set to areaName, and the DataValueField set to areaID. when an item is selected from the DDL i need t...more >>

.NET Web Hosting
Posted by jeffn NO[at]SPAM drscorp.com at 3/21/2006 7:35:01 AM
Hi I am starting to get into ASP.NET and was wondering if I could get some advice as to what web hosts are out there that will support .NET code and which ones are good in regards to service/price/uptime/etc. Thanks Jeff ...more >>

ASP.NET 2.0
Posted by David Jessee at 3/21/2006 7:21:28 AM
One of the biggest advancements with ASP.NET 2.0 is the addition of the data controls (SqlData Source, FormView, GridView, etc). I was wondering what folks' opinions on these are. I really want to adopt these new controls into the applications that my group creates, but I can't help but ge...more >>

bind a dropdown in a column in a datagrid based on the dropdown value selected in another column of the datagrid.
Posted by vishnu at 3/21/2006 6:58:31 AM
Hi, I have a fully editable datagrid which has dropdownlist in two columns. Now i have to bind the dropdown in the second column based on the value selected in the dropdown in the firstcolumn. so how to do it. I am able to raise the selected index changed event of the dropdowns in the first co...more >>

DetailsView
Posted by vbnetdev at 3/21/2006 6:42:28 AM
I need to customize the DetailsView New record (insert) so that it gets the maximum value of ROWID and adds 1, places that value in the textbox and makes it read only. Also, I have a field called "DATEEVENT". I would like to place a calendar control there instead of the textbox that is show...more >>

Object reference not set to an instance of an object.
Posted by somersbar NO[at]SPAM yahoo.com at 3/21/2006 6:39:38 AM
i have a dropdownlist and 2 textbox's on my webform. i have a table 'Areas', with 2 fields in the dataset. In the Data properties of the DDL i have its DataTextField set to the field 'areaName', and its DataValueField set to the other field 'areaID'. When i select an item from the DDL i wan...more >>

How to get the connection string from a text file
Posted by Fábio Couto at 3/21/2006 6:20:30 AM
The company I work is considering to use the Enterprise Library (january/2006) Data Data Access Application Block. The problem is an internal policy that forces all company systems to get the connection string from a text file that already exists in the network. Is there any way to just pas...more >>

How to determine ID of object in custom web control
Posted by jef at 3/21/2006 6:17:50 AM
I've got a rather simple custom web control that has an object declared as HtmlControls.HtmlInputHidden ...more >>

RoleProvider question -- help please (.NET 2.0)
Posted by Burak Gunay at 3/21/2006 6:05:10 AM
Hello, I derived a custom provider from the provider class. I set cookieless="UseUri" in the web.config, because we don't want data stored on client machines. Now, as I understand it, the information from the Membership Provider gets serialized and saved on the url, but the same does n...more >>

Session Variables in Static Objects
Posted by james NO[at]SPAM instantecommerce.co.uk at 3/21/2006 5:51:09 AM
Hi I am considering storing my session variables within one static object with session scope. The static object will be a class with accessor functions to get and set the equivalent session variables stored as member variables. This will allow strong typing. Apart from the problems of multith...more >>

How to put PPT into website
Posted by moondaddy at 3/21/2006 1:51:42 AM
I have an asp.net 2.0 website and I need to display a PowerPoint presentation in it. Is there a way to convert the PPT to web page? What's the recommended way of doing this? Also, the PPT has sound and animations. Is it possible to get these into the website as well. Please advise. --...more >>

updating multiple tables
Posted by evandela NO[at]SPAM bigpond.net.au at 3/21/2006 1:21:49 AM
Hi all... this is one part of ASP.net that i just dont understand... and GOD knows, i am trying. I have 2 tables, the first one called country [countryID, countryName] and the second called product[productID, countryID, productName] I create a datagrid and have to custom write the sql Select c...more >>

Special Character Conversion
Posted by Lucky at 3/21/2006 1:02:19 AM
Hi Guys!!! i'm newbie to asp.net 2.0. i've got a problem. i've a textfield on my webpage and if i insert " can't " or " test - test " value into it and post it back the " ' " and " - " get converted into the blocks and i got a procedure to store them into the SQL server 2000 database where th...more >>

Replace a value wiith a graphic in a datagrid?
Posted by simon at 3/21/2006 12:20:40 AM
hello, i am displaying a dataset in a datagrid, for one of the values being displayed it either comes back as a 1 or a 0, which is currently bound to a column in the datagrid what i'd like to do is that if the value equals 1, replace that value with a small icon image. if it equals 0 then have ...more >>

The Cache object
Posted by Mikeon at 3/21/2006 12:12:57 AM
Hello! Is there a way to get to the Cache object in some other way than the current contex? I mean - the Cache is independant from the request so I would expect to see some kind of Cache.Current property or something like HttpContext.Current, but unfortunately I've been unable to find one. W...more >>

Hover in a ASP.NET 2.0 LinkButton control
Posted by Vidae - Recursos Humanos at 3/21/2006 12:07:00 AM
Hello all. Is there any way to do a kind of "a.hover" in an ASP.NET 2.0 LinkButton control? I mean, I need my LinkButton changes its color when the mouse hovers the control. Thank you very much. ...more >>

DetailsView Problem
Posted by Maury at 3/21/2006 12:00:00 AM
Hello, I have a little problem with a DetailsView: I bound it to a datasource and I enabled the capability of adding new records, and everything goes right if I there is one or more records into my DataSource. But if the recordset is empty the "new" button doesn't render, is it right? H...more >>

How to RegisterClientScriptBlock in customwebcontrol
Posted by Alexander Widera at 3/21/2006 12:00:00 AM
hi, how can i register a clientscriptblock in the page where my customwebcontrol has been placed? i tried Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "myscript", script, true); placed in the protected override void Render(HtmlTextWriter writer) Method. But it doe...more >>

How to redirect to webpage with whole browser from within framework link clicked?
Posted by ABC at 3/21/2006 12:00:00 AM
I have a frameset asp.net site. I want add a link to logout. I can redirect the page to login page. But it showed on one frame, not my expected the whole browse area. How should I do? ...more >>

log4net ans dotnet 2.0
Posted by wolfgang wagner at 3/21/2006 12:00:00 AM
hi all! i'm trying to convert my former asp.net 1.1 application to a asp.net 2.0 application. everything runs fine expect the logging with log4net. in my development environment it logs to the designated logfile. but in production environment not :( both environments have the same dotnet v...more >>


DevelopmentNow Blog