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
all groups > asp.net > april 2005

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

ACTIVEX, WEB FORMS, AND INTEROP ISSUE
Posted by Jeffery Franzen at 4/30/2005 10:56:02 PM
Anyone know where the documentation is regarding Activex controls in asp = web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls = in vb.net web form app. I do the add control to pallete and then add a reference. I get the = interop dll added to bin folder. ...more >>


Text_Changed ???
Posted by Alex Nitulescu at 4/30/2005 10:19:28 PM
Hi. I have kind of a 'file manager' on my website. It also allows for changing some text files (for administrative purposes). My question is this - is it possible to detect the changes in a text box and react accordingly ? Text_changed works only on posting back to the server. I would like t...more >>

Beginners Question Regarding Static Web Pages
Posted by Roger stevenson at 4/30/2005 8:56:33 PM
Hi I am a converting VB6 programmer. Having completed a Windows forms project , andbefore moving on to some of my ASP.Net projects I want to add a lot of function to a VB 6 application that generates static web pages which display segments of data bases. The applicaton is used by a lot of spo...more >>

Some File Types pulled from Image field corrupted when using Response.BinaryWrite() to download...
Posted by Charlie NO[at]SPAM CBFC at 4/30/2005 8:19:51 PM
Hi: I'm uploading documents into a SQL Server Image field and using Response.BinaryWrite() to download or view them in the browser. Some doc types like Adobe Illustrator and Photoshop files will open correctly, but other like Word, Excel and Powerpoint are corrupt. Here is code fragment to ...more >>

Invoke code behind image-button with <Enter> key from anywhere on form
Posted by Paul W at 4/30/2005 6:52:16 PM
On my simple login-screen I have a 'username' and 'password' field and an imagebutton for the 'OK'. This used to work nicely so that when the user hit <Enter> from the password field, it invoked the VB code behind the image-button, and away he went. Suddenly this has stopped working like th...more >>

Clearing textboxes in a form
Posted by Alex at 4/30/2005 4:40:31 PM
Hi I'm a beginner in ASP.NET. I'm using 'AddContact.aspx' form to add a contact to DB, 'litStatus' literal to show the result and Server.Transfer to clear inputs in the form. The problem is i don't see the status message. The example is from a book about ASP.NET. Am i doing something wrong? ...more >>

where to find free asp.net component
Posted by guoqi zheng at 4/30/2005 1:15:27 PM
As we know, some times, it is easier to use existing component to finish a project quick. Does some one has a list of sites where I can find free .NET component. www. gotdotnet.com is a good one, what else???? regards, Guoqi Zheng http://www.ureader.com...more >>

Remove Object From Cache at Midnight
Posted by Jordan Richard at 4/30/2005 12:56:45 PM
What would be a good way to ensure that a DataTable, stored in the Cache, gets removed from the Cache every day at midnight? I know I can't assume that it's there - but if it is, I want it to be removed at that particular time of day. Thanks. ...more >>



can i create web service and asp.net application both in the root of the webserver ?
Posted by roni at 4/30/2005 12:44:10 PM
can i create web service and asp.net application both in the root of the webserver ? ...more >>

ASP.NET data binding slow?
Posted by aualias at 4/30/2005 12:05:40 PM
I am rewriting a web page that was previously done with ColdFusion. It has a DataGrid and one column in the DataGrid is a dropdown list which is the same for all rows. The ItemDataBound code looks like this... // _viewDestinations is created once and stored in the ViewState Priva...more >>

control suites
Posted by Param R. at 4/30/2005 12:04:20 PM
Hi all, could someone recommend some good control suites for asp.net that I can purchase. I am specifically looking for enhanced controls like calendaring, scheduling, menus, treets and charts(all kinds, 2d & 3d). I am also looking for something that does not require vs.net and that I can code...more >>

ASP.Net web application, cross browser support?
Posted by Rob Meade at 4/30/2005 10:54:29 AM
Hi all, Something we'd not encountered happened at work yesterday, most of our applications are normally for our Intranet/Extranet, we are currently working on a project for the WWW, during a bit of testing we were trying to see the effects of a download script in IE4, alas we seemed unable...more >>

