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 2005 > threads for thursday february 3

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

How to extend running time for Web Application?
Posted by Grace at 2/3/2005 11:03:03 PM
Hello, I write a Web Application: its UI has a DataGrid controller. The web application gets huge data from SQL Server, then shows the result after processing these data. It needs much time to run it. But, it happened an error after running less than 60 seconds. This error didn't explain de...more >>


Nested repeater with 3 levels
Posted by Eirik Eldorsen at 2/3/2005 10:41:29 PM
Im trying to make a nested repeater with 3 levels. I've successfully created a nested repeater with 2 levels, but when adding the 3rd level I get an InvalidCastException. What am I doing wrong? Here is my code: <asp:Repeater id="level1Repeater" runat="server"> <itemtemplate> ...more >>

DHTML Drag and Drop Broken
Posted by Joe Turek at 2/3/2005 10:14:17 PM
I store images in a database instead of the filesystem. I deliver these images via a page that uses Response.OutputStream to send the bytes back to a calling page. So a given page on my site will embed an image like this: <img id="imageone" src="http://localhost/image.aspx?id=20"></img> I disp...more >>

IE Excel Print Problem....
Posted by Balamurali C at 2/3/2005 10:07:04 PM
Hi All I'm having one problem, since im debuging this last one week I'm not able to do. Problem: In my webage I have two Frames(top & bottom) in the top frame I'm displaying some images(logo...etc) and bottom frame I'm displaying some document(excel,word,ppt,pdf etc...)which are workin...more >>

Newbie : Updating problem with Datagrid
Posted by ycquak NO[at]SPAM gmail.com at 2/3/2005 9:58:11 PM
Hi, I have a page with a datagrid control. What I would like to do is when I click on the update statement, I will update to the datagrid. However the problem I am facing currently is when I click on update, the value which I got from the controls generated by the datagrid edit template is em...more >>

dynamic generation of a CustomValidator
Posted by Markus Broy at 2/3/2005 9:56:53 PM
Hello everybody, I have a problem concerning the dynamic creation of a CustomValidator. If I create a CustomControl as shown in the code below and the page is post back the validation procedure is never called. In Page_Load Page Validate() is called and in the control which should be vali...more >>

Optimal Use of Default.aspx?
Posted by clintonG at 2/3/2005 9:36:20 PM
Just what is the optimal model? Rather than use default.aspx to return HTML I would like to use default.aspx to return utlity functions that will determine if cookies are enabled and so on and then do a redirect to a 'landing page' without being penalized by search engines who may consider my ...more >>

DirectoryInfo on read-only paths
Posted by Juan Manuel Ramollino at 2/3/2005 8:41:11 PM
Greetings everyone! I am creating a webcontrol that reads one or more directorie's content and displays all the filenames (tipically PDFs or PPTs) so that the user can select the desired one and see the content. We call it FileBrowser (oh so clever) The purpose of this control is to disp...more >>



Newbie: Getting a Zero-Length string error?!
Posted by Brian Basquille at 2/3/2005 7:46:28 PM
Hello all.. Am fairly new at ASP.Net and am developing a Warranty Registration page. The page contents will be outputted to a database (warrantyRegDB.mdb). The customer details into a Customer_Table and product details into a Product_Table. I am using SQL commands to insert this data. For so...more >>

Pulling out 10 last posts in forum (access db)
Posted by Daniel Jahro via DotNetMonster.com at 2/3/2005 7:42:30 PM
Hi! Im trying to pull out the last ten posts in a access dg (*.mdb). Whats the best way to do it? All posts are located in a table named "tblTopic" and the posts automatically get accending numbers. The first vertical row (?) with the numbers are named "Topic_ID". Any ideas? Thanks in ad...more >>

create pdf from asp.net
Posted by Robin at 2/3/2005 7:00:06 PM
I am looking to create a pdf from ASP.NET which is based on a word or pdf document plus some data that will be added at runtime. Is there any code/components that allow this to be achieved? ...more >>

