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 > december 2003 > threads for tuesday december 16

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

utilizing output dll from any web authoring tools
Posted by Mokong at 12/16/2003 11:41:13 PM
how can i call my asp.net project from a dreamweaver application?...more >>


List of tables in Access DB
Posted by SK at 12/16/2003 11:01:11 PM
Hi ! I wanna find out the list of tables in my Access DB file. But when i try to open it through the following query " SELECT Name FROM MSysObjects WHERE type=1 and flags=0; " i get this error in ASP.Net " no read permission on 'MSysObjects'. " Can anyone help me to fix this error or s...more >>

Authentication question
Posted by David Kleyman at 12/16/2003 9:27:34 PM
I would like to find out if there is a way to SignOut() the user and redirect the browser back to login page after time out period expired I've added these settings to my web.config file but they don't seem to take any effect <authentication mode="Forms"> <forms name="frmLogin.aspx" loginUrl=...more >>

login failed for the user (using MSDE)
Posted by shahzad at 12/16/2003 9:10:50 PM
im using MSDE , not SQL server i have already created a new accnt named "demoasp" and assoigned it to processmodel section of machine.config so as to correct other error which said "server application unavailable" when i run my asp app .it gives following error Server Error in '/...more >>

How to configure Web apps (comiled into v1.0) to run on Framework 1.1?
Posted by Neo at 12/16/2003 8:22:49 PM
I can do this for Windows Forms application by adding supportedRumtime to app.config file. But I figured out that it is some different for Web applications. The supportedRumtime does not work for me. I guess it might have to work with the application mappings in IIS. Can anyone give me more i...more >>

Usercontrol methods
Posted by Joe Molloy at 12/16/2003 7:09:38 PM
Hi, I have a usercontrol containing mutually exclusive radiobuttons and I am trying to use a public function to set a property of the usercontrol based on which one is checked. However when I refer to the radiobuttons in my public function (method) the runtime tells me that no object referen...more >>

problem with quotes in vs.net
Posted by h_tam NO[at]SPAM yahoo.com at 12/16/2003 7:08:38 PM
I have this piece of code that give me problem in vs.net html design mode. <A href="javascript:launchMeterDlg('<%=Me.bid%>','<%# DataBinder.Eval(Container, "DataItem.MeterID") %>')"> while this work prefectly well when I tested. How i can make this work in design mode as well? Thanks...more >>

Retrieving text from DataList cells
Posted by Stephan Bour at 12/16/2003 6:52:30 PM
I need to build a string from the content of a datalist containing a nested datagrid. This properly returns the data from the first cell in the datagrid: String first = GridItem.Cells[0].Text; However, I can't seem to apply the same technique to the datalist as ³Cells² is not implemented. How...more >>



Unable to install ASP.NET
Posted by Ayende Rahien at 12/16/2003 6:16:14 PM
I can't get IIS to recognize ASP.NET. I recently installed IIS so I could test ASP.NET pages that I'm writing, but it just give me the (exact) page back. Meaning that if I've a <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Test.WebForm1" %> At the top, i...more >>

Access is Denied error debugging ASP.NET
Posted by Don Hans at 12/16/2003 6:13:47 PM
Gents, Have .Net2003 Enterprise architect installed on a Win2k Server with IIS. Even logged in as administrator, I cannot run any ASP.NET app with debugging. I always get the error "Unable to start debugger on the web server: Access is Denied" when attempting to start the app with debuggin...more >>

Using a file as a string
Posted by Mark at 12/16/2003 6:07:09 PM
hey all, For purposes of sending the contents of a file to a function that requires a string, I am trying to find a way to read a file to a string variable & pass it along. I was reading in VB about the FileOpen & FileGet functions but can't get those to work. Any suggestions would be great.....more >>

Update record ?
Posted by Daniel at 12/16/2003 5:06:18 PM
Does someone know how to update record in ASP.NET ? Because i face a problem after updating the record in SQLServer database. The problem is : I do update to a record's field called DateIn. After updating the whole DateIn column field will also same value as the updated value ? Does any one kno...more >>

resizing image has terrible quality
Posted by neverstill at 12/16/2003 5:06:08 PM
hi- So I wrote this nice little page that will allow the managers to add images to the products table. Without too many details to confuse everything, basically what I'm doing is: getting an Image from there I'm creating a new Bitmap(Image, int w, int h); then I'm saving that bitmap vario...more >>

