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 2004 > threads for tuesday may 25

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 safely allow html input in texboxes?
Posted by DDK at 5/25/2004 11:23:38 PM
I am trying to figure out the best way to allow users to submit HTML in a textbox, and allow them the ability to edit the text HTML submitted afterwards safely in ASP.NET + C# (submitted to a sql server database), so that the application is not subject to script attacks. Any ideas on the best op...more >>


Handling Exception in Web Services when using HttpGet protocol.
Posted by Sherif ElMetainy at 5/25/2004 10:10:58 PM
Hello I have an application with several web services. I want to be able to log all exception are thrown by any web method. Since the web services handler catches and swallows all exceptions, and send them to the client in a soap message, Global.asax's Application_Error method can't be used. S...more >>

windows.open from a webbutton
Posted by Fabiano at 5/25/2004 9:41:29 PM
Please, there's any way i can from a WebButton execute windows.open Javascript command? I tryied everything but it aways do a postback. Tks, Fabiano ...more >>

Acessing codebehind data from ASPX
Posted by Fabiano at 5/25/2004 9:35:41 PM
Please, i have an webform (.aspx) where i need to acess data of my codebehind (.cs). Is there a way i can do this? I tryied something like ASP approach with no sucess. Any idea? Tks Fabiano ...more >>

Click event in a datalist to post back datalist properties
Posted by Steve Lloyd at 5/25/2004 9:30:27 PM
Hi there, I have built a data list that contains dropdownlists that are populated depending on details of the item in the datalist by adding a datasource to the drop downs as part of the itembound event, which has all worked very nicely... My problem is that i want to use a click event on a L...more >>

Delegating Events between User Controls?
Posted by Johannes Eble at 5/25/2004 9:12:53 PM
Hello community, let's say I have a web form containing two User Controls, usrA and usrB, respectively. usrA.ascx has (among others) a Dropdown List ddL1 with Autopostback=True and a ddL1_SelectedIndexChanged Handler. usrB itsself has a child user control, usrBB. I must delegate the ddL...more >>

When to update the database when moving through a series of forms
Posted by Simon at 5/25/2004 8:21:58 PM
Hi everyone, I have a small problem regarding a wizard that I'm making on my website. The wizard is obviously a series of pages that take values from the user. My question is: - Should I store all the values entered until the last page and then update the database, or should I do it as I ...more >>

dataset.writexml and loading from file
Posted by Martin at 5/25/2004 7:51:06 PM
Hi, I have found that it is possible to load data from a database into a dataset and then write the dataset to a file in the form of XML using the WriteXML method of the dataset. However what I am asking is if it is possible to re-load the XML file back into a dataset. many thanks in a...more >>



How to add items in toolbar after installing a component?
Posted by popman at 5/25/2004 6:17:30 PM
Hi all, Sorry,I don't know where I can ask this question.So I came here to try my luck. I developed an asp.net controls and I'd like to add controls in vs.net's toolbar after intalling.So any points? Thanks all. Neo ...more >>

Adding hyperlinks to labels?
Posted by Rob Meade at 5/25/2004 5:58:44 PM
Hi all, I've tried to add a hyperlink object inside a label object and its not having any of it...any ideas? Code below.. ' Declare variables Dim Link As Hyperlink ' Create a new hyperlink instance Link = New HyperLink ' Set the properties for our hyperlink Link.Naviga...more >>

Session State not carrying across assembly boundary
Posted by JezB at 5/25/2004 5:14:56 PM
I have various web pages in two different "web application" project assemblies (WebClient1 and WebClient2), and another "class library" assembly WebLib. I have methods in the library which set and read session variables. However, I'm finding that if I set a session variable in a call from WebCli...more >>

column in dataGrid
Posted by simon at 5/25/2004 5:07:36 PM
I have template column in dataGrid and visible=3Dfalse. <asp:TemplateColumn visible=3Dfalse> <ItemTemplate><asp:CheckBox Runat=3Dserver ID=3DchkExists = Checked=3D'<%# Container.DataItem( "obstaja" ) % >'></asp:CheckBox> </ItemTemplate> </asp:TemplateColumn> When user clicks ...more >>

