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 > august 2003 > threads for wednesday august 6

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

Image resampling in VB/ASP.NET
Posted by Harley at 8/6/2003 11:54:26 PM
is there any way to manipulate images in vb.net in asp.net? i have a 280x280pixel jpg file, and want to display it in 2 sizes, 280x280 and 70x70... without having to create 2 files... (actually there are some 100s files, dont want to duplicate them...) any way to use an image class or something ...more >>

.NET Requirements
Posted by Mark Fox at 8/6/2003 11:30:26 PM
Hello, I figured I would just throw this out and whatever response I get is alright. I am looking to get a laptop to do demos of my ASP.NET application, but I am not sure what type of specs the laptop should have. Microsoft's System Requirements' pages are, as always, entertaining ...more >>

light web form as popup window
Posted by greg at 8/6/2003 11:02:39 PM
Hi I want to use a web form to collect some data as a popup window and set a hidden field in an opener web form by javascript So basically it is kicked off by javascript by an opener web form and on that popup web form there is no submit callback but a button onclick JS collects data and clo...more >>

Newbie ?: Force a periodic postback??
Posted by Comcast at 8/6/2003 10:11:34 PM
Hopefully this will be an easy question, newbie here. Is there a simple way to force a periodic postback to a page? I want to simulate a picture slideshow and every five seconds (or so) want to cycle the web control image from one picture to another. I've tried doing a timer control (doesn'...more >>

@ OutputCache in usercontrol problem
Posted by marshal at 8/6/2003 10:09:56 PM
Hi to All, I am using <% @ OutputCache Duration="60" VaryByParam="none" %> in my usercontrol say "myControl.ascx". This user control has a property say "title". Now am Dynamically Loading this control in "myPage.aspx" like this Control ctl = LoadControl("myControl.ascx"). and then pe...more >>

Connect to Access db from VC#
Posted by Mohammed AlQuraishi at 8/6/2003 9:01:04 PM
Hi all, I'm trying to connect to an MS Access database using ADO.NET and C#, but I'm getting the dreaded "Microsoft Jet database engine cannot open the file 'x'. It is already opened exclusively by another user, or you need permission to view its data." Any ideas as to why? I set up a conne...more >>

deleted ASPNET account by accident
Posted by David at 8/6/2003 8:30:51 PM
Can somebody show me how to restore the account step by step using windows XP (I get easily frustrated with XP)? I know it is an account named "aspnet_wp account", but recreating with the same name does not do the trick. I suspect there's more to do with IIS, etc. When I attempt to open an a...more >>

protected override void CreateChildControls()
Posted by Jon at 8/6/2003 8:10:33 PM
Hi! I'm creating a custom Server Control which implements the method in the subject line (Protected override void CreateChildControls) In here I have the following code: LBL myLbl = new LBL(); myLbl.ID = "MyLbl"; myLbl.Text = objCustomFieldUtil.GetName("custom"); this.Controls.Add(new...more >>



How to assign two or more login page in Web.config?
Posted by Livense at 8/6/2003 6:07:37 PM
Hi,Good Afternoon. Now my web application need 2 login page. What can I do? how can I modify the web.config to meet the requirement? Thanks a lot! ...more >>

Save a file on the Server from Client
Posted by Mr Gordonz at 8/6/2003 5:44:33 PM
Hi All, I want to be able to save a file from the client's PC on the server. The tricky part is the aspx page is never actually seen by the user. Basically, I have a VB application running on the client PC, it calls an aspx page and passes some data as query srtings, including the full path ...more >>

Upload file in asp.net
Posted by Darryl at 8/6/2003 5:27:42 PM
Hi all, I'm now facing a problem of uploading file greater than 5mb. 1. I'm using the vb.net to create my form, where the form has an aspx.vb code behind. 2. I've added <form id="Form1" method="post" encType="multipart/form-data" runat="server"> in the form. 3. I've added a control <input ...more >>

System.IO.IOException: Cannot create a file when that file already exists.
Posted by Chad Crowder at 8/6/2003 5:08:27 PM
Getting the following error on my production server whether the file exists or not: "System.IO.IOException: Cannot create a file when that file already exists." Here's the code generating the error (seems to be happening when I try creating a directory) If dirmgr.Exists("s:\blah\" & txt_n...more >>