SRC instead of CodeBehind
Posted by A.M at 12/16/2003 4:56:59 PM
Hi, Using VS.NET 2003, If i use SRC page attribute instead of CodeBehind, do i still have intelisence and generally IDE support for that? Thanks, Ali ...more >>

Setup Problem
Posted by Richard Roche at 12/16/2003 4:50:55 PM
i have an existing medium application w/ ~20 forms running for months. I added 1 new form and tested successfully on my development machine; when i re-build my setup i get a error 'Description: An error occurred during the parsing of a resource required to service this request <%@ Page la...more >>

Global Session Variables and Session State
Posted by Earl Teigrob at 12/16/2003 4:48:40 PM
I what to create global variables that are based on the user session. I created a class that is instanced on session_start and hold all the users global variables within that class. This works great unil the user stays on the page for more then the timeout period (20 minutes or whatever) Then whe...more >>

Postback and asp:table
Posted by Maria at 12/16/2003 4:11:25 PM
Hi I have a asp:table that I want to hold the values between postbacks. Hope some one knows how I can get that to work in an easy way. The table is loaded in runtime with different textboxes. When i press a button and runs some server code the page becomes "quite empty" Thanks in adva...more >>

label.text refresh
Posted by maria at 12/16/2003 4:08:15 PM
Hi I hope some one can help me I have a table of type <asp:Table>. This table is filled in runtime with labels and textboxes(also server controls). I have written a function i jscript since when a user leaves on of the textbox I want to update a labels text. The problem is to refresh th...more >>

asp hyperlink click event?
Posted by Doug Stiers at 12/16/2003 3:48:46 PM
I have an asp:hyperlink that I need to have some code fire when the link is clicked. The link is in a datagrid and the link is working properly. I tried using the OnInit event to call the subroutine but that fires when the control is rendered. I need the code to fire only when the users clicks on...more >>

Same Session for 2 different Applications
Posted by Jazper at 12/16/2003 3:47:52 PM
hi i'd like to be able to access the same objects in the session but by different applications on the same webserver. example: C#-WebApp creates Session-Object "xxx" and redirect to a VB-WebApp which should be able to read this Session-Object "xxx". how can i do this? thanx for ever hin...more >>

Using templates?
Posted by Ayende Rahien at 12/16/2003 3:28:28 PM
How do I create an ASP.NET site that uses templates? I want to have one (or a few) template HTML files that will dictate the look & feel of the site, and all the other pages loopking like them. How is this done? ...more >>

A potentially dangerous Request.Form
Posted by Alex Munk at 12/16/2003 3:22:40 PM
Hi All, I read the KB821343 article on this subject and I am still a bit confused about a couple of things: 1) Am I to understand that if I install .NET frame work 1.1 on the computer generating the application this problem will be resolved? 2) How can I find out what the offending code i...more >>

HTML quotes problem
Posted by Tim Mulholland at 12/16/2003 3:17:46 PM
I have an issue i can work around, but i'm trying to figure out what i'm "supposed" to do. i have a line of HTML/ASP.NET code inside a repeater that is something like this <a href="page.aspx?s=<%# DataBinder.Eval(Container, "DataItem.TheData") %>">Text</a> This code executes perfectly, a...more >>

Tricky Replace String Question
Posted by localhost at 12/16/2003 2:54:51 PM
I have a string that looks like this: "document.form1.textBox1.focus ();document.form1.textBox1.select();" I want to replace the text between "document.form1." and ".focus()", as well as the text betwen "document.form1." and ".select ()". Ultimately the effect is replacing "textBox...more >>

User roles
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 12/16/2003 2:52:48 PM
Hello Guys, I would like to know if ASP.NET has any "automated tools/ API" to manage content personalization based on user roles? Rather than using user's login to retrieve information from the database by querying his role, are there any other API's or tools provided by ASP.NET To my...more >>

Impersonation headaches
Posted by Stephajn Craig at 12/16/2003 2:50:07 PM
I'm developing an ASP.NET app on a Windows 2003 Server. My ASP.NET app is using Windows Authentication and in IIS I have disabled Anonymous Access, and enabled digest authentication. In my Web.Config file I have put this line: <identity impersonate="true" /> My ASP.NET app calls on a SQL...more >>

Basic Steps for Creating ASP.NET app.
Posted by tryniks NO[at]SPAM yahoo.com at 12/16/2003 2:41:12 PM
Hi, I am new to ASP.NET. I have to develop a SIMPLE web based project in ASP.NET. I have a few questions reagarding that - 1) Do we need to create a new project by selecting ASP.NET web application from VS.NET or can we directly create it manually like typical ASP app. and create all other...more >>

