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 > october 2003 > threads for tuesday october 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 31

attachment type control
Posted by Brian Henry at 10/21/2003 10:33:18 PM
I need to develope an attachment control that can upload any number of attachments. Ive never made one of these before, i assume you'd use an upload control? it'd be nice if it worked similar to hotmails type of attachment process.. does anyone know of any sample code? ive been looking around an...more >>


IE Web Controls don't render on my localhost workstation project of ASP.net
Posted by Do at 10/21/2003 10:04:48 PM
Hi, I have the IE web Control .dll files in my bin project for my web app on //localhost. They don't seem to render in my Internet Explorer browser. Do ...more >>

Newly added asp.net webforms cannot parse
Posted by Do at 10/21/2003 9:22:28 PM
Hi, I simply try to add new default webforms to my project and none of them can load. Has anybody received an error like this? Thanks, Do Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specifi...more >>

WebRequest
Posted by Christian Pické at 10/21/2003 8:57:08 PM
Hi, I have to do a POST to an URI. I already figured out this code: WebRequest myRequest = WebRequest.Create("https://select.worldpay.com/wcc/purchase"); myRequest.Method = "POST"; Question: How can I add parameters to this request? The sample provided by the owner of the web sit...more >>

HTML Image buttons
Posted by itsme at 10/21/2003 8:44:44 PM
Hello, I am using HTML image buttons in my web application and when I run it, all my image buttons are showing up with a border. I tried using border="0" with the input tag, but it is deprecated. <input border="0" src="../images/next.jpg" type="image" onclick="return checkPage('nex...more >>

Multiple Tables..?
Posted by Kent Johnson at 10/21/2003 8:44:40 PM
Hi all, I have a code that is supposed to load three tables in a dataset. This works fine with one Dropdownlist1 but not with the other Dropdownlist2. Tables(0) = "Table0" : Tables(1) = "Table1" MyDataSet = GetDataSet(strConn, Tables) For intCount = 0 To Tables.GetUpperBound(0) o...more >>

Output parameters undefined? Huh?
Posted by Jim Owen at 10/21/2003 8:24:09 PM
The following code does not operate properly, and neither I nor the three ..Net experts can figure out why. It's a seeming mystery. The code is simple. A SqlCommand is executed against a stored procedure, then a DataReader is looped through. After the DataReader is exhausted, I attempt to read so...more >>

what is wrong with the foll code?
Posted by shin at 10/21/2003 7:44:02 PM
hi i am trying to output an image which i have in a database. but this gives me errors byte[] Picture; Picture = (dr["logo"]); //cannot convert from object to byte Response.Buffer=true; Response.ContentType = "Image/JPEG"; Response.BinaryWrite(Picture); how do i output images...more >>



launching gui app from asp.net
Posted by memememe at 10/21/2003 7:14:53 PM
I am launching a program with a GUI from asp.net, but aparently the aspnet user doesnt use the same screen as my logged in user, how can I make the program I launch appear on the monitor? I realize this is a "bad" design but that its part of the heart of the product. ...more >>

Postback lossing Session values?
Posted by mark.rodrigues NO[at]SPAM tradergroup.com.au at 10/21/2003 7:05:39 PM
Hi Everyone, I have been fighting a problem for a while and I wonder if someone out there can help. This problem has been presented in a number of news postings previously but I am yet to see a response with a suitable resolution. So here goes ... We have a web site which stores an instanc...more >>

gui program launched from aspnet user
Posted by memememe at 10/21/2003 6:46:13 PM
I am launching a program with a GUI from asp.net, but aparently the aspnet user doesnt use the same screen as my logged in user, how can I make the program I launch appear on the monitor? ...more >>

Security hole?
Posted by LL at 10/21/2003 6:08:41 PM
Hi, If Assign ASP.NET User as db_owner to the login user, can possible the login user do some bad thing to my db system? Thanks... sp_addrolemember 'db_owner', <ASP.NET User Account>" ...more >>

HTTP/1.1 500 internal server error
Posted by Matthew Louden at 10/21/2003 5:50:50 PM
I use VS.NET 2003, and try to create an APS.NET web application. However, when I do this: File | New | Project | ASP.NET Web Application, it yields the following error message immediately. Any ideas? I am using Personal Web Server IIS with Windows 2000 Pro. The web server reported the follow...more >>