Link - Text Without the Underline
Posted by Jordan Richard at 4/30/2005 10:40:08 AM
How can I create a link (<A... href=...>some link text here</A>) that does *not* underline the text? Thanks. ...more >>

Operating System?
Posted by JJ at 4/30/2005 9:34:50 AM
Hi, I was wondering what operating system is everyone using to develop on? And have you created web services on that platform with any problems. I am having big problems trying to get web services to work on my win xp pro box and am wondering if I should just reinstall op? Thanks, JJ ...more >>

ASP .NET 2.0 special folders explanation request
Posted by Bob Hanson at 4/30/2005 9:33:29 AM
Hello All, I noticed in the ASP.NET beta 2 that we have more special folders. Can I get some clarification regarding these folders? I am just making sure of the intent. Thanks in advance, Bob Hanson *** Sent via Developersdex http://www.developersdex.com ***...more >>

Classical Complex challenging Asp and SQL problem
Posted by ramata at 4/30/2005 9:22:02 AM
I am woring on a project that involves a common but quite challanging and complex problem. I describe the scenario with a common example. School Attendence website: The school maintains records of attendence of students for each subject periods in a table with format like StudentName | ...more >>

BC30451: Name 'MyDataList' is not declared.
Posted by WUT at 4/30/2005 8:47:08 AM
BC30451: Name 'MyDataList' is not declared. Source Error: Line 9: dim ds as DataSet = new DataSet() Line 10: objCmd.Fill(ds, "OIL_H") Line 11: MyDataList.DataSource = ds.Tables("OIL_H").DefaultView Line 12: MyDataList.DataBind() Line 13: end sub ...more >>

Application Active users and global.asax
Posted by Homer J. Simpson at 4/30/2005 8:38:15 AM
Hi, Any idea to get the -REAL- number of active users -WITHOUT- this kind of code ? ---------------------------------------------------------------------------- --------- Sub Session_OnStart Application.Lock Application("Active")=Application("Active")+1 Application.Unlock End Sub...more >>

Onchange of dropdownlist say "country" loaded,it must load all "states" for that country in another drop downlist.
Posted by S.Guhananth at 4/30/2005 7:22:02 AM
I need to capture a country from dropdown list and use that in sql query. How to do this protected DataSet GetCountry() { I have the code for this block } From http://www.developmentnow.com/g/8_2004_12_0_0_0/dotn...more >>

ASP.NET 1.1 VERSION ON WIN SERVER 2003 SP1 & VS 2003 Arch.
Posted by Dr. Paul Caesar - CoullByte (UK) Limited at 4/30/2005 7:02:02 AM
Hi all, Something weird is going on and has been for some time so I have decided to get some help! I have Windows Server 2003, Enterprise Edition with Service Pack 1. Installed is IIS 6 and .NET Framework 1.1 with Service Pack 2 (also installed is .NET Framework 2.0 Beta 2) I have mul...more >>

Cannot view .aspx pages
Posted by Sujata Tilak at 4/30/2005 1:13:01 AM
1. For some reason, I uninstalled IIS 5.1 and .NET framework 2. Then I installed again IIS 5.1 and .NET framework in this order. 3. Then I added a website under inetpub\wwwroot 4. I created an application for it using inetmgr.exe 5. Now when I try to see a .aspx page from this site, it ...more >>

Graphics in ASP
Posted by Barry at 4/30/2005 1:06:17 AM
Hi Can someone tell why i am not able to print the graphics text in the following source (it is basically a copy of the ASPDraw sample from Microsoft) <%@ Import Namespace="System.Drawing" %> <%@ Import Namespace="System.Drawing.Imaging" %> <script language="C#" runat="server"> v...more >>

C# connection string using Windows NT Authentication
Posted by Maziar Aflatoun at 4/29/2005 11:14:42 PM
Hi guys, I'm using Windows authentication to connect to SQL Server 2000. On my computer the connection is fine. Now if I move it to a remote server, how to I hard code my Username/Password in my connection string (using Windows NT authentication and not SQL Server authentication)? Than...more >>

HELP!
Posted by Ryan Smith at 4/29/2005 10:25:01 PM
I am having a problem with a datagrid I am trying to use. I have an Access DB with two records I want to display. All that is displayed is the heading for the datagrid. I can't seem to display the actual data. Below is the Code Behind Portion: Imports System.Data.OleDb Public Class U...more >>

