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 > may 2006 > threads for tuesday may 16

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

Gridview widths
Posted by Chris at 5/16/2006 10:54:39 PM
Is there any way to set the widths of gridview columns in VS Express. Simpler the better. Regards, Chris. ...more >>


Error in deploy project
Posted by WT at 5/16/2006 10:54:27 PM
WTCRM.Settings.DBDataStore is a class in a main site deployed including everything in the same assmebly Address_Manager project is an external module that uses WTCRM as a reference. Address_Manager contains classes derived from DBDataStore. The deploy project for AddressManager is trying to...more >>

Using public shared variables...asking for trouble with thread conflicts?
Posted by Darrel at 5/16/2006 8:50:42 PM
I'm working on an app where the ASPX pages aren't precompiled with the class.vb files I'm. This is so people can add their own ASPX pages down the road to the app (the .aspx pages become 'templates' in a way). As such, each template has a function call at the top: <% retrieveData() %> a...more >>

asp.net application through VPN
Posted by Ricky Chan at 5/16/2006 8:40:02 PM
We have a web application that run in a intranet. Recently, we have a client to access the web app through VPN. (Client tool - Netscreen remote VPN client) The problem is Case 1 Client Computer (desktop) + 56k dial up + access the web application through VPN --> work fine Case 2 Cl...more >>

WebDev.WebServer.exe crashes
Posted by brent.adkisson NO[at]SPAM gmail.com at 5/16/2006 8:05:58 PM
I am trying to use the ads web starter kit with sql2000. I have migrated the database and all of the .net membership tables to my database. I can connect and see the data through the visual web developer 2005 express. I can connect using the asp.net application administration tool in the bro...more >>

regular expression for case insensitive USA state codes
Posted by Stan at 5/16/2006 7:58:58 PM
I have a very simple web form with a textbox and a regular expression validator. The regular expression I'm attempting to use doesn't work on the client side (Javascript) tho it works on the server side. Anyone have an idea of how to make this following regex work on the client side and ...more >>

How get data using array or hashtable
Posted by Mukesh at 5/16/2006 7:52:34 PM
Hi I am creating a web application in which I am using datagrid. In this application I am creating a shopping cart sort of application, I have primery keys of selected items in a array i want to take full details of the them in a single datareader. How can i do this passing a single hasht...more >>

How to trap errors on file uploads?
Posted by SalP at 5/16/2006 7:35:27 PM
I'm using VS 2003. I'm uplading a file using Input Type='File' .PostedFile. etc. How does one trap the error when the file is larger than the 4 Meg default? Try/Catch doesn't work. I get the "This page cannot be displayed screen". I also tried adding a Page Error handler which didn't work...more >>