How to create the tow virtual directory in one Install program with
Posted by chenggf at 5/25/2004 5:00:39 PM
How to create the tow virtual directory in one Install program with Microsoft.Net ? ...more >>

How do you databind a CheckBox?
Posted by aualias at 5/25/2004 4:59:50 PM
This seems like such a lame question, but how do you bind to a CheckBox with ASP.NET? With Windows Forms there is a DataBindings collection. I do not see it with the web version of the control, but there is a DataBinding event. Thanks. AU ...more >>

Creating JavaScript on ASPX page
Posted by Kent Ogletree at 5/25/2004 3:41:46 PM
I need to get some JavaScript values onto an aspx page and I am not finding anything using Google. (probably not stumbled onto the right keywords) The code behind has the object that conatins the info I need to get onto the page. In old asp I would usually do: var someStringValue = "...more >>

How to redirect whole web site?
Posted by hb at 5/25/2004 3:30:49 PM
Hi, I have web site written in C# using Asp.Net. I need to move it from server1 to server2. Since there is a delay from the moment I send change request to domain registrar for new IP to the moment the change takes place, I need to redirect all requests from server1 to server2 using new IP....more >>

How to access the <form> control which is in the parent?
Posted by Quentin Huo at 5/25/2004 3:27:43 PM
Hi: There can be only one <form> control in one page. So generally the user controls should not include the <form> control. I created a user control which is used to edit the book's information and I need to dynamically create the TextBox controls for the author names of a book because diff...more >>

Image Problems
Posted by BluDog at 5/25/2004 3:15:37 PM
Hi I have a class that has a System.Drawing.Image as a property, i would like to display this image on my WebForm, however i think i need to get it into a System.Web.UI.WebControls.Image object, but i cannot work out how do conver it. Any ideas? Thanks blu...more >>

Custom Configuration management for app.Config
Posted by tronicsolution NO[at]SPAM yahoo.com at 5/25/2004 2:22:53 PM
Hi, I created a custom Section handler using System.configuration for Web application to read from Web.Config File. If I want to use the same handler to read from app.config file: app.config is not interpreted as XML file, & the code breaks. Here is the sample of the logic. For Each nod...more >>

Ping an IP address on a Local Network
Posted by Devin at 5/25/2004 1:56:06 PM
I am trying to figure out a way to ping IP address. This is because we assign all of our IP address in house, and when we are assigning a new one, we wish to verify that it is not already in use. THis functionality needs to be webpage based though. Basically all I need is a way to tell a computer to...more >>

Exclude some web pages from authentication
Posted by Hardy Wang at 5/25/2004 1:51:24 PM
Hi, I have a ASP.NET web site with form authentication. Now I need to create a sub folder named "abc", I need to exclude all files under this folder nopt to be protected by form authentication, how shall I do it? Thanks! -- WWW: http://hardywang.1accesshost.com ICQ: 3359839 yours Hardy...more >>

is there any control for "<br>"?
Posted by Quentin Huo at 5/25/2004 1:44:05 PM
Hi, I am trying to dynamically create <asp:TextBox> controls in a page, like: Label lbl = new Label(); TextBox1 = new TextBox(); TextBox1.ID = "TextBox1"; ...... TextBox2 = new TextBox(); TextBox2.ID = "TextBox2"; ...... lbl.Co...more >>

FormsAuthentication and session_end
Posted by Darren Clark at 5/25/2004 1:34:21 PM
WHen a session ends... it is important to call = FormsAuthentication.Signout() ?...more >>

Arraylist searching question
Posted by C Downey at 5/25/2004 1:25:53 PM
Hello: I have an arraylist storing some very basic objects. The object is very basic, it has 2 properties : ID, and COUNT Before I add an object to the arraylist, I want to check if an object with that same ID already exists in the arraylist. If it does, I would like to increase the cou...more >>

dynamic hyperlink
Posted by ashish at 5/25/2004 1:17:33 PM
hi all, may be iam missing some basic Iam trying to do <asp:hyperlink id="myhyperlink" text="my hyperlink" runat="server" navigateurl='<% GoToMyFunction %>' ></asp:Hyperlink> and its not going to my function in the code behind any help would be appreciated tia -ashish...more >>

