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 > february 2004 > threads for monday february 2

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

Recursive User Controls?
Posted by Michael Carr at 2/2/2004 11:57:29 PM
Is it possible for a user control to contain instances of itself? i.e. for a TreeView-style control. When I try it, I get a Parser error: "Circular file references are not allowed." Thanks!! Michael Carr ...more >>

INPUT type=image
Posted by dwa at 2/2/2004 11:37:39 PM
This is a bit off-topic, but... Is it possible to write client side script that can address INPUT controls with a type of "image" which will work under Netscape/Mozilla? <INPUT type="image" ...> Controls of this type are excluded from the forms[].elements collection and 'document.all[]' i...more >>

kind of difficult to explain... dialog in front of another window... Thanks for your help!!!
Posted by Daniel Walzenbach at 2/2/2004 11:36:40 PM
Hi, I have to following problem: Imagine some kind of data the users of my application got to see. Based on this data they decide if it concerns them and they want to edit the data or if does not concern them in which case they should not be allowed to modify the data. To accomplish this behav...more >>

Detect moment when user closed session
Posted by NWx at 2/2/2004 11:29:04 PM
Hi, I have the following question: I have an app that uses user login/logout to identify users When user logon, I register logon time in a session variable When user logoff using the logout link, I also register logoff time and update accordingly the logging history table. However user can...more >>

Configuration variables
Posted by vineetbatta at 2/2/2004 9:51:07 PM
Hi all, What is the best way to store the configuration varaibles of the application (E.g: Registry, Web Config file, Xml file , text file etc)? E.g: of configuration variable is *Connection string *Support Links *# of retiries to SQL Server before exiting. What i am looking fo...more >>

Getting current windows user and groups
Posted by mark.williams NO[at]SPAM eq.edu.au at 2/2/2004 9:17:38 PM
hey, i'm trying to get the current windows user and the groups they are in. Intergrated windows auth on and annoymous access turned off on IIS. However when trying to compile the following code VS.net doesn't like the User.IsInRole("domain"); With the error "type or namspace for User not foun...more >>

simulate virtual directory for each user
Posted by Amir Eshterayeh at 2/2/2004 9:04:38 PM
Dear Friends Would you please give me your professional idea about this asp.net problem. I need different virtual directory for different customer with their names like these: www.oursite.com/Jack www.oursite.com/Sue www.oursite.com/Tom I have a asp.net project. It is a website and the ...more >>

Without SQL Enterprise - MySQL? XML?
Posted by Paul berry at 2/2/2004 8:41:06 PM
I have a project I'm working on where I just won't be able to have SQL enterprise. It's an ASP.Net VB project, and it needs to scale. Can I just use rigid and relational XML and have the entire site run well without an ODBC database? Will XML scale? I'm worried if I have a User.xml keeping tr...more >>



Problem with .NET Upload
Posted by Roger at 2/2/2004 8:27:42 PM
Hi, Anyone know why an upload would just give up? I'm running an upload page that seems to stop processing after 2 minutes ...more >>

Code behind problems
Posted by jlucas at 2/2/2004 7:45:25 PM
Hello, I am new to .Net and I need some help getting access to the controls in my aspx code. It seems my cs class can not get a good reference to the controls declared in my aspx file. Here are some code snippets that I have. CreateUser.aspx <%@ Page Inherits="CreateUser" Languag...more >>

duplicate form submission
Posted by Boban Dragojlovic at 2/2/2004 7:44:02 PM
I have a textbox control on a webform which contains the following attribute: AutoPostBack="True" OnTextChanged="RunSomeCode" if the user types something into the textbox and presses the TAB button, for example, everything is fine. But if the user types something into the textbox ...more >>

DataGridTableStyle Problem
Posted by Carlos at 2/2/2004 5:15:52 PM
Does DataGridTableStyle work in ASP.net ? any time I'm tring to define a varibale lke DataGridTableStyle MyStyle = new DataGridTableStyle(); it give me "The Type or name sapce 'DataGridTableStyle 'could not be found" also I have the following at the begining of the program.. using Syst...more >>

Processing XML From a cgi script
Posted by Dave Brown at 2/2/2004 4:58:55 PM
Hi all, I'm quite new to the whole ASP.NET language so please forgive my ignorance.. I want to know the easiest way to manipulate XML data that will come from a cgi script. Can anyone give me some pointers ? Thanks d. ...more >>