WebuiValidation.js
Posted by mmcnurlin NO[at]SPAM usfamily.net at 5/16/2006 7:08:01 PM
I am having troubles in finding the file WebUIValidation.js. When I try to use aspnet_regiis -c it gives me an error message. Number 0x60040154/ (Which doesn't mean anything to me). It wants to ask me the administer, but I don't have one. Can anyone help me find this java script file and t...more >>

My first ASP.NET programme
Posted by Barbara Schmidt at 5/16/2006 6:54:21 PM
Hello! I try to make my first ASP.NET application. I have an Access-DB with a two-fields-table: ID (integer) and MyText. Now I want the use click on the button and gets a random number. How to connect this number from the variable to the parameter of the sqldatasource? Thanks for every advice ...more >>

what is wring with this code?
Posted by JIM.H. at 5/16/2006 6:21:02 PM
Hello, With the following I am merging two dataset and I see the result in the datagrid but not in myTable. Where might my problem be? private void myMethod() { try { string strConn = ConfigurationSettings.AppSettings["connectionString"]; SqlConnection sqlConn = new SqlConnecti...more >>

Copy files from Novell with ASP.NET
Posted by 1388-2/HB at 5/16/2006 5:25:11 PM
On a W2K3 box running IIS 6 I have a web app that implements Forms Authentication mixed with AD (the login page autheticates users against AD & impersonates them with each page request). This means my process identity varies, and is not necessarily "ASPNET" or "IUSR...". My process identity fo...more >>

Wrong data in dropdownlist
Posted by Frederik Vanderhaeghe at 5/16/2006 5:09:54 PM
Hi, I want to get values out of the database into a dropdownlist, but when I run my form, I get one value: 'system.data.datarow' My code: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not Page.IsPostBack Then Dim strSQLJaar ...more >>

desperately needing help with a Server Error
Posted by kaosyeti NO[at]SPAM comcast.net at 5/16/2006 4:59:38 PM
hey... i know NOTHING about sql server, .net framework or probably anything else on sql monster. i am a novice access user, self-taught for about 9 months now and have only a basic understanding of vba. that being said, i need some help...8) i have a web site that i used to routinely visit ...more >>

Regarding data access, what should I dispose?
Posted by Michael Carr at 5/16/2006 4:12:55 PM
I recently discovered the "using" C# keyword and the neat and tidy way it guarantees cleanup of resources. However, how far should I take this? I recall some discussion from Microsoft suggesting that, in most cases, a class's Dispose method should not be explicitly called, as it may introduce ...more >>

master pages and scrollTop = 0
Posted by Andy at 5/16/2006 4:03:01 PM
Hey all, I'm building out my first project using asp.net v2.0 master pages. It seems that when you use master pages and try to reference document.body.scrollTop it allways = zero/0. The same code works in a regular .htm file. Has anyone else seen this? Anyone know how to get the body.scroll...more >>

Atlas error...
Posted by Brad Coble at 5/16/2006 3:26:48 PM
"An instance of 'Microsoft.Web.UI.DummyHtmlTextWriter' could not be used as an HtmlTextWriter. Make sure the specified class can be instantiated, extends System.Web.UI.HtmlTextWriter, and implements a constructor with a single parameter of type System.IO.TextWriter." I am just doing a simpl...more >>

Testing a web application
Posted by Diego F. at 5/16/2006 3:16:24 PM
Hi all. Is there a recommended way to test a web application? Any document I can follow? -- Regards, Diego F. ...more >>

Setting focus on the selected item in listbox
Posted by Hitesh at 5/16/2006 3:05:02 PM
I have a listbox and the values get selected (highlighted) from code. I can highlight the corresponding list box items, but they do not show in the listbox I have to scroll through the list box to find them. How can I setFocus on the highlighted data items in the listbox after they are highl...more >>

Membership Provider Error
Posted by Vishal Gupta at 5/16/2006 3:00:41 PM
Hi This is Vishal this side.I have been trying to create a new sample website using the new Membership Provider Class. Now when I try to a create a new website and then hit on the Website Administrator Tool and then hit on Security I get this error "There is a problem with your selected ...more >>

How to work with images in resources
Posted by WT at 5/16/2006 2:28:45 PM
Hi, Documpentation for VS 2005 is not clear about how to put a gif image in resources and how to get it from an <asp:image .../> or <img /> web control. It seems that IE send some .axd process to get images or .js scripts from resources for MS controls, how to do this. Thanks CS ...more >>

what is equivalent of vb.net treenode.nextnode property in asp.net webcontrols.treenode
Posted by tanya foster at 5/16/2006 2:28:22 PM
Hello, I am re-writing a visual basic .net application(visual studio 2003) in an asp.net application(visual studio 2005). The vb.net application relied on a treeview and hence, treenodes. The treeview and treenode class in asp.net is limited compared to vb.net's. In vb.net, the treenode ...more >>

Response.redirect (2.0)
Posted by CSharpguy at 5/16/2006 1:35:02 PM
I created a log in screen going against my database. I can validate the users fine, and if the user is validating but I can't redirect the users to the next page. I'm getting this error message: {Text = Unable to evaluate expression because the code is optimized or a native frame is on top ...more >>

referencing a failover datasource if primary DB server is down?
Posted by kenfine NO[at]SPAM nospam.nospam at 5/16/2006 1:23:07 PM
My scenario is that I have two webservers/database servers that I'm trying to make redundant in terms of filesystems, web services, and database services: + filesystems are replicated using server 2003 R2 + web services are made redundant using NLB + databases are mirrored via SQL Server 2005...more >>

HttpHandlers and Session access
Posted by damianarielfernandez NO[at]SPAM gmail.com at 5/16/2006 1:06:48 PM
Hi group, I read a lot about this problem and all the same answers appears...Implement the IRequireSessionState or IReadOnlySessionState interface...but the same problem arrays'...null session. Anyone have a solution for this problem?. I'm on the GetHandler methods inside my custom Hander!. Pl...more >>

Issue with ValidationSummary Control, ErrorMessage and Text
Posted by PeterKellner at 5/16/2006 1:02:50 PM
I'm wanting to just show the error in a ValidationSummary control, not next to the actual TextField I'm putting a RequiredFieldValidator next to. I don't even want the little "*" showing which field it is. (strange requirement, but that's the way it is). I've found that if I set the attribute...more >>

A connection was successfully established with the server, but then an error occurred during the login process
Posted by matt.delvecchio NO[at]SPAM shell.com at 5/16/2006 1:00:52 PM
i saw a similar post from last year, but i didnt see any clear solution. the error message: "A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) ...more >>

Need button to clear drop downs wo postback
Posted by Jeff User at 5/16/2006 12:34:30 PM
Greeting I built asp.net (V1.1) page. I want to use this button to reset SelectedIndex=0 on several drop down lists. However, I do not want to post back to server. The point is to avoid the round trip. It had an asp:button which would post back to the server when clicked but changed it t...more >>

Setting GridView PageSize at runtime
Posted by Adam Sandler at 5/16/2006 12:34:09 PM
Hello, Using VWD 2005 here and I want to set the GridView PageSize at runtime. This URL has an example of what I exactly want to do... http://msdn2.microsoft.com/en-US/library/system.web.ui.webcontrols.gridview.pagesize.aspx Public Overridable Property PageSize As Integer Dim instance As...more >>

Server receiving HTTP POST
Posted by Christina at 5/16/2006 12:03:58 PM
Hello, I need to built a server which receives XML, parses it, and sends some other XML. The client (any XYZ) should be able to post his XML file into my server and my server should send an XML file back to the Client. Any help appreciated.. TIA, Chris ...more >>

query SQL db hosted on a dedicated server with ISP ?
Posted by scott at 5/16/2006 11:57:12 AM
what is the best way to send data to and query SQL 2005 server express edition db hosted on a dedicated server with ISP ? i need to query it directly from an application on my LAN (asp site on same machine as sql db also needs to query db) i can obviously use port 1433 but what other optio...more >>

hyperlink with Javascript and databinder
Posted by OTSolutions NO[at]SPAM shaw.ca at 5/16/2006 11:42:59 AM
This line of code works in IE but not in Firefox or Netscape for some reason. Any ideas as to why would be appreciated, It is the NavigateURL part. IE brings up the page, the other two browsers it just does nothing. Tom Olthoff Line of code: <asp:TemplateColumn HeaderText="Bus Stop...more >>

TableCell
Posted by Arne Garvander at 5/16/2006 11:41:02 AM
I am using the TableCell object from the framework. How can I mark a TableCell to correspond to a TH tag, when it gets converted to a HTML table? -- Arne Garvander (I program VB.Net for fun and C# to get paid.)...more >>

VB.net - Execute code after reurn statement?
Posted by marktm NO[at]SPAM gmail.com at 5/16/2006 11:28:26 AM
Would "someSubProcedure" execute in the following example? Or is the rest of the function ignored once the Return statement is hit? Thanks Fucntion doSomething() As String Dim strTemp As Sting = "A" Return strTemp someSubProcedure() End Function ...more >>

Storing objects (classes) in Session in ASP.NET 2
Posted by Mark Rae at 5/16/2006 11:02:39 AM
Hi, This relates to the previous thread "Disappearing Sessions", but is a bit more generic so I thought I'd start a new thread. This one relates to the storing of objects in Session once only to prevent the system having to constantly query the database for the same information. I'm curr...more >>

Free report
Posted by C Did at 5/16/2006 10:55:01 AM
What's the best free way create a report? I don't like printing from IE because of the header / footer it sticks on there. Is there way to send straight to a printer without all that? PDF etc? ...more >>

GridView sorting and persisting values
Posted by Carlos at 5/16/2006 10:43:11 AM
Hi all, I currently have a Gridview that doess sorting correctly using several fields. However, I do have a checkbox field that when it is checked I do not know how to make its value to persist when the page is sorted after it is changed. I do handle the checkedchanged event, but I do not k...more >>

Get Windows User Name
Posted by Jared at 5/16/2006 10:39:44 AM
Hi For some time now I have been looking for some client side script to get the windows logon id. My asp.net application is running across three domains, so windows authentication is no use to me. In client / server applications it is simple to retrive the windows user id of the client to s...more >>

Custom membership provider - help needed
Posted by kvr901 at 5/16/2006 10:26:02 AM
I've been trying to use this "custom membership provider" stuff for several days, and am totally lost. I am building an ASP.NET (vb) application on a laptop. Then I copy the files to a Win 2003 Server machine. Just for testing I created a BLANK SQL Server 2000 database on the server ...more >>

Designing mail server
Posted by Alok yadav at 5/16/2006 9:41:02 AM
hi, i have to design a mail server which recives and send message using exchange mail server or mail server of win 2003. can u help me how i design that. IS THERE any way to recieve mail using asp.net...more >>

Flipping color!
Posted by Tom at 5/16/2006 9:37:02 AM
This week, some of my asp.net pages developed a strange problem. It appears to have occurred independently from any coding changes I have made. So, perhaps a system update caused it, don't know. The problem: The page loads, everything looks good. Then after about 1 second, an <input> field wi...more >>

open new window
Posted by Sonnich at 5/16/2006 9:20:18 AM
Hi! I have a asp file, which opens a document into excel ( Response.ContentType = "application/vnd.ms-excel") The point is, that it creates my excel document well, but I need: 1) to open another excel file (static) at the same time, to I get the created file and a new one too. 2) some ...more >>

Centering Label Text
Posted by Joe Delphi at 5/16/2006 9:13:57 AM
Hi, I want to position label text so that it always appears centered when the user re-sizes the browser window. I tried adding the HTML property text-align="CENTER" to the code, but ASP.NET doesn't seem to recognize this HTML attribute. Can someone tell me how to do th...more >>

DataGrid Pivot
Posted by Jon at 5/16/2006 9:09:02 AM
Hello all. Can anyone help with the following problem? I have a DataGrid with the following data: col1 col2 col3 col4 DataA a DataB b DataB b DataB b But I'd prefer it if the...more >>

Add iFrames dynamically
Posted by Gave at 5/16/2006 9:04:53 AM
Hello, I need to add iFrames dynamically to html. So, for each iFrame I need to set scr property with an image that will be printed without display the page. Is possible it? Thanks in advance. Gabriel. ...more >>

Trying to filter an Access database with a Field LIKE "%" + "@PARAM" + "%"
Posted by mosscliffe at 5/16/2006 8:58:49 AM
I have been messing with the above all afternoon. I must just be thick I am using an AccessDataSource I have tried modifying the select but I can not find the right syntax to concatenate the LIKE part of the test by surrounding my textbox field value with a leading and closing %. I hav...more >>

q: copy data from one data set to another
Posted by JIM.H. at 5/16/2006 8:58:02 AM
Hello, I am trying to write the data I got from a web service to my table in SQL Server I need to append the dataset wsDS to the dataset ds and do update. PVS.myWS.Loader load = new PVS.myWS.Loader(); DataSet wsDS=load.WsLoad(); dataGrid1.DataSource=wsDS; string strConn = ConfigurationSe...more >>

Persisting Classes over page postbacks
Posted by steven scaife at 5/16/2006 8:21:02 AM
I have written a class that stores some values in a class. I want to instantiate this on page load or whichever event is appropriate. However when the page postbacks i want to use the first instantiation of the class until i submit the page through the submit button. However i cant get it to...more >>

key press event on a ASP.net text box
Posted by donald at 5/16/2006 7:58:21 AM
I got a ASP.net text box called textbox1 and a label called label1. When a key is press in a text box i want it to up date the label with what is in the textbox. Label1.Text = TextBox1.Text; But on a ASP.net text box there is no on key press event like this is on a normal html text box bu...more >>

<%$ConnectionStrings:Northwind%>
Posted by Peter at 5/16/2006 7:54:01 AM
I found one aspx page in a PC for ASPX learning, in one web control, <asp:SqlDataSource>, one of its attribute is as below: ConnectionString=<%$ConnectionStrings:Northwind %> The page works. And apparently, <%$ConnectionString:Northwind%> has the database credential information. But, I do n...more >>

Pages creating onclick="return TABLE1_onclick()" causing javascript errors
Posted by Dennis at 5/16/2006 7:46:49 AM
For some reason the HTML that is being created by my ASP.Net pages (2.0) have a table like this: <table border="0" cellpadding="0" cellspacing="0" style="z-index: 103; left: 0px; width: 100%; position: absolute; top: 0px;" id="TABLE1" onclick="return TABLE1_onclick()"> This ends up causing ...more >>

passing parameters to a user control
Posted by CSharpguy at 5/16/2006 7:19:02 AM
How can I pass parameters to a userControl so I have my drop down in the userControl populate with the correct data? ...more >>

SMS Connection in .Net
Posted by Ryan at 5/16/2006 6:08:02 AM
Is there a namespace, reference or other include that would open allow me to connect to our SMS database. We post queries as reports to the web so we need to get the list of available queies, and interrogate them for there contents before running them. We have done this in old ASP but we a...more >>

consuming a web service
Posted by Julia at 5/16/2006 5:27:02 AM
Hi I have just started to look at VS 2005 and ASP.NET 2.0. I have now been asked to develop a small web page that are suppose to show some information in a table and when clicking on one row in the table some details are going to be shown. The information will be return from a web service. ...more >>

Encoding problem when posting text between classic ASP and ASP.NET
Posted by Peter2 at 5/16/2006 5:27:02 AM
Hi, I have a problem posting non-ASCII characters in FORM fields between classic ASP and ASP.NET. I use a fully patched Windows 2000 Advanced Server with .net 2.0 and visual Studio 2005 installed, IIS, IE6 etc ... When an *.ASPX page receives the post, it drops non-ASCII characters, for e...more >>

Adding a column to a GridView at Runtime and DataFormatString
Posted by Eamonn at 5/16/2006 5:18:31 AM
Hi I am running Microsoft Visual Studio 2005 Team Edition Version 8.0.50727.42. I am adding columns to a GridView at runtime. When I add a BoundField that will contain DateTime data I want to format the date so I use: BoundField.DataFormatString = <myDateFormat> However it just displays th...more >>

Access Methods on Page from user control
Posted by Congero at 5/16/2006 4:52:02 AM
I have a user control embedded in a page. When the user clicks a link button on the user control, I would like to execute a method on the page and pass it two parameters. How can I accomplish this? thanks -- Live long, stay strong...more >>

2.0 Dynamically added usercontrol: Cannot "find" control!!
Posted by OJ at 5/16/2006 4:48:06 AM
Hi, I have added code to run on a button click event which adds usercontrols to an asp:Panel control held in a contentplaceholder defined by the masterpage. for (int x = 0; x < (Master.PartyCtrl.Adults ); x++) { ASP.usercontrols_passenger_ascx passenger = new ASP...more >>

RE Session_end
Posted by Amol at 5/16/2006 4:47:23 AM
HI , I am tring to use the session_end event in global.asax. My requirement is after specific time i need to show a msg box to user for he being idle and after that need to redirect the user to other page. How can i achieve it?? Thanx in advance ...more >>

Cross Page Post Back When Using Mixture of Master Pages and Non-Master Pages
Posted by Jason NO[at]SPAM webbit.com at 5/16/2006 4:46:12 AM
I have page1.aspx that a user enters data in some form fields. Page1.aspx's form fields are placed within a Content Place Holder on the page and the page is using a Master Page. Page1.aspx posts to Page2.aspx, which doesn't use a Master Page at all - it's just a straight forward .aspx page. Prob...more >>

External Assembly accesing Session generates an error
Posted by ras26 at 5/16/2006 3:23:01 AM
I have a WebSite "App1" which has an external assembly "Lib1". Inside this external assembly we have developed some classes that derive from "System.Web.UI.Page". One of these pages is called "WebNotification". In the WebSite "App1" we create an instance of "WebNotification", but when this...more >>

User Controls with same name on same page
Posted by rgparkins NO[at]SPAM hotmail.com at 5/16/2006 3:10:53 AM
Hi This has been asked before but with no resolution so I am putting it out there again in case someone has an answer. 2 user controls with same name List.ascx but different namespace, and I drag them onto the page. When the page is displayed I get Compiler Error Message: CS1595: 'ASP.Lis...more >>

Sql Server connection error
Posted by Mr. Murad Jamal at 5/16/2006 2:54:01 AM
hi .. i have an error in this simple scenario: i drag the log in control in asp.net 2.0 and drop it on the designer, then, I run the sample (run wihtout debugging) ! VS 2005 gives me this error: "Failed to generate a user instance of SQL Server due to a failure in starting the process for th...more >>

version problem access sql sever?
Posted by chian at 5/16/2006 2:29:02 AM
<add name="SQL Server" providerName="System.Data.SqlClient" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Databases\MyData.mdf;Integrated Security=True;User Instance=True" /> i have visual studio 2005 pro and sql server 2005 pro. i got an error "An erro...more >>

Request.FilePath gets full path...built in way to grab just the filename?
Posted by Darrel at 5/16/2006 12:15:51 AM
using Request.FilePath will return the entire file path: directory/directory/myfile.aspx Is there a built function in ASP.net to grab just the filename (myfile.aspx) or do I need to write some string manipulation functions to grab it out of the filepath? -Darrel ...more >>

Accessing HTTP_REFERER for requests coming in from https
Posted by Vishwanathan Raman at 5/16/2006 12:14:01 AM
I have an issue accessing HTTP_REFERER property when the requests come in from https. The value comes as null. Is there a work around that will help me get the value of the property irrespective of whether requests come in from https or http.The ASP.Net application that rcvs the request is htt...more >>

Calling several webrequests at the same time
Posted by GM at 5/16/2006 12:00:00 AM
(my original post was in a wrong newsgroup) Hello, Is it possible to call 4 webrequests from an aspx file at the same time and then wait for the results of all 4 to come in. (4 webrequests to 4 different servers) I know that I can create 4 threads to do this, but when this application is c...more >>

Hyperlink with JavaScript
Posted by Sorin Sandu at 5/16/2006 12:00:00 AM
I have a datagrid with a hyperlink column. The code is : <asp:HyperLinkField DataNavigateUrlFields="ccod" DataNavigateUrlFormatString="javascript:var newwin=window.open('serii.aspx?cod={0}',null,'width=692,height=25');" HeaderText="Serii" Text="Serii"> ...more >>

Delete with ObjectDataSource does not work
Posted by Jürgen Bayer at 5/16/2006 12:00:00 AM
Hi, I just tried out the ObjectDataSource of ASP.NET 2.0. A simple application works with a GridView bound to an ObjectDataSource. The ObjectDataSource is set to a (factory) class (PersonFactory) with static methods (Select, Update, Delete, see below). The factory methods work with instanc...more >>


DevelopmentNow Blog