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 monday october 20

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

How do i add Attributes to System.Web.UI.WebControls.ListItem
Posted by Murali Inguva at 10/20/2003 11:05:42 PM
Hi, I tried to add attributes to List Item. The I am trying to add that list item to dropDown I dont know why the values are not coming. My code goes some thing like this. lst = new System.Web.UI.WebControls.ListItem(); lst.Attributes.Add("defaultAmount", item.defaultAmount.ToString());...more >>


ASP.NET slow on XP Pro
Posted by MikeH at 10/20/2003 10:29:46 PM
Hello, I have a very small ASP.NET app installed on an XP Pro box in a 5 station workgroup network. All machines are XP Pro SP1. Page loads on the IIS machine display HTML immediately but take about 30 seconds to display the ASP.NET controls. Each page consists of only two/three butto...more >>

Required field validator problem
Posted by Do at 10/20/2003 10:24:20 PM
Hi, Has anybody run into problems with Page.IsValid? My errors show up when the fields aren't filled correctly, but my processing continues even if the page is invalid. I leave name and description blank and I do get the error messages. But the code still continues to run the addfolder...more >>

deploy namespace and class
Posted by martin at 10/20/2003 9:53:15 PM
Hi, I have written a class which I intend to use in all of my asp.net applications. I have wrapped the class in a namesapce. I now must make my class availible to all of my projects so that they can use it by writing imports mynamespce in the aspx.vb file. I have got as far as figuring out t...more >>

Loading Custom Server Control from string ..
Posted by Anders Borum at 10/20/2003 9:45:46 PM
Hello! I'm looking for the best way to load a custom server control defined by a string (not a user-control - defined by the .ascx extension). The source for the control is defined in e.g. a database and defines the namespace and class for the control to be loaded. Are we simply talking abo...more >>

Using WinForm Controls in WebForms (Grid Control)
Posted by sunil NO[at]SPAM itb-india.com at 10/20/2003 9:03:39 PM
Dear All, We are developing applications in ASP.Net...in one of our applications we would like to use a GridControl...we have tried to use a Server-Side Grid control but found the speed to be an issue...also our clients would like to use a lot of client side events like sorting, searching te...more >>

Change language when in an Arabic Edit Box
Posted by Michelle Stone at 10/20/2003 8:56:35 PM
Hi I am doing a bilingual .NET application for English/Arabic. On a web form, I have some edit boxes for data entry in Arabic and some for entry in English. Right now the user has to change his keyboard language by pressing ALT+SHIFT (or by changing the language manually elsewhere) each...more >>

Viewsate errors
Posted by Matt at 10/20/2003 8:14:55 PM
Hello, I'm having a "classic" problem with the viewstate. In my project, i get the "The viewstate is invalid for this page and might be corrupted" error for mac users only. So this is a mac issue. The EnableViewStateMac property is set to false in every page in design mode. Should i add it...more >>



Global Variables...
Posted by John Sedlak at 10/20/2003 7:38:54 PM
Hello, I am making a database driven website that allows the user to login and do some stuff all around my website. I was wondering what file I could use for global variables and functions. Or is there a better way to do this? Thanks....more >>

Re-using DropDown Lists?
Posted by Thor1212 NO[at]SPAM aol.com at 10/20/2003 7:38:45 PM
Hi All I have a question about re-using a drop downlist box across several questions on a questionaire like form. I will include code after some explaination. I thought i could make a dropdownlist box object global and re-use it as needed if i did not destroy the object, but it doesnt seem ...more >>

About persistance of WebForm class in ASP.NET
Posted by Free at 10/20/2003 6:33:26 PM
Hi, I have a question about ASP.NET : Here is an example of WebForm code. 2 buttons and 1 textbox. ---------------------------------------------------------------------------- ----------------------- Public Class MyWebPage Inherits System.Web.UI.Page Protected WithEvents MyButto...more >>

password field can't be preloaded
Posted by homaneag NO[at]SPAM yahoo.com at 10/20/2003 5:46:20 PM
Hi, I have a quick question. I have a webpage allow user to modify his/her information. When I generate the form, I want to pre-load the information to the TextBoxes. But for the password (and confirm password) textbox, the text can't be loaded (the TextBoxes are empty, no "dot" in them). I...more >>

c#, binarywrite method.
Posted by nchopra NO[at]SPAM think3.com at 10/20/2003 5:38:52 PM
I am trying to write out the equivalent of this asp statement in c#: Response.BinaryWrite(chrb(239) & chrb(187) & chrb(191)) 'BOM = EF BB BF string binString = "11111111"; byte myBin = Convert.ToByte(binString); Response.BinaryWrite(myBin); binString = "10111011"; myBin = Con...more >>