Streching image background?
Posted by R.A. at 5/25/2004 12:17:27 PM
Hi I have an image 700/50 pixels. I want it to be the footer of the web page. Is there a way to make it streach if the browser view area is larger than 700? What I see today is a blank area after the image size - when for example I view in 1024 pixels screen. Thanks ...more >>

References when copying from local to test server
Posted by Chris Kennedy at 5/25/2004 11:57:53 AM
I have a page which uses a third party component. Which is accessible from all projects (is in the GAC the right word?) on my local machine. I copy the project over to the test server and even though the component is installed on that machine, it can't find it. I set up the reference by pointing...more >>

Setting up a dummy SSL certificate for developing...
Posted by Charlie NO[at]SPAM CBFC at 5/25/2004 11:51:54 AM
Hi: Is there any way I can setup a test SSL certificate on my development machine? My host requires I change URL's to start with https, but creates extra work because development machine doesn't support them. thanks, charlie ...more >>

Reading from a com port
Posted by Paula at 5/25/2004 11:46:06 AM
I have done a lot of research trying to figure out how to read from a com port that has a scanner connected to it. In VB6 it was easy to use the MSComm control. Does anyone have any suggestions on how to do it in an ASP.NET app...I want to be able to scan a barcode (the scanner is connected to com1)...more >>

Reading in an HTML page from CGI Scripts
Posted by Brent V at 5/25/2004 11:41:04 AM
Hopefully someone has had to handle this type of situation in .NET before. I have an ASP.NET (VB.NET) that has an interface to an API CGI script program. I send a credit card number, amount, etc to the API via a HTML interface doing a form post to that specific server and port. The API passes the pa...more >>

Control Arrays in ASP.Net
Posted by Elmo Watson at 5/25/2004 11:35:47 AM
in VB6, I used to be able to create an array of controls: textbox(0) textbox(1) textbox(2)....etc That way, I could do a for/next loop and run through them with code, using their index number as a key for the routine... I tried to do this with panels, but adding the parentheses to the ID t...more >>

.NET Classes and Different Domains
Posted by sales NO[at]SPAM trevoroakley.com at 5/25/2004 11:34:55 AM
I have written an account/cart/search facility at redburg.co.uk and now I need to implement it elsewhere, eg at safavid.co.uk. The closest parallel solution I can think of is a Java Package which has several classes and can be accessed via a routine. Similarly I would like to bundle the c# cod...more >>

Add several arguments to DataNavigateUrlField / DataNavigateUrlFormatString
Posted by Fredrik Rodin at 5/25/2004 11:31:21 AM
Hi! I'm about to create a datagrid and columns at runtime. The problem I have is to add additional arguments to the querystring. The code: Dim hc1 As New HyperLinkColumn hc1.DataTextField = "sProduct_Name" hc1.DataTextFormatString = "Show details for" hc1.DataNavigateUrlField = "sPr...more >>

TextBoxes with Yellow Background
Posted by A.M at 5/25/2004 11:16:15 AM
Hi, Even I specifically mentioned "white" as background color of all ASP:TextBoxes of my form, Some of them come up with yellow background. I guess it should be kind of ASP.NET behaviour, but I don't know what exactly it means. What is the meaning of that yellow BG color of ASP:TextBoxes ...more >>

how to redirect to loginpage after session timeout
Posted by francois at 5/25/2004 11:05:35 AM
in my web.config i have the following : <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="120" /> After 120 minutes of inactivity, the session times out...more >>

Why isn't my style being used ?
Posted by JezB at 5/25/2004 10:54:56 AM
Im my Page_Load method I create a label dynamically and add it to my Page: Label l = new Label(); l.Text = "Example"; l.CssClass = "H2"; this.Controls.Add(l); My page is linked to an external stylesheet, but when the control is rendered it is not using the H2 style - what am I missing ? ...more >>