Login failed for user '<COMPUTER_NAME>\ASPNET'
Posted by Matthew Louden at 12/16/2003 2:29:15 PM
I wrote ASP.NET application that access SQL Server database. When I run the application, it yields "Login failed for user '<COMPUTER_NAME>\ASPNET'" error message. I then did the following, but still didn't work. Any ideas?? 1. In IIS console, right click the virtual directory 2. click direc...more >>

Counting Active Sessions
Posted by Brad B. at 12/16/2003 2:05:09 PM
I am trying to enforce a licence for my web application based on the number of active sessions. Each time a new user accesses the app, I want to check this to see if over the limit. Unfortunately, Can't find a way to check this in ASP.NET. Looked at performanceCounters but have not had ...more >>

ASP.Net display problems
Posted by elluru_arun NO[at]SPAM yahoo.com at 12/16/2003 1:44:59 PM
Hi, I have just now installed VS.NET on my system and created basic .aspx files using <asp:label id="Message1" font-size="16" font-bold="true" forecolor="red" runat=server>Test</asp:label> tags to test the pages. When I save and run the pages, I am able to see the text but not the font or...more >>

Reading panel visible attribute that was manipulated with Javascript
Posted by John at 12/16/2003 1:32:46 PM
I have a panel on a webpage. I use client Javacript to manipulate its visibility using something like: Panel.style.display = 'none'. During a postback, getting the Visible attribute always returns true whether the panel was visible or not. Is there another Javascript method to turn on/off ...more >>

C# call to C++ static class raises NullReferenceException when web.config gets modifided
Posted by AAguiar at 12/16/2003 1:31:56 PM
I have an asp.net project where the code behind the aspx page calls a c# class which makes calls to a managed static C++ class. The C# class works fine when the asp net worker process starts, when it is invoked by pressing "F5", or when the web.config file is modified. In all these cases the web...more >>

Frames and Session?
Posted by Kent Tegels at 12/16/2003 1:16:09 PM
Okay, so I know I'm doing two evil things: using Frames and storing stuff in Session. I'm a sinner and I'll repent after this project, I promise. But for now, I've got an interesting issue. In a site's Gobal.asax, I've written the following in Session_OnStart: Session.Add("Started...more >>

DataList - Capture the SelectedIndexChanged of a dropdownlist within template
Posted by todd_h_fisher NO[at]SPAM hotmail.com at 12/16/2003 12:37:44 PM
I need help please... I am try to capture the selectedindexchanged on a dropdownlist in a datalist template. I want to update another dropdown in the template based off of my first dropdown choice selection. I assume you would set the selectedindex change of the dropdown field on the itemd...more >>

How to use DLLs from GAC in ASP.NET apps?
Posted by Andrey Mazurov at 12/16/2003 12:31:12 PM
Hi! Please advise. Can I use DLLs from GAC in ASP.NET applications? How? Thanks, Ray ...more >>

Dynamic IFrame Population
Posted by snichols NO[at]SPAM cyscript.com at 12/16/2003 12:29:20 PM
Hello, I have an asp.net application. The application dynamically creates an invoice. It is important to see and approve the invoice before it is updated in the database. So...I was dynamically creating a PDF file and writing the PDF file to disk and then updating an ifram src attribute on ...more >>

Enumerate Control Attributes?
Posted by localhost at 12/16/2003 11:49:37 AM
What is the best and/or fastest way to enumerate attributes of an HTML control? In my page template, I have: <body id="myBody" bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="GridLayout" class="Body" runat="server"> And in my code-behind I want to look fo...more >>

suppressing Submit command with a Delete button
Posted by Elliot M. Rodriguez at 12/16/2003 11:33:36 AM
I have a Delete button in my datagrid. I'm attempting to add some code confirming whether the user wishes to really delete the item or not. The confirm pops up, but I cannot suppress the submission when selecting Cancel. Heres what I have so far: ' adding the javascript call to the button...more >>

format textbox value as number
Posted by nic at 12/16/2003 11:30:37 AM
Hi, I have a textbox value that I need to force (and format) to be a numeric value. For example, I want to allow a user to type 1000 or 1,000 or 1,000,000 but not something that is not numberic. Essentially I want to ignore the commas. If I use the compareValidator it does not allow co...more >>

Debug and Release mode
Posted by Do at 12/16/2003 11:24:07 AM
Hi: Is there somewhere in any config file where debug or release mode get set when I change the mode before rebuilding in VS.net? Thanks, Do ...more >>

QueryString and Web Forms
Posted by Arsen Vladimirskiy at 12/16/2003 11:04:39 AM
Hello, I have a few web forms: 1) Shows a list of items with item ids 2) Shows details specific to an item and the sub-items of this item. What is the best way to pass the item id of the selected item from the 1st page to the 2nd? If I pass the value in the query string from the first ...more >>

