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 > june 2005 > threads for friday june 10

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

by any chance can you...
Posted by rodchar at 6/10/2005 11:44:02 PM
hey all, i was wondering if you can add blank text and a non-blank value when i hard-code the values into a drop-down list in the designer (you know when you press the ellipses next to collections)? thanks, rodchar...more >>


Global Variables!q
Posted by Child X at 6/10/2005 10:57:02 PM
Hi all, I am still new to .net. Coming from an asp classic background. Using classic asp, i would use a include file to contain global variables contained through out a site. These would normally be file system paths and the like. What would be the best approach to achieving this in d...more >>

SqlParameters SqlDbType.Char in VB Question
Posted by Patrick Olurotimi Ige at 6/10/2005 9:40:04 PM
I have a checkbox and i want to input Char "Y" or "N" to the Table In C# we could use for example :- ptrTest.Value = chkYN.Checked ? "Y" : "N"; Whats the equivalent in VB.NET? *** Sent via Developersdex http://www.developersdex.com ***...more >>

Some things that do work only when I am on connected to internet
Posted by Eitan M at 6/10/2005 8:29:14 PM
Hello, I have a .NET web application. I have a *.mdb file, the connectionString is something like : conMain.ConnectionString = "provider = microsoft.jet.oledb.4.0; data source = " _ & Server.MapPath("./db/mydb.mdb") When I am doing update, or just even simple command : cmd = new o...more >>

Help needed with ASP.NET application
Posted by Ragnar Midtskogen at 6/10/2005 8:05:45 PM
Hello, I am trying to get an ASP.NET application to run on a new Windows Server 2003 Standard box. I know very little about ASP.NET applications, but we have the same application running fine on another 2003 box, so I am just trying to set the new server up to match the new one. The app...more >>

DataGrid Runtime DropDown - ViewState Issue
Posted by Steve Pierce at 6/10/2005 7:05:31 PM
I am having some issues with a runtime dropdownlist in a datagrid. The issue is that I cannot get ViewState to fill the selected index of a runtime dropdown properly on postback. I do not want to use template columns as they seem to be a little difficult to create at runtime. Any assistance w...more >>

interesting fact about date.
Posted by Kenny M. at 6/10/2005 6:35:01 PM
hi I have not seen anything yet that can help me with this. All the time my page is loaded I need to show inside a TextBoxt the first day of the month: If the page is being loaded this month the textboxt should have 06/01/2005 If the page is being loaded the next month the textboxt ...more >>

DropDown First Item
Posted by Paperback Writer at 6/10/2005 5:23:44 PM
Hi, i have this code cboHoraIni.DataValueField =3D "COD_HORARIO"; cboHoraIni.DataTextField =3D "DSC_HORARIO"; cboHoraIni.DataSource =3D objAgenda.SEL_HORARIO(); //thats a ICollection = method cboHoraIni.DataBind(); cboHoraIni.Items.Add("--Selecione um hor=E1rio--"); cboHoraIni.Items[cboHoraIn...more >>



Trying to wire up dropdownlist in datagrid
Posted by Andy Sutorius via DotNetMonster.com at 6/10/2005 5:17:19 PM
Hi, I am trying to wire up the dropdownlist in a datagrid and use the onselectedindexchanged event however I am getting an "Object reference not set to an instance of an object" error when I try to load the page. Do you see the error? Thanks, Andy <asp:DropDownList ID="ddlType" AutoPo...more >>

how do i add to my dropdownlist
Posted by rodchar at 6/10/2005 5:13:02 PM
hey all, i have 2 fields that have delimited values in them. field1=1,2,3 field2=N1,N2,N3 what is the easiest way to get these into my dropdownlist where dropdownlist.datavalue = field 1 dropdownlist.textvalue = field 2 thanks, rodchar...more >>

Getting more detailed errors
Posted by darrel at 6/10/2005 3:24:27 PM
I have a question below about an error I am getting: Exception has been thrown by the target of an invocation. Is there anyway to get asp.net to give me more details than the above? My catch statement is as such: Catch exc As system.Exception div_updateLog.Visible = true lbl_updateLog.te...more >>

Evaluation Application
Posted by Gabriel Giraldo at 6/10/2005 2:30:06 PM
Hello, I'm developing a web application intended to test students on several subjects. This tests and their questions are stored properly on a database. I need to have a time limit either for each question or for the entire test. I have found some javascript scripts that can help in this m...more >>

How to get network user name with FORMS authentication
Posted by Don at 6/10/2005 2:05:07 PM
I'm using FROMS authentication and want to automate the login. Right now I force the user to manually log in. I would like to detect the users network userName and if they have an account I will automatically log them in. If they don't they wil be taken to the login page. I can get the ne...more >>

