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 2004 > threads for friday may 28

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

upload xml to https with certificate?
Posted by Jonathan Wax at 5/28/2004 11:38:10 PM
Hi, I spent the last week looking for an answer to the following question: How can you upload an xml file to an HTTPS server with a specific certificate. Basically doing the same as this html form in c# code: <form method="post" enctype="multipart/form-data" action="https://www.site.com/up...more >>


accessing server control properties from client
Posted by chauncy at 5/28/2004 10:28:44 PM
Hi, I have a databound dropdown filled with data. The text value is a file path that I want to use to open that file in a new browser window. I can do this with a html dropdown because I can access the properties of that control from javascript. document.form.mydd.value put that in a ...more >>

asp.net page template *inheritance)
Posted by John Boers at 5/28/2004 9:47:24 PM
I am trying to create a template for my website. But I have a problem, the system says BC30469: Reference to a non-shared member requires an object reference and points to the statement PageBase.Render( writer ). I create the template by overriding the System.Web.UI.Page.Render method. Then i...more >>

runat="server" attribute in submit button
Posted by Matt at 5/28/2004 9:13:32 PM
I want to know what is the purpose of runat="server" attribute?? For example, for a submit button, it just submit the form data to the server, whats the differences between <input type="submit" name="submit1"> <input type="submit" name="submit1" runat="server"> Please advise! Thanks!! ...more >>

AutoPostBack property=true concept
Posted by Matt at 5/28/2004 9:10:58 PM
When we set the AutoPostBack property=true in a web control, it means post the current form data to the IIS server, and open the current page (means refresh the page). Is that the correct logic? please advise. Thanks!! ...more >>

OT: alternatives to Payflow
Posted by Matt at 5/28/2004 8:37:56 PM
My apologies for being off-topic--I saw Payflow being discussed here earlier. I'm wondering if there are alternatives to Payflow Link/Payflow Pro. I like the price of Payflow Link ($19.95/month) but I don't like that you can't customize your order form since the form is hosted on verisign's ...more >>

how do I create a page that listen to the following url http://us.f513.mail.yahoo.com/ym/login?.rand=cpewweffef2kgrt?
Posted by Nigil LaVey at 5/28/2004 7:36:13 PM
hi guys. how do I create a page that listen to the following url http://us.f513.mail.yahoo.com/ym/login?.rand=cpewweffef2kgrt? what are the classes that I should look into it? please advise all thoughts welcome. regards, Nigil Chua ...more >>