Dynamically inserting text into Table Cells so that they are instantly updated individually.
Posted by clocke NO[at]SPAM vetchd39.freeserve.co.uk at 12/16/2003 10:39:37 AM
I am running an ASP.Net project that runs 30 lengthy SQL Stored Procedures (each takes around 20 seconds to complete). As each Stored Procedure completes, I want to indicate in a table cell that it has completed by merely inserting the word "Complete" into the table cell. I would love to know if...more >>

Retrieving information from AssemblyInfo.vb
Posted by Rob at 12/16/2003 10:22:54 AM
What VB run-time methods are available to retrieve information (such as AssemblyCopyright, AssemblyProduct, AssemblyVersion, etc.) from the AssemblyInfo.vb file for the current executable? Thank you in advance for any help....more >>

Event handler not fired after using browser back button bug??? ...or What!!!
Posted by Earl Teigrob at 12/16/2003 9:38:06 AM
When I display a page with imagebuttons, clicking on a link fires the event associated with that link and takes me to the correct page. When I use the browser back button to go back to the origonal imagebutton page, and press a different imagebutton, no event is fired and the page for the first ...more >>

Datagrid popup window problem
Posted by Stephen at 12/16/2003 9:32:24 AM
Hi, I have a datagrid which displays a list of names and a button next to each name. In the Datagrid_ItemDataBound event I attach an attribute to each button which sets the onclick event of each button to a javascript window.open event that opens up a popup window, the only problem is t...more >>

Flicker and datagrid
Posted by Binny at 12/16/2003 9:22:10 AM
Iam displaying a datagrid in a div element. Also iam saving its horizontal and vertical positions of scrollbars. when datagrid is scrolled position and postback returns datagrid shows in its normal position and then scrolls. This is sometimes causing flickering and sometimes not very stra...more >>

Detecting empty in an IFrame
Posted by Marcel Balcarek at 12/16/2003 9:08:32 AM
Hi, Is there a way in .NET to convert InnerHtml text e.g. '<B>hello</B>' to 'hello' ?? In IE I can use myiframe.innerText to know whether a field is empty, but in Netscape this method is not available. myiframe.InnerHTML often has leftover html which converts to nothing in the iframe (in...more >>

Problem with 2 DropDownList
Posted by Jorge at 12/16/2003 9:05:09 AM
I don't know in what case this can happend. I have to WebUserControls (CompositeHeader1 and SubcategoriesList) each one have a DropDownList (ddlCategories and ddlSubcategories respectively). the clientID for them are "compositeHeader1Ctl:ddlCategories" and "subcategoriesListCtl:ddlSubc...more >>

Session_Start/End Question
Posted by Jeff S at 12/16/2003 8:59:45 AM
My intent is to write some information to a database when a new session of my application begins. The code that writes to the database works great - however the Session_Start procedure (in Global.asax.cs) is run for each page requested. Specifically, what I'm observing is that when I start the a...more >>

TimePicker
Posted by simon at 12/16/2003 8:53:09 AM
Does anybody have timepicker control which works on web forms and codeBehind(is not activeX)? There is one but it works only on windows forms. Thank you, Simon ...more >>

MS Data Application Block
Posted by Mark at 12/16/2003 8:38:09 AM
The Microsoft data application blocks contain quite a few methods that return a DataSet. Any reason not to consider adding an identical set of methods that do the exact same thing but return a DataTable instead? Why would you go through the overhead of creating a DataSet when 9 out of 10 times...more >>

Problems uploading files
Posted by Er bengaor at 12/16/2003 8:24:25 AM
Hi. I am trying to simulate the fileupload html control in order to use different css styles in the editbox and button. To do this, I'm using a hidden fileupload control and javascript. But when I first click the web control button to send the file, the value of this hidden control is del...more >>

Simple Button question
Posted by Eldopn Ferran de Pol at 12/16/2003 8:23:39 AM
Hi all, Is there anyway of preventing an ASP button from posting back to server. I've got a button with the CommandName set, but it is still being created as a submit button in the HTML output and still submitting the page. Eldon...more >>

Copying files .........
Posted by ALPO at 12/16/2003 7:54:02 AM
Is there an easy way to copy only selected files from one psolution to another? Such as , I have an aspx and code behind files on my local machine and I want to copy them to a solution on a web server..........more >>

MSMQ woes
Posted by Brad Quinn at 12/16/2003 7:35:44 AM
Why, when I call MessageQueue.GetPublicQueuesByMachine from a WebApplication, do I get the following exception? When I excecute the same code in a "WindowsApplication" I get the expected result. 1) Exception Information ********************************************* Exception Type: System.M...more >>

