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 > december 2004 > threads for friday december 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 31

Auto Run ASP.NET pages
Posted by Khurram Hanif at 12/10/2004 11:29:09 PM
I want to auto run asp.net page after a fixed interval of time without sending any request from browser to server. I dont want to use windows service or something like that. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>


C# Exception is Unchecked???
Posted by ChInKPoInt [No MCSD] at 12/10/2004 10:47:41 PM
I am using Visual Studio 2K3 writing a ASP.NET web application. Is there a way to force the C# compiler to catch possible exception? In Java, all exceptions thrown MUST BE caught, otherwise compiler would give you error. In C#, is there a way to do that? ...more >>

C# Exception is Unchecked???
Posted by ChInKPoInt [No MCSD] at 12/10/2004 10:47:30 PM
I am using Visual Studio 2K3 writing a ASP.NET web application. Is there a way to force the C# compiler to catch possible exception? In Java, all exceptions thrown MUST BE caught, otherwise compiler would give you error. In C#, is there a way to do that? ...more >>

How to use string values? I really need help for this. Thanks.
Posted by Miguel Dias Moura at 12/10/2004 10:37:54 PM
Hello, I am working on an ASP.NET/VB web site with Microsoft SQL 2000 database. I have a page with a search form where keywords are submitted. Consider I write the the keywords 'asp' and 'book'. The results page is called as follows: results.aspx?search=asp%20book Then I use this script ...more >>

Loosing Session variables...
Posted by Lars Netzel at 12/10/2004 10:00:48 PM
This is basic Session handling but it's not working. On a Page1.aspx I have this code: ----------------------------------- If TextBox1.Text = "admin" And TextBox2.Text = "Admin01" Then Session("admin") = "True" Response.Redirect("Page2.aspx") End If ---------------------------------...more >>

where to put this code?
Posted by V. Jenks at 12/10/2004 9:55:06 PM
I have a C# class that generates a string based on 2 integers. One integer is equal to int.MinValue and the other is equal to int.MaxValue. Each time my class generates a new string from those 2 numbers, one of the integers is incremented. What I need is a way to safely store the current st...more >>

HTML over .net controls
Posted by Mark Broadbent at 12/10/2004 8:41:46 PM
Is it recommend to use .net web controls always over html controls when they exist OR (as I believe) should HTML controls and HTML be preferred when no server side code is needed (because I think the script is slightly quicker) -- Br, Mark Broadbent mcad, mcdba , mcse+i ...more >>

Speed.....
Posted by Jonathan Smith at 12/10/2004 7:49:24 PM
Is there anyway can I findout the connections speed(atleast dialup/dsl/cable modem/T1...) of my website visitor? Thanks, Jonathan ...more >>



How to display the values of a string?
Posted by Miguel Dias Moura at 12/10/2004 7:07:52 PM
Hello, I am working in ASP.NET/VB and I need to see a string value. Howe can I display the string values and also only one of the values? Thanks, Miguel ...more >>

My First .NET page - Not Good
Posted by da at 12/10/2004 5:41:07 PM
This is my first try at an .ASPX page. I guess I'm skipping the hello world step. What all do I need to do to make this baby run? In .ASP VBScript I just put it between <% %>. Here's my test which throws and error -- http://www.womentowomen.info/test.aspx Code: System.Net.WebClien...more >>