Disabling Validator
Posted by Paperback Writer at 6/10/2005 1:29:19 PM
Hi, how can i disable a required validator in javascript ? is there a way ?.... -- Please, check my theSpoke: http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx ...more >>

Best way to disable a site?
Posted by VB Programmer at 6/10/2005 1:26:23 PM
I have a 50 page site. How can I temporarily redirect everything to a page that says "This Website Is Currently Down"? Thanks. ...more >>

Access ASP session from ASPX
Posted by js at 6/10/2005 1:02:09 PM
My application is a mixed of ASP and ASPX pages. There are Session variables created by some of the ASP pages. I need to access those in ASPX pages. Does anyone know how? Or is it possible? ...more >>

Permissions Help with asp.net saving uploaded files
Posted by darrel at 6/10/2005 12:45:58 PM
I have a function that uploads a file to a specific directory, making the directory if it doesn't already exist. This works, unless I try to upload a file to a pre-existing directory. If I do that, I get this vague error: Exception has been thrown by the target of an invocation. Fro...more >>

Two DropDownLists getting crossed
Posted by Jay at 6/10/2005 12:27:49 PM
I'm having a weird problem in ASP.NET 1.1. I have two DropDownLists in a form. Both lists are build identically but separately. Somehow the DropDownLists are getting crossed in memory, because when I set the SelectedValue for the second list, the first list's SelectedValue becomes set to the Sel...more >>

Urgent: Outofmemoryexception.
Posted by Mahesh D. Rane at 6/10/2005 12:16:03 PM
Whenever our application starts it consumes 40 MB memory (this reading are from Task manager of aspnet_wp.exe) this keeps on growing. At very fast rate. Every page hit increases the memory by 1 to 2 MB. When it is tested on more users environment, the memory usage increases upto...more >>

How to hide aspx from URL in address bar
Posted by strout at 6/10/2005 12:07:27 PM
How can I display a url like www.mysite.com/subdir/mypage.aspx?id=2&cat=4 as www.mysite.com/subdir/mypage.html?id=2&cat=4 or www.mysite.com/subdir/?id=2&cat=4 strout...more >>

validating
Posted by Shahid Juma at 6/10/2005 12:01:11 PM
Hi, I am reading an XML file and creating a form (ie. putting text fields/radio buttons, etc.). I would like to validate the Text Fields but the RequiredValidator requires me to specify the name of the field. My text fields are dynamically created . Any help would be greatly appreciated...more >>

Is there server control that you load with HTML from a URL
Posted by n_o_s_p_a__m NO[at]SPAM mail.com at 6/10/2005 11:49:36 AM
I am wondering if there is a server control, something like a lieteral control, that you can load its content (html) at runtime by specifying a URL, so that the literal's text property is URL-loaded? For example (something like): string URL = "http://www.yahoo.com"; litMyDynamicHTML.text = ...more >>

Server.MapPath from a vb class
Posted by MattB at 6/10/2005 11:25:58 AM
I've used this a bit from codebehind with no problems, but now I'm having some issues when I try to use it from a vb class in my application. Looking in help, it looks like I need to do something like this: dim Server As HttpServerUtility Dim path As String = Server.MapPath("myfile.txt") -...more >>

Code-Behind Pain in the Behind!
Posted by Daniel Manes at 6/10/2005 11:22:02 AM
Okay, here are the facts ma'am (or mister): 1. I have a user control called "Header" and a main page called "ReportMatch". 2. I've written "code-behinds" for both the user control and the main page. 3. This means four files: Ladder.ascx, Ladder.ascx.vb, ReportMatch.aspx, and ReportMatch.aspx...more >>

debug from another machine
Posted by Eagle at 6/10/2005 11:19:08 AM
I created a project that runs fine on my local machine, using http://localhost etc. I copied the program up to another web server and am getting errors -- sometimes. How do I run my program in debug mode so that it runs on my machine but launching from the web server that is giving me the ...more >>

Message Box in ASP
Posted by Randy at 6/10/2005 10:53:58 AM
Hello, I'm trying to figure out how to set up and call a javascript pop up window within C# ASP. I know how to use RegisterStartupScript. This works fine if I use it in the Page_Load area. What I want to do is call a pop-up window from several areas in my class. For example, I've got a Submi...more >>