CSS and VS.net
Posted by IntraRELY at 10/21/2003 5:39:19 PM
I have created several ASP.Net forms which everything was created with the default font and size. I dont really have any experiance with CSS, but was wondering what is the best way to make all my ASP labels, textboxes, datagrids, etc the same font and size, whether its with CSS or some global s...more >>

DataGrid Data
Posted by Jim Heavey at 10/21/2003 5:31:18 PM
Hello, I am starting to learn how to use the Datagrid and I have a couple of questions. My datagrid as a checkbox in it. It looks like the following in the datagrid... <asp:TemplateColumn HeaderText="Check In"> <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle> <ItemTemplate> ...more >>

DropDownList in DataGrid and SQL Query with Child Rows
Posted by John Bonds at 10/21/2003 5:29:35 PM
I have made a Template column in my DataGrid that contains a DropDownList. My main SQL query that is bound to this datagrid joins with another table in the following way: SELECT * FROM Customer INNER JOIN Orders ON Orders.CustomerID = Customer.CustomerID So I will get multiple rows returned...more >>

Working with Frames in ASP .Net
Posted by yogi at 10/21/2003 5:21:50 PM
hey Can someone tell me how to put one page in frame from event in another frame. There is a frameset on the page with 2 frames (top bottom) I have a web menu in top frame and when i click on that menu some aspx page should be displayed in bottom frame. Please help me. regards yogi...more >>

Prevent Browser Caching for a Page
Posted by R. Ian Lee at 10/21/2003 5:03:31 PM
I have an ASP.NET page that spawns a popup window using javascript's window.open. This works fine. It pops up, you enter some data, press save and everything saves as it should. But, if you click the button to open the popup again, then it opens with the values that were in it before th...more >>

Converting a column in a grid to link
Posted by John Doe at 10/21/2003 4:59:28 PM
Hi I want to convert a column to a link. All examples I have seen works with bound columns. I have the following grid: <asp:datagrid runat="server" id="__theDetailsGrid" cellpadding="2" cellspacing="0" OnItemDataBound="Details_Item_Bound"> </asp:datagrid> It is bound during runtim...more >>

Serializable
Posted by Jim Heavey at 10/21/2003 4:20:07 PM
Hello, When I attempt to store a dataview into a "viewState" variable, I get some error message indicating that I need to "mark the dataview as serializable". How do I do that? ...more >>

File Upload Progress
Posted by Kenneth Keeley at 10/21/2003 4:14:07 PM
Hi, I have a page that uploads files to my server and I wish to display a "Please wait while uploading" page to the user while the file is uploading. I have been able to redirect the user once the file is finished uploading but am not sure how to do it while file is uploading. Some sample c...more >>

ASP.NET Refresh Problem
Posted by wright at 10/21/2003 3:49:19 PM
hello, i have a problem in refreshing a page. the problem happens when i click a button that does a certain action in a web page, such as inserting a record into the database, if now i refresh the page (press f5), the action repeats itself and another identical record is inserted too. i discover...more >>

How do I launch a new window with server-side code?
Posted by Steve Parks at 10/21/2003 3:34:29 PM
Using server-side code, how do I launch a new window? I have an ASP.Net application that uses a frameset, yet I have some (crystal) reports I want to view in a separate window. I can probably launch a window with client-side code, but would prefer to launch it from server-side code. Thank you...more >>

Shared Variable Vs. Session Variable
Posted by John Kraft at 10/21/2003 2:47:19 PM
Hi all, My question is more of a phylisophical one here, but I am wondering what the difference is (effectively and performance wise) between using a shared variable/static variable and using a session variable. I have two different applications right now that effectively perform the sam...more >>

unable to debug in VSTUDIO .NET 2003
Posted by Max at 10/21/2003 2:34:40 PM
Debugging in ASP.NET I receive the error: Error while trying to run project: Unable to start debugging on the web server. The sistem cannot find the file specified. Do u have any suggestion? Thanks ...more >>

#include virtual
Posted by Alex at 10/21/2003 1:44:55 PM
Hi, I have noticed that in an aspx page <!--#include virtual="Home.htm"--> acts the same as <!--#include File="Home.htm"--> when I am NOT in the root diectory of the site (I am aware that they will reference the same file if in the root dir) for example I have a directory on my site ...more >>