Access value in HTML. Urgent. Thank You.
Posted by Shapper at 4/29/2005 10:12:50 PM
Hello, I have this: Sub Page_Load(Sender As Object, E As EventArgs) Response.Write(Session("culture")) End Sub It displays Session("culture") value. I want to access this value in my HTML code. I thought it would be something like: <%# Response.Write(Session("culture"...more >>

Error when deploying to production server
Posted by Simon Harris at 4/29/2005 9:28:46 PM
Hi All, I've just tried to deploy an asp.net app. It works AOK on my development server. On the production server, I get the error below. Both servers are Windows 2000 SP4 with .Net Framework v1.1.4322 I copied the following to our production server: - Various ASPX and 1 ASCX files to /...more >>

Method not allowed - webservice
Posted by roni at 4/29/2005 9:09:38 PM
when call to webservice ,after setting ip to the URL (instead of localhost) ,i get The request failed with HTTP status 405: Method not allowed,why ? ...more >>

setting the url property of the proxy webservice in vb.net
Posted by roni at 4/29/2005 6:19:59 PM
hi. how can i set in runtime the url of the webservice he is using ? (in vb.net ) all i see in the client is the web reference. ...more >>

changing web.config need restart web application?
Posted by strout at 4/29/2005 5:51:04 PM
Do we need to manually restart the application for the new settings to take into effect? If not. What happen to the current user who is current hook on the application? The new setting applies or old one? Thank strout...more >>

deploy .pdb .resx file
Posted by strout at 4/29/2005 5:48:02 PM
Do we need to deploy these type of file on server. Is .resx file embedded into dll or not? If not we should include resx file, right? strout...more >>

Session problem using ShowModalDialog
Posted by Perry van Kuppeveld at 4/29/2005 5:31:06 PM
Hi, When i'm using the ShowModalDialog function, while another browser window is open (not the application window calling the showmodaldialog) i lose my session. What could be the problem / resolution? Thank's in advance, Perry ...more >>

Post-back and user controls
Posted by James T. at 4/29/2005 5:30:52 PM
Hello! How I can force user controls to reload on post-back? Thank you! James ...more >>

Best practices in ASP.NET application development
Posted by Amelyan at 4/29/2005 5:07:21 PM
Could anyone recommend a book (or a web site) that defines best practices in ASP.NET application development? E.g. 1) Precede your control id's with type of control btnSubmit, txtName, etc. 2) Group relevant .aspx files into subfolders within your project etc. ...more >>

Could not access 'CDO.Message' object
Posted by Martin at 4/29/2005 4:08:35 PM
Hi, I have standard code that sends mail from an asp.net application. The application is running on a production web server. it uses the standard system.web.mail namespace. most of the time mail is sent fine. however every so often an error is reported where mail can't be sent. upon more ...more >>

How to set validator visible by default?
Posted by TomislaW at 4/29/2005 3:41:03 PM
I would like to set requiredfieldvalidator text property to red '*', but he is invisible by default, only when I click on button he became visible. I would like to have him visible by default, before I click button. Is this possible? ...more >>

Is it possible to change culture at aplication level
Posted by Shapper at 4/29/2005 3:03:49 PM
Hello, Is it possible to change culture at aplication level? I am using this to get the current culture at application level: Response.Write(CultureInfo.CurrentCulture.Name) Thanks, Miguel ...more >>

Is there a URL Params class?
Posted by Ken Varn at 4/29/2005 2:56:21 PM
Is there any sort of class or method that can be used to construct the parameters to a URL in ASP.NET? I would like to be able to call Response.Redirect() with a URL that has parameters passed without having to manually construct it using ? and & in the URL string. -- ---------------------...more >>

web graphics and copy with mouse
Posted by Spencer H. Prue at 4/29/2005 2:50:04 PM
Hello!, I am trying to select an image with the mouse and "roll it over" or copy it and then drag and drop it onto another image. I have looked into using imagebutton and image. Apparently I have to use Javascript and HTML to initially make a copy of the image and then the only other questi...more >>

