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 > march 2004 > threads for wednesday march 17

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

asp textbox not reflecting changed text on postback to server
Posted by moondaddy at 3/17/2004 11:49:08 PM
Using vb.net 1.1, I have an asp textbox control on my aspx page. When the page pops up, this textbox is already populated with data from the db. When I edit the text and click on a submit button and then step through the code behind on the server, I see that the textboxes Text property still ha...more >>

ASP.NET/Visual C# Performance
Posted by sales NO[at]SPAM trevoroakley.com at 3/17/2004 11:39:01 PM
I am using ASP.NET Kick Start (SAMS) to learn Visual C# and ASP.NET. I find that some of the examples are slow to run (eg using ListBox events). This is making me question the performance of the generated code, and if more server resources are needed. I use shared server space. I have...more >>

Hide Delete Button in DataGrid
Posted by Alphonse Giambrone at 3/17/2004 10:40:28 PM
I have a editable datagrid with 6 columns in a user control. Col 1: linkbutton to select row Col 2: linkbutton to edit row (changes to update, cancel on edit) Col 3: linkbutton to delete row Col 4, 5: visible data columns Col 6: hidden data column I want to hide the delete button in col 3 ba...more >>

Response.Redirect()/Server.Transfer issue (RESENDING THIS WAS LOST!)
Posted by KK at 3/17/2004 10:19:35 PM
Hi, In my ASP.NET application I use forms authentication. if a user tries to go to a page which is in the secured location he will be directed to the login page. Upon authorization, he will be redirected to the RETURNURL using FormsAuthenticate.RedirectFromLoginPage("*",false); 1) Wha...more >>

What's with Get and Set? Why bother?
Posted by Bruce W.1 at 3/17/2004 10:05:28 PM
Why does .Net use Get and Set accessors? So a class has a property, why not just change or get it directly like this: MyClass.MyValue = value; Rather than: Set { MyValue = value; } Accessing it with Get and Set lets you change permissions, other than that I...more >>

I give in...
Posted by nobody at 3/17/2004 9:40:43 PM
Ok, I give in (not up yet... just in). Can someone *PLEASE* point me to a good "how to" or tutorial on designing composite WebControls? I obviously have no clue what I'm doing. :( I think my problem might be that I'm a "windows forms" person and this ASP thing is a different creature when it ...more >>

1.1 upgrade
Posted by Param - Home at 3/17/2004 9:20:21 PM
Hi all, I currently have a setup as follows:- 1. Dev Machine - Windows 2000 Server - ..Net 1.0 SP2 2. Production Machine - Windows 2000 Server - .Net 1.0 SP2 I would like to upgrade to .Net 1.1 first and then if possible upgrade my Dev Machine to Server 2003. Here are my questions/concerns:-...more >>

Session End when browser closed?
Posted by Andrew Banks at 3/17/2004 6:56:35 PM
I'm wanting to track the number of users using an application. I'm using App variables and incrementing an int value by 1 everytime a new session is started. I'm having a problem decrementing this int once they close their browser. I assumed that putting some code in Session_End in Global.as...more >>



Print button that does not print
Posted by Lloyd Sheen at 3/17/2004 6:37:41 PM
Don't know if this is possible but I will ask. Is it possible to create a page with a button that will cause the page to print but the button itself will not print? The user does not want to use the IE menus. They are presented with a page containing a report which they may or may not want to ...more >>