Beginner's ASP.NET problem...
Posted by David Whitfield at 12/10/2004 5:27:01 PM
Hi All - I am an experienced ASP programmer but am a novice (that's being generous) at ASP.NET. Anyhow, I am trying to learn it but am already running into snags. I am trying to execute some simple sample code in a text file called 'Test.aspx' but when I run the code it doesn't seem like the...more >>

Muliple Users aspx project
Posted by grizduck NO[at]SPAM comcast.net at 12/10/2004 5:24:28 PM
Hi- I have created a .NET web application that uses 6 aspx pages. As the users goes from one page to the next several variables are set and displayed on future pages. I found out today that if one person is on Step 4, for instance, if another user goes to Step 3, all of the information the ...more >>

Getting Maximum value of 6 numbers
Posted by John Yatla at 12/10/2004 5:11:49 PM
Here is how I've done it. intMAX = Math.Max(Math.Max(Math.Max(dr("NAQty"), dr("CurrentNotRequiredYetQty")), Math.Max(dr("OutstandingQty"), dr("SavedQty"))), Math.Max(dr("UnapprovedQty"), dr("UpdatedQty"))) Is there a better way? ...more >>

Datagrid edit question
Posted by Leo at 12/10/2004 5:05:10 PM
I have a datagrid with the first column as a Edit,Update,Cancel button column. The other 5 columns are template columns. When I click the Edit button in IE6 the row correctly displays the controls defined in the <EditItemTemplate> however when I right click and do a view source I cannot fi...more >>

How to save html tags at SQL Server?
Posted by Dexter at 12/10/2004 4:53:18 PM
I need to save a text with html tags in a SQL Server database. I'm using server.htmlencode, but don't function. A error is generate. Somebody know how to resolve this problem? Dexter ...more >>

Post Backs and dynamically created tables
Posted by Jason at 12/10/2004 4:29:25 PM
Hi all I am building a page dynamically on Page_Load. using Table web controls for this. the web page builds up and loads up and displays ok. but as soon as there is a post back of any sort, all my dynamic building is gone. the page reverts back to it's "original" design time state. i have...more >>

HTTP REquest to SQL Server........................
Posted by Jonathan Smith at 12/10/2004 4:24:22 PM
Using Msxml2.XMLHTTP I am executing some code on the server side by calling ..ASPX page. Basically this queries the database and returns the result. My question is there anyway I can call SQL Server 2000 itself to accomplish the same. Jonathan Smith ...more >>

JavaScript and repeater
Posted by Tomislav Bartolin at 12/10/2004 4:20:41 PM
Hi, I have a very limited knowledge of JavaScript so any help would be appreciated. I have to modify an existing JavaScript code which performs some simple text scrolling. The text to scroll is defined in a script variable like this: var content = 'some text and HTML formatting...'; Is ...more >>

JavaScript and repeater
Posted by Tomislav Bartolin at 12/10/2004 4:15:58 PM
Hi, I have a very limited knowledge of JavaScript so any help would be appreciated. I have to modify an existing JavaScript code which performs some simple text scrolling. The text to scroll is defined in a variable like this: var content=' some text and HTML formatting...'; Is there a ...more >>

Events being fired multiple number of times...
Posted by Tony John at 12/10/2004 4:15:02 PM
Hi, In my ASP.NET web application, all events are being fired more than once and this is leading to problems and unnecessary code to detect it and work around it. What is causing the events to be fired multiple number of times and is there any way for me to fix it. Thanks. Tony John....more >>

Disable back button
Posted by Paul at 12/10/2004 4:03:02 PM
Hi, just wondering if there is a way to disable the back button of the browser as I have a logoff page and would like to not allow the back operation? Guessing there may be a way to do it through java script. -- Paul G Software engineer....more >>

Which one is the correct one.... ?
Posted by Jonathan Smith at 12/10/2004 3:50:51 PM
var myObj = new ActiveXObject("Msxml2.XMLHTTP"); var myObj = new ActiveXObject("Microsoft.XMLHTTP"); If my development environment is ASP.Net/VB/Net/.NetFramework 1.1/IE 5+ Which of the above statement I should use? Thanks, Jonathan Smith ...more >>

formating text in a textbox control?
Posted by djc at 12/10/2004 3:28:12 PM
Is there a property or method of the textbox web server control that I can use to format the text in it a certian way. For example I am displaying a date value from a database in a text box. It displays like so: mm/dd/yyyy mm:hh:ss. I 'was' using the .ToShortDateString() function like so: txtETA...more >>

Objects
Posted by JJ at 12/10/2004 3:07:01 PM
Hi, I was wondering in your asp.net apps and this is outside of putting Web and user controls on pages, do you guys build alot of objects in your app? Meaning if you create an Employee object that uses collection, I would consider this to be one. I guess what i'm getting at how many objec...more >>

Creating resource DLL
Posted by Jon at 12/10/2004 1:57:12 PM
One of the quickstarts for localization has an example of how to make a DLL out of a resrouce file. In the example, they do the following: resgen string.txt string.resources al /embed...yada yada yada I got the resgen portion working fine, but no where on my PC can I find this al program...more >>

ASPX page prompting for userid/pwd dialog box
Posted by vn at 12/10/2004 1:46:30 PM
I have deployed a simple aspx application on my server(which has windows2003 & iis6.0) and also deployed on my workstation(windows 2000workstation & iis5.0) Application runs fine when tested inside of these machines. But if I try to access this aspx page outside of this machine I get prompted w...more >>

View DICOM (medical) images
Posted by ACaunter at 12/10/2004 1:19:06 PM
Hi all, Does anyone know how to view DICOM images (.dcm) in a picturebox/imagebox in asp.net. dicom are medical images which cannot be altered, but you should still be able to view them, maybe by setting a reference to it... does anyone have any ideas??? thanks -- AdamPC@hotmail.com...more >>

Bullet Lists - but with some white space between items
Posted by Jordan S at 12/10/2004 1:08:46 PM
I have been using the old HTML unordered list in order to have bullet-point lists. But they don't look good because there is no white space between each list item. <UL> <LI>List Item Here etc... How can I get a bullet-point list but also have white space between each item, control indenta...more >>

Keeping track of controls in a DataGrid
Posted by Manuel at 12/10/2004 12:40:31 PM
I have the following DataGrid: <asp:datagrid id="grdPackages" runat="server" AutoGenerateColumns="False" AllowSorting="True"> <Columns> <asp:BoundColumn DataField="ShipDate" SortExpression="ShipDate" HeaderText="Ship Date"></asp:BoundColumn> <asp:TemplateColumn HeaderText="Confirm...more >>

Thread safety when subclassing the Page class
Posted by thechaosengine at 12/10/2004 12:21:46 PM
Hi all, I've declared a class called SecurePage that inherits from the Page class provided by the framework. In this class I've declared a protected member called sessionState and a method called loadSessionState(). loadSessionState initialises the sessionState object when it's called. ...more >>

Need help in FrameBased FormAuthentication
Posted by Pradeep Sabharwal at 12/10/2004 12:18:53 PM
Hi, We developed a frame based .net web application. And using FormAuthenticaion. Everyting works fine but whn session is timed out then login page is there in all three frames. How this thing can be avoided. We tried it using target top, parent but nothing worked for us..... Please help it...more >>

How can i solve this problem?
Posted by Miguel Dias Moura at 12/10/2004 12:18:48 PM
Hello, I have this code: 1) <script runat="server"> 2)Sub Page_Load(sender As Object, e As System.EventArgs) 3)Dim keywords() As String = Request.QueryString("search").Split(CChar("")) 4)End Sub </script> When I use, for example, page.aspx?search=asp%20book everything works wel...more >>