Getting Errors from Class File to Web Page.
Posted by Arvind P Rangan at 12/16/2003 6:46:57 AM
Hi, I have a VB Class File on Any Error i want to send it to a Web Error Page with the Error Description. I am trying opening a web page through new : New System.Diagnostics.Process() 'newprocess.Start ("http://localhost/errorpage.aspx?error=" & es.Message & es.StackTrace) ...more >>

Multi file download
Posted by Skwish at 12/16/2003 6:36:21 AM
Hi, I would like to download all the files from a folder (of various types i.e. ..txt, .dll, .dat, etc.). I tried Dim MyDir As IO.Directory Dim path As String = Me.MapPath(".") & "\Data" Dim dirs As String() = IO.Directory.GetFiles(path) Dim iLoop As Integer Dim FileNam...more >>

Microsoft MasterPages ASP.NET v1.0
Posted by Andrew at 12/16/2003 6:23:46 AM
I am trying to use an editable DataGrid inside a "region" using Microsoft MasterPages ASP.NET v1.0 from asp.net. The datagid loads and displays the data, but when you click edit it generates an error in the client side javascript postback. Any ideas? Thanks, Andrew...more >>

Display image from file path in Crystal .NET Report
Posted by Mark at 12/16/2003 6:11:18 AM
Hello all - I'm at wits end with trying to figure out why I'm having this problem since I followed the research, that I've dug up, to a "T". I'm trying to display a JPEG image from a path directory within a Crystal Report. I created a typed dataset that is not bound to the database called dsLo...more >>

Back Button Dramas
Posted by mike NO[at]SPAM tallemu.com at 12/16/2003 2:56:01 AM
I'm relatively new to .NET, and I have an irritating issue, which I hope it is possible to solve. I have a site that has lots of user controls, which are made visible/invisible based on a menu. Effectively, this has built a wizard. However, when the user presses the "Back" button, I get the ...more >>

Basic Javascript problem
Posted by Eldon Ferran de Pol at 12/16/2003 2:07:41 AM
Hi all, Can anyone see what is wrong with this function. It's being called by the OnClick of a radio button. For some reason I can't access the options collection or any of the Select's basic properties (e.g. type, name etc.). I've tried access ddlMonEnd using this syntax as well as ...more >>

datagrid-columns
Posted by reiks at 12/16/2003 1:35:48 AM
I have a datagrid with one templatecolumn I took three texboxes in my template column.But the problem is that they are get aliged horizontally i.e. one after the other. I want the textboxes to be aligned one below the other in the template column I know that it's possible through th...more >>

Javascript Alert() and post back in c#
Posted by p_h082002 NO[at]SPAM yahoo.com at 12/16/2003 1:30:32 AM
Does anyone know how to have the pop-up javascript alert, Response.Write("<script language=javascript>alert('HEY!');</script>); , pop-up after the page has been posted back? I am pressing a button, validating data and then wanting to simply pop-up an alert if say the login is empty. When I ...more >>

Is there Control equivalent DataWindow Control of PowerBuilder
Posted by Sunkam Santhoshi at 12/16/2003 1:30:13 AM
Is there any equivalent control in .NET for the Power builder DataWindow control? I am explaining the Datawindow architecture to some extent. Power Builder DataWindow Control has got different presentation styles and different data sources. Presentation styles like tabular format , grap...more >>

The viewstate is invalid for this page and might be corrupted.
Posted by Mike at 12/16/2003 1:21:51 AM
hi to all does any body know or receive this message before and how i can repare this: The viewstate is invalid for this page and might be corrupted. thank's Mike ...more >>

Server control or User Control in FrontPage
Posted by Minnie Mouse at 12/16/2003 12:58:44 AM
I created a user control (ascx) in VS.Net. Can this control be used in FrontPage instead of my top border? If not, would making the control into a server control allow me to use the control in FrontPage? ...more >>


DevelopmentNow Blog