In asp.net ,"excel.application"cant create ,it displayed "Rfuse Access"
Posted by Michael Twua at 5/25/2004 10:51:18 AM
In asp.net with vb.net,I can't create a excel object,such as excel.application,excel.workBook,excel.workSheet. It displayed that "System.UnauthorizedAccessException Refuse Access". I have import "Microsoft Excel9.0 Object Library", aspnet user have all data operation. What Problem it is?How t...more >>

Persist data in XML data island
Posted by pwalessi1 NO[at]SPAM hotmail.com at 5/25/2004 10:47:08 AM
I want to use an XML data island to display editable records to a user on the cleint side. The user should be able to scroll through the records, modify any or all fields in any or all records, add records, and delete records. As far as I can see, there are a couple of ways to implement this. ...more >>

Adjusting to screen width
Posted by VJ at 5/25/2004 10:32:34 AM
Is there a any known easy way to fit web pages for a screen resolution. Can I do this programmatically? VJ ...more >>

Questions on ASP.NET Starter Kits: Community
Posted by Edward at 5/25/2004 10:22:43 AM
I've studied Portal, Report, whose whitepaper can tell the mechanism at the first time, but Community is different. I succeeded in localizing the page to chinese, but that experience didn't make it clear to me, what's the mechanism of request handling? browsers request for http://localhost/c...more >>

Connecting to existing remote project
Posted by Jerad Rose at 5/25/2004 10:11:06 AM
Hello, I have searched all over for the answer to this, to no avail. I have a web project already set up and running on a remote server, that I created from my home computer. I am now trying to connect to it from my work computer, but cannot figure out how to set up the project. Here are ...more >>

I broke View Source on IE?
Posted by dgk at 5/25/2004 10:10:52 AM
View Source won't work. I checked Google, there were quite a few suggestions. Cookies are not turned off. Notepad is where it is supposed to be. I emptied the temporary internet files. I searched the registry for a noviewsource key. Nothing worked. View source does nothing. Any ideas? It works...more >>

Programming questions on Geography Items Configuration
Posted by Edward at 5/25/2004 10:08:05 AM
hi, I've some requirements about the data, Nations->States->Cities->Counties, four level. I want to give a friendly UI to customer, but I wasn't satisfied with all that I thought out, can anybody give me some idea ? here I list my ideas: 1) each level has one seperate page, the first three...more >>

Question: Minor personalization
Posted by VB Programmer at 5/25/2004 10:06:14 AM
Simple scenario: I have a ASP.NET website that users log into. Everyone has a personal page which they're redirect to after login. Everyone is redirected to the SAME HTML page, with the exception of this: Near the header it says, "Hi <insert name>. You live in <city>. Welcome!" Their login...more >>

Compiler constants
Posted by martin at 5/25/2004 9:50:26 AM
Hi, I am having a little trouble defining compiler constants and picking then up in my code. In the configuration manger I defined the constant "Martin" I then set the Project Configuration to "Martin" in the configuration manager. however the following code does not pick up the fact t...more >>

Enter Key in textbox causing Postback....
Posted by Gill Smith at 5/25/2004 9:50:10 AM
In my ASP.Net application when the user hit the enter key and the focus is on the edit box causing the page to postback. How to avoid this ? -Gish ...more >>

ASP.Net does not work after IIS uninstall/reinstall
Posted by johnbdh at 5/25/2004 9:31:04 AM
Due to real ds mistake on my part IIS was inadvertently uninstalled on my web server. After reinstalling IIS, I have been able to get everything back up except ASP.net. Any page served using ASP.net returns the generic Runtime Error page.... Server Error in '/Qmcfm' Application. ----...more >>

dynamic meta refresh?
Posted by Matt Swift at 5/25/2004 8:51:53 AM
Does anyone know if a meta tag using refresh can be made into a dynamic control, given a 'runat' and 'id' ? -- Matt Swift ------------------------ Developer , S-Cool Ltd +447966670029 matt.swift@s-cool.co.uk matthewswift@hotmail.com ...more >>