ASP.NET error
Posted by Matt at 5/28/2004 7:30:24 PM
I have IIS 5.0 installed in Win2K machine. When I tried to created ASP.NET (C#) application in VS.NET 2003, it has the following error: "Visual Studio .NET has detected that the specified web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET web applications or servi...more >>



How to put gif file in Data grid......
Posted by Gill Smith at 5/28/2004 7:29:55 PM
I have used hyper link in the datagrid cell wherein user can delete the row by clicking on it. How to replace this hyperlink with image in these cell ? Gish ...more >>

How to check if a control exists?
Posted by Quentin Huo at 5/28/2004 6:26:01 PM
Hi: Some of my controls (e.g. TextBox, DropDownList, ...) are created programmingly, so I have to check if a certain control exists, like: if the TextBox control exists, get it value. else ...... How can I do this? Thanks Q. ...more >>

httpmodules and web or custom controls
Posted by Felipe Garcia at 5/28/2004 5:39:36 PM
how to insert a web control or a custom control in the footer of every web page of a web site ? i've got only insert simple text, with response.write. The point is: I have built a feedback control, and i want it to be available on the footer of every page of my web site. Thanks. ...more >>

Session State 2 Webprojects
Posted by Arun at 5/28/2004 4:56:59 PM
Hi, Is it possible to share Session/Application State across different Asp.net webapplication (one in VB.net ) and the other is C# ? If so can you guide me ? -Regards' Arun ...more >>

Custom Control Postback Problems
Posted by BluDog at 5/28/2004 4:10:14 PM
Hi I have a created a custom web control called ImageBrowser, extract is below: <Code> #Region "Properties" Public Property Images() As ImageCollection Get If ViewState("Images") Is Nothing Then ViewState("Images") = New ImageCollection ...more >>

RegularExpressionValidator doesn't ignore case
Posted by A.M at 5/28/2004 4:00:39 PM
Hi, How can I set the option of RegularExpressionValidator to RegexOptions.IgnoreCase ? Thanks, Alan ...more >>

enums
Posted by martin at 5/28/2004 3:29:47 PM
Hi, Is it possible to declare an enum and then declare a variable of the enum type. Public Class SessionVars Inherits Object Public Shared strGroupName As String Public Shared strPracticeName As String Public Shared mode As Modes <------------------------------*******ER...more >>

treeview & 2003 server
Posted by Chris Marsh at 5/28/2004 3:17:54 PM
I have setup a treeview on my XP desktop and it displays data yet on the Windows 2003 Server it will not display the treeview. Does anyone have a clue on how to make this function on 2003 Server? thanks ...more >>

what is SetSlidingExpiration ?
Posted by Hardip Wadhwa at 5/28/2004 2:55:09 PM
Hi, Can somebody explain me what exactly is Cache.SetSlidingExpiration Thanks ...more >>

Step-thru code - odd behavior
Posted by me NO[at]SPAM privacy.net at 5/28/2004 2:48:57 PM
I have a breakpoint in an aspx page that I'm using to try to trap some code to see what's going on. I'm translating a page that is working in a traditional ASP page, which takes several session variables, formats a header, and assigns a sql stored procedure to be run and a report generated in a...more >>

Connection Pool
Posted by Jim Heavey at 5/28/2004 2:35:48 PM
How do I set up a Connection Pool? How can I look on the server and see how many connections are being used by my application? I am pretty sure that my application must be leaving connections open, because I begin to receive error message indicating that the system can not open a connectio...more >>

public module not accessible
Posted by Ryan.McLean NO[at]SPAM NAU.EDU at 5/28/2004 2:18:20 PM
Hello everyone! I will describe what I am trying to accomplish, then the problem I am having. I am storing database passwords in the appSettings node of the web.config file. In the Session_Start of the global.asax file I am calling a public sub routine inside of a public module. The sub set...more >>

System.IO.FileNotFoundException using file.copy
Posted by Stephen Witter at 5/28/2004 2:13:44 PM
I had previously posted this on the security ng, but haven't had a hit so I was wondering if someone here would be willing to take a stab. I am trying to copy a file to a network drive. I can do it on the web server but not from a client. Here is the code: Dim impersonationContext As S...more >>

dynamic hiding/showing of template column
Posted by beccak at 5/28/2004 1:47:52 PM
Hi, I'm trying to hide a template column in a datagrid then later show it. I've tried setting the visibility to false, but this doesn't let me get to the underlying data in the column. I've tried wrapping divs around the data and setting the div's style to display:none, but this leaves visible e...more >>

Server.MapPath("/");
Posted by Jim Heavey at 5/28/2004 1:41:30 PM
Hello, I am trying out how to programatically figure out where my datafile is. I thought I could use Server.MapPath to provide me the name of where my webpage is located, as I have used that in other situations, but this situation is different. My web pages and data file do not reside on the...more >>

remote debugging with multiple developers
Posted by John Holmes at 5/28/2004 1:15:59 PM
I've got a test webserver setup on our intranet on the same domain that I and other developers are on. We create and edit our web projects from that location. If one person is running their project in debug mode, then another one tries to run their project we get the following error: Error whi...more >>

Help! Need quick answer...
Posted by Chad A. Beckner at 5/28/2004 1:12:25 PM
Does anyone know how to make common database connections "common" in all aspx files? In other words, instead of creating a SQLConnection, then a DataAdapter in every ASPX file for my application, I would like to "include" them, or "import", say an ascx file. In ASP, all you needed to to was in...more >>

Insertion index was out of range.
Posted by DaveF at 5/28/2004 12:58:29 PM
Insertion index was out of range. Must be non-negative and less than or equal to size. Parameter name: index Dim aaa As Integer = -1 Do While dr.Read Dim thecount = UBound(arrList) aaa += 1 For aa = 0 To UBound(arrList) - 1 Dim vall = InStr(UCase(dr("rpttype")), arrList(aa)) Di...more >>

Programatically Re-starting the web server
Posted by Steve Caliendo at 5/28/2004 12:54:59 PM
Hi, I would like to know if it is possible to re-start the web server from within asp.net. Maybe a DLL could kill the aspnet_wp ? Thanks, Steve ...more >>

Checking Query String
Posted by A.M at 5/28/2004 12:48:14 PM
Hi, To check if QueryString contains a key I compaire it with null like this code: if (Request.QueryString["id"]!=null) { Label1.Text= Request.QueryString["id"]; } else { Label1.Text= "NoId"; } Is it the best way to do see if QueryString contains a key or I am missing some better...more >>

Two ASP.NET configuration questions
Posted by spammy at 5/28/2004 12:46:06 PM
Hi, Two issues bugging me: 1) When creating new web applicaiton projects using VS.NET and file share mode, I always have to manually dip into IIS Manager and "create" the application in there (by right clicking on the folder -> Properties -> Create application). With another set up, this ma...more >>