How to read standard (i.e. non-custom) Web.Config settings
Posted by Mark Friedman at 10/20/2003 5:03:54 PM
I've seen lots of documentation on how to create and read custom configuration settings but I'm interested in reading a standard setting (i.e. the loginUrl attribute of the authentication/forms setting). Do I have to resort to using straight XML reading or is there some other way to access stan...more >>

Passing data betweens frames
Posted by elik at 10/20/2003 4:44:45 PM
i have a frame page with three parts, each parts attached to aspx file, is there any way to transfer data from one frame to another frame in server side? i meen , when the user select some data from listbox in one frame i want to display is selection in a label belong to another aspx page/...more >>

dropdownlist selectedindexchanged event not firing.. please help.
Posted by DesignerX at 10/20/2003 4:24:35 PM
I have a dynamically created composite server control. The composite control contains a dropdownlist, a validator and a label. I have the dropdownlist AutoPostBack set to true and have defined a handler for the SelectedIndexChanged event. The server control is instantiated upon every req...more >>

help
Posted by Darren Spooner at 10/20/2003 4:15:10 PM
i have some data that needs to be passed between several web pages webpage1 passes data A to webpage2 and then webpage2 passes data A to webpage3 and then webpage3 passes data A to webpage2. what is the best way to do this?? ...more >>

Parsing a string
Posted by Mike Kanski at 10/20/2003 3:43:53 PM
Here's an expample: dim s as string s=""c:\blah blah\"" ""c:\koko\"" ""c:\booo boo\"" console.write ubound(s.split(""" """)) result of ubound is 3 Should be 2 ! What i'm trying to do is to say that the delimeter in the string is DOUBLE QUOTE SPACE DOUBLE QUOTE (" ") And Split still co...more >>

ASP.NET is not authorized to access the requested resource
Posted by Brent Burkart at 10/20/2003 3:38:44 PM
I am trying to send an email using SMTP server through IIS. I am recieving the following error. Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it orig...more >>

msgbox
Posted by Music Lover at 10/20/2003 3:33:14 PM
when I add a msgbox("hello") it returns "It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. " What should I do in order to ...more >>

set <title> of page
Posted by Alex at 10/20/2003 3:15:49 PM
Hi, is it possible to set the title programatically from the code behind page. I placed a literal in the head section of the form and set its text property. it seemed to work bu the literal is not in the <form> section of the page. does this matter or is there a better way to programatica...more >>

Deployment Problems
Posted by Mike at 10/20/2003 3:04:15 PM
I just finished writing an ASP.NET application on my local box. Everything worked great so I am trying to deploy it on out company intranet. The problem I have is that I am getting a Runtime Error and im not sure what it is. This is the error Im getting: Runtime Error Description: An ap...more >>

ASP.NET Deployment Problem
Posted by Mike at 10/20/2003 2:48:15 PM
I just finished writing an ASP.NET application on my local box. Everything worked great so I am trying to deploy it on out company intranet. The problem I have is that I am getting a Runtime Error and im not sure what it is. This is the error Im getting: Runtime Error Description: An ap...more >>

Forms Authentication, external authentication server, & rerouting to orig. req. URL
Posted by Andrew Connell at 10/20/2003 2:46:03 PM
I have an application where the authentication is based off another site = (custom portal). The portal authenticates the user(s). Then, when they = select an application, they are routed to the application's URL = (different domain, different server). When they try to bypass the = portal, I n...more >>

OleDbConnection Security Exception
Posted by Daniel Conlon at 10/20/2003 2:33:08 PM
I wish to allow ASP.NET pages to make connections to Access databases using OleDBConnection. The only way I have been able to make this functionality work has been to set: Unrestricted="true" In the <PermissionSet> property applying to ASP.NET pages, otherwise I get: Security Exceptio...more >>

How to set onclick for default button
Posted by RA at 10/20/2003 2:23:20 PM
Hi I have asp.net web app. When a user clicks the enter key when he is viewing the aspx web form, it jumps to the starting web form. How can I handle the user hitting the enter key and to redirect it to a default button. So lets say that I have a button name - Submit - if the user clicks anywh...more >>