required field validators and other code execution
Posted by Robin at 2/3/2005 6:59:58 PM
In an ASP.Net Web page that has multiple Required field validators and a command button. The when clicking the button the click event does not occur until all validator conditions are meet. Is it possible for when clicking on the button to run the code before the validator checks? ...more >>

Forms Authentication and Session Variables
Posted by Schultz at 2/3/2005 6:19:10 PM
I am having two problems in the application I am building, the first has to do with forms authentication. The application has three different login pages: 1- for admins 2- for users 3- for guest access (to view data entered by the users) Each page is programmed to create a custom forms aut...more >>

I can map all files (.*) to asp.net worker.How do I map NO FILE to asp.net worker?
Posted by alex at 2/3/2005 5:36:09 PM
I can map all files (.*) to asp.net worker process. But that is a perfomance hit and default documents are no longer working. How do I map "NO FILE" to asp.net worker? Like if I have an url : http://domain/id1/id2/ When there is no file name in the url IIS checks for such dir and throws...more >>

A question of Checkbox in a Datagrid
Posted by Dexter at 2/3/2005 5:11:27 PM
Hello all, I have a datagrid with a template column with checkbox, and at this template column, at header section, i have a checkbox with autopostback property as true, and when i check this checkbox i need to check all others. But i don't can to use the ItemDataBoundEvent, because this even...more >>

Can I Reset the Root from localhost/myproject/ to localhost/
Posted by Alex at 2/3/2005 4:58:10 PM
does anyone know if it is possible to alter the root address for an asp.net project as it is messing up my paths. When I develop locally the address is localhost/mywebapplication/default.aspx however when the project is uploaded to a server it is www.mywebsite.com/default.aspx. If I want to us...more >>

Printing Problems
Posted by Brook Braswell via DotNetMonster.com at 2/3/2005 4:57:07 PM
I am getting the dreaded Tried to access printer \\computername\sharedprinter with invalid settings. I develop on a Win2K that is not a server and I am printing through an APS.net dll created using VBcode. The dll works fine to any network laser printer that I set it to print to. When I roll ...more >>

Displaying data from a Query (Views)
Posted by Carl at 2/3/2005 4:44:51 PM
How can create a DataReader to call a Query in a MS Access2000 and bind the result to a Datagrid. in SQL Server: Dim dr As sqlClient.SqlDataReader SqlConnection1.open() dr = sqlCommand1.ExecuteReader() what about in MS Access database how can i do this? iv'e try using dr = OleDBDataS...more >>

A Question on Dropdown List
Posted by Wong CS at 2/3/2005 4:34:15 PM
Dear all, i hav a problem when i compile my web application... this is the SQL query i used to insert my data into database. string InsertBuyerDetail = @"INSERT INTO Buyer (Buy_Login, Buy_Password, Buy_Country) Values ('"+userID.Text+"', '"+pw1.Text+"', '"+Buyer_country+"')"; it work fin...more >>

Anyone know when VS 2005 is coming out?
Posted by Alan Silver at 2/3/2005 4:26:27 PM
Hello, According to MS's web site, VS 2005 will be coming out "in the first half of 2005", which isn't very helpful. That could be anytime between tomorrow and the end of June. I am interested in getting VS, but I don't see the point of buying VS 2003 (which isn't cheap), only to have it ...more >>

Design a website
Posted by ALI-R at 2/3/2005 4:26:01 PM
I'm going to make my own website ,but I'm not very good at design.I just wondered how some people have exactly same pattern for all the pages in their website ,I mean the right,left,bottom and top panes remain exactly the same and only the middle information is changed based on the page users go ...more >>

Raise event when leaving Textbox
Posted by tshad at 2/3/2005 3:50:40 PM
Is there a way to raise an event when a user exits a textbox? I tried OnTextChanged and that doesn't seem to do it. <asp:textbox id="email" TextMode="SingleLine" OnTextChanged="checkRecords" Columns="45" runat="server" /> I need to load a dropdownlist after someone enters his email. Th...more >>