How to lock the text of the TextBox control?
Posted by Quentin Huo at 5/28/2004 12:34:15 PM
Hi: I programmingly created a TextBox control, as: TextBox tbPublisher = new TextBox(); tbPublisher.ID="thepublisher"; tbPublisher.Text="Quentin"; I don't want others to modify the text of this control, how can I do? I tried making it be 'readonly', by adding: tbPublisher....more >>

Datagrid Next Page Problem
Posted by Marlene A. Roman at 5/28/2004 12:21:36 PM
Hello I have a question: I have a datagrid. I can make a specific search using some parameters I write and When a press a command button it calls an sp and returns the results of a search that is about 25 rows. I show only 13 rows so I have the "page paging" property to show the navigation bu...more >>

DHTML Behaviors and ASP.NET
Posted by Scupper at 5/28/2004 11:46:59 AM
I have been experimenting with adding some of the IE filters to an ASPX page, and have encountered a problem. Strangely, though the page will render in VS's browse window, it will not load in IE when pulling from the localhost using exactly the same URL. Here is the header of the ASPX file ...more >>

Map a drive
Posted by skumar at 5/28/2004 11:46:06 AM
I want to map a drive to my web server at run time when a user clicks a link in my web application Is there a namespace in VB.net to Map drives Or is there a Shell command which directly runs the command from the command prompt instead of running a EXE or a batch file Does anybody have a meth...more >>

UNIX command from C#
Posted by George Ter-Saakov at 5/28/2004 11:32:32 AM
Hi, Somehow i need to call perl script that is on another Unix machine form my C# code. The problem is that this perl script is executed form command line (no apache on that machine). Is it possible, Is there component that can emulate command line (telnet). Thanks George. ...more >>

Starting up Windows Program from a webform with current users's authentication
Posted by Kristof Despiere at 5/28/2004 11:19:28 AM
Suppose you have one domain, filled with a couple of users. What needs to be done now is I need to start a windows application from a webform by pressing a button on the webform (for example). The problem is that the user who "owns" the service is always the ASPNET account. That's not good sin...more >>

Windows form control will not render in IE
Posted by wjenny NO[at]SPAM coair.com at 5/28/2004 11:10:27 AM
I have created a simple windows form control using C# based on the following article. http://www.devhood.com/tutorials/tutorial_details.aspx?utorial_id=388&printer=t It works fine on my development machine. The problem is that on other machines with the same framework version the control d...more >>