BUG??: Autopostback in DropDownListBox causes blank a page when using frames
Posted by edumen26 NO[at]SPAM yahoo.com at 10/20/2003 1:47:05 PM
Hello: I have an aspx page with a TextBox and a DropDownListBox both have Autopostback property set to true and some code in the TextChanged and SelectedIndexChanged events. When text in TextBox is changed and the DropDownListBox is expanded with the mouse (this fires text changed event) th...more >>

Get assembly path in asp.net
Posted by Sebastiao Pereira Filho at 10/20/2003 1:33:33 PM
I have an external assembly that's access by an asp.net page. I want = this assembly to load a xml configuration file, and I want to put this = file in the same directory wich the assembly is located. I tried to use = System.Reflection.Assembly.GetExecutingAssembly().Location to get the = ass...more >>

Client Side Scripting
Posted by Arda at 10/20/2003 1:31:20 PM
Hi there, I have 2 textboxes one of it is full of text and the second one is empty = and ready for the uesr to type exactly the same text with the first = textbox. What I want is while the user is typing on the second textbox I = want to compare it with the first textbox(at the same time) and ...more >>

Visual Studio.NET -> ASP.NET problem
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 10/20/2003 1:21:31 PM
I installed trial version of Visual Studio.NET and i tried doing a simple example in ASP.NET using VB.Net.Below is my problem: I have a 'button' WebForm control and a 'label' WebForm control in a aspx file.I added appropriate code inside the .vb file like when a user clicks on button then...more >>

