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 > january 2006 > threads for monday january 23

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

How to: dBase as Datasource
Posted by JeffP NO[at]SPAM Laptop at 1/23/2006 11:59:58 PM
datagrid1 has a single column contact I'm getting an invalid datasource at... Me.DataGrid1.DataSource = cmd I don't want to use the methods here, I usually use SQLHelper psuedo code: dim ds as new dataset = execute(....... I just want to get my single colum populated..... I...more >>


where is the validation occurs for validation controls
Posted by baroque Chou at 1/23/2006 11:00:02 PM
I am using validation controls for input validation, but I would like to know whether the validation occurs at client side or server side, dose this cause any round trip. It has a runat=server property, but I noticed that the validation almost occurs the same time when I click the submit button....more >>

regarding to life cycle of the html body onload event
Posted by baroque Chou at 1/23/2006 10:18:29 PM
the body tag has onload event, I want to make sure that is it a client side scirpt, is it fired completed after the page is rendered, I mean, the meaning of the onload is the browser loading the rendered page coming from server response? and have no business with the Pages's On_load method whi...more >>

Validate and save user
Posted by Øyvind Isaksen at 1/23/2006 10:17:48 PM
Hello, I am making a page for employees registration. First, the employee need to submit a password. This is checked in a database and returns the companyID where this user shold be saved. Then, I need to show a usercontrol than displays the registration form. This usercontrol need the comp...more >>

Unable to open Web project
Posted by Jed at 1/23/2006 10:05:02 PM
I am trying to open web project in VS 2003 using the File Share method. VS is running on XP Pro (Host) and I am accessing the root web of an XP Pro install on Virtual PC (Server) running on the same machine. I have the loopback adapter running on the Host. The Host is sharing it's Interne...more >>

GridView ObjectDataSource question
Posted by ken at 1/23/2006 9:56:02 PM
Dear all I implemented the update process of gridview through the RowCommand handler myself, however, when i check update, it show error: updating is not supported by OjbectDataSource unless the UpdateMethod is specified. What problem, since i customize the update process through the rowcomm...more >>

Delete/Remove Temporary Internet files
Posted by Manish at 1/23/2006 9:22:14 PM
Hi all, Can any one plz suggest me how i can delete my temporary internet files within my Asp.net page. I am using C# as the code behind lang. Indeed, i have flash inserted on my .net page, which in turn gets its values from the xml file which gets generated at the run time according to the...more >>

Membership provider in ASP.NET 2.0 C#
Posted by Bob at 1/23/2006 8:45:36 PM
Is there any reason why one should not use the Membership provider in ASP.NET 2.0 C#? ...more >>



access and ASP.NET advise please
Posted by phil cunningham at 1/23/2006 8:21:01 PM
I am using Access to run a database within the company and also have a website that makes some of the information available to the general public And so far everything is working very well q. is there any problem using Access to do all our internal work while the DB is exposed to the web ...more >>

Safari Timeouts, Status Codes 302, 200, and 400 Bad Request
Posted by JThomas at 1/23/2006 6:32:30 PM
Hello! I'm having trouble with a page apparently causing my client's Safari browser to time out. I don't actually have access to a Mac & Safari, and haven't been able to physically see this duplicated, but this is the descrip of the problem: >From Client's Point of View: 1. Client, using S...more >>

Binding XML data from a string
Posted by darrel at 1/23/2006 5:31:08 PM
I'm trying to bind XML data to a control. Normally, one could just read in the XML file: myDataSet.ReadXML("myXMLfile.xml") however, I want to cache this XML file so want to read in the XMl from the cache if it's there. The problem is that ReadXML expects a file name...not a string. H...more >>

ClientID of Items in RadioButtonList?
Posted by haroldsphsu NO[at]SPAM gmail.com at 1/23/2006 5:15:27 PM
Hi all, Is there a way to get the ClientID of individual items in a RadioButtonList? Thanks, Harold ...more >>

"Loading Window" page
Posted by dana lees at 1/23/2006 5:11:58 PM
Hi, I am developing a c# asp.net application. I have a button which when i click on i open a pdf file. Since the pdf file is very very large i would like to open a window that says "Loading file..." and when the file is loaded, it will be loaded on the same page. How can i do that? Tha...more >>

how copy file to remote pc using default share
Posted by Standist at 1/23/2006 5:05:21 PM
I want install software on PC in my local network. First I want copy file to the PC through default share like c$ or d$ on the PC. Then install the software through wmi. I have the administrator and password of every PC. How can I do this. ...more >>

Sharing LAN files with ASP.NET?
Posted by bruce.1 at 1/23/2006 4:53:55 PM
I'm trying to figure a way for a remote user -- using ASP.NET -- to share files on a local office LAN. The remote user would go to an ASP.NET website (on the LAN), mark the files they want, and ASP.NET would facilitate a download, and keep a record in a small database of who downloaded and ...more >>

QUERY: debugging ASP VBScript
Posted by KevinGPO at 1/23/2006 4:32:40 PM
I am currently developing a website in ASP (VBScript) using MS Visual C#.NET IDE. I just create a new "ASP.NET Web Application" and point to my local webserver (IIS) of my website address. Then I just go through each file/folder and right-click, selecting "Include in project". The IDE is nice ...more >>

Publish Web using Remote doesn't work in VS 2005...
Posted by Rob R. Ainscough at 1/23/2006 4:31:33 PM
What is it with Microsoft, do they normally publish tools that don't work and provide migrations that don't work either? Publish Web just goes to never never land once I log into my server after the User/Password login screen -- just a partially repainted VS 2005 screen and nothing else, no ...more >>

Okay--I'm sold!
Posted by David Veeneman at 1/23/2006 4:12:53 PM
After a couple of days of playing around with it, I'm definitely sold on ASP.NET and VS 2005 as a web development platform. I've put together a bug reporting app much more quickly than I could have in my old ASP days. And for once, Microsoft isn't blowing smoke with their "70% less code" claim...more >>

nowrap not XHTML 1.0 compliant
Posted by Kevin Lawrence at 1/23/2006 4:08:07 PM
Hi What should be used instead of nowrap in a table cell? VS2005 advises me to use a newer construct... Thanks Kev ...more >>

.NET 2.0 VB Code and C# Code mixed
Posted by evian_spring NO[at]SPAM canada.com at 1/23/2006 3:57:10 PM
Hi, I was under the impression it was possible to have two files written in different langage with the .NET 2.0 Framework? I have created a new web site, added one APP_CODE folder and under the APP_CODE folder I created two new item, one C# class and one VB class to test out if it was worki...more >>

Server.Transfer not working from Application_error for 404 events
Posted by jeff29_b NO[at]SPAM yahoo.com at 1/23/2006 3:57:04 PM
I am trying to remove dependence on the frameworks custom error mechanisms to get a site to work with google sitemaps, because they framework does a redirect 302 to the errorpage. Instead I am doing server.transfers from the applicaiton_error event. This seems to work fine except for in the ca...more >>

Theme a GridView's ItemStyle
Posted by Dick at 1/23/2006 3:45:02 PM
Is it possible to include in a theme, the ItemStyle that belongs to the BoundField of a GridView's column? i.e. the BorderColor property from the control defined below? <asp:GridView ID="GridView1" runat="server"> <Columns> <asp:BoundField DataField="ID" HeaderText="...more >>

What happened to client side code???
Posted by Mike Rand at 1/23/2006 3:06:02 PM
I am having a really hard time trying to get some client side code hooked up in VS2005, ASP 2.0. The code is in an .inc file (vbscript). The first problem I am encountering is the ASP.NET page doesn't like vbscript and throws fits about the syntax. Second, the page throws fits about the se...more >>

Keeping configuration confined to other projects
Posted by Kevin Lawrence at 1/23/2006 2:58:48 PM
Hi all Picture the scene: I have an ASP.Net project and a Class Libary project (both C#). My CL project is acting as the middle-tier and I want to store any configuration that I would normally store in Web.config, in my CL project, the configuration should IMO be kept in this project as ...more >>

Linking text boxes to buttons.
Posted by Joel Barsotti at 1/23/2006 2:50:53 PM
Is there anything builtin to ASP.net that allows you to tie a text box to a button so when you press enter in the text box it emulates clicking a near by button. I've coded up some client side javascript that does this, but it fails when their is a validator monitoring the text box (in fire...more >>

Set length of container
Posted by marcus.lecount NO[at]SPAM googlemail.com at 1/23/2006 2:48:57 PM
Hi to anyone out there that is taking the time to read this. I'm new to ..net and any help given is appreciated. I am displaying a datalist on a page and I want to limit the length of the returned container.dataitem that is displayed to 39 characters. How do i do this in asp.net? I can do this...more >>

Parser Error Message: Could not load type 'WebApplication1.Global' -- when converting to ASP 2.0 on server only...
Posted by Rob R. Ainscough at 1/23/2006 2:45:08 PM
I've converted over my ASP 1.1 NET app to ASP 2.0 NET and everything is working when I'm running local host, but when I copy the files up to my Web Server I get the above error. I've done some research but so far nothing has resolved this error: A lot of people having the same issue: http...more >>

Printing from ASP.NET
Posted by David Lozzi at 1/23/2006 2:43:06 PM
Howdy all, I need to print from my ASP.NET script with minimum user interaction. I have a work order management piece that they need to simply print the WO when its completed to a single printer. I don't want the user to be presented with the printer option screen in IE, but rather print it...more >>

link in gridbiew
Posted by NuB at 1/23/2006 2:38:37 PM
I have a link column in my gridview, but I want to pass information from a hidden column in the grid to a detail section. How can I pass data from a column that is hidden in the grid instead of passing what the hyperlink data is? ...more >>

Version of the code behind Assembly
Posted by Andrew at 1/23/2006 2:25:04 PM
In ASP.NET 1.1 I used to retreive the version of my code-behind assembly using following syntax: Assembly.GetExecutingAssembly().GetName().Version The version was defined in AssemblyInfo.cs using [assembly: AssemblyVersion("1.10.*")] After migrating to ASP.NET 2.0 this line of code always r...more >>

do you use ?
Posted by Jarod at 1/23/2006 1:20:07 PM
Hey Do you use sqlProviders for your interfaces ? But I mean professional projects. Let's say I will have stored procedures in database , what's better create my own data Layer or use sqlProviders ? I mean only to display data, not to edit or insert. Jarod ...more >>

Customizing the MembershipProvider without starting from scrap
Posted by ibiza at 1/23/2006 1:07:41 PM
Hi all, I'd like to write my own MembershipProvider for my ASP.NET 2.0 web application but I fear all the code to write. Basically, I only want to add a few functionalities like being able to change a username (which the standard MembershipProvider does not allow), add some fields to a user (...more >>

Finding out which sessions are still active
Posted by Laurent Bugnion at 1/23/2006 12:44:57 PM
Hi, I am wondering what is the best way to find out which ASP.NET sessions are still active. Here is the reason: I have a custom control which can upload files. It saves the files in a folder named after the SessionID. At Session_End, I do some cleanup and delete the "session folder". Ho...more >>

Need help - Trying to convert a crystal report to a .rtf file from my webform
Posted by Learner at 1/23/2006 12:13:12 PM
HI Friends, I am brand new to creating Crystal reports. But overcomed a lot of problems and so far happy what i could accomplish, calling a stored proc with a parameter in it. And i can see the results in the Crystal Reports in the front. Our client would like to be exported to a .rtf file whe...more >>

2 Login pages in web.config = ERROR!
Posted by rh at 1/23/2006 11:44:07 AM
In my web.config file, I added code so that users will be redirected to 1 of 2 Login pages depending on the original page they are trying to access. However, I get the following error message: Error 106 C:\Source\MyWebSite\Current\Employees\Main.aspx: ASP.NET runtime error: It is an error t...more >>

asp.net 2 page and serial port
Posted by TdarTdar at 1/23/2006 11:25:04 AM
Hello, I am writing an web base application that needs to read data from a serial port(Postal Scale), I assume i will be using this namespace System.IO.Ports.SerialPort I know in vb it would be something like: (serialport Control, 1200,8,E,1 ...) Dim Weight As String Se...more >>

remote database
Posted by Tales Mein at 1/23/2006 11:19:20 AM
How do I handle the situation where the website and Sql server are at the remote site, and I sit here in my underpants at home. I can get to the website, but how do i browe or connect the data from here. thanks ...more >>

Code to Convert From Text To HTML
Posted by Husam at 1/23/2006 10:51:03 AM
Hi EveryBody: I got this code from one newsgroup in google, the one who post this code claim that this code convert Text to HTML , if that is right can Any body help me and expline for me how can I use this code in VB.Net ? The Code : With ALLText ' Specify RTF formatted Text string...more >>

Using the Session object
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 1/23/2006 10:31:11 AM
Simple question, I think... I'm storing an object in the Session object. In the code behind I read that object: trx =3D = CType(Session("Transaction"), BOCSTransaction) If I change any properties, I have to store it back into the session = object to "update" it, right? Or will the chan...more >>

tabindex in a web page gives unwanted behavior
Posted by ThunderMusic at 1/23/2006 10:28:07 AM
Hi, I have a page where I have the following <table> <tr> <td rowspan=4><asp:textbox></td> <td><asp:textbox><td> </tr> <tr> <td><asp:textbox><td> </tr> <tr> <td><asp:textbox><td> </tr> <tr> <td><asp:textbox><td> ...more >>

App.Config File
Posted by Stephen at 1/23/2006 10:27:24 AM
Hi, I did mange to create custom app.config file for a windows based application. I am trying to use the same process to use the app.config file for a console based application but i get this error message: when i pass parameter "stage" from the app.config file ExceptionMessage:System.Co...more >>

Disapearing cursor on some Readonly textbox
Posted by ThunderMusic at 1/23/2006 10:23:38 AM
Hi, I have a form in which there are many <asp:textbox> tags. When I run the form, we use tab to navigate across the textboxes, but one of our client noticed that when we navigate to some readonly textboxes, the cursor (text cursor, not mouse cursor) disapears and when we tab to the next ...more >>

ASP.NET version 2.0 and 1.1
Posted by vamichael NO[at]SPAM gmail.com at 1/23/2006 10:17:12 AM
When I try publishing a 2.0 web site with VS2005, it always installs the website as ASP v1.1 instead of 2.0. Is there a way to change this so that 2.0 is the default so I don't have to go into IIS and change it by hand? ...more >>

Loop threw datalist
Posted by dfetrow410 NO[at]SPAM hotmail.com at 1/23/2006 10:02:48 AM
How do I do this. I need to only get the HTML radio's and there selected values ...more >>

Error while trying to run
Posted by james at 1/23/2006 9:58:24 AM
Hi I am new to ASP.NET and I have recently instaled it on my Computer, I have Visual Studio 2003 Enterprise edition and WinXP SP2 Professional. I have made a simple .aspx page but while I try to compile and build it , an error window pops up. Although it shows in Compile box that DONE- ------...more >>

QueryStringParameter
Posted by Lammert at 1/23/2006 9:51:29 AM
Hello, I have a problem with the following code. When i add the QueryStringParameter the page display nothing. The query is correct and there is also a record with id=1. Who can help me? Code: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="BeheerLeden.aspx.vb" Inherits="Secretari...more >>

Smart Navigation property causing infinite Page Reload (v 1.1)!?!
Posted by Kewlpack at 1/23/2006 9:21:07 AM
Okay - this is stumping me. I've used .Net since 1.0 release and never had this trouble before... In one of my new projects, if I enable the SmartNavigation="True" in the Page declaration/directive tag - when I go to test the page it goes into an infinite loop (in debugger I've tried to bre...more >>

datagrid - get the row's column value when clicking on a hyperlink cell
Posted by vndaxanh NO[at]SPAM yahoo.com at 1/23/2006 9:10:18 AM
Hi everyone, I have an aspx page with a datagrid column which bound to a dataset at page_load. It contains 2 columns, Key and Hyperlink. What I want to do is when I click on the hyperlink it will set a session variable to the Key column like so: Session["SomeKey"] = column 0 of row of the...more >>

error when loading the drop down list...
Posted by zoneal NO[at]SPAM yahoo.com at 1/23/2006 9:05:07 AM
pls let me know where i am going wrong. Dim categories As ArrayList Private Sub LoadCategoryDropDownList() Dim sCat As String For Each sCat In categories ///pls see the error at the bottom of the page. ddlcat.Items.Add(sCat) Next End Sub Public Shared Function GetCategories() As A...more >>

BitWise Operations
Posted by Jon at 1/23/2006 8:49:03 AM
Hello all. I'm currently in the middle of writing a web app and I've come to some security aspects that I'd appreciate some help with. I'd like to use some form of BitWise opration on the persons security. For example, if the following permissions exist in the system: 0: None 1: Add Me...more >>

ASP.Net versions
Posted by Wally at 1/23/2006 8:22:02 AM
Newbie here! Quick question to get an overview. I need to design my first asp.net app, sounds like customer has DNF 1.1 installed and doesn't want 2.0 on machine yet. If I design the app in my environment to DNF 2.0/VS 2005, is it a big hassle to port it to 1.1. All my books are 2.0 and...more >>

First Name Search
Posted by k dog at 1/23/2006 7:30:05 AM
I'm working on an app where I need to do a search for like and similar first name matches. For example a search for John would bring back Jon, John, Jonathan, etc. Working with asp.net and sql server. Any help would be appreciated. Thanks, Kent ...more >>

Problem with decryption
Posted by Showjumper at 1/23/2006 7:13:55 AM
I am having trouble with decryption specifically i get the follwoing message - Specified cast is not valid. The offending line is encryptedData = CType(dr("Password"), Byte()) What i am doing is encrypting the password prior to storing in the db and then in the recover password function ...more >>

stringbuilder help
Posted by Aaron at 1/23/2006 7:07:27 AM
Dim sbRegX As New = StringBuilder(HttpUtility.HtmlEncode(txtComments.Text)) sbRegX.Replace("&lt;a&gt;", "<a>") sbRegX.Replace("&lt;/a&gt;", "") How do I get the attributes of href and target to be encoded?...more >>

Graphing and Charting Controls???
Posted by Jay at 1/23/2006 6:34:32 AM
I have the need to display some basic statistics in a nice graphical format such as a bar chart, I have looke at some comercial products and they do much more than what I need and they are expensive. Does anyone have suggestions for a simpler and less expensive product that works with asp.ne...more >>

Migration to 2.0: Codebehind file must exist?
Posted by DC at 1/23/2006 6:17:18 AM
Hi, with ASP 1.1 we use "satellite" Projects to develop Usercontrols. We then copy only the .ascx and the .dll to the actual webproject. Trying to migrate such a project to 2.0 does not work since the compiler complaints about the missing Codebehind .cs file. Is it possible to use the .as...more >>

sort datatable for processing
Posted by Lyners at 1/23/2006 5:56:02 AM
I am trying to figure out the best way to do this (currently I am having a problem sorting). I have a vb.net program that contains 2 datagrids on a form for the end user. When the user is ready to process, behind the scenes, I combine the 2 datagridas into a datatable, sort and do processing f...more >>

Where is the authentication data stored
Posted by ad at 1/23/2006 5:27:12 AM
I used think the authentication data of login controls is stored in Session object. But it wrong. Where is the authentication data stored? ...more >>

Why? Partial Class within a Partial class
Posted by Billy at 1/23/2006 4:43:15 AM
In .Net 2, when I have created a strongly typed dataset of a SQL table and then 'viewed' the code from the RHM menu. I am taken to the new partial class; as expected, but why do I have a partial class within a partial? plus if I was to inherit an interface then what partial class should I place...more >>

How to keep URL in the web browser address bar unchanged ?? - URGENT..
Posted by Ahmed Jewahar at 1/23/2006 4:41:13 AM
Hi, I do not use Frames in my application.(no plan to use since I'm using User control) I use a "user control" which contain a menu in each .aspx pages. Upon clicking option from menu I use server.transfer to navigate between pages. But, in the web browser address bar displays the URL of ...more >>

System.drawing.image
Posted by benoit at 1/23/2006 3:21:02 AM
Hi, I have this question. When I use the FileUpload WebControl to post an Image (= SourceFile) that I want to resize and write to the server, I keep getting this situation. If that SourceFile is located in My Documents (as in "C:\Documents and Settings\29\Mijn documenten\SubFolderFolder\Img...more >>

GridView edit validation, edit dropdown list, delete popup confirm
Posted by ken at 1/23/2006 2:58:01 AM
Dear all, I want to add the function to gridview 1.) when edit mode, the textbox can validate before edit, e.g. if the fields is required field, user need to fill in something before edited 2.)some field are bound with drop-down list value(get from db), when it is edited, it can be drop-dow...more >>

tableadapter question
Posted by ken at 1/23/2006 2:12:01 AM
What is the usage of tableadapter? ...more >>

Help on Datagrid paging ?
Posted by serge calderara at 1/23/2006 2:01:02 AM
Dear all, I have a datagrid where paging has been enables Page number are initialise to 5 Then I am able to click the Next> to more to next records set but when I click on the backwards direction <Prev , nothing happen and the PageIndexChanged event is not fired ?? Any idea why it beheve...more >>

Problem of OPENQUERY from a ASP.NET Page?
Posted by savvy at 1/23/2006 1:52:05 AM
I'm performing a particular word Search in MS Word, Text, PDF docs and displaying the results through Index Server linked to SQL Server when it is matched. For which I'm using Openquery in the stored procedure which works fine in Query Analyzer of the SQL Server but doesn't work ( shows non...more >>

change IFRAME src
Posted by Nikolay Petrov at 1/23/2006 1:48:18 AM
I have an aspx page with an IFRAME in it. I change the contents of this IFRAME from a NAV menu. What I need is, to load the master aspx page and load a page in the IFRAME from a link in another page. Any ideas? Thanks. ...more >>

return value question
Posted by ken at 1/23/2006 1:17:02 AM
Dear all, question 1: IF (NOT EXISTS(SELECT * FROM table) RETURN 1 ELSE RETURN 0 how to get back the return value from stored procedure from ado.net 2.0 i try Dim result As Boolean = command.ExecuteScalar but can't get back question 2: what is the meaning - using..... que...more >>

OPENQUERY from the ASP.NET page problem?
Posted by savvy at 1/23/2006 1:16:54 AM
I'm performing a particular word Search in MS Word, Text, PDF docs and displaying the results through Index Server linked to SQL Server when it is matched. For which I'm using Openquery in the stored procedure which works fine in Query Analyzer of the SQL Server but doesn't work ( displays no...more >>

Sql Server login from a web application only works from browser where iis runs.
Posted by dyczr NO[at]SPAM bizerba.com at 1/23/2006 12:41:41 AM
Hello All, configuration: computer_1: IIS + Asp .Net Web App Web.config: <authentication mode="Windows" /> <identity impersonate="true"/> computer_2: SQL Server Both machines are in a domain. problem description: When I access the WebApp from the same computer where the WebApp ru...more >>


DevelopmentNow Blog