suggestions?
Posted by abcd at 4/29/2005 2:48:11 PM
I want to design an asp.net page which will have multiple controls. I want to fill one of the control when there is some action like selecting something from its previous control...I want to simulate as if its a windows based application and the entire page is not refereshed (trip to server)...more >>

Can't catch the error: HTTP 401.2
Posted by sck10 at 4/29/2005 2:11:06 PM
Hello, I have custom errors turned on, and am able to catch errors and send the user to a friendly page. I have one site with "authentication" turned on. I would like to send a person who doesn't have access rights to a user friendly page, but I can't catch the following: HTTP 401.2 - Unau...more >>

Why this code line doens't work?
Posted by Shapper at 4/29/2005 12:07:42 PM
Hello, I have the following code in the Global.asax: Sub Session_Start(Sender As Object, E As EventArgs) Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US") End Sub The Error I get: "Name 'Thread' is not declared." However when I have this in my aspx code it work...more >>

databinding xml to dropdownlist
Posted by Joe Gass at 4/29/2005 12:04:14 PM
I'd like to bind some xml to a dropdownlist <engines> <engine name="test1" id="1" /> <engine name="test2" id="2" /> </engines> If I do: ddlEngines.DataSource = xmlDoc.SelectNodes("/engines/engine") ddlEngines.DataBind() I get <select name="ddlEngines" id="ddlEngines"> <option valu...more >>

Code Switching in aspx file
Posted by Matt at 4/29/2005 12:00:31 PM
Have this generic page for update,new,close fields. Once click on page1 and capture the button click. On second page I only would like to show whateever button clicked(update,cl,new) I would do this in asp like below. <%if page = "update"> <td><update fields</td> <%else%> <td><close fields</t...more >>

CSS Style ignored after postback
Posted by Jim Brandley at 4/29/2005 11:44:02 AM
I need to set the background on required fields to a fifferent color. When the page is initially rendered, it works fine. When activity elsewhere on the form causes a postback, the style is ignored when the page is re-rendered. The CSS reference is in place, and the style is specified correctly ...more >>

Cookies. Simple Question. Thank You.
Posted by Shapper at 4/29/2005 11:32:58 AM
Hello, I need to know how to do 2 things: 1. CREATE a NEW cookie with 2 values: "password" and "user". 2. APPEND 2 new values to an ALLREADY EXISTING cookie. I created a code which is working: Dim cookie As HttpCookie = New HttpCookie("MyCookie") cookie.Values.Add("culture", "pt-PT") ...more >>

dynamically generated image's quality
Posted by Ersin Gençtürk at 4/29/2005 11:26:36 AM
Hi , I am creating dynamic images (for example writing text into a bitmap) and saving it to the output stream with gdi library in .net but I can't adjust image quality. The best parameters with everything is set to fine also gives me low quality ? how can I set the quality to the maximum ? ...more >>

errors running HttpWebRequest.GetResponse - 401 unauthorized
Posted by Steve Richter at 4/29/2005 11:18:21 AM
I have a page that uses simple HTTP GET to do an ISBN lookup via Amazon.com. The page works when I run it from //localhost. But I have moved it to my godaddy.com shared hoster site, and I get errors on the HttpWebRequest.GetResponse statement. The remote server returned an error: (401) Unaut...more >>

Search box in usercontrol how to update parent datagrid
Posted by seanmayhew NO[at]SPAM gmail.com at 4/29/2005 10:59:32 AM
I have a search box in a user control when submitted it should update the datagrid on the parent page that the control is placed on. Suggestions? Tutorials? ...more >>

Stupid question
Posted by Bart Schelkens at 4/29/2005 10:29:50 AM
Hi, I have kind of a stupid question (at least to me). Somebody asked me what the difference was between asp.net and vb.net. Since I create my webapplications with vb.net I couldn't think of a difference. To me they seem the same. Am I correct ? Thanks ...more >>

HttpContext.Current.User doesn't persist in child app
Posted by John Dalberg at 4/29/2005 10:10:11 AM
I am setting the HttpContext.Current.User in the Application_AuthenticateRequest event in global.asax.cs. When I use the IsInRole function in a web page, it works fine. So far so good. (Note that Integrated security is used and anonymous is turned off.) This app will actually work as a child...more >>


DevelopmentNow Blog