UNC Directory browser with aspx
Posted by dkode8 NO[at]SPAM gmail.com at 12/10/2004 12:02:07 PM
Hello, I am creating an application that uses impersonation to log a user into our domain and then show them the contents of their network share where they store their files. I have all the permissions and impersonation working correctly, Now I have hit a snag on how to get my idea to work....more >>

update record in access
Posted by Mike at 12/10/2004 11:59:03 AM
I'm trying to update an existing record in an Access 2003 db and i'm getting the following error: The following error has occured ERROR [42000] [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement. at System.Data.Odbc.OdbcConnection.HandleError(HandleRef hrHandle, SQL...more >>

Problem loading strongly named assembly within ASP.NET app
Posted by Paul Ingles at 12/10/2004 11:45:20 AM
Hi, I have an ASP.NET Web Application which uses a number of controls in an external strongly named assembly. Whenever I view a page that uses one of the controls within the strongly named assembly a FileLoadException is thrown, saying that "The located assembly's manifest definition wit...more >>

Asynchronous WebService Callback to Force Postback
Posted by Grigs at 12/10/2004 11:35:03 AM
Hello, I have an ASP.Net webform that shows numerous attributes of parts we sell. There is one portion of the form that I have the user click a button to get the information for. I did this for two reasons: 1) not everyone wants to see it every time. 2) Depending on the complexity of th...more >>

Lookin for web timer sample
Posted by Mick at 12/10/2004 11:13:28 AM
Hi, Tryin to do exam web app. I need to insert a timer in my app just to check the time the user did to pass the exam. There's just one page which reload for each question until the last one. How could I do that ? Thks for help. ...more >>

Session Sharing Across the domain
Posted by Suresh at 12/10/2004 10:34:33 AM
how to share Session Sharing Across the domain ...more >>

aspnet_client folder
Posted by MurrayTh at 12/10/2004 10:31:05 AM
Instead of having a copy of the aspnet_client folder in each site's files on a machine, can a virtual directory/application be made with each site's root in IIS to the machine's c:\inetpub\wwwroot\aspnet_client folder? Would this create security issues? If it is OK to do this, should it be a...more >>

ASP.NET and Crystal Reports
Posted by KK at 12/10/2004 10:20:19 AM
Hi I run different kinds of queries and display the resulting data on a ASP.NET datagrid. I want to give a facility to let the user graph selected fields (if logicaly possible) using crystal reports. For example, if the query is; select regions,sales_per_region, <some other fields> use...more >>

Images
Posted by Leonzio at 12/10/2004 10:12:58 AM
I have a Webpage that dynamically loads a series of thumbnail images from a SQL database into a placeholder. The problem I have is that the page displays before all the images have been populated and hence you can see the images slowly populating on screen. the question I have is h...more >>