Adding Tooltip text to a cell in a datagrid
Posted by Craig G at 2/3/2005 2:48:56 PM
what way do you code it? i tried the following but it wouldnt display it lblAdd_info is a hidden field in the cell itself that contains the data i want to display in the tooltip text. i added the following into the ItemDatabound event for the grif but it wont display If e.Item.ItemType = L...more >>

Accessing entire Web Form HTML Source
Posted by Shawn Berg at 2/3/2005 2:26:46 PM
Is it possible in any event in the System.Web.UI.Page class to reference the entire HTML that will be output to the browser after all controls, etc. have been rendered? I would like to replace all instances of a keyword in the HTML at runtime when the page is loaded. I cannot afford to set all of...more >>

DropDownList w/o default
Posted by Michael Groeger at 2/3/2005 2:21:08 PM
Hi, is it possible to leave a DropDownList's selection empty? Our application requires for some ddl's that they are kept blank w/o an initial value so that we can add a RequiredFieldValidator to them. Regards, Michael ...more >>

encrypting / encoding login info within a URL
Posted by hellrazor at 2/3/2005 1:26:46 PM
Hi there, We want to be able to encrypt the user ID and password within a URL, so when we send the URL via email, they'll be able to click said URL, and the aspx page should be able to decode it and authenticate it. I'm thinking the url would look something like this: http://localhost/l...more >>

RequiredFieldValidator showing an image
Posted by Fernando Lopes at 2/3/2005 1:13:43 PM
Hi. I want to show an image in a requiredfield validator instead of "*". So, I 'm set the requiredfieldvalidator attributes like following: <asp:RequiredFieldValidator id=rfvFirstName ControlToValidate="AddressName" Display="Dynamic" ErrorMessage="First Name Is Required" Run...more >>

Assembly directive not working
Posted by G Dean Blake at 2/3/2005 1:06:17 PM
I wrote and deployed a control with the assembly name of GP to the GAC of another dev box via drag and drop. a web page using this control has: <%@ Register TagPrefix="cc1" Namespace="GP" Assembly="GP" %> The docs and books I have say that this should be enough for the page to find the asse...more >>

OutputCache WORKS but Response.Cache.SetExpires DOES NOT
Posted by alex at 2/3/2005 12:41:28 PM
according to docs these two caching methods are equal: 1) <%@ OutputCache Duration="10" VaryByParam="id" %> 2) Response.Cache.SetExpires(DateTime.Now.AddSeconds(10)); Response.Cache.SetCacheability(HttpCacheability.Server); Response.Cache.SetValidUntilExpires(true); Response.Cache.VaryByP...more >>

Q: validation expression
Posted by JIM.H. at 2/3/2005 12:17:04 PM
Hello, I have this validation expression: ^(?:(?:0?[13578]|1[02])|(?:0?[469]|11)(?!\/31)|(?:0?2)(?:(?!\/3[01]|\/29\/(?:(?:0[^48]|[13579][^26]|[2468][^048])00|(?:\d{2}(?:0[^48]|[13579][^26]|[2468][^048]))))))\/(?:0?[1-9]|[12][0-9]|3[01])\/\d{4}$ This is supposed to match MM/DD/YYYY it is workin...more >>

Can't retreave new value from Datagrid onUpdate Command
Posted by Kurt Schroeder at 2/3/2005 12:13:04 PM
Another simple one: 1. I'm using code behind 2. the sub is not labeled private will not take. 3. I can pass the value of the key to the update sub, but the sub can only retreive the origional value not the value from the textbox. don't understand why and i'd like some help. thanks kes CODE...more >>

Help Required for Asp.Net DataGrid
Posted by msnews.microsoft.com at 2/3/2005 11:46:46 AM
Hello Every Body, I have the secnario, I have a web datagrid and in one template there is another datagrid. I means nested datagrid. The inner datagrid have three coloumns. Two coloumns are coming from DataSet's Table 1 and third column is coming from DataSet...more >>

Virus checking through code
Posted by news.microsoft.com at 2/3/2005 11:29:24 AM
I am after a product suggestoin please. We have a site that we are developing which allows users to uploaded word docs for other people to see. what i would like to do is during the process of uploading the file i would like to run a virus check on that file. Are there any products out ...more >>