Datagrid columns
Posted by Darin at 10/21/2003 1:39:56 PM
I need to create a column with 4 links in that column that take 4 different actions against that row when clicked. I do not see how to add 4 links under one column using the datagrid's property builder. Can anyone give me any direction? Thanks....more >>

Stuck
Posted by HalaszJ at 10/21/2003 1:39:18 PM
Ok, I got this page (with a datagrid on it) that I hit a button on and it opens a new page (popup). In that popup I have to option to delete the record that got me there, or change it.. whatever. Ok when I am done and close the popup and give focus back to the parent form... How can I re...more >>

Mail.Body HTML syntax
Posted by Stephan Bour at 10/21/2003 1:25:27 PM
Hi, I am using the MailMessage method to send an email from a form and I have the following code giving me the following error on line 79: Compiler Error Message: CS1002: ; expected Source Error: Line 78: Mail.BodyFormat = MailFormat.Html; Line 79: string MailBody =...more >>

Using multiple web.config files...
Posted by Andrew Connell at 10/21/2003 1:21:32 PM
I have an app where I want virtually everything password = protected/secure except for a single directory. That directory handles = some custom authentication and contains my login form, but also some = other pages that I need to make available to anon users. I've setup my web.config in the r...more >>

emails get stuck in mailroot\Queue
Posted by Brent Burkart at 10/21/2003 1:18:54 PM
I have a process which used IIS SMTP to send emails. However, it looks as if everything is just being stuck in the mailroot\queue folder. Does anyone have any ideas why? Thanks, Brent ...more >>

Instantiation of object fails
Posted by Greg at 10/21/2003 1:17:21 PM
I developed an ASP.NET application on a client machine. After building and testing the appilcation on the client, everything works fine. When I copy the files to the web server using XCOPY, the files that reference a customized component do not work. I installed the component on the web se...more >>

New Version of ASP.NET Application not displaying
Posted by Mike at 10/21/2003 1:13:21 PM
I have an ASP.NET application running on a remote web server. Its running fine. I made a few additions to the page as well as some logic changes. I compiled the App on my local machine and it is working correctly. When I copied the files over to the web server the old pages are still be d...more >>

A Newbie Question
Posted by Greg Smith at 10/21/2003 12:59:36 PM
I am just learning ASP.Net. Can somebody please give me an example of creating, placing and positioning a text box on a web page, all in code? Any help is greatly appreciated. ...more >>

file uploads with progress bar
Posted by Todd Denlinger at 10/21/2003 12:49:23 PM
Ok, I know how to upload a file in asp.net using the <input type="file" runat="server"> control. What I don't know how to do is monitor the progress of the upload so that I can show the end-user a progress bar, or something. Anyone have any ideals or can point me to a sample? Thank...more >>

Replacing Carriage Returns in VB.NET
Posted by Mario Vargas at 10/21/2003 12:43:39 PM
How do I replace carriage returns with <br /> in Visual Basic .NET? I know this is easy to do with C# by simply calling myNewString = myString.Replace( "\n", "<br />" ); Thank you for your input! Mario Vargas ...more >>

Server.Transfer doesn't work in a timer callback
Posted by Jim Hammond at 10/21/2003 12:00:31 PM
The code below works except that calling Server.Transfer generates the following exception, and I don't know why yet: "Error executing child request for Form_Welcome.aspx." Although a page has a short lifespan, I have discovered that the timer callback is in fact being called after 10 se...more >>

Dynamic Controls and Postback
Posted by Steve Roszko at 10/21/2003 12:00:19 PM
I am creating a set of dynamic text boxes on my page. When I do a postback the dynamic controls seem to always disappear. I have tried setting the EnableViewstate = True and still no luck. I would like them to remain and persist any data entered by the user on postback. Any ideas? -Stev...more >>

server.transfer error
Posted by shin at 10/21/2003 11:33:36 AM
hi i have an asp.net page and i am trying to transfer control to another asp.net page response.redirect works fine but server.transfer gives me the foll error why is that System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Thr...more >>

DataGrid within scrollbar/Header must not scroll/Sorting on asc and desc
Posted by VSK at 10/21/2003 11:31:10 AM
Hi all, I want to design a DataGrid like in the below website., http://v4.windowsupdate.microsoft.com/en/default.asp Features i need are 1) DataGrid within scrollbar 2) Header must not scroll. 3) Sorting on asc and desc when u click on header text link. All the above features are avail...more >>