How to delete some temp files at the end of a session
Posted by David Hearn at 5/25/2004 8:48:39 AM
I am using some temporary text files and xml files to store some data in during a users session. When their session ends (they leave the site or their session times out) I need to delete these files. What is the best way to do this? Thanks in advance! ...more >>

Visited links in a datagrid
Posted by Jim Corey at 5/25/2004 8:46:58 AM
I have a datagrid displaying a report, which includes link buttons that I use to drill down. A. When I return to the datagrid the links display as visited. B. If I run my report again and change some parameters, the report may be totally changed in terms of data and number of rows, but ...more >>

Crystal Reports Runtime
Posted by Bob at 5/25/2004 7:36:02 AM
Hello Do I need the Crystal Reports Runtime installed on the client browser machine to be able to view a report on an asp.net page? We want to generate some reports for our clients to view over an aspx page but don't want them to have to have the runtime on their machines Thanks! Bob...more >>

Creating a Function to Find and Return CheckBox Status
Posted by Rob at 5/25/2004 7:06:55 AM
Hi, I am creating a DataList with many CheckBoxes. When I click the Update button the UpdateCommand fires and my code looks at each CheckBox and determines if it is checked or not. The way I have it now seems a bit tedious. I thought it would make more sense to pass the CheckBox ...more >>

Listbox Or Datagrid....?
Posted by anon at 5/25/2004 6:47:03 AM
Hello Everybody, I am stuck with a design issue and a looking for any directions on how to accomplish this... I have a database with certain not null fields...like for eg degree 1, degree 2 degree 3 etc... i would like to display the person's photo and then have a bulleted list alongside th...more >>

Uploadin files to not web server
Posted by Peter at 5/25/2004 6:26:03 AM
Hi I have this situation where I need to upload a file to the server which is not web-server where the application relies, because my web servers are in the cluster and if the user uploads some file to one of ther web-servers the file wouldn't appear in another web server. Can I somehow upload a f...more >>

Installing ASP.net Server on Win XP Home?
Posted by Stefan Richter at 5/25/2004 4:22:30 AM
Is it possible to install IIS on WIN XP Home? If not, which other server could I use instead to be able to develop ASP.Net stuff with Visual Studio.Net??? I tried to install IIS, and on the Visual Studio CD I found the following instruction: --------------- To install Internet Information Se...more >>

Datetime in datagrids
Posted by Tayo at 5/25/2004 3:46:03 AM
How do I format a datetime datfield to show only dates in a datagrid control ...more >>

Causing postback
Posted by D at 5/25/2004 3:11:04 AM
Hi In my asp.net application, on click of a button there is some server side code which decides whether a popup window (displayed using showmodaldialog) is to be displayed. If the popup is displayed, on click of OK on the popup, I need some server side code to be executed on the calling page Cou...more >>

Storing Xslt Files in Application.
Posted by johndoe NO[at]SPAM driver.net at 5/25/2004 3:03:12 AM
I was wondering if there would be any significant performance increases by loading Xslt Files into the Application Variables if there were a single or maybe multiple XSLT file(s) that would be used throughout a website. I do not know if relieving the I/O burden would overcome the memory/hashta...more >>

configuration error
Posted by sathish at 5/25/2004 2:46:03 AM
how to configure a virtual directory as an application in IIS...more >>

Parser error
Posted by sathish at 5/25/2004 2:21:06 AM
give me guidance to solve this proble the following is the error i get Server Error in '/' Application ------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request...more >>

File or assembly name System, or one of its dependencies, was not found.
Posted by oni-r NO[at]SPAM libero.it at 5/25/2004 1:33:45 AM
i'm new in asp.net after develop my solution i copied it on the server where I want it to run but something cares... WHAT?!?! thank you in advance File or assembly name System, or one of its dependencies, was not found. Description: An unhandled exception occurred during the execution of the...more >>

Time of application (domain) start
Posted by Gawel at 5/25/2004 1:21:14 AM
How can I get time the application started ? thanks in advance -- Gawel ------------------------------- Pierwszy ³yk z pucharu nauk przyrodniczych czyni ateist±, ale na dnie pucharu czeka Bóg. Werner Heisenberg ...more >>


DevelopmentNow Blog