Powerpoint presentation issue.
Posted by Bredahl jensen at 2/3/2005 11:22:45 AM
Hello, At some point in my application, i need to show a power point presentation to users. How can this be done? The power point is uploaded from a web page . Should i store it in the database or on the hard disk.? Assuming the the host pc has some kind of power point viewer installed. Ho...more >>

How to make an Comercial Aplicaction database independant (refrase)
Posted by Gustavo De la Espriella at 2/3/2005 11:21:15 AM
I'm refrasing a question I posted earlier because I didn't explain myself. I need an efficient way to make an especific comercial application able to use whatever database the client prefers a main database, even after the initial installation. It's a Balanced Scorecard System. And though the...more >>

ASP.NET 2.0
Posted by JezB at 2/3/2005 11:19:04 AM
Can I ask ASP.NET 2.0 questions in here ? I can't find any groups specific to Whidbey. What I'm after is the list of minimum requirements for the servers that we might deploy an ASP.NET 2.0 application to. ...more >>

Impersonate NT user from Anonymous login
Posted by ajamrozek at 2/3/2005 11:07:51 AM
I have an ASPX page that needs to display data from an Access DB that resides on a network resource other than the running server. To access the web page itself, I need IIS to have anonymous login set to true, but to access the Access DB I need to pass an authenticated network user. Not for th...more >>

PDB files
Posted by David at 2/3/2005 10:52:15 AM
What for are *.pdb files in Bin folder and have to I deploy them? ...more >>

Is there a web host for developers?
Posted by drhowarddrfinedrhoward at 2/3/2005 10:49:09 AM
I'm new to web site development. I would like to find a host that will allow me to develop asp.net sites plus web apps using iis, VS, C# and all those goodies. I don't believe the $10/month sites will let you do that but I'm afraid I need my own box somewhere which is much more expensive. ...more >>

Raising events with a tabstrip
Posted by Bart Schelkens at 2/3/2005 10:38:05 AM
Hi, I've created a webusercontrol that contains a tabstrip (Microsoft.Web.UI.WebControls.TabStrip. I want to raise the event when the selected index of the tabstrip changes. I wrote the following code : Public Event TabIndexChanged(ByVal intSelectedIndex As Int16) Private Sub TabStrip1_...more >>

Impersonate in ThreadPool
Posted by Viorel Ghilas at 2/3/2005 10:12:18 AM
Hi all I have an ASP.NET application that uses impersonate account to connect to DB, this works good. But in some cases I need to put some methods in ThreadPool. The methods from ThreadPool should do some foreground operations with DB. But .NET throws me the sql exception "Login failed for use...more >>

Templates: Visual Web Developer 2005 Express
Posted by sck10 at 2/3/2005 10:06:58 AM
Hello, I am learning how to use the Web Developer and ASP.Net. I am trying to build a web site that looks like MSN.com. Are there any templates out there for this purpose. Would prefer free ones of course. -- Thanks in advance, sck10 ...more >>

System.Timers.Timer in Global.asax
Posted by Mark Rae at 2/3/2005 9:49:17 AM
Hi, I've seen several articles about using System Timers in ASP.NET solutions, specifically setting them up in Global.asax' Application_OnStart event. I'm thinking about the scenario where I might need to carry out some back-end processing without pausing the individual users' Session whil...more >>

multiple vitrual directories in one httpcontext
Posted by dinosaur8000 NO[at]SPAM yahoo.com at 2/3/2005 9:45:51 AM
Hi, I have two ASP.NET solutions in my website, located in two directories: c:\projects\mainsite -- the main web site solution c:\projects\newmodule -- a module I'm adding on solution My web site's root is pointing to "c:\projects\mainsite", and I've created a virtual directory called "newm...more >>

Tab Control?
Posted by BenM at 2/3/2005 9:39:06 AM
Does asp.net offer anything like a tab control? Basically, I would like to have a series of tabs on a page & maintain state between tabs until user hits save or cancel. We have all seen this a million times in VB, but I am not sure about asp.net....more >>