Microsoft Bug
Posted by champ0007 at 6/10/2005 10:35:11 AM
In ASPX Page, For unknown reasons, sometimes the CSS disappears on reload of the ASP page. Be it a Datagrid refresh, a button click that does a PostBack ! ! ! I have tried ways to include the external CSS <link href="xyz.css" rel="stylesheet"> import url(http://xyz/abc.css) ultim...more >>

DropDownList problems inside a datagrid
Posted by Michael Kolias at 6/10/2005 10:30:39 AM
Hi everybody, I am having a problem getting the selected value of a drop down list that is populated dynamically inside a datagrid control. When I try to access the selected item on the datagrid_Update function I get an Object reference not set to an instance of an object. I am reakky stuck...more >>

Debugging Problems
Posted by josef NO[at]SPAM wainz.net at 6/10/2005 10:16:56 AM
I am having trouble debugging with Visual Studio.NET 2003 and Framework 1.1. I cannot press F5 and have the web project start with the debugger, I get "Unable to start debugging on the web server. Could not start ASP.NET or ATL Server debugging". So, instead I have to manually attach to aspnet_w...more >>

Unable to map the debug start page URL to a machine name
Posted by Tom wilson at 6/10/2005 9:57:19 AM
I have a W2003 web server running many web applications. One of these uses remote debugging. It works perfectly. Today, I created a new asp.net project. I have 2 problems with it: 1 - Any error that occurs displays the generic "application error has ocurred" screen. It also says to enable...more >>

Transparent images
Posted by MW de Jager at 6/10/2005 9:46:05 AM
Im trying to place an image on my form, which is transparent in parts like an icon. My page refuses to display the transparent areas in the color of the page background but keeps replacing it with white, causing the image to sit in a white square. Is there something I'm missing here like a...more >>

Firefox Validation Issue - not the standard document.[all] problem!
Posted by andersoj at 6/10/2005 9:39:43 AM
I have a page that has some required field validators created in the aspx, and other validators created in the Page_Load event. In IE, all validation works as expected. In Firefox, ASPX validators work fine, but the validators created in the code-behind do not. Am I adding the validators to...more >>

how to make VS auto suggest properties during dev
Posted by Rick Csucsai at 6/10/2005 9:38:28 AM
After a year and a half of not touching ASP.NET, I have finally talked my company into letting me build a useable app in .NET instead of classic. Now I have to play catch up. i would really appreciate answers to the following (hopefully easy) questions. I have the web created (well, in dev)...more >>

Dynamically position custom control .ascx
Posted by Paul at 6/10/2005 9:31:06 AM
Hi I have a custom control and am using as a menu on webpages, just wondering if there is a way to position it differently on different pages, perhaps some code in the page load event? thanks, -- Paul G Software engineer....more >>

how to determine .NET framework version
Posted by Vaclav Jedlicka at 6/10/2005 8:51:58 AM
Hi I created an ASP.NET app. How can I figure out if it uses ver. 1.0 or 1.1? Both of them are installed on my box. Thanks Vaclav ...more >>

Authentication mode in web.config causing crash.
Posted by John Lynagh via .NET 247 at 6/10/2005 8:35:40 AM
Hi there, I am having serious problems with my web.config file. When the authentication lines are added below my application crashes. When they are removed it works fine. Is there syntax error below or is there something more sinister going on. Any help greatly appreciated. <?xml version=...more >>

A really complete list of tools for .Net development
Posted by Juan T. Llibre at 6/10/2005 7:49:29 AM
SharpToolbox : http://sharptoolbox.com/ Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... ====================== ...more >>

include_once("page")
Posted by Mattehw at 6/10/2005 7:26:07 AM
hello sorry about PHP code in the subject of my question :-P I've created control that uses javascript from separate file and I render SCRIPT tag before I start render my control.All works OK, but when the control is used twice the SCRIPT tag is rendered twice too. Does anybody know, how...more >>

User Controls in 2.0
Posted by garethdjames NO[at]SPAM gmail.com at 6/10/2005 7:20:03 AM
Does any one know if it is possible to create user controls in ASP.Net 2.0 that can be used in multiple projects, much like server controls? Thanks Gareth ...more >>

Newbie on Session State
Posted by Rudy at 6/10/2005 7:11:07 AM
Hello All! Happy Friday, thank GOD!!! So last night I realized I need to use Session State in my web application. All I want to do is take the user name, and bring it back into any page I want. I also have another web application built within my app, and I want to be able to pull up that user...more >>

Textbox inside a repeater. how to access datarow in post back event.
Posted by guoqi zheng at 6/10/2005 4:40:20 AM
Dear sir, I have a textbox inside a repeart control, autopostback set to true for that textbox. When the value of this textbox changes, I need to access current row and update database. Repeater is bind to a dataset. VS.NET generate a below event on double click. However, I did not see ...more >>

Regarding Server Controls
Posted by anishsulakhe at 6/10/2005 2:49:05 AM
I am currently a MCA Students and doing my Industry project. I hav created a eCommerce Server on DOTnet in C# Language.The team membe were 6, in which my contribution was creating User management. After completing the Project, i came to know that the server control that were provided by DOTNE...more >>

ASP.NET stopped working
Posted by Nadav Popplewell at 6/10/2005 1:44:03 AM
Hi everybody, I've got a very strange problem: I'm developing asp.net applications with VS 2003. This morning suddenly I get this error message: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "R...more >>

Post-Daten aus HttpSendReuqest auslesen
Posted by marcel.stallmach NO[at]SPAM web.de at 6/10/2005 1:40:40 AM
Hallo, ich bin ehrlich schon am verzweifeln. Ich habe eine lokale Anwendung (Access) von wo aus eine HttpSendRequest an eine Website gesendet wird. Im HttpSendRequest werden die Daten per POST =FCbermittelt. Die Website die aufgerufen wird ist eine ASPX-Seite und soll nun die geposteten ...more >>

Render multiple images
Posted by Jon at 6/10/2005 1:26:02 AM
Hello all, Can anyone offer any help with our problem. We have a database that returns multiple (100's) of images as memorystreams. We need to output these all at once. The option of having a separate aspx page that takes a parameter then displays the image is not an option (this is for ...more >>

Viewstate String InvalidCastException
Posted by niki at 6/10/2005 12:45:09 AM
Hello. I have a postback problem with viewstate. I've searched the group and found many threads about this, but I still can't understand... I have this code: DataSet ds = null; if(! this.IsPostBack){ .... } else{ StringReader sr = new StringReader((String)(ViewState["ds"])); ds.ReadXml(s...more >>

Is there a way to detect user screen resolution in server side code?
Posted by Bredahl jensen at 6/10/2005 12:00:00 AM
Most of the the solution i have seen was throught javascript. Many thanks in advance JB ...more >>

Getting user password from Active Directory
Posted by Diego F. at 6/10/2005 12:00:00 AM
Is it possible to get user password from active directory? I want to authenticate a user with Active Directory. I can get the name or email, but I don't know if I can get the password. -- Regards, Diego F. ...more >>

what is Request.ServerVariables
Posted by Andy Fish at 6/10/2005 12:00:00 AM
Hi, I just came across the HttpRequest.ServerVaraibles collection which the documentation helpfully explains contains "a collection of server variables" What on earth is a server variable? where do these variables come from? what variables can I expect to be present? what do they mean? I c...more >>

Do i loose the power of asp.net if i use a custom extension (not .aspx) with IHttpHandlerFactory
Posted by Hope Paka at 6/10/2005 12:00:00 AM
I want to use my custom url extension instead of .aspx. I can achieve this by writing a custom handler that implements the IHttpHandlerFactory. In the GetHandler method of the IHttpHandlerFactory i want to construct a Page class instance and load my other controls to it and return the page in...more >>

embeding wmp w/instant play?l
Posted by at 6/10/2005 12:00:00 AM
been racking my brain and msdn and google with no luck... how would i go about embedding a media clip and having it play instantly? i.e. no buffering/caching? i dont care if it buffers half way through, but i need the clip playing <1s after the link to the page is clicked. any help woul...more >>

Reading values from a Word document...
Posted by Stu at 6/10/2005 12:00:00 AM
Hi, I have a web app that needs to receive freight booking in MS Word format. There are a number of tables in the docs that contain the relevant data (origin/destination etc.). Can someone please point me in the right direction for the most reliable way of doing this. Also, do I need ...more >>

Dataview returns 0 rows
Posted by Andy Sutorius via DotNetMonster.com at 6/10/2005 12:00:00 AM
Hi, My dataview is returning 0 rows however I know there are rows in the dataset with the matching data. Do you see anything wrong with my code. Can you suggest a way to debug? Thanks, Andy public DataView BindCodeDropDown() { SqlConnection oConn = new SqlConnection(DBConnectionSt...more >>

another ctp?
Posted by John at 6/10/2005 12:00:00 AM
Hi Is there likely to be another vs 2005 ctp/beta before the final? Thanks Regards ...more >>

What fired Session_End?
Posted by KTW at 6/10/2005 12:00:00 AM
Hi. Is it possible to determine what fired the Session_End in Global.asax ? I want to see if it's a normal session ending, or the application is beeing reloaded from filechanges. (Like saving the Web.Config, etc.) - KTW - ...more >>

Onmouseover Event, Cursor property not working with Netscape or Firefox
Posted by Jordan at 6/10/2005 12:00:00 AM
I set the cursor property to change to the "hand" when the user performs an "onmouseover" event on a hyperlink object. This does work correctly with Internet Explorer, however, with Netscape and Firefox, the cursor is just the "vertical line." Does anyone know why this isn't working with N...more >>

Controling table layout dynamically.
Posted by Bredahl jensen at 6/10/2005 12:00:00 AM
Hello, I have a set of tables inside a custom webcontrol. I need to ajust the height and width attributes of all rows and columns according to client screen resolution. I have added the the "id" and "runat" attributes to the tables. How do i best do this? They tables are authored i...more >>


DevelopmentNow Blog