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 > september 2005 > threads for wednesday september 21

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

Crazy Image Problem
Posted by Mr Newbie at 9/21/2005 11:06:35 PM
I know this is going to be embarresingly simple, but I cant see the wood for the trees at the moment. If I create a webform and place an image control on it and select ( Browse an image ) it appears for me on the page, and if I launch the browser, it allso appears ( Note the image property ...more >>


Hide Image Problem
Posted by Shapper at 9/21/2005 9:50:02 PM
Hello, I have an ASP:Datagrid where in each record I display an image. The image I display can be one of two depending of the value of the field "Level" of that record. So for each record: If level > 5 Then "images/high.gif" should be used. Else "images/low.gif" should be used. I have ...more >>

Accessing the current DataRow of the DataSource from ItemDataBound
Posted by Nathan Sokalski at 9/21/2005 8:47:07 PM
I want to access the DataRow used in DataBinding from the ItemDataBound event. In my case, the reason for doing this is to determine whether I need to make a word singular or plural. How can I do this? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/ ...more >>

how to get rid of horizontal scroll bar of pages in my website?
Posted by J-T at 9/21/2005 8:19:47 PM
My website is fine when it is viewed in 1280 by 1024 pixel ,but in smaller resulotions there is a horizontal scrollbar down the page.How can I set it to be viewed the same for all resulotions? Thanks ...more >>

Host Header IIS
Posted by Pietro at 9/21/2005 8:05:13 PM
Hello, I have several sites hosted in iis, they differer by Host Header, ex: www.mysite.com.br, but i want to open all subdomains in that site , ex: www.*.mysite.com.br, is there any sintax to inform that? Pietro...more >>

Dynamic Properties
Posted by James Doughty at 9/21/2005 8:00:26 PM
Hello everyone, I'm working on an app that is involed in creating dynamic control. I would to have a property stored in the database to use to retrieve the value from the screen. The problem is for a texbox I want to use .text and a dropdownlist I want to use .selecedvalue, ect. I would pr...more >>

ADODB.recordset error (ASP/.NET)
Posted by dradcnn NO[at]SPAM yahoo.com.sg at 9/21/2005 7:56:26 PM
I built an ASP.NET application.The application was built using ASP initially. Recently we migrated to ASP.NET, but we didn't recode the script using .NET. We just add the aspcompat=true at each page directive. the error message is : Arguments are of the wrong type, are out of acceptable ran...more >>

Multiple Postbacks?
Posted by Mardy at 9/21/2005 6:27:01 PM
I have an application where, in a few cases, I can hear more than one click by the browser on a post back. I also see the IE progress bar appear twice consecutively. This happens for example when I edit a datagrid cell. I click the cell to edit and when I cancel the edit or save the update I ...more >>



Envelope printing
Posted by st NO[at]SPAM jpa.co.jp at 9/21/2005 5:56:26 PM
Hi, We've a C#/ASP1.1 system that largely mirrors a VB one. The VB system has a function that simply uses Word.Document to send a mailing address to a printer for printing on an envelope. With one click an envelope gets printed. We'd like a similar function in the ASP system. I know the tie...more >>

RequiredFieldValidator allows blank values when InitialValue is set!!
Posted by Alan Silver at 9/21/2005 5:49:14 PM
Hello, I am using this validator on a textbox, and have discovered that if I set the InitialValue property, then the validator correctly fires if the user does not change the initial value of the textbox, but does NOT fire if the textbox is empty!! I thought the whole point of this valid...more >>

Request and output CSV file from asp.net
Posted by Matt Auld at 9/21/2005 5:32:07 PM
I need to produce on demand a csv output file from a asp.net client. The backend db is SQL Server 7.0. Can anyone please recommend a solution? cheers Matt ...more >>

authenticating without prompting
Posted by Carlos at 9/21/2005 5:25:57 PM
Hi all, is there a way to perform windows authentication for an app but without having to display the authentication prompt? i.e. getting their user credentials, and allowing users form a specific domain only. I already did the latter, but I have not managed not to display the default IE ...more >>

Session Timeout Question
Posted by Stephen Noronha at 9/21/2005 4:03:29 PM
Hi, I am creating a test applicaiton with 3 pages say login.aspx test1.aspx and test2.aspx. I added this to my global.asax file Sub Session_End(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the session ends Session.Timeout = 1 Response.redirect("Login....more >>

How to intercept a post to asp page?
Posted by jeff29_b NO[at]SPAM yahoo.com at 9/21/2005 3:15:12 PM
I have customers posting data to an asp page. I would like to respond to their request from an asp.net page without doing a response.redirect from the asp page. Is there some way to do a server.transfer from asp to asp.net or intercept the request for the page in iis and handle it in .net with...more >>

Session Variable not passed to new window
Posted by ajamrozek at 9/21/2005 2:34:20 PM
I have a number of Session variables that are not passing to a new window. It is only happeneing on one user's computer and only under her profile. Methods are called to obtain these values and re-assign them to the Session if they = Nothing, except the UserID variable. If this value is nothi...more >>

Feasibility of Dynamically-Generated Textboxes
Posted by Will Lastname at 9/21/2005 2:27:08 PM
I'm working on administration panel that will ultimately allow the client to edit products in a collection. Each ProjectList can have multiple products within it. I was asked to create something that will allow them to edit the products within that list. I was thinking of writing using a DataRea...more >>

How can I get the HTML or DOM from a webpage with XML?
Posted by needin4mation NO[at]SPAM gmail.com at 9/21/2005 2:23:53 PM
Used to I could use XMLHTTP Request, but I cannot do that anymore (I think) with C# .net. Here is what I tried, but it of course failed: string strXMLsrc = "http://www.somewebpage.com"; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(strXMLsrc); StringBuilder sb = new StringBui...more >>

FormsAuthentication.RedirectFromLoginPage is not redirecting to the correct page.
Posted by Jeremy Chapman at 9/21/2005 1:43:09 PM
I have built a web app. While testing I have found that if I browse to a page in the app, then get redirected to the login page and enter my credentials. The FormsAuthentication.RedirectFromLoginPage call is redirecting to the default.aspx page rather than the original page the user was at...more >>

Can I run two localhost sites at once?
Posted by darrel at 9/21/2005 1:19:35 PM
I'm trying to figure out if I can run to localhost sites at once. Such as 'localhost' and 'site2.localhost'. It appears I can set both of them up, but not run them at the same time. Is that true? If so, what was MS thinking? Ugh. Alternatively, is there a practical way to have a site run fro...more >>

Navigation? help needed asp.net
Posted by Bernie Walker at 9/21/2005 1:16:38 PM
Hello, I have a asp.net application that collects input from users and stores data in SQL database. One of the options of the application is to store file attachments. When the user wants to store an attachment, they redirect to a page that uploads the file to the server and then stores it...more >>

Help with parse error.
Posted by Brett Romero at 9/21/2005 11:43:43 AM
I get this error when I try to run my ASP.NET app on our server: Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. P...more >>

Strongly-Typed State Class in UIAPB
Posted by bryan NO[at]SPAM newsgroups.nospam at 9/21/2005 11:37:38 AM
I'm trying to use a strongly-typed State class in my UIAPB-based app. It looks like state is being "over-persisted" if there is such a thing. I'm using session state persistence. I start a session, navigate a between a couple of different "UI Processes", and then end it (even going as far as c...more >>

.NET and Ajax Question
Posted by needin4mation NO[at]SPAM gmail.com at 9/21/2005 10:55:27 AM
Hi, I am interested in use AJAX, Javascript, .NET, etc. to retrieve information from a "real" database, not an XML file. I am trying to find out if that is a legitimate approach. All of the examples I have seen use AJAX to get the data from a XML file using XSL. Or do I use regular ASP.NET an...more >>

Stumped
Posted by Ryan Smith at 9/21/2005 10:22:02 AM
Do you know how to replace a string in a SreamReader with a dynamically created control such as a textbox that can be runat=server? I am trying to read in a file and replace certain key words with objects that I can then collect data from via postback. Any ideas?...more >>

Setting pager-style in DataGrid
Posted by Friso Wiskerke at 9/21/2005 10:21:44 AM
Hi all, is it possible to set a separate style in a datagrid pager for the selected page to make it more clear for the user which page is selected? For example: page 3 is selected out of the 8 possible pages and the number 3 is then displayed in bold and with an alternate color. There's a...more >>

SQL Parameter error: "Name 'SqlDbType' is not declared".
Posted by Kevin R at 9/21/2005 10:18:44 AM
I'm trying to update a sql database. It's modified Oledb code from an example that did work with an access database. How can I tweak my code to make it work? Thanks in advance. Kevin ====== Code error: Line 24: Dim firstNameParam As New SqlParameter("@FirstName", SqlDbType.Var...more >>

Javascript on user controls
Posted by Mantorok at 9/21/2005 10:18:37 AM
Hi I have a user control (ascx) and it has some javascript, however I want to use 3 instances of this control on my form - the problem is that the javascript functions are all being generated 3 times with obviously identical function names and each control is calling the last one. Any id...more >>

using web config to allow access to domain users only
Posted by Carlos at 9/21/2005 10:17:26 AM
Hi all, is it possible to configute an asp .net app using web config, to allow access to users within a particular domain only?. Any help is greatly appreciated. Thanks in advance, Carlos ...more >>

Validate on page load
Posted by Jeremy Chapman at 9/21/2005 10:13:09 AM
I have several required field validators on my page. Normally, when a submit button is pressed, the validators display with a red * character beside the corresponding field, and a validation summary displays a popup message. When the page is loaded I want to display all the red * character...more >>

MS.NET Framework version??
Posted by Harry Simpson at 9/21/2005 9:57:55 AM
I know I drilled down into the Windows folder\Microsoft.net\Framework\v1.1.4322 folder and looked at the version of Mscorcfg.dll to get the SP level from the version number: Mine shows v1.1.4322.573 which is supposed to be 1.1 with no service packs. ...more >>

Deploy ASP.NET 1.1 project on live sites
Posted by Nils Hedstr=f6m at 9/21/2005 9:49:29 AM
I have a ASP.NET 1.1 project that I want to be able to deploy on my web-servers while they have real traffic (40 requests/second). When I copy the projects assembly in the bin-directory of the website directory the application gets restarted and the web server needs to recompile all my aspx...more >>

logging into a website on an external server
Posted by MotorcycleIke at 9/21/2005 9:24:07 AM
I tried using WebRequest, but I am unable to simply redirect to an external aspx site and supply the userid and password and press their login button. I got the webrequest to populate a webresponse and copy the website onto our server. That doesn't do any good. What I need to do is get the ...more >>

Validation Problem
Posted by sunshinevaldes NO[at]SPAM yahoo.com at 9/21/2005 8:56:20 AM
On a login screen, if you have an invalid login, you get an error though a label. However, if you fix your login but cause a validation error (required field), lblError is never reset and it still apprears on the screen along with the validation error. How do I clear out the label? Thanks, ...more >>

rendering issues recently
Posted by ujjc001 at 9/21/2005 8:39:53 AM
Hello all. I am working with .net on various boxes from 2000 pro to XP and 2003 server. On all the computers we get page rendering issues where sections of the page don't show right or txtxboxes / dropdownlists are not filled (they are) but you have to scroll them off and back onto the page or...more >>

gridview paging bug?
Posted by joerage at 9/21/2005 8:28:49 AM
Hi, I use a grid view in asp.net 2.0 connecting to a objectdatasource. The datasource select method returns an arraylist of custom object. Reading the documentation for the objectdatasource, it says that if the return type of the select method is IComparable (which in my case is true), it wil...more >>

new AJAX.Net MSDN article
Posted by Karl Seguin at 9/21/2005 7:43:26 AM
Learn how AJAX (Asynchronous JavaScript And XML) can be used to make your Microsoft ASP.NET applications more dynamic and responsive : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/ASPNetSpicedAjax.asp Karl -- MY ASP.Net tutorials http://www.openmymind.net/ ...more >>

DataGrid - Update Command Event Problem
Posted by Mr Newbie at 9/21/2005 7:30:11 AM
I have a DataGrid with an Edit command column. I have three other preceeding columns in the Grid Index, LastName, Firstname. 1.) I Click the Edit link and the row selected becomes editable with three textboxes, my data is 1 Smith John alomngside is now the Update link. 2.) I Edit...more >>

What is the control?? help needed..
Posted by Daniel at 9/21/2005 7:25:04 AM
Hi All, Actually, i wants to know how to display the info on a control (maybe panel) and the control will auto change the info within a preset time frame. Maybe u not so clear on what i am trying to explain, but my point is trying to display info in a preset time frame which act as a short...more >>

How to apply multi-colored innertext to <DIV>
Posted by JM at 9/21/2005 7:15:43 AM
Hi all, I have this sample code: var d=document.getElementById("txt"); d.innerText = d.innerText.toString() + "\n\n" + "<b>"+result+"</b>"; where 'txt' is of type <DIV>, and 'result' is some custom string. I want to parse the result string and change some of the words to other color. How...more >>

from msdn mag
Posted by rodchar at 9/21/2005 7:04:18 AM
hey all, i was looking at an article that talked about dhtml behaviors and how easy it can be to use them like the following modification to a datagrid: <asp:DataGrid Runat="server" ID="grid" Style="BEHAVIOR:url(rowover.htc)" Selectable="true" /> but it's not working for me...more >>

non-english character button
Posted by Mike P at 9/21/2005 6:15:21 AM
How would I create a button which when pressed outputs a non-English character (ä, ö etc) to a text box? I've seen a website where it was done, but I don't remember the name of the site. Any help would be really appreciated. Cheers, Mike *** Sent via Developersdex http://www.devel...more >>

Newsscript wanted
Posted by Emanuel Clapasson at 9/21/2005 4:55:26 AM
I search a simple Newsscript for ASP.NET that simply can to be included and only one Access-DB necessarily. Perhaps can recommend their such to me for ASP.NET? THX in advance, Emanuel ...more >>

Postback
Posted by Johan at 9/21/2005 4:06:35 AM
I'm running a timer as a VBScript on a VB.NET webpage. The problem is that at postback the script seems to start all over again and the timer is reset. Is there a way to prevent this? <SCRIPT language="VBScript"> <!-- dim StartTime dim Time dim timerID sub StartTimer...more >>

Persisting viewstate information between HTTP/HTTPS?
Posted by Chris Ashley at 9/21/2005 3:58:23 AM
Is it possible to persist viewstate information between HTTP and HTTPS (on the same page obviously)? Trying to get around writing some messy state transfer code... it doesn't seem to work if I use response.redirect. ...more >>

Secure and nonsecure pages.
Posted by Just D. at 9/21/2005 1:55:15 AM
All, I'm having a WebApp working through a secure connection (https). One of my pages is calling an external site to show the geographical map, this site is not secure and it should be calling inside the frame on the secure page. The browser (IE) complains that the page has secure and non-s...more >>

Freelancers - how do you calculate charges?
Posted by dhnriverside at 9/21/2005 1:27:05 AM
Hi I've been having a think about the best way to calculate my charges, cos I always seem to end up undercharging my clients - things always take longer than I expect them to. I was wondering how other freelance web developers go about calculating their charges? If someone comes to y...more >>

Pulling data from an Excel spreadsheet into either XML or Dataset
Posted by washoetech at 9/21/2005 12:29:02 AM
Hello, I am working on a project where I need to be able to grab the data from an Excel spreadsheet and create a new table in my database based on the columns in the spreadsheet. After the table is created then I need to fill the table with the data from that spreadsheet. I am using ASP.N...more >>

Session state IDs mixed between users
Posted by Lauri Kotilainen at 9/21/2005 12:00:00 AM
Hi, I've already tried several avenues for this, and am quite stumped. The issue I'm facing is a weird case of sessions getting mixed up (ie. users seeing each others' data). Apparently this happens at peak load times. The configuration is W2K3 with ASP.NET 1.1, IIS6.0, Cookieless sess...more >>

"page can not be displayed"
Posted by ugurceng at 9/21/2005 12:00:00 AM
Hi , I wrote a project with .NET 2003 When I run the project on my local machine (http://localhost/Proje1/default.aspx) there is no problem ,but when I try to run it from any machine on my LAN the errors occurs "page can not be displayed", likewise I can't display another page which belogs...more >>

Public variables in a module - from 2 users affect each other
Posted by Floris van Haaster at 9/21/2005 12:00:00 AM
Hi All! I have a question, i have a web application and I store some member information in a variable i declared in a module like: Public some_info_variable as string in module1.vb But when another user comes to my website he is getting the same values from the variable!!! And i want ...more >>

resx files : ressources not found after moving to beta 2005
Posted by Franck at 9/21/2005 12:00:00 AM
Hello, I've just moved to visual developper 2005 to do so, I also had to use the convert assistant. what it did; moving my file resx files that i had in a diresctory called resx to a new directory called: App_GlobalResources in my code i had : m_rm = new ResourceManager("MES.res...more >>

Image Button and Show/Hide Panel
Posted by Shapper at 9/21/2005 12:00:00 AM
Hello, I have an image button in a web page. The default image is ShowPanel.gif. When the image is clicked I want the panel "myPanel" to become visible and the image button to change to HidePanel.gif. When the image is clicked again now the panel becomes invisible and the image gets ...more >>

Strategy for Client Validation of Dates etc when doing Edit/Update on a datagrid.
Posted by Mr Newbie at 9/21/2005 12:00:00 AM
I am using a DataGrid for Edit and Update. However, Im wondering what the best strategy for client side validation would be as I dont think the validators can reference the TextBoxes which come up in the Table Rendered by the DataGrid when Editing/Updating or maybe I'm wrong ????? I know I ...more >>

File.Copy Access Denied
Posted by Shailesh Gajare at 9/21/2005 12:00:00 AM
Hi All, I have creating an ASP.Net application with two web servers. I am uploading a file which is being uploaded on one of the server, I want to copy the uploaded file on the other server at the same time. It says Access Denied. I am using File.Copy ( Source , Destination , true ) com...more >>

Can we set focus in UserName of a LoginView
Posted by ad at 9/21/2005 12:00:00 AM
I use a LoginView to authenticate user. Can we set the focus in the UserName or Password of the LoginView? ...more >>

DNN and Access
Posted by Sara T. at 9/21/2005 12:00:00 AM
I need to use DNN 3.1.1 with MS Access (.mdb), how can I config to support this database? Another question is how can I find the file of access to be used (.MDB)? Can I create with my self? ...more >>

Set a button as default "enter" input.
Posted by Jensen bredal at 9/21/2005 12:00:00 AM
Hello, I have an html submit button wich i have converted into a server control(ascx) . I want it serverside click event to be fired on "enter". How can this be achieved? Many thanks in advance JB ...more >>

My Page Keeps Moving Up. How to Solve this?
Posted by Shapper at 9/21/2005 12:00:00 AM
Hello, I have in my page a few Asp:ImageButtons and a few Asp:Panels. When a button is pressed the function Show_Hide is called and a panel visibility is set to true or false. The problem is that the page moves up every time I do that. Like it has been reloaded. Is it possible to solv...more >>

UserControls and Form-Tag
Posted by Alexander Widera at 9/21/2005 12:00:00 AM
Hi, My "page1.aspx" looks like that: <%@ Page ContentType="text/html" Language="C#" %> <%@ Register tagprefix="INC" tagname="MyTag1" Src="mytag1.ascx" %> <html <head>...</head> <body> <form runat="server"> <INC:MyTag1 id="mytag1" runat="server" /> </form> </body> </html> And my "...more >>

File transfer between IIS 6.0 and MAC
Posted by Raj Dhrolia at 9/21/2005 12:00:00 AM
Hi, Can anyone suggest me best way to upload large files (>100-500MB) to my ASP.NET web application (IIS 6.0, Win 2K3). The problem we see with conventional method is that the session times out, and the entire file gets loaded in IIS memory and things get worst when couple of users uplo...more >>

DataGrid - DropDownList Binding!
Posted by Adam Knight at 9/21/2005 12:00:00 AM
Hi all, I am trying to preselect a value in a dropdown list contained in a DataGrid via the 'SelectedValue' method. I tried using Container.DataItem in the DataGrid onItemDataBound method and an error was issued. 'Container not declared'. Can anyone suggest how i am supposed to retrieve ...more >>

Page Load Twice?
Posted by Adam Knight at 9/21/2005 12:00:00 AM
Hi all, I have the following code in a User Control. For some reason it appears as if the page load function is executed twice as the 'UserLoggedIn' function results are being outputted twice. If this is the case, i suspect it is something i have missed about a pages life cycle. Can any...more >>

Sintax error
Posted by simon at 9/21/2005 12:00:00 AM
This works in VB: <td <%# myFunction(DataBinder.Eval(Container.DataItem,"column1"))%>> but in C# doesn't. What is the right sintax to include some text between the html tag in C#? I can't found. Thank you, S ...more >>


DevelopmentNow Blog