ASP - Connecting to Oracle 9i
Posted by Randy at 2/3/2005 9:11:39 AM
Hello All, I'm trying to connect to an Oracle 9i database on a 2000 Pro box using my XP Pro development machine. I've got Oracle client 9i (and .NET 2003) on my dev XP box and Oracle 9i client and database on the 2000 box. I can right click on the oracleDataAdapter and Preview Data and get dat...more >>

text for asp:label from session
Posted by tshad at 2/3/2005 8:50:20 AM
How do I set up text (or can I) set up a label to automatically pull in text from a session variable. Something like: <asp:label text="<%# session("ClientName") %>" runat="server"/> This doesn't work, but is there a way to have it do this with out having to set up code in the Page_Load su...more >>

Memory Leak in Internet Explorer using Treeview
Posted by Ronen at 2/3/2005 8:34:11 AM
Hi, Does anyone experienced memory leak in Iexplore.exe when use treeview (MS IE Controls? I'm have tested this with a simple web page with a few tree nodes generated on the server. Then I added a setTimeout that postback the page every 2 seconds, I checked the VM size of the IExplorer.exe...more >>

Forms Authentication and long ViewState Problem
Posted by jerry.osullivan NO[at]SPAM esbi.ie at 2/3/2005 8:05:31 AM
Hi, I appear to have a problem where the user is not kicked back to the forms authentictation url when they post a webform, via a get, that results in a long url due to viewstate. Instead they get the error at the end of the post Web.Config: <authentication mode="Forms"> <forms path =...more >>

DropDown Menus
Posted by ACaunter at 2/3/2005 7:59:10 AM
Hi there, I was wondering how i could have drop down menus for my menu bar at the top of my ASP.net page.. I need to get it so when the mouse goes over the menu button, the menu button will have a drop down with a list of all the sub folders for that button.. is this possible in asp.net and...more >>

Yesterdays date
Posted by Anonmyous at 2/3/2005 7:10:36 AM
Hello, how can I get the yesterdays date? Thanks for any suggestions and tips....more >>

Visual studio asp.net 2003 "HTTP/1.1 500 Internal Server Error"
Posted by gerr at 2/3/2005 6:55:22 AM
Visual studio 2003 "HTTP/1.1 500 Internal Server Error" when trying to create a new Asp.net site with Visual Studio 2003 on localServer XP Pro/IIS 5.1. Everything worked fine prior to installing V/Studio 2003. Was running V/Studio classic 6/Asp parallel with V/Studio 2002/aspx. Anyone have any n...more >>

Object in session question
Posted by Chris at 2/3/2005 5:21:02 AM
I'm on a project where the prevoius developer wrote code like below. I thought stuff like this was bad? Isn't he putting a page into a session object? And what we are trying to do is hit the db via a Stored Proc to create a datatable in most cases. This seems like a waste to me. Is this good? ...more >>

can webmethods be polymorphic?
Posted by Manco at 2/3/2005 2:45:25 AM
Let's say I have a web-service that defines Web method: void DoSomething(BaseType b); let's day I have a DerivedType: BaseType. Can a web-service automatically take a derived object base reference like a normal C# method would do? So far I haven't been able to. ...more >>

How to Create Dependent Field Updation
Posted by Hifni Shahzard at 2/3/2005 2:43:04 AM
Hi, I'm using VS.NET 2003, SQL Server 2000, Windows xp professional; My Question: Some of you might seen in some websites where it requests the Country in a dropdown. If the Country selected, it gives all States of that Country in an another Dropdown called States. For Example if I selec...more >>

Response.Cookies vs Request.Cookies
Posted by Alex Nitulescu at 2/3/2005 2:05:01 AM
I have the following very simple colde (while learning about cookies and session state): Private Sub cmdAddCookie_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAddCookie.Click Dim strCookieName As String Dim objRandom As New Random() strCookieNa...more >>


DevelopmentNow Blog