asp.net start kits
Posted by nathan at 10/21/2003 10:45:48 AM
Hi there. I installed visual studio.net on my PC. Than, I installed asp.net start kits When I try to run the start kit, the program is opened by VS.NET. It also happen with visual basic.net resource kit. Do you know where I need to fix? Thanks nwang@arrow.ca...more >>

Starting a Telnet Session???
Posted by Mike Lambert at 10/21/2003 10:44:15 AM
I have a web page that displays IP information. I want the user to be able to click on a button and connect to that device using the Telnet client. In a window app I just use the Process object, but can't find the eqivalent in ASP. So how would I launch a windows application from within ASP?? ...more >>

Event id 1003
Posted by Vani at 10/21/2003 10:28:40 AM
Friends, I have asp.net 1.0.3705.0 on one of my servers. aspnet_wp.exe is getting recule because it was suspected to be in a deadlock state. What could be the possible problem for this to happen. thanks in advance. Vani ...more >>

DataReader
Posted by Joseph at 10/21/2003 10:10:23 AM
Good day, How do I get the sql count result from dataReader? I tried to use Call connectSource() Dim sqlstr4 As String = "Select COUNT(*) from product where product_id = " & pid Dim objCommand4 As New OleDb.OleDbCommand(sqlstr4, cnn) Dim objDataReader4 As OleDb.OleDbDataReader...more >>

Set the background colour of a grid
Posted by John Doe at 10/21/2003 9:53:58 AM
Hi Is it possible to set the background colour of a grid based on a value in data? I guess that it is simple but I have been unable to figure it out. TIA...more >>

asp.net menus
Posted by Bratislav Jevtic at 10/21/2003 9:53:48 AM
hi, we developed an application having server-side menus. however, I'm interested for: 1. some nice client side drop down menus. ideal solution would be something like windows menus in desktop applications (menus, submenus, check box items, etc) but working in JavaScript. 2. if I select ...more >>

static functions/properties and session
Posted by Bratislav Jevtic at 10/21/2003 9:34:13 AM
hi, i've got something like PersistenceController, class that should handle all persistency related operations. if this class has static property like Instance called from anywhere in asp.net app ( PersistenceController pc = PersistenceController.Instance), is it same object for all sessions o...more >>

postbacks for controls added at PreRender stage of a page
Posted by foldface NO[at]SPAM yahoo.co.uk at 10/21/2003 9:30:46 AM
Hi If I add a UserControl to a placeholder on a page during that pages PreRender stage and press a button on that UserControl will the postback for that button get processed? I would have thought yes because on adding the control I would have thought that the OnInit, IPostBackDataHandler,...more >>

Globalization problem
Posted by FM at 10/21/2003 9:21:54 AM
Hi, I use the following code to set the current culture. If Not IsNothing(Session("language")) Then System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo(Session("language").ToString) End If If the users's browser (IE) is configured in the lang...more >>

PLEASE HELP = odd TextChanged behavior
Posted by Elliot M. Rodriguez at 10/21/2003 9:16:32 AM
I have 2 TextBox controls on a webform. Both perform a procedure when the TextChanged event is fired. The page should reload and display a new value in another textbox. Both are WebControls. The first Textbox performs the appropriate action. The SECOND does not fire TextChanged until AFTER I...more >>

Not able to simulate blocking cookies for ASP.Net app
Posted by greg NO[at]SPAM livengood.com at 10/21/2003 8:55:02 AM
I need to test my ASP.net web application for the case that the client browser doesn't support cookies or for the case that cookies are turned off on the client browswer. What is odd is that when I go to the IE (6.0) Tools | Internet Options | Privacy Tab and select "Block All Cookies" level t...more >>

Asp.net web application fails to Access db after surfing for awhile
Posted by mark NO[at]SPAM barkerspecialty.com at 10/21/2003 8:39:42 AM
Can't figure this one out. I appears to not be code related. After surfing my asp.net web app for a while 5 - 10 min. it fails to open any further connections to my access 2000 database. There seems to be no set drop off point either that would point to a specific code problem. I went throug...more >>