Forms question - Novice
Posted by sean at 2/2/2004 4:55:24 PM
Hi There, I am trying to post a form to another page, I have edited the action of the form command to the specific (URL much the same as HTML), when I submit the form it just posts back to the same page. Can someone help me out with some code or a tutorial on the subject? Sean <form id="...more >>

ASP.Net Form Security
Posted by Big E at 2/2/2004 4:53:23 PM
I'm using ASP.Net Form Security. I have a login page and a redirect page etc... What I want to do is setup some type of anti-dictionary hack code. If someone tries to login unsuccessfully 7 times I want to send them a custom error page. I'm not sure of the best way to check if they had tried ...more >>

Error Navigating Directly to an HTML Page in a web application
Posted by ConfuseddotNetnewbie at 2/2/2004 4:51:08 PM
Hi I can't find my other post so please forgive, not intentional. My problem is this when I navigate to an HTML file located in an ASP.NET application directly my error code in global.asax fires off and emails me the following error System.Web.HttpException: Exception of type System.Web.HttpExcep...more >>

ASP.NET 2.0.
Posted by simon at 2/2/2004 4:27:25 PM
Hi, I read something about ASP.NET 2.0. Now, I have Visual studio.net (version 7.1.3088) installed with .net framework 1.1(version 1.1.4322) Where can I get and install ASP.NET 2.0? Thank you, Simon ...more >>

winforms controls take a long time to load in IE
Posted by John Alesse at 2/2/2004 3:51:12 PM
Hi, I've created a very simple winforms control using the c# wizard in VS .net 2003 that is nothing but a System.Windows.Forms.UserControl. There are no other controls on the form It takes IE 12 seconds to load this control into the page. CPU usage is at only 1% to 2% during the 12 sec All of thi...more >>

MCAD 70-315
Posted by Steven Zhang at 2/2/2004 3:34:13 PM
Hi, I want to prepare the MCAD examination. Who can tell me some information about it? such as how many questions? How long ? Are there any good references for this? Thanks Steven ...more >>

Refresh a single frame inside a table
Posted by Charles A. Lackman at 2/2/2004 3:30:42 PM
using code how can i refresh a shopping cart that is inside a frame within a table. When the user clicks "Add to Cart" the frame to the left of the page needs to refresh to display the new contents of the shopping cart. If the whole page is refreshed, then the default page loads (aught), the sh...more >>

How can I show image thumbnail??
Posted by Trint Smith at 2/2/2004 3:29:29 PM
How can I show image thumbnail?? thanks, Trint ..Net programmer trintsmith@hotmail.com *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

DataGrid properties
Posted by Marty McDonald at 2/2/2004 3:25:25 PM
When setting certain datagrid properties with the IDE (as in the property window), they don't seem to take effect. For instance, Font Name. So I have to set these via code-behind at the cell level. Is this expected? Shouldn't anything on the properties window render accordingly? Thanks ...more >>

big performance problem
Posted by francois at 2/2/2004 3:20:19 PM
Hi guys, I have quite big troublesome performance problem. then i did a very simpkle page with a dropdownlist, when u click on it it makes a simple sql select on the SQL server and then display a very little bit of data on the page. When SQL server runs on my local machine it is pretty fa...more >>

Killing off my sessions
Posted by Rob Meade at 2/2/2004 3:08:02 PM
Hi all, Having created a secure login, and then create session variables to detect wether or not a user is logged in - I would now like to be able to off a log out page! :) I have found the following three in the intelli-help stuff : Session.Abandon() Session.Clear() Session...more >>

Compile error on ASP page.
Posted by Lowell at 2/2/2004 3:06:07 PM
Any tips for trouble shooting errors when the ASPX page won't even compile? What happens is that VS will "build" the code-behind object and the component that it instantiates, but when I navigate to the ASPX page, I get "An error occurred while try to load the string resources (GetModuleHandle fail...more >>

Kill the tick sound on refresh?
Posted by Bruce W.1 at 2/2/2004 3:05:04 PM
My web app refreshes once a minute, using a meta refresh tag. Is there a way to eliminate the tick sound emitted by IE when it refreshes? Thanks for your help....more >>