Question on DropDownList
Posted by Jason at 3/17/2004 5:46:49 PM
Dear All, I have a question in dropdownlist (aspx) <asp:dropdownlist id="ddonLeaveType" runat="server" CssClass="pullDown" AutoPostBack="True" OnSelectedIndexChanged="ddonLeaveType_SelectedIndexChanged"> (in code behide) public void ddonLeaveType_SelectedIndexChanged(object sender, System....more >>

CreateChildControl or Render?
Posted by nobody at 3/17/2004 4:59:44 PM
Should I create controls for a composite WebControl in the CreateChildControl or the Render method? It seems like CreateChildControl is not called at design time when the control is on a page being designed. Here's my situation. I'm making a composite WebControl that has a label and a RadioB...more >>

visual studio quirkiness
Posted by Jim at 3/17/2004 4:58:47 PM
Hello, It bothers me that visual studio .net won't let me open my asp.net web service project if the web server isn't running. I'm using Cassini as my web server and I want the Cassini project to be in the same .sln as my web service. Visual Studio won't let me do this because it wants the web...more >>

Multiple projects, one web application
Posted by David Hodges at 3/17/2004 4:44:04 PM
Here's what I want to do: I want to divide my huge asp.net application into about 5 separate projects, so that a different developer can work on each. My vision is that the "bin" folder will contain a dll from each project and that updates to one project won't require rebuilding the others. User...more >>

Week of Year
Posted by Pascal at 3/17/2004 4:40:49 PM
Hi, does anybody know how i can get the actual week of the year with the datetime object? Is there an other way? thanks pascal ...more >>

I can test/view pages on my machine, but not on the server
Posted by ged_rafferty NO[at]SPAM hotmail.com at 3/17/2004 4:33:53 PM
HI folks, a newbie question here. I have built a couple of pages that retrieve a small amount of data from an access db. the pages are built on my local machine and they reside within my iis and work just fine. However, when i shoot these files up onto the server (using the copy project / f...more >>

control IE Header Footer in code
Posted by don schilling at 3/17/2004 4:32:16 PM
Is there a way to control the HeaderFooter text of IE from code. Usually IE has a Header setting of "&w&bPage&pof&P". I would like it to be nothing. There is a report that needs printing with no header or footer. I'd like the aspx page to set the header footer to null. I've seen some javascri...more >>

how to check if a SmtpMail is sent successfully ?
Posted by Polaris at 3/17/2004 4:25:28 PM
I'm using System.Web.Mail.SmtpMail to send out emails. Just wonder, is there a way to check if the email is actually sent out successfully? Thanks ...more >>

DllNotFoundException when loading
Posted by mirek at 3/17/2004 3:55:42 PM
Hi, I'm getting DllNotFoundException when I call my unmananaged code which loads a dll ("rasapi32") in separate thread. If I don't call it from my custom thread it works ok. I call it on ASP.NET page from managed wrapper class. Could someone tell mi what it is caused by? Thanks. Regards, ...more >>

Error Handling
Posted by A.M at 3/17/2004 3:43:43 PM
Hi, I know if I put this settings in web.config file, all unhandled exceptios will be redirected to "genericerror.aspx": <configuration> <system.web> <customErrors defaultRedirect="genericerror.aspx" mode="RemoteOnly" /> </system.web> </configuration> Inside "genericerror.aspx",...more >>

dataset persistence within a web form
Posted by MattB at 3/17/2004 3:04:30 PM
I have a web form with quite a bit of code in the codebehind. I'm declaring a dataset as Protected so I can access it from different events within the form without having to regenerate it. I'm having a problem and realized that this protected dataset seems to loose it's tables when I go from the ...more >>

Send mail
Posted by ruca at 3/17/2004 2:59:55 PM
Language Programming: ASP.NET with VB.NET My problem it's not how to send a e-mail, but I would like to have (and hoe to do it) two things. The first is when I click in my SEND button, that opens a window (with fixed widht and height) where it's put the fields: Form: me@home.com To: me@wor...more >>

control page access order
Posted by YoYo Pa at 3/17/2004 2:49:42 PM
How can I permit users to access pages 'B' and 'C' only through page 'A'? That is, they can open B and C only by clicking on a link that exists in page A. And if they create a bookmark to B or C and then attempt to access those pages through the bookmark, they are redirected to A. ??? ...more >>

Problem while adding .aspx pages in VS.NET
Posted by Arda at 3/17/2004 2:27:09 PM
Hi, I'm using VS.NET 2003 on Server 2003 for development purposes. I haven't = had time to work on anything in about a week and went to add another = file to my WebApp in C#.NET and got the error "Automation Server Can't = Create Object". Looked around multiple places and found that cause was ...more >>

Is there a way to change the font size of the web control treeview?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 3/17/2004 2:16:47 PM
Or do I have to modify the c# code that creates it and recompile it (or not recompile; I don't know)? Thank you....more >>

Web Config configuration
Posted by orianavim NO[at]SPAM hotmail.com at 3/17/2004 2:14:12 PM
Hi, I'm using the authorization settings on the web.config file for my ASP.NET application and I change it to deny all users and I'm using the Form Security redirect option which provided by the framework. My problem is that there are still some pages which i would like to give access to ev...more >>

Strange: Response.Write("<script>window.open(' ...')</script>") doesn't work on IE 5.0
Posted by jbeteta NO[at]SPAM yahoo.com at 3/17/2004 1:20:36 PM
Hello, I'm programming in ASP.NET I don't understand this: I try to open a window in an IE 5.0, showing a PDF file using this address: http://MyWebSite/Documentos/MyFile.pdf This instrucction: Response.Write("<script>window.open('Documentos/MyFile.pdf',null,'menubar=no,scrollbars=no,tool...more >>

asp.net & apache/php co-existing?
Posted by alanchinese NO[at]SPAM yahoo.com at 3/17/2004 1:00:21 PM
hi, my server is using apache + php and occupying port 80 for the web service. how can i make asp.net web service working so that the users can use php in one directory and asp.net in another one? i heard of MONO, but can I avoid using it to acheive my goal? thankx....more >>

IsPostBack in script
Posted by Vik at 3/17/2004 12:52:22 PM
Is there a way to run a script when a page is loaded a first time and ignoring the script after a user clicks a Refresh button? Is the equivalent of the IsPostBack property in JavaScript? Thanks. ...more >>

Showing a Blob in an IMG tag
Posted by RJDev at 3/17/2004 12:51:18 PM
Hi In the old ASP i used an ASP url to show a blob in an IMG tag I cannot seem to ge it working well in asp.net Anyone having an example url or a little sample code I want to put this in an usercontrol or something like that Regards RJ...more >>

Get PostBack value in a webform
Posted by Smirnoff at 3/17/2004 12:36:00 PM
Hello, I wanna just know how to "get a value when a post back if made in a webform ?" If someone have the solution, it's help me verymuch Thanks in advance -- Smirnoff Ice ...more >>

cannot browse a post response from aspx file
Posted by Henrique Alves at 3/17/2004 12:28:53 PM
Hi, The problem is, when I execute an aspx form I get a dialog box asking me If I want to open or save the file instead of send me the page result. This normaly happen when the computer doesn't reconise the file format. Is this a problem of recognition of the file? Or it's a IIS problem?? ...more >>

List all Access queries
Posted by martin at 3/17/2004 12:12:35 PM
Hi, I am displaying informtion from an access database on the aspx pages of my intranet. This is no problem, except am stuck on the follwoing point and would appreciate a little help. I have a few predined queries in ms access, what I would like to do is the follwoing 1. Display a list o...more >>

define global var to use throughout vb proj
Posted by Steve at 3/17/2004 11:52:52 AM
I would like to define a datatable object globally so that I don't have to keep reconnecting to a datasource and thus use this object variable throughout my vb project on different aspx pages. Is this possible? I tried defining a global datatable var in Public Class Global (Global.asax.v...more >>

VS2003 + .NET2.0
Posted by ericvdb at 3/17/2004 11:50:47 AM
Hi all, is it possible to install the 2.0 framework and VS2003 on the same machine and use the masterpages functionality or is this a pure VS2005 feature ? Eric ...more >>

Where host ASP.NET website?
Posted by VB Programmer at 3/17/2004 11:39:24 AM
I created a ASP.NET website. It is for my business. Where can I find a ASP.NET hosting service? Any you recommend (preferably not so expensive)? Thanks. ...more >>

Using of C# method in onclick event
Posted by tomana NO[at]SPAM inprop-dot-sk.no-spam.invalid at 3/17/2004 11:30:34 AM
Hi, Can someone help me how can I catch IMG tag event onclick witch C# method? e.g. in codebehind: .. void CSharpEventHandler() { } .. in aspx i have: ... <img id="SomeImg" src="img.gif" name="main" runat="server" onclick=???> ... Thanks very much. Regards, Jurot...more >>

Download image on request???
Posted by DaveF at 3/17/2004 11:28:13 AM
On my site, I have a map that if you ckick on a camera, it pops up a page and you can view the image. the image comes from another site. I need to be able to download that image from a remote site on to my server on request for viewing???? ...more >>

Help - Datagrid Populating Function
Posted by Mike Fellows at 3/17/2004 11:12:59 AM
ive written the function below Function LeadReceivedNoMortgageSourced(ByVal Datagrid As System.Web.UI.WebControls.DataGrid) Dim conn As New System.Data.SqlClient.SqlConnection(SQLstrConn) Dim sql As String = "LeadReceivedNotMortgageSourced" Dim da As New System.Data.Sq...more >>

Build an enterprise application for a customer with aprox. 100 Clients ???
Posted by gicio NO[at]SPAM gmx.de at 3/17/2004 10:53:51 AM
HI!!! If you would happen to get the chance to build an enterprise application for a customer with aprox. 100 Clients (.and increasing) which technology and architecture would you choose. The security policy is pretty strong so we would have actually only port 80 available. Besides that no dep...more >>

Need Tlbimp.exe
Posted by Santosh at 3/17/2004 10:37:30 AM
Friends, I was wondering if anybody knows where can I get a free download for Tlbimp.exe TIA -- Santosh ...more >>

image button and popup message?
Posted by Craig Buchanan at 3/17/2004 10:34:55 AM
I would like to add an image button to my webform that generates a warning message dialog, then if the user selects yes/ok, then runs code in the image buttons click event. what is a good way to handle this? thanks, craig buchanan ...more >>

Inherit from a web form/page
Posted by Tim at 3/17/2004 10:31:19 AM
I created a base web form class that has common functionality that I can use across the rest of the site. I am trying to inherit from the base web form class but the controls (i.e. textbox, buttons...) are not displaying on the child web page (class). Is there a trick to inheriting from a web pag...more >>

RadioButtonList behavior
Posted by MattB at 3/17/2004 10:06:34 AM
Hi, I'm working with a RadioButtonList in a Web Form and it's not behaving as I was expecting. I have it bound to a table in a dataset and it displays like I want it to. Here's that chunk of code: With RadioButtonList1 ..DataSource = dsModifiers.Tables(1) ..DataTextField = "descrip" .....more >>

How to convert UTC datetime into any local client timezone
Posted by phuong at 3/17/2004 9:54:54 AM
Hello, I am developing a Web appplication using C# , ASP.NET. All the datetimes stored in our database are UTC datetime. How can I convert UTC datetime into many clientside local timezones. and vice versa ie: to convert the local client timezone datetime back to UTC datetime before saving ...more >>

running external program in asp.net
Posted by dana_livni NO[at]SPAM hotmail.com at 3/17/2004 9:51:50 AM
i'm new whis .net and i have a problome running external program in asp.net my goal is to run an exe file using asp.net the file need to run on the server side becouse it insert data into a DB located on the server. please help me...more >>

Session_End dilema
Posted by george d lake at 3/17/2004 9:51:25 AM
Hi, When the session times out, I need to know what users was the one that timed out. Cant use a session var, cant use cookies. Any idea? ...more >>

Can I use Server.MapPath in web.config?
Posted by Rich at 3/17/2004 9:33:30 AM
The following appsetting in web.config works fine if hardcoded path (dir1 is virtual dir). <appSettings> <add key="conn" value="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=d:\dir1 \db\northwind.mdb"/> </appSettings> But I would like to make the path dynamic with Server.MapPath ex...more >>

Concurrency violation with decimal type
Posted by hb at 3/17/2004 9:30:30 AM
Situation: Using a dataset's UpdateCommand, when a decimal type field changes from integer to decimal, the update goes through. When the field changes from decimal to integer or another decimal, I get a Concurrency violation: the UpdateCommand affected 0 records error. I have used trace to ...more >>

saving data in the database
Posted by Nikhil Patel at 3/17/2004 9:21:39 AM
Hi all, I display a asp.net form with about 50 textboxes in a dialogbox. The textboxes are bound to a dataset using <%# %>. The Dataset and the adapter used to fill it - both are declared as protected on the class level. The form displays data correctly. I also have an HTML server Button cont...more >>

"MVC" architecture and ASP .NET
Posted by Peter Beck at 3/17/2004 8:40:23 AM
Hi all - In JSP/J2EE I've generally used a "Model-View-Controller" type of architecture, with a "model" (a class representing the state of the application (unique to each session)), a "controller" made up of a servlet that is at the application level that redirects requests based on parameters...more >>

Debug question
Posted by Jerry at 3/17/2004 8:39:06 AM
Hi, I've researched this problem on the Web but none of the solutions seem to apply to my problem The store is quite simple: I developed an application on my laptop (XP, .Net Framework 1.1, Visual Studio v7.1.3088). The app is stored on my C:\inetpub\wwroot\maintanace. I simply copie...more >>

How set default date for calendar control?
Posted by VB Programmer at 3/17/2004 8:26:41 AM
I have a calendar control on my webform. How do I set the default date to be "3 months before today"? ...more >>

urgent: problem with button control
Posted by Nikhil Patel at 3/17/2004 8:16:18 AM
Hi all, I have an aspx page from which I dosplay a web form in a new windo using window.showModalDialog function of Javascript. When I click on a Submit button of the web form it opens a new window and displays the form again. How can I prevent that? Thanks... -Nikhil ...more >>

Session_End, how to know if it was called?
Posted by george d lake at 3/17/2004 8:11:23 AM
Hi, I have a app that for now all it does is Sets an Application variable =0 on Application Start and then on Session Start it adds 1 to that current value. What does not work is the Session_End. There I do Application Var = Application Var - 1 If I let the session time out (2mins)...more >>

XMLHTTP Bugs (Urgent)
Posted by DotNetJunkies User at 3/17/2004 8:08:27 AM
Hi ASP Gurus, We have an application in ASP, in which we are using VB script in which we are using XMLHTTP object to send xml request to another asp page. dim xmlhttpobj set xmlhttpobj = Server.CreateObject("Microsoft.XMLHTTP") msgbox err.number xmlhttpobj .open "POST", "Te...more >>

FTP Uploads
Posted by Steve Bishop at 3/17/2004 7:59:32 AM
Does anyone have a code example for FTP uploads? I would need to supply username and password for an external site like ftp://ftp.mysite.com Would this require writing a custom class? Help appreciated. Thanks. *** Sent via Developersdex http://www.developersdex.com *** Don't just particip...more >>

Postback Problem
Posted by Nesli at 3/17/2004 7:31:51 AM
Hi , I have problem postback while filled DropDownlist and=20 listbox. My form have lots of drop downlist and a Listbox. First of all your choice first dropdown. This dropdown=20 fill second dropdown . But I choice second dropdown that=20 third dropdown filled. But I don't change nothing.=20 ...more >>

Application in Session
Posted by Thomas at 3/17/2004 7:26:25 AM
Hi, I'm using an Application instance - it's slow initializing, so I'm looking at options for re-using an instance between pages in a session. How can this best be accomplished? Add it to the Session collection? Another place? - Thomas ...more >>

getting value from a Querystring
Posted by Kulwinder at 3/17/2004 6:41:06 AM
Hi I've craeting a datagrid to show all the records. But if I want to edit a record I want to go to another page and populate the whole form and then do edit record. If I create a link on the datagrid ID as <editmfg.aspx?id="52">, how can I populate it on edit page as we do in asp (select * from m...more >>

Deployment Options
Posted by Steve Bishop at 3/17/2004 5:58:06 AM
I'm interested in deploying a .Net application from a CD ROM or as a download from my Web site. There are some robust installers out there like the Wise install system. Is there any known good free or low cost to license install systems that would do this? Also, If I want to include a data...more >>

Scope of Variable Declared Like This?
Posted by George at 3/17/2004 4:16:27 AM
VS.NET 2002/VB I am trying to understand the scope of variables and was curious about a variable declared as Friend in a Public module outside the page class, but within the .aspx page file, such as: Imports System.Whatever Public Module Module1 Friend var1 as Whatever End Module Publ...more >>

default locale
Posted by Raymond Yip at 3/17/2004 1:51:05 AM
I wonder how ASP.Net application gets the default locale. I have 2 W2K servers, one with the system locale ENG and the other ENU during installation. The ASP.Net application formats string to default currency symbols £ and $ respectively. Later I wanted to change the ENG server to ENU. But even...more >>

How to configure VS.Net to debug client javascript?
Posted by Grant Ord at 3/17/2004 1:46:10 AM
I'm brand new to VS and I'm stuck on how to configure VS.Net 2003 to debug client javascript My server side debugging is working but I can't find how to get client debugging going In IE all I get is a status bar notification of an error when there is one - which isn't a lot of help It never break...more >>

Modal windows
Posted by Tamahome at 3/17/2004 1:26:05 AM
Hi Is there a way to open modal popup windows? ie popups that are always in front of mother one Thx...more >>

WebControl at design time
Posted by nobody at 3/17/2004 12:42:29 AM
Is it possible to make a custom WebControl reder itself at design time? I've made a WebControl that contains a Label and a RadioButtonList. It works fine at run time, but at design time it just draws a solid while box. Neither the Label nor the RadioButtonList render themself. Am I doing someth...more >>


DevelopmentNow Blog