how to redirect to loginpage after session timeout
Posted by Ather Ali Shaikh at 5/28/2004 10:43:34 AM
Hello I am using Forms Authentication. but the page is not redirect to desired login page after session is expired. When I debug the application. Session_end is called. In the Session_End method I write code to redirect to the LoginPage as (response.redirect("Login.aspx") or server.transfer("...more >>

Making a page wait.
Posted by Tim Marsden at 5/28/2004 10:38:10 AM
Hi, I would like to be able to create a page which accepts user input. When to user press Submit, a long task is performed, and the results displayed on a new page. When the user presses Submit, can I put a "Waiting...." page out. The page requests some information from another source, when...more >>

Forms not submitting in some browsers! Help!
Posted by msnews.microsoft.com at 5/28/2004 10:24:13 AM
I have a client who says the form does not submit. I'm fairly new to dot net and not sure why this would be. Is dot net not compatible with certain bowsers? I notice the controls tend to rely on JavaScript. I'm very concerned, since I'm deep into other projects using simple .NET forms and if thi...more >>

Could not load type
Posted by Luis E Valencia at 5/28/2004 10:03:59 AM
I havent make anything strane, now in everypage that I create I double click and automatically creates the BN file, then I code there what I need. Since a few days all the new pages I do have this error. Could not load type 'med13nt.comentarios'. Source Error: Line 1: <%@ Page Lang...more >>

Help!! i'm stuck in a big way
Posted by Chris at 5/28/2004 9:58:11 AM
Hey - sorry for the double post - but i'm really stuck and needing to fix this quicksmart. Okay using DataBinder.Eval in a repeater. My question is this - if the Container.Item value is empy, eg myDownloadFile is empty, how can i display different output than if it was populated. # prete...more >>

Configure editable form fields?
Posted by dm_dal at 5/28/2004 9:42:27 AM
I'm looking for some feedback or for someone to point me in a good direction. We have a web application that consist of many forms. Some of our clients have asked if we can configure the app in such a way as to allow them to turn on/off the editable nature of certain form fields. ie: Say ...more >>

Clear QueryString on PostBack?
Posted by Raterus at 5/28/2004 8:43:22 AM
Howdy, Simple question, but I can't figure out how to do it. I have a a page = which is called initially with a querystring. After I get the = querystring values, I don't need the querystring to appear in the url = anymore. How can I get rid of it? A postback doesn't clear it, it just = k...more >>

development process.... what is the best way ?
Posted by Darren Clark at 5/28/2004 8:41:23 AM
Currently when developing a asp.net site... I run the sql server on a remote server.. and the web files on my local so that i can debug without taking over = the who iis on the development server. my question is... how does everyone else work? how can i fit some version control softwa...more >>

I need a link on a datagrid
Posted by Luis E Valencia at 5/28/2004 8:40:59 AM
I need a link on a datagrid, the link must have fields of the database Like this acciones.aspx?iddireccion=1&idindicador=4 Thanks ...more >>

Version Control software?
Posted by Darren Clark at 5/28/2004 8:38:23 AM
Can anyone recommend any version control software that works well with = visual studio and asp.net development?...more >>

Question: Accessing ASP session variable
Posted by VB Programmer at 5/28/2004 8:26:10 AM
I have a site that contains many ASP pages and a few ASP.NET pages. If I set a session variable in an ASP page can this be accessed in my ASP.NET page? Any quick examples? Thanks. ...more >>

Refresh only the Datagrid
Posted by teddysnips NO[at]SPAM hotmail.com at 5/28/2004 7:58:35 AM
My app is intended to be available to about 20 people over an intranet. They will all be looking at (more or less) the same recordset, and the records are being constantly updated, either by users or other processes. I need to propagate these changes to users by some sort of "push" technology ...more >>

RequiredFieldValidator : DropDownList (newbie qu)
Posted by angela NO[at]SPAM kaisen.co.uk at 5/28/2004 7:21:04 AM
Hi I am trying to validate a dropdown with RequiredFieldValidator. One of the list items is 'Please select' with a value of 0. How can I validate whether they have selected this option? Thanks Angela...more >>

Global Assembly Cache Issue
Posted by George Durzi at 5/28/2004 6:51:37 AM
I have a dll that I use in several projects, that I placed in the Global Assembly Cache. This dll is references in each of my projects. This Dll is referenced by a type= declaration in my web.config as follows. <configSections> <section name="exceptionManagement" type="Microsoft.Applicat...more >>

Client side script concepts - Textbox string length
Posted by polytomy NO[at]SPAM hotmail.com at 5/28/2004 5:58:36 AM
I have as an example this very simple page <html> <head> </head> <body> <form id="myForm" runat="server"> <asp:textbox id="input" runat="server" /> <br> <asp:label id="inputLength" runat="server" /> </form> </body> </html> I want the label to reflect...more >>

HttpHandler and Session Issue
Posted by nbe NO[at]SPAM lincoln.fr at 5/28/2004 3:31:45 AM
Hi! I am currently working on a Web Application using some HttpHandlers. As i need to read/update objects stored in session, each Handler implements the IRequestSessionState interface. When requesting the webapplication using urls like http://localhost/<ApplicationName>/... everything wor...more >>

Dotnetframework does not work on virtual site?
Posted by Tom at 5/28/2004 2:21:04 AM
Hi I installed windows 2000 server, SP4, IE6 SP1, Dotnetframework 1.1, VS.net Prerequisites. I created a new site http://localhost:890 I added a new solution and web project in VS.NET 2003. In the dialog box, the path is http://localhost:8900/ProjectName Then, it showed the error message "Vi...more >>

map a Drive "V:/" for each session
Posted by skumar at 5/28/2004 12:51:01 AM
whenever a user log in in my web application, i am trying to Map a drive "V:/" to a network path which is unique to each user(but i have to map to drive V:/ only). As any number of users can login to the web app at a particular time , i do not know how to do this mapping in the web server I have t...more >>


DevelopmentNow Blog