how to update datagrid's datasource from another frame page
Posted by Mo at 2/2/2004 3:02:19 PM
Hi, I have a page that is split into two frames: top and bottom. The top page is a search parameters page and the bottom is the results page; which holds the datagrid. The search page sends the parameters to a stored procedure. I would like to update the datasource of the datagrid based on t...more >>

Is it possible to make the row height of my DataGrid smaller?
Posted by johngilmer NO[at]SPAM yahoo.com at 2/2/2004 2:58:34 PM
The Item and AlternatingItem properties of the grid have a height property. If you set the height bigger than the row's default height, it makes the row height bigger. But if you try to make the row height smaller than the default, it gets ignored. I would like to make my row height smaller. Any...more >>

null value date?
Posted by Simon Gorski at 2/2/2004 2:57:15 PM
hello ng, how can I get a null value into a datetime - column? thanxs simon g. ...more >>

Populate Session Variables from Datagrid for a specific cell
Posted by coleenholley at 2/2/2004 2:47:35 PM
I need to know how to get a specific row/cell of data to post as a session variable - like I would with an ASP.Net table: Dim ld_sum_tot_cty_tax As Doubl Session("wa_tot_gal") = tbl_worksheet1.Rows(16).Cells(3).Text( I am using VB.Net as the code behind, and populating the datagrid dynamically ...more >>

Can i read configrations attributes in my code (like the session mode ,cookieless,)
Posted by .NET Follower at 2/2/2004 2:11:10 PM
-- Thanks and Regards, Amit Agarwal Software Programmer(.NET) --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004 ...more >>

Team Development
Posted by C Downey at 2/2/2004 2:09:59 PM
What is the best way in VS7 to work with multiple developers on the same project ? We don't have source save and can't get it. Should each developer use the same Projectname.vbproj file on the server or should each developer have a local copy that gets synchronized with the webserver ? what s...more >>

HTTP:// vs. HTTP://WWW.
Posted by Frank at 2/2/2004 1:58:53 PM
Just wondering why it is that when going to some Web sites, that some addresses start with HTTP://WWW, while other sites require "HTTP://" (without the "WWW" part). An example would be HTTP://www.yahoo.com and HTTP://mail.yahoo.com. ...more >>

Restoring a calendar date
Posted by Mark at 2/2/2004 1:54:20 PM
Hi all, I have a calendar webcontrol on one of my forms. I want to be able to restore the date when a user logs back in and goes to the page with the calendar on it. I just get the date out of the database and go (For example) Calendar1.selectedDate = "06/06/04" When my page loads the c...more >>

encrypting form info
Posted by Poppy at 2/2/2004 1:48:58 PM
Can someone tell me what the best/easiest way to encrypt url parameters and http post as well. You dont have to give me a full solution but a good url with an overview would be good. Regards ...more >>

Keeping the scroll position
Posted by Alberto at 2/2/2004 1:35:48 PM
¿Can I retain the scroll position in a long page after a post back? Thank you ...more >>

Interlocked.Increment ?
Posted by George Ter-Saakov at 2/2/2004 1:29:08 PM
What is the purpose of having Interlocked.Increment if it does not work with variable declared as volatile. Here is my problem, Interlocked.Increment increments the variable in thread safe manner. But at the same time if i want to use variable that could be changed in another thread i must u...more >>

SMTP Mail Query
Posted by Poppy at 2/2/2004 1:11:27 PM
If my SMTP mail server is "Mydomain.com" then does it mean that the from field has to be Something@Mydomain.com ? If this is the case then what happens if it is on a testing server and has a temp address e.g "195.##.##.##" ? TIA ...more >>

ASP.NET Permissions and FPSE
Posted by Keith at 2/2/2004 1:04:11 PM
We have an ASP.NET prototype web site which was deployed using the "XCopy" method. Since this was on an Internal System, no special permissions have been assigned. The ASP.NET pages worked fine. Then, so that another member of the team could update the static content in the static .HTML files ...more >>

ASP.NET code in two files
Posted by Jan Kraljic at 2/2/2004 12:58:28 PM
Hi all, I'm working on project with ASP.NET with code behind(C#). On page load I always check security. I found out, that any little change it that part, make a lot of work, because there is many files to change that little correction. I try to make thih in another file, but without success, ...more >>

The transport failed to connect - Error Handling - TRY/CATCH
Posted by jason NO[at]SPAM cyberpine.com at 2/2/2004 12:45:12 PM
I discovered this morning that a few of my sites have routines to automatically email when pages are accessed. These pages were down becuase the the smtp server I'm using was down. I would see a delay to load the page for about 10 seconds followed by the : The transport failed to connect erro...more >>

File I/O on a network drive from asp.net
Posted by Kim Kragh at 2/2/2004 12:41:15 PM
Hi. I've tried to save, move files from asp.net (using the FileInfo object). It works fine locally, but I can't make it work on network drives. I have granted the aspnet user all required permissions, but still with no luck. Should I tweak something else (policy or app setting)? Can I acces...more >>

Response.Redirect in a Try-Catch
Posted by Tim at 2/2/2004 12:41:08 PM
Hello, I've noticed that sometimes putting a Response.Redirect in a Try-Catch will itself throw an exception due to a threading violation. However, in some cases it works, in others it doesn't, and I can't pre-determine which is which. Does anyone know how to ensure that the Response.Redirect ...more >>

Class in .ascx file
Posted by Jon Spivey at 2/2/2004 12:25:25 PM
Hi, probably missing something obvious here. I have a user control hot10.ascx which just contains a repeater, a code behind file hot10.ascx.vb which fills the repeater from a datareader and a class file class1.vb. The class file contains a function FixTitle which I need to use to format the data...more >>

Problem Debugging
Posted by Mike at 2/2/2004 12:22:22 PM
Hi, I am having problems debugging an ASP.NET application. I have a quite = odd configuration that includes: Win2K Adv. Server SP4 IIS 5.0 ISA Server VS.NET 2003 The error message I am getting says: "Unable to start debugging on the web server. You do not have permission = to debu...more >>

Server.Transfer in Component
Posted by theintrepidfox NO[at]SPAM hotmail.com at 2/2/2004 11:58:35 AM
Dear Group I'm having a component (Component1) and a page (main.aspx). Calling Server.Transfer("main.aspx")in Component1 gives me "Object reference not set to an instance of an object." Calling it from another page works just fine. I'm sure I missed something to declare, import or similar ...more >>

Webclient failing
Posted by WebSLS at 2/2/2004 11:56:09 AM
I need to scrap a web page from another site but when I try to access any site outside of my localhost, I get this error: "System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server" I can acess the site with a browser, but when I try to request it via ...more >>

The viewstate is invalid for this page and might be corrupted.
Posted by .NET Developer at 2/2/2004 11:55:45 AM
On our external customer facing website recently we included a global error catching routine and forward the error message to our support team via email. We notice many emails with the following message. Internally or when we test the site from home we never receive this error. What could be cau...more >>

Forwarding WebResponse File To Web Browser
Posted by Jeff G. at 2/2/2004 10:51:07 AM
Hello everyone, I have read through the newsgroups (thank God for 'em!) extensively looking for an example of how to pass a file (PDF) from a webresponse stream down to a web client. Here's the scenario - when the web browser requests a file, the IIS Server1 has to go back to Server2 to make ...more >>

View_State Currupted
Posted by Jaydeep at 2/2/2004 10:48:59 AM
Hi All, When I submit a form using JavaScript by giving action equal to some different page, it gives me error, View State of default page is corrupted. I wrote a small JavaScript to validate a form, if ok then used these lines document.formname.action="secondpage.aspx" and then document.fo...more >>

DefaultRedirect Problem
Posted by Gary at 2/2/2004 10:47:41 AM
When using an ASPX page for a DefaultRedirect it does not work if the ASPX page has any code in it. If I put ... If Not IsPostBack Then lblMessage.Text = Server.GetLastError.Message End If in the ASPX page it does not display when an unhandled exception is thr...more >>

Trusted connections??
Posted by Paul M at 2/2/2004 10:16:55 AM
Hi folks, Just want to make sure I've got this right. I've got an application I want to authenticate to the domain i.e. an intranet app. I've set this up (all the web.config items are in place and everythings tickety boo) and I can get the username and various other bits of info from a Win...more >>

How to place User controls in a Page template?
Posted by Yoramo at 2/2/2004 9:51:47 AM
I'm using a page template and I would like some of my components to be user controls. where do i put the declaration for the User control (there is no aspx file only a C# file)? something like the line bellow: <%@ Register TagPrefix="uc1" TagName="Title" Src="Components/Title.ascx" %> and...more >>

Business Objects and Session Variables
Posted by Dave Wurtz at 2/2/2004 9:42:01 AM
All, I'm new to ASP development and I have a basic design question: Is it ok to store business objects to session variables or is there a better way to keep object information? For example, if a user logs onto the website, a user object is created that stores their full name, email addres...more >>

Using data to name a radioButton control
Posted by John Holmes at 2/2/2004 9:37:09 AM
I am using radioButton controls in a data repeater and would like to incorporate the 'key' field into the 'id' attribute of the radioButton controls and name them something like: 'rad' + '<%# (string)DataBinder.Eval(Container.DataItem, "ParcelID") %>' + PropType1 I think part of the problem...more >>

strugling with Atributed XML parsing.
Posted by George Ter-Saakov at 2/2/2004 9:20:12 AM
I have XML in following format <ORDER> <HEADER> ... </HEADER> <LINE> ... <LINE> <LINE> ... <LINE> <LINE> ... <LINE> </ORDER> Can someone suggest how will i parseout such document using XmlSerializer and attributes. There can be different amount of lines in different docume...more >>

web host provider offering ActivePDF?
Posted by Paul at 2/2/2004 9:04:50 AM
Hi, Does anyone use/know of a web hosting provider that they would recommend? We need to generate pdfs on the fly and our current provider does not offer ActivePDF? Thank you for reading and maybe helping. Paul. ...more >>

Reusing HttpWebRequest.GetRequestStream
Posted by Dan at 2/2/2004 8:45:05 AM
I'm experimenting with HttpWebRequest. After I've created a request: m_request = (HttpWebRequest) WebRequest.Create(uri); I'd like to repeatedly send requests to the URI, as follows: public void SendRequest(string body) { StreamWriter stream = new StreamWriter(m_request.GetRequestStre...more >>

how to avoid late binding
Posted by Thomas Müller-Lynch at 2/2/2004 8:36:07 AM
How can I avoid late binding with the directive strict = tru My ASP .net-file looks like this <%@DEBUG=true TRACE=true Strict=false EXPLICIT=true% .. dim footerValues as Arra footerValues = split("val1,val2,val3,val4,val5", "," .. dim strDept as String = footerValues(0 dim strDeptL...more >>

Writing a file to machine on LAN with ASP.NET. Can't get path statement right?
Posted by Charlie NO[at]SPAM CBFC at 2/2/2004 8:35:04 AM
Hi: My ASP.NET application writes a file to hard drive. The problem I'm having is getting a valid path to another machine on LAN to receive file. It works fine when writing to virtual directory or local hard drive, but when I try to point it at another machine on LAN (not machine web server ...more >>

Wrapping Columns in a Table
Posted by David Coe at 2/2/2004 8:01:09 AM
I am having problems trying to wrap items that I get back from a DataSet. For instance, I get a list of 50 states that I want to display in 5 columns, 10 rows. I've looked into the DataGrid and Repeater controls, but can't seem to find how I can do it. I can do it programmatically, but that is a ...more >>

help with response.redirect
Posted by john at 2/2/2004 6:32:50 AM
Hello, One our thrid page for some reason the response.redirect isn't working on the live server. It works fine on the development machine but when we move the code to the live server it doesn't work. The first page is a login page and the response.redirect does work there but not on the t...more >>

Page title in ASP.NET pages
Posted by Maxim Izbrodin at 2/2/2004 6:16:07 AM
Hello For displaying page titles for my ASP.NET applications I use the following technique <title><%=BannerModule.PageTitle%></title where BannerModule.PageTitle is a public field of my user control. This field is initialized in Page_Load of every my page. This technique works with the exception ...more >>

Custom Paging in C#
Posted by Maziar Aflatoun at 2/2/2004 3:21:13 AM
Hi, I'm having problems with Custom Paging. Most of the articles out there show that the custom paging is done as the following article. http://authors.aspalliance.com/aspxtreme/sys/Web/UI/WebControls/DataGridClassAllowCustomPaging.aspx (Check the example 'Custom Paging with AutoIncrement D...more >>


DevelopmentNow Blog