Doesn't Timer class work in a Web Form?
Posted by Jim Hammond at 10/20/2003 1:01:40 PM
The following code tries to excute a function 10 seconds after Page_Load = by using a Timer, but the callback never gets called. private void Page_Load(object sender, System.EventArgs e) { // Set timer to call Page_PostLoad in 10 seconds try { // Create the...more >>

Changing properties of a custom control in code-behind
Posted by spam NO[at]SPAM merrimac.net at 10/20/2003 12:50:43 PM
Hi, I've written a web server custom control. If it's attributes are set at design time in the HTML it works fine. But I want to also be able to dynamically change some of the properties in the code behind file. Is there any way to do this? When I write the code for the button_click even...more >>

Replacing Language Resource Files
Posted by Wilko Deppe at 10/20/2003 12:34:48 PM
Hi! I have two questions about replacing the compiled language Resource Files (dll) while the webserver is running. First of all, is possible at all to replace the dll or is it "blocked" by the IIS or another Service? Secondly do I have to reregister the dll on the server? Thanks a lot f...more >>

Site hangs
Posted by Ajay at 10/20/2003 12:33:47 PM
Hello All, I am facing this problem of getting my asp.net site hung most of the time after browsing. To be more explicit on it, When I am clicking on a particular link it works but sometime What happens is the same link will not work even if you click on it several times and when you click ...more >>

Determining if a Server Supports SSL
Posted by Christopher D. Wiederspan at 10/20/2003 12:32:54 PM
I've got a simple problem. Currently, I have a .Config setting called SupportsSSL that I use within an ASP.NET web application to determine whether I redirect to an HTTP or HTTPS connection (for instance, when the user visits the Login page). I'm wondering if there is a programatic way to determ...more >>

Handling Form Field Changes - Events?
Posted by Matthew Workman at 10/20/2003 12:31:33 PM
I have one aspx page where i am databinding two drop down lists based on = a dataset (the data is being loaded from an XML Document). The fields = get updated properly, no problem there. My question is: "How do you = handle the events so that if the user chooses an option in the drop = down,...more >>

Smart Navigation
Posted by Jay at 10/20/2003 12:20:48 PM
I have used Smart Navigation on several projects and it works wonderfully. For my last project I used some javascript menus. SmartNavigation caused them to not function. So I used SmartScoller which you can download from -- http://www.strengthtechnologies.com/scroll/Download.aspx S...more >>

Parser Error Could not load type 'dotnettest.Global'
Posted by Jerry Tovar at 10/20/2003 12:05:06 PM
I am using .Net 2003 on a XP Pro using IIS. My IIS is configured to have it's root on our Network drive. I have been able to create ASP.Net webform up until now. For what ever reason, I am getting the following parser errors on the webforms that used to work and any new ASP.Net webforms ...more >>

Simple Find Dialog Box Question
Posted by Steve Letford at 10/20/2003 11:40:12 AM
Hi, I work on 2 machines, work and home. When I do a CTRL+shift+F the dialogue box opens, undocked at work. When I do the same at home it remains docked. Is there a setting somewhere to ensure that the Find Dialogue box opens undocked when I do a find. Thanks for your help. Steve ...more >>

Export file to excel
Posted by Phoebe. at 10/20/2003 11:38:32 AM
Hi, Good Day! I need to save all my records from datagrid into an excel file and save in my harddisc. Can someone help. Thanks in advanced. rgds, Phoebe. ...more >>

Internal Server Error
Posted by Fred Weiner at 10/20/2003 11:32:04 AM
Using Visual Studio.net 2003. When I try to create a web project, I get the following error: http://localhost/webApplication1'. HTTP/1.1 500 Internal Server Error'. SUggestions appreciated...more >>

Button Text from a DataGrid?
Posted by Stephen Russell at 10/20/2003 11:04:56 AM
Having a brain fart this morning :( I need to take the text of a button in a datagrid. <Grid could be sorted so I need it's data that is displayed> Button Click fires: public void ShowModel(object sender, DataGridCommandEventArgs e) { string lcCommand = e.CommandName; if (lcCommand != "so...more >>

unable to open remote project
Posted by vince at 10/20/2003 10:55:43 AM
I installed the Portal Starter Kit (from www.asp.net) on a win 2003 server running IIS 6.0 and SQL Server 8.0, and it works fine using integrated authentication. However, I'm unable to open the portal project remotely from my development pc... when in vs.net I click File/Open/Project from...more >>

Syntax Question - Novice Question
Posted by sean at 10/20/2003 10:26:41 AM
Hi, I am filling a datagrid and I was wondering how I can test for "end of file" and then make decisions based on that. I am still making the transition from asp to asp.net. Could someone help me with the syntax please? Thanks in advance for youe answer Sean Dim Conn As OleDbCon...more >>

Wait while loading.....
Posted by Jonas Nilsson at 10/20/2003 9:53:46 AM
How can i show a "Wait while loading..." text on my aspx page while loading data into a datagrid from a database. /Jonas ...more >>

What does restarting aspnet_wp.exe do?
Posted by gbarker NO[at]SPAM cds-software.com at 10/20/2003 9:53:03 AM
Got the error "Requested registry access is not allowed." On our production box today. Started happening in the middle of the day on any procedure that tried to create an object via SQLClient . . . Since no one had any idea how this could suddenly start happening (everyone denied having made...more >>

Can't run Web App from the IDE
Posted by George Shubin at 10/20/2003 9:47:22 AM
I wanted to start learning ASP.Net programming, so I downloaded the IBuySpy Portal and Store VSVB examples from GotDotNet and installed them on my computer (Win2000, IIS, MSDE). I got them to run from IE as a local web app, but when I go into VS.Net 2003 Enterprise and try to run the applicatio...more >>

PrivateFontCollection??
Posted by Alex Davis at 10/20/2003 9:38:23 AM
Does anyone know how use fonts that are NOT installed on the system? Alex ...more >>

Question: How to have timer "remember" variables?
Posted by VB Programmer at 10/20/2003 9:30:49 AM
I am dynamically creating x amout of timers (using System.Timers.Timer). I want each timer to remember it's own set of variables (ex: CustomerBeingProcessed, LastProcessTime, etc...) How can I do this? ...more >>

system.diagnostics.trace.write(..)
Posted by Alex at 10/20/2003 9:13:37 AM
Hi, I have noticed that I can only see the output of "system.diagnostics.trace.write(..)" in the output window of the dubugger. which leaves me wondering, if these statements are left in the code in a release build, then where exactly can I see their output. Is it possible to write then direc...more >>

NT Authority/ANONYMOUS LOGIN problem, only wierder
Posted by huttm_sherwood NO[at]SPAM hotmail.com at 10/20/2003 9:04:02 AM
Hi, I have tried to keep things simple. Not simple enough, obviously. I have a set of intranet ASP.NET pages which access a SQL back-end through the normal SQLConnection stuff. I want to use peoples' NT logons to user-stamp data changes made through the web-pages. So it seemed obvious to us...more >>

IDE is unable to display my apsx page
Posted by Tom Wisnowski at 10/20/2003 7:52:00 AM
Hi, I am having an issue loading my aspx file in the designer. My page inherits from a class i wrote (we will call it "basepage") that inherits from Page. It looks something like this: MyPage ---> basepage ----> Page When i try to load myPage in the desinger, it tells me that an exc...more >>

Asp.net runtime error - multiple users with Access Db
Posted by mark NO[at]SPAM barkerspecialty.com at 10/20/2003 7:46:59 AM
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by surfin it in multiple browsers simultaneously the site generates a generic runtime error after awhil...more >>

dropdown list selecteditem changes after page.unload event
Posted by Justin Bartels at 10/20/2003 7:03:47 AM
Hi, I have been struggling with an unusual problem with a dropdownlist web control for quite some time now. Cutting straight to the problem, I am setting the selected item in the dropdownlist using the IndexOf method of the list's items collection (in my debugging case this successfull...more >>

Parser error in global.asax
Posted by Jerry Tovar at 10/20/2003 6:24:41 AM
I am using .net 2003. I am trying to create a C# ASP.Net webform. When I attempt to create a new ASP.Net project and place a label on my webform, build it and run the webform, I get the following error in my browser. At one time I was able to successfully create ASP.Net webforms. However,...more >>

easy one again!
Posted by Jorge Ribeiro at 10/20/2003 4:26:15 AM
Hello I've an asp.net page that, of course, has serveral buttons, text boxes and other kind of controls in it... i need now to have them all disabled, or a lot of them, and i'm searching for the best/elegant way to do it... i managed to create a for cycle to iterate all the page's fo...more >>

Web Form Controls
Posted by Ali at 10/20/2003 4:25:36 AM
Why any added web form controls to my webform.aspx page don't appear after compiling and viewing the page in the browser. ...more >>

connect to sqlserver?
Posted by Papa_K at 10/20/2003 4:02:41 AM
I want to connect from a .net web server to a sqlserver. i read an article a while ago on how to do this but i have since 'filed' it and no longer can i find it. i remember that i was able to encrypt an nt password using an asp.net exe stored on the webserver - this was an exe that was o...more >>

sqldatareader problem
Posted by poppy at 10/20/2003 3:39:40 AM
I keep getting this error : "System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near 'Name'." Heres the code : Sub BindData() Dim sql As String = "Select Clientid,Client Name from register order by Client Name" Dim Cmd As New SqlCommand(sql, myConn) Dim...more >>

Popup Window
Posted by CG at 10/20/2003 3:28:26 AM
Hi, I have an ASP.NET application. On one of my pages I have a link to a popup. This popup has a link. When the user clicks this link my popup closes and another Popup is displayed. In this second Popup I want to redirect the user to a fifferent page in my application when the popup c...more >>

Printing PDF Or Scanned Document Via ASP.NET at network Printer
Posted by Amrendra Nath at 10/20/2003 3:24:09 AM
Hi Friends ! Can anyone help? Its an urgent. I wanted to print PDF Document or Scanned Document Through my .aspx page .By just clicking a button.I'm not using codebehind.I want to do printing at my network printer. I'm using System.Diagnosics.Process Namespace for calling the print proce...more >>

Determine which control fired in page_init
Posted by cheung77880 NO[at]SPAM yahoo.com.hk at 10/20/2003 3:19:17 AM
Hello, Simple question. How can I determine which control fired event in the Page_Init or Page_Load event handler? I saw some post in the past with the similar question. One of the recommendations was to use the sender argument. The questions is how? In my case it contains the form itself a...more >>

preventing multiple logins
Posted by sameer.gupta NO[at]SPAM jv.cmc.net.in at 10/20/2003 2:43:36 AM
one important problem i am facing is that my web solution (asp.net) will be deployed on a webfarm. I am using sql server session management on clustered sqlservers. but as i need to prevent multiple logins through a username/password (same credentials at a time) on the website. also se...more >>

DataGrid right-click Events
Posted by Seb at 10/20/2003 1:18:02 AM
Hello All, I want to enable the User to define visible cols in a DataGrid. Is there a way to set a contextMenu for my DataGrid (or at least the Page)? Does anyone now, how I can handle rightclick-Events? Or is there some other way to solve this problem without building a separate '...more >>

ASP.NET timeout
Posted by sven-2000 NO[at]SPAM gmx.de at 10/20/2003 12:58:58 AM
Hello, I have a form "default.aspx" with a button which does the following: Private Sub cb_Kommt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cb_Kommt.Click Session("Modes") = "Start" Response.Redirect("new_page.aspx") End Sub When I lo...more >>

DataSet Sorting Problem - HELP!
Posted by Aric Levin at 10/20/2003 12:13:17 AM
I have a Dataset that I read from SQL Server. The dataset can contain more items that I want to display. When I try to resort the dataset it doesn't sort. Here is the Syntax. I am not sure what the problem is: DataSet oDS = (DataSet)Cache["SearchResults"]; Sort = Session["Sort"]; ...more >>


DevelopmentNow Blog