How to disable the default button?
Posted by cw at 8/6/2003 4:50:44 PM
Hi group, My page consist of few text boxes and a server side button control (asp:button), when i finished editing and press enter key, it will fire up the button click event. How to disable this event till i click or focus to the button? regards, ...more >>

Newbie question (IBuySpy)
Posted by Ivan Demkovitch at 8/6/2003 4:48:32 PM
Trying to build my site based on this example. On This line I get error: <%@ import Namespace="ASPNetPortal" %> I found .cs file with this class, but that directory has bat file as well. Does it mean I have to compile DLL to use this class?? If not, how can I approach it? ...more >>

need a help
Posted by Hamza Al Ali at 8/6/2003 4:46:52 PM
Hi, I am new at ASP.NET, and I need some help from you. I am started with a first example got it from MSDN related to the Studio.NET, I am going through the example step by step. The example is easy and simple which is about how to display data from database (Pubs) on web page using datas...more >>

closing parent after pop up appears
Posted by sramruttun at 8/6/2003 4:36:37 PM
hi I open a pop up window using window.showModalDialog. How can I close the parent window after the pop up appears ? ...more >>

displaying pdf from memory....
Posted by at 8/6/2003 4:18:17 PM
I have a pdf that is contained in a byte[] array in memory and I want to display this in a browser window. The window will beopenned when a button is clicked on the current web page, i.e. a second browser window is displayed, preferably with no menu or tool bars.... Cheers Jim ...more >>