Need help displaying text in an asp.net table
Posted by Craig HB at 12/10/2004 10:07:04 AM
I am using an asp.net table to display postings in a classifieds website. This is a section of the HTM I am using... <asp:table id="tblAdvert" Width="466px" Height="78px" runat="server" BackColor="Gainsboro" BorderStyle="Solid" BorderWidth="1px" BorderColor="Midnight...more >>

intellisense not working
Posted by David C at 12/10/2004 10:01:39 AM
I have in the ASP.NET appliction have a reference to a class library. While intellisense is not working for any of the classes in the class library. I just get the four from the object class (Equals, GetHashCode, GetType, ToString). Any ideas? I've never seen this happen so consistently. R...more >>

Help with this
Posted by Chris at 12/10/2004 9:55:03 AM
Hi, I am trying to add images to a column based on the result of another column. I created a template column and using a code-behind function this is part of my html for the grid <asp:BoundColumn DataField="status" ReadOnly="True" HeaderText="Status"> <ItemStyle HorizontalAlign="Cent...more >>

Best DataGrid
Posted by Patrick imbault at 12/10/2004 9:41:50 AM
Please I'm looking for the best Datagrid for an ASP.NET application in terms of functionnalities and speed. Thanks Patrick Imbault ...more >>

Response.Redirect from User Control Page_Load
Posted by Marty U. at 12/10/2004 9:41:02 AM
I have a Session variable I need to check the value of. If it is value a then redirect to some page. I need to implement this in a user control that is on all the relevent pages. I placed the if and redirect statement within the page_load of the user control. However, when you try to acces...more >>

Datagrid Missing
Posted by JJ at 12/10/2004 9:39:03 AM
Hi, I have a datagrid on my aspx page and its properties are set for Visible = true and enabled = true but datagrid doesn't show up at all. I don't have a datasource attached to it yet but I should still see the grid, correct? JJ...more >>

My session dead
Posted by CarlosOrtiz at 12/10/2004 8:59:09 AM
I have a lot of troubles with my users because they are using my asp.net app and thw session dead , but they are working filling a form. They don't have the appi alone for 10 minutes or somethign like that, they area working, filling dropdown lists and, apparentely wthout a cause, the session ...more >>

Any problems with writing the information into a file - Multi-users perform writing the same file at the same time ????
Posted by HNguyen at 12/10/2004 8:54:07 AM
Hi, I have a Web application in ASP.NET. My Application allows the users upload files into the server after checking their user names and passwords. For each transaction, the Web program will write the information about user name, filename upload, filesize, date and time of uploading into th...more >>

webform and C# code
Posted by msuk at 12/10/2004 8:53:04 AM
All, I have a dropdown list box that when a user clicks on it i would like to run some code within the webform1.aspx I have the following <asp:dropdownlist id="ddlLocation" OnClick="check_click" runat="server"> check_click is defined as follows within the header tag <script runat=se...more >>

opening a web page with information
Posted by Rani at 12/10/2004 8:46:48 AM
hi guys, first i don't know if that's the right place to post such a posting if it isn't please direct me to the right newsgroup. second i would like to open mapquest with my office address already in it, how do i do that ? thanks ...more >>

Page State
Posted by Jeremy Ames at 12/10/2004 8:44:09 AM
I am having issues with keeping form field values between pages when navigating using the back command on the browser. I have a form that a user fills out, and they click a button that will take them to another page to view the information, a preview page if you will. This preview page has a ...more >>

Need "graffiti-type" graphic password
Posted by Bill Borg at 12/10/2004 8:07:02 AM
Hello all, Not sure what to call it, but when you go to some sites, you are forced to retype a graphic (looks like graffiti) password to continue. I presume this is to thwart bots, DOS attacks, etc. I would like to do the same thing for one of my sites. Does anybody know how to generate ...more >>

Sort a datagrid without the help of SQL server
Posted by Ed Chiu at 12/10/2004 8:05:11 AM
Hi, Is there a way to sort a datagrid without the help of SQL server? I usually use ADO.Net to get a dataset from SQL sever then bind it to datagrid. Now I am asked to make datagrid support sorting, of course I can change my SQL statements by adding order by clause for sorting purposes. Bu...more >>

DataGrid Heading
Posted by Jim Heavey at 12/10/2004 7:19:01 AM
I am wanting to change the headers on my datagrid in code because the contrents of my grid are dynamic and I was wondering how to do this. I do not see a property in the datagrid.columns which would allow me to change the headings. Do I have to use one of the events to trap and change the...more >>