automaticaly assign key in query with sqlserver
Posted by Thierry at 10/21/2003 8:30:57 AM
Hi, I was wondering if there is a easy way to get automaticaly a new key when you insert a query with sqlserver. Now I have to assign an ID=7, but I just want to insert a query and set the keyvalue (ID) automaticaly (7). Thanks, Thierry ...more >>

Dynamically creating a .js file to be included in response
Posted by Ron Vecchi at 10/21/2003 8:05:02 AM
I am creating a custom web control that uses an enum for a property {Remote,InLine}. If the property is set to inline then text is read from the embedded resource and sent to the browser in the aspx page as inline java script. If the property is set to Remote then the script tag set with the SRC...more >>

Deployment problems with ISP
Posted by Luuk Postuma at 10/21/2003 8:01:58 AM
We are trying to deploy an ASP.Net app to an ISP that does not allow us to run .dlls on their server, and so we can't use the CODEBEHIND="mydll.dll" directive. We have tried separating the source file and using the page directive SRC="mysource.cs" but this isn't working either. Anyone ...more >>

XP Home and ASP.Net
Posted by Andre Chin at 10/21/2003 7:40:01 AM
I am currently tring to run ASP.Net at home from windows xp home edition. it keeps telling me that the web server is not installed or running. if there is anyone that knows how to fic this, please email me. it would be greatly appreciated...more >>

Printing in ASP.NET (Replay to John Timney (Microsoft ASP.NET MVP))
Posted by Sharone Shani at 10/21/2003 6:39:54 AM
Hi John, thanks for your replay. What I'm trying to do is as follows: We are hosting a server, which is used by our clients. We have a printing object written in Visual Basic.NET. I want to use this object to allow our clients to print some of our web pages, using this object, in their o...more >>

Can not find IIS server
Posted by Eyal Amedi at 10/21/2003 6:35:28 AM
I have local IIS server on my computer, i install .net studio and i try to make new project of webapplication type - and it's OK. Know i install .Net 2003 and when i try the some thing i accept an error "a connection with the server could not be establishied" but still in the old .net st...more >>

Oracle Connection Error
Posted by Jack at 10/21/2003 6:14:28 AM
Dim oOracleConn As OracleConnection = New OracleConnection () oOracleConn.ConnectionString = "Data Source=FTEST920;uid=master_schedule;pwd=dragons1;" oOracleConn.Open() This is an ASP.Net application and the build goes fine with no errors, but when I try to run from the dev...more >>

custom validation
Posted by Mike P at 10/21/2003 5:42:15 AM
Why do the validation server controls behave differently on my live site from on my local development machine? I have several text boxes that are validated by Required Validators and a couple of Regular Expression Validators, and then I have a Custom Validator which I use to check for a valid ...more >>

Dotnet bug? (asp dropdown list)
Posted by Paul Eason at 10/21/2003 3:52:34 AM
I have identified a re-creatable issue that may be a bug and may be by design? I have a Webform with two dropdown lists on it, each with a different name and different tab index but they both have the same data. I populate them by using listitems which are then set to nothing afterwards (...more >>

Page scrolling
Posted by D at 10/21/2003 3:11:18 AM
Hi, I have a web form comprising 4 frames. The third frame is the largest and it is the one in which i display the pages of the application. One of the pages has a lot of information to be captured and scrolls. I have set smart navigation to true to maintain the scroll position and also ...more >>

Forms Authentication question
Posted by Stefano Mostarda at 10/21/2003 2:17:33 AM
Hi buddies, I have a question. I want to use the forms authentication in my web app. My user login. The cookie is stored in the client machine and some important information is stored in session variables. What will happen if the user closes the browser and reopen to relog in the app...more >>

Impersonation problems
Posted by Chris at 10/21/2003 12:37:55 AM
I have the following debugging system: - WinXP Pro - IIS 5.1 with Anonymous Access disabled and Windows Auth enabled - Both my computer and the user I am logged on as are members of the AD and Domain. - IIS is running on the default setup account. My production system: - Windows 2003 Std ...more >>

Can ASP, not ASP.NET, add an object to the session
Posted by Galileo at 10/21/2003 12:36:01 AM
Anyone know that is it possible? if yes, how? if no, any other method can do something similar to this?...more >>


DevelopmentNow Blog