PUZZLE Getting DropDownList Index of Matching Value
Posted by Earl Teigrob at 8/6/2003 3:36:11 PM
I want to write a function where I pass in a reference to a dropdownlist and a "match value" and have it returns the index of the dropdownlist item that matchs (or -1 if there is no match) private int GetMatchingIndexOfDropDown(ref DropDownList d, string MatchValue) { return [MatchingInd...more >>

How to catch COM exception in .Net
Posted by Franck at 8/6/2003 3:35:53 PM
Ok, I do have a COM dll written in C++. Then a web service written in C# is referencing this COM dll. Here everything is fine. Now I have for exemple this line in my COM, that is called from the Webservice. hr = pSavi->SweepFile( ..., ..., ...) BUT, this line sometimes fails, How from my we...more >>

How to change onmouseover and onmouseout dynamically
Posted by Tor Inge Rislaa at 8/6/2003 3:24:52 PM
Hi, I control the style of a button like the code below Private Sub Change_Color() Button1.Style("BACKGROUND-COLOR") = "#CEB57B" Button1.Style("COLOR") = "White" End Sub How can I do the same with Button1's onmouseover and onmouseout style? (Language VB.NET) T.I.Rislaa ...more >>

Command Parameters
Posted by Paul at 8/6/2003 3:14:34 PM
Can someone tell me why the following code does not work ? It does not crash or cause errors and it creates a new row in the table "tblusers" but the fields are NULL. Sub doInsert() 'Create Insert string Dim MySQL As String = "Insert into tblusers (USERTEXT) values (@Pnotes)" 'Set...more >>

Server side functionality
Posted by Reetu at 8/6/2003 2:19:00 PM
Hi All, I have an html button on .aspx page. <INPUT class="sbttn" id="btnComplete0" onclick="onComplete ()" type="button" value="Mark Completed" name="btnComplete0"> When the user clicks on the html button the OnComplete function is called. <script language="javascript"> function ...more >>

How to include javascript in aspx page
Posted by AV at 8/6/2003 1:52:22 PM
hi, I have javascripts for my Old ASP application i was using <script language="javascript" type="text/javascript" src="scripts/validate_fields.js"> </script> Can i do the same thing using Custom Validator? thanks...more >>

ASP.NET database won't connect...
Posted by Daniel Bass at 8/6/2003 1:40:07 PM
I setup a asp.net project running on http://localhost/ which connects to a database on another server running sqlserver... I was able to connect to the database and create my application no problem. The sqlserver database server had windows 2000 without any SP's or updates. This was no probl...more >>

Client caching
Posted by Pål Johansen at 8/6/2003 1:33:21 PM
Is it possible to cache portions of a page client side. I have som include pages that I would like to store at the clients cache. ...more >>

Newbie class inheritance question
Posted by to_jon NO[at]SPAM hotmail.com at 8/6/2003 1:18:08 PM
I'm running into a simple issue when instatiating a derived class that calls a custom constructor. Here's the type of code found in the parent class: Public Class parent Private _a As Long Private _b As Long Private _c As String ..... Public Sub New(ByVal a As Long, ByVa...more >>

Cannot enable disabled controls with client-side javascript
Posted by Stu Carter at 8/6/2003 1:07:02 PM
Hi, I have an aspx page where some controls are initially disabled by the code-behind 'Page_Load' event. I want these controls to be dynamically enabled when the user checks a checkbox. Because I don't want a post-back, I added some javascript to do this However, using client-side JS, I c...more >>

Custom Paging Efficiency
Posted by Joseph D. DeJohn at 8/6/2003 1:06:25 PM
Hello, I'm trying to implement custom paging. At the moment I can get the first page to display. When I click on the number 2 it takes forever to come back to the Page_Load function. I am saving my DataSet in ViewState with the WriteXML and ReadXML functions. Does anyone have an ...more >>

make a spell and grammar check possible in text area of a web page.
Posted by Bhupesh Naik at 8/6/2003 12:46:47 PM
This is a query regarding my problem to make a spell and grammar check possible in text area of a web page. We have aspx pages which are used to construct letters. The browser based screens provide text area where the user can insert big chunks of text and submit it all to the server par...more >>

ASP.NET / HHTP question
Posted by VR at 8/6/2003 12:41:45 PM
Hi, all. I have a rookie web development question. I am working on creating a web site, where all pages are going to have a similar look/feel: same menu on one side, company logo on the other side, etc. Some of the pages will be ASP.NET, some will be static HTML. 1. Is there any way t...more >>

uploading a file
Posted by Volkan Karaboða at 8/6/2003 12:25:09 PM
Hi all! I have used code below to upload file but I receive an error on last row of code telling me ( method not allowed ) is it about iis or http protocols?? can you tell me please what the problem is. thanks... Dim uriString As String = "http://aktif2000/basvuru/basvuru_resimler/" ...more >>

SmartNavigation and Panels causing debug error
Posted by Chris Ruegsegger at 8/6/2003 12:10:04 PM
I have a registration type page that asks a series of questions but does so using Panels to display only a couple at a time. I have a Next and Back button on each panel for navigation purposes. Some of the next buttons have Validation enabled for input checking. SmartNavigation is set t...more >>

show just the date in a datagrid column when the datafield is an datetime field
Posted by Adil Bohoudi at 8/6/2003 12:04:01 PM
Hi all, i'm using a datagrid to show somedata retrieved from an sql-server 2000. this datagrid contains two columns a startdate and an enddate column. i used a storedprocedure to get both dates. but when i use the following code: datagrid.datasource = selDates() datagrid.bind() both c...more >>

Declaring variables with global scope (Newbie Question)!
Posted by Mortal Wombat at 8/6/2003 11:39:01 AM
Hi, I am a beginner VB.NET developer and am trying to create my first ASP.NET web application. I know that in a standard Windows Form type application, if I want to declare a particular variable as global, then I declare it in a separate module... any variables then declared in that module wil...more >>

How can I make a header column span?
Posted by Stan at 8/6/2003 11:24:59 AM
I would like my header column span multiple columns, for example: Date Ready Open Close --------------------------- 08/06 10 am 5pm How can I do that? Thanks, -Stan ...more >>

Server.Transfer
Posted by Ali Nasir at 8/6/2003 11:24:22 AM
Using Server.Trasfer the control is shiftewd to the form specified in the parameters of the Server.Transfer. however the URL still contains the Address of the calling form and not the Loaded form. Can anyone justify this. Ali Nasir ...more >>

Pass Session Variable Value to Crystal Report?
Posted by crjunk NO[at]SPAM earthlink.net at 8/6/2003 11:21:16 AM
I've got an aspx page that allows the user to select different options whenever they want to run a report. On this page, I have added an additional text box for the user to enter in comments about the report they are running. I would like to be able to have the comments that the user has ente...more >>

<asp:> namespace
Posted by s8chem at 8/6/2003 11:18:55 AM
I'm working with an XSL document that renders ASP.NET Server Controls. In order to do this, I have to declare an "asp" namespace within the XSL document. This namespace is the same as when you see a line like this: <asp:label> in an ASPX page. My question is where is this namespace decla...more >>

question about page template - please help
Posted by suzy at 8/6/2003 10:33:38 AM
hi, i have created a aspx page template by creating a template.cs file which inherits from the page class. In this file I override the OnInit event and create a template in the form of a header, left menu and a footer. there is also a body area where the main content of the page will go. ...more >>

Default document ignored
Posted by rbscheer NO[at]SPAM my-deja.com at 8/6/2003 10:30:46 AM
Hi. My asp.net application was installed on a Win2000 production server. The site is working ok except for a little problem. I set the default document for the site as my default.aspx file but IIS seems to ignore my setting and to connect to the site I need to type in my browser www.mysite.co...more >>

Session variable losing value
Posted by nateusenet NO[at]SPAM spillson.com at 8/6/2003 10:08:21 AM
I have an asp.net web application that uses session variables to store user information (username, security areas, configuration data). When the user logs into the system I store all of this information in a class and then dump it into a session variable. The timeout on the server is set to 2hrs...more >>

.NET Web Caching
Posted by Tim at 8/6/2003 9:39:21 AM
I'm building a .NET C# web application using web caching. The Cache class only works when I'm using an aspx page. I want this Caching logic to be in its own class file (.cs) in another project so other developers can use it too. I'm instaintiating the Cache class like this but the metho...more >>

2 radiobuttonlists for selection
Posted by sramruttun at 8/6/2003 9:38:57 AM
hi I have 2 radiobuttonlists in my form both having more or less the same listitems: At Design time, RDLGroup1 (1st radiobuttonlist) has the foll. items: A1 A2 A3 A4 A5 (A1 is selected) RDLGroup2 (2nd radiobuttonlist) has the foll. items: A2 A3 A4 A5 (None is selected) So at first, if ...more >>

FRAMESET
Posted by IntraRELY at 8/6/2003 9:30:35 AM
I am building an Intranet application and is more of an "Application" vs. a typical "Web Application" or "Web Site". Using a FRAMSET seems like it has many benefits and gives mainly the feel of quicker access and a more streamlined application. However, am I sure you know of the drawbacks, for i...more >>

Q329290 getting ASP.NET userName
Posted by Mark at 8/6/2003 8:52:28 AM
In this article http://support.microsoft.com/?id=329290 I will have to perform this in my installation. The question is since the aspnet_setreg.exe does not automatically grant the asp.net service user name to the registry entries how can I find the username the aps.net service is running under...more >>

how to fix it:SelectBox always on top of dropdown menu item.
Posted by Matthew at 8/6/2003 8:20:43 AM
in a page, I have a dropdown menu, and below the menu there is a dropDownList control. when the menuItem is pulled down, the DropDownList control always on top of the menu div, what cause this? I hear that something wrong when <div> tag and <select> work together, anybody knows how to fix it? ...more >>

Javascript Disabling WebControls
Posted by robinsoh NO[at]SPAM vu.union.edu at 8/6/2003 7:34:08 AM
Hello, I have an ASP.Net web page populated with WebControls, such as textboxes and checkboxes. On this page I also have a JavaScript that disables these textboxes under certain events (such as "onLoad" and "onClick") by calling the javascript method <object>.disabled = <true/false>. This works...more >>

listbox question
Posted by Mike P at 8/6/2003 5:24:25 AM
I have the following code in my Page_Load event to populate a listbox from a database : if (!(Page.IsPostBack)) { SqlConnection objConnection = new SqlConnection(ConfigurationSettings.AppSettings["strConnectTransitTest"] ); string strTelcoNumber = "SELECT DISTINCT OSValue FROM CallT...more >>

VB.Net-C# integration
Posted by Madhuri Mittal at 8/6/2003 1:33:19 AM
I have a ASP.net application written in VB.Net which is the main application. I have another ASP.net application written in C#. I want to integrate the C# project files into the VB.net project ( without having to convert C# code to VB.net ) . The C# project contains few aspx pages and coup...more >>

System.InvalidCastException: Specified cast is not valid.
Posted by Arjen at 8/6/2003 1:17:12 AM
Hello, Does somebody haves a solution for this? Thanks! Line 74: if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { Line 75: Line 76: DataRowView drv = (DataRowView) e.Item.DataItem; Line 77: Source File: links.ascx.cs Line:...more >>

Error: "Unable to debug on server,Access is denied"
Posted by ganesh at 8/6/2003 12:12:24 AM
I installed dotnet and when i try to run a web application i get the error messagebox saying "Unable to debug on server,Access is denied.Would you like to disable the future attempts to debug"....more >>


DevelopmentNow Blog