What is the best way to do this
Posted by WebMatrix at 12/10/2004 7:15:08 AM
Hello I have a data repeater control. Each row has set of controls with its own data sources; DropDownList,TextBox and buttons. User can add new rows, delete excisting rows and enter data. When user is done entering data and submits the form (clicks "save" button) what is the easiest way to ...more >>

Calendar control and Webform
Posted by msuk at 12/10/2004 6:55:05 AM
All, I have a calendar control that is at the bottom of a webform, now when the user selects a new date on the control the page refresh's and moves back up to the top. Does anyone know how to return to the same position as the calendar control saving the user from scrolling back down to it...more >>

Event not firing for user control inside user control
Posted by vatech1993 at 12/10/2004 6:42:07 AM
I'm stumped on this problem. I've created a user control that dynamically creates 5 linkbuttons in the CreateChildControls method. Each of these child controls is linked to a commandeventhandler, has command name and argument attached and is assigned a unique id. If I use this control on a web f...more >>

maintenance message
Posted by JIM.H. at 12/10/2004 6:33:04 AM
Hello, What is the easiest way to give a system maintenance message to users who try to run an asp.net application. I do not have separate development and runtime environment, I just need to figure out a way to return a message back to user while I am changing application. Thanks, Jim. ...more >>

.Net Quickstarts
Posted by Andrew Chalk at 12/10/2004 5:56:09 AM
When I load the .Net Quickstarts from the Program Files menu the "ASP.Net Quickstarts" link attempts to access http://localhost/quickstart/ASPPlus/ This page comes up as "Forbidden". Does anyone know what's wrong with my configuration and how I change it? Many thanks. ...more >>

More action-form for the same form
Posted by Michele at 12/10/2004 2:59:08 AM
Hi all, I have a form with 3 combobox whitin a asp page called data.asp, whose action form is itself; the first combobox drives the behaviour of the other two. The onchange event of the first combobox is related to a javascript function in which I call the submit method for the form, whose a...more >>

Problems with accessing ASP.NET Session values in ASP
Posted by Anders Jansson at 12/10/2004 2:53:03 AM
Hi! I'm porting an ASP application to ASP.NET 1.1 and having problems with accessing Session values in ASP that were created and initialized in ASP.NET 1.1. For example, I added a variable in an ASP.NET pages Page_Load routine, C#: Int32 Member = 12; Session.Add("Member", U_Member.ToStri...more >>

Using a dynamic ASP page as an email template.
Posted by da at 12/10/2004 1:55:18 AM
I need to send an .ASP page as an email template using VBScript. I'd like to do so using CDONTS or CDOSYS. this is the dynamic email template http://www.womentowomen.info/emailtemplates/grid23.asp?id=122 the script needs to loop through a recordset and send emails using data from SQL 200...more >>

Compare DBNull
Posted by Rajani at 12/10/2004 1:49:06 AM
Hello, I have a table with two fields brand_code Text(2) PK brand_name Varchar(20) Brand_code is generated automatically. If no records are there in the table the new brand_code will be "01" else right("00" & max(brand_code)+1,2) select max(convert(integer,brand_code)) from brands ...more >>

Optimising pages for 640x480 or 800x600
Posted by Chris Podmore at 12/10/2004 1:19:03 AM
This is probably a stupid question but here goes anyway. What's the best way to design web pages that work in 640x480 or 800x600 and above? The pages I have created look fine in 800x600 or above but my boss has just been to a site that runs their desktops at 640x480 and has come back with a...more >>

Displaying DropDownList values
Posted by Kenneth P at 12/10/2004 1:03:02 AM
Hi, I have sec´veral dropdownlists in a webform. One of them show month names 'Jan ... Dec'. When I click on it, it opens and ONLY shows 11 months and a scrollbar, thus I have to scroll to see 'Dec'. How can I get it showing all twelwe months without a scrollbar? TIA Kenneth P...more >>

ASP.NET performance in debug mode
Posted by nospam NO[at]SPAM odysseyzone.com at 12/10/2004 1:00:51 AM
All the documentation says that leaving an ASP.NET application in debug mode has a big performance hit. I can't detect any difference between debug and non-debug modes. Am I missing something or is the documentation wrong? I've been load testing an ASP.NET website (built in VS.NET 2003 in C#...more >>

checking to see if DDL value exists
Posted by Darrel at 12/10/2004 12:31:15 AM
I'm trying to add an extra layer of error checking on a Drop Down List. The list is populated from one table, and then I select the selectedValue from another DB. While it SHOULDN'T ever happen, just incase, I want to check that the selected value actually exists as a value in the dropDownL...more >>


DevelopmentNow Blog