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 2005 > threads for thursday march 24

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

Sorting a ListBox Control
Posted by Nathan Sokalski at 3/24/2005 10:47:58 PM
I have a ListBox Control for which I would like to sort the ListItems. What is the best way to do this? If possible, can someone show me a simple example? Any help would be appreciated. Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/ ...more >>


Scheduled email distribution
Posted by Thomas I. at 3/24/2005 10:31:42 PM
I would like to schedule at regular intervals an automated e-mail report from a web server. I have the logic written to send the e-mail in C#. However, is there a way I can schedule it? How could I trigger the code to send? Thanks! ...more >>

communicating to vb.net dll
Posted by Wendy Elizabeth at 3/24/2005 8:25:04 PM
I am new to using .net. I am told that I need to setup a config file that will be accessed by a VB.net dll. This vb.net dll will be setup to run every 5 to 10 minutes by a timer that is coded into the vb.net application. A user will submit a request to obtain data from a HP mainframe. This...more >>

Class That use ViewState/session
Posted by Max at 3/24/2005 7:19:12 PM
I need an vb.net class that is invoked from aspx page, that use the viewstate/session object. This class must be store the information into viewstate/session. Can you give me an example ? Thanks ...more >>

Operation must use an updateable query.
Posted by Derek Van Cuyk at 3/24/2005 7:03:10 PM
Hi everyone! I'm trying to write a web application in school that utilizes a MS Access database. I can read and everything fine from it but when I try to add a new record I get an exception that states: "Operation must use an updateable query" I know it has to do with the update command on the ...more >>

Cheap Q: How to execute Javascript on a LinkButton
Posted by Matthias S. at 3/24/2005 6:52:30 PM
Hi, I've got a LinkButton on my webform. The Button, once clicked by the user, should perform some time consuming operation. When the user actually clicks the Button, I'd like to execute some JavaScript at the client asking, if he is really sure that he wants to do that. Only if the user ...more >>

Connection
Posted by Joe via DotNetMonster.com at 3/24/2005 6:48:54 PM
Hi, I'm getting a connection timeout. I have a class function that uses a dataset. I'm calling this function on all the pages. Do you see a problem with the code. Since it's a dataset, I don't see how I can close any connections when the function is called: Imports System Public C...more >>

how to attach javacript to BODY tag via codebehind
Posted by darrel at 3/24/2005 5:59:39 PM
I have a page that I need to attach a javascript to the BODY tag when the page first loads (but not on postback). Is there a way to do that via codebehind? I've attached javascript to elements before like this: Form1.Attributes.Add("onSubmit", "myOnSubmitEventHandler();") But the proble...more >>



No postback after validation
Posted by justin.merth NO[at]SPAM gmail.com at 3/24/2005 5:26:58 PM
Howdy, I've got a webform which contains a usercontrol with several textboxes and appropriate requiredfield validators for each. the validation works correctly except when all of the fields appear to be correct ( no validation warnings ) the submit button does not cause a postback to the server...more >>

remembering user name on login form
Posted by Brian Henry at 3/24/2005 5:06:16 PM
I want to make a login form, but have a checkbox with a "remember user name" option to create a cookie on their system to save their user name and place it into the username text box when they visit the site, how to go about implementing this? any examples out there? thanks! ...more >>

Check Client Browser Type
Posted by Craig G at 3/24/2005 4:45:00 PM
is there a way to distinguish whether a client is using IE or Netscape? is there some sorta check i can run on the Page_Load event? or where would be the best place to do this? Cheers, Craig ...more >>

ASP.NET CustomValidation Won't be fired.
Posted by zlusca NO[at]SPAM gmail.com at 3/24/2005 4:22:02 PM
Hi, guys I have asp.net form contain several textbox controls and one field is userName I want to validate this field to make sure there is no other user have the same userName before saving. so I create a customValidator to do that. The strange thing is that customValidator never fired the v...more >>

timeout error
Posted by simon at 3/24/2005 4:09:50 PM
I have ASP.NET application. This application performs very well for 99% of the time but occasionally I get the following error message: The timeout period elapsed prior to completion of the operation or the server is not responding The proc that is executing is doing a SELECT only. Ho...more >>

Default button setup
Posted by tshad at 3/24/2005 3:52:42 PM
I have 3 objects on my page (textbox,button and linkbutton) When I put something in my textbox and hit "enter", the page gets posted, but nothing happens. I don't go to either of the functions that both buttons are set up for. If I push the buttons directly, it works fine. The Button i...more >>

Static properties
Posted by Mantorok at 3/24/2005 3:37:09 PM
Hi I have an ASP app which references a few static properties in some of the classes. I understand that you should use Session variables, but is it "possible" to have each session "not" reference the same static members. For example if I update the static member on one session this change...more >>

grabbing the value of a radio button (not an asp:radiobuttonlist)
Posted by darrel at 3/24/2005 3:35:44 PM
I'm using some standard HTML radio buttons (to allow finer javascript interaction) on a web page and would like to catch the selected item on postback. Since they are all ID's uniquely, is there a way to grab only the selected item's value? Or do I need to write an if/then statement to figure ou...more >>

Closed DataReader
Posted by Lubomir at 3/24/2005 3:35:04 PM
Hi, I have a class A with a public method GetReader: public OleDbDataReader GetReader() { SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnStr"]); SqlCommand myCommand = new SqlCommand("CMRC_Top10List", myConnection); myCommand.CommandType = CommandTy...more >>

How the ASP.net Page is rendered ???
Posted by ~Maheshkumar.R at 3/24/2005 3:26:19 PM
Hi groups, 1. Can anyone tellme,how the server process and render the asp.net pages , contros etc. 2. What is the really happen during post back event ? For both these question, i need theory + examples if any ?? Thnkz a lot Mahesh kr:R~ ...more >>

SQL connection
Posted by Brad at 3/24/2005 3:07:17 PM
I am building my first ASP .Net web app using VB .Net and I am getting the error: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Where in my program do I set the user or what do I need to configure? I was starting to build a windows app and ...more >>

Sending Reminders.
Posted by hecsan07 at 3/24/2005 2:59:02 PM
I want to write an App to schedule tasks. I need some ideas on how to send reminders to users about their tasks. I should work pretty much like an scheduler. Any ideas how I can accomplish this? HS...more >>

Connecting to internet..
Posted by Paras Sharma at 3/24/2005 2:56:11 PM
Hi all, this is a query more than a problem. I have a task in hand, whose scenario is as follows. i have a window application, using a button on which (say 'upload' or 'download') i need to connect to internet and then open my abcd.aspx page to process the text file passed.. The problem ...more >>

objects retaining values among computers
Posted by cFleury at 3/24/2005 2:55:05 PM
The forms in my application are retaining the values objects have (text box, datagrid, public vars, etc…) among different computers in the network, for example if you as result of entering a name in a text box have a datagrid listing matches from a database’s table, and then walk to anoth...more >>

URL Arguments
Posted by Lee Newson at 3/24/2005 2:45:31 PM
Hi, this should be a simple one but i am having a bad day... can anyone remind me how i can get at the URL arguments on a c# asp page? cheers Lee ...more >>

Pass an array to javascript
Posted by ruca at 3/24/2005 2:43:29 PM
Hi, How can I pass an array string to javascript? I have this: in ASP.NET VB code: -------------------------------------------------------------------- Dim siteName(100) As String Dim siteLink(100) As String Dim i As Integer siteName(0) = "New JavaSc...more >>

online reference
Posted by guoqi zheng at 3/24/2005 2:41:21 PM
can some one recommend a place where I can read many e-book about asp.net (in pdf format or others). Is there such a site???? paid subscription is ok regards, Guoqi Zheng http://www.ureader.com...more >>

Using System.Diagnostics.Process From ASP.NET
Posted by Ram at 3/24/2005 2:15:03 PM
Hey, I'm trying to use the following code inside an ASP.NET project: System.Diagnostics.Process objProcess; objProcess = new System.Diagnostics.Process(); objProcess.StartInfo.FileName=@"c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 \gacutil.exe"; objProcess.StartInfo.Arguments = " /if c:\MyD...more >>

"Remember Me" Functionality
Posted by TCORDON at 3/24/2005 1:32:05 PM
Can someone give me a sample or point me in the direction of one, on how to implement User "Remember Me" option when logging into a website? TIA ...more >>

Web.Config - Session Time Out - Load Balancing
Posted by SMG at 3/24/2005 1:24:23 PM
Hi all, I have two webservers to run my site, with a load balancing software. Question 1 : I am using following setting in web.config file of both the servers. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_...more >>

Advanced (MVP) Question: How VS.NET creates web folders
Posted by JV at 3/24/2005 1:21:41 PM
I'm trying to understand how ASP.NET creates web folders when it creates a new ASP.NET project. I am experienced with DotNet development, but not an expert on how IIS works. Or, this may be a question about FP Server Extensions..... When you create a web project in the default way, VS.NE...more >>

force a file to save to computer
Posted by Brian Henry at 3/24/2005 1:11:37 PM
Is there a way or method to make a file be saved to the computer instead of being opened on the web? we wrote a web client messaging system that uses SSL on our server and when you open a word doc as an attachment it of course opens in the browser... we want to force the user to save it to the...more >>

stored procedure Q...
Posted by Carl San at 3/24/2005 12:53:12 PM
I am using ADO.Net in VB.net application. .Net Framework 1.1. In a stored procedure I have multiple output parameters and multiple result sets. How to code for this in ADO.Net? I have used MyCommandObject.ExecuteNonQuery() when there were only output parameters and no rows were returned ...more >>

Can render message in the calendar control?
Posted by Quentin Huo at 3/24/2005 12:39:51 PM
Hi: I want to present some massages in the calender control. Can I do that? Thanks Q. ...more >>

how to retrieve client machine info?
Posted by Q. John Chen at 3/24/2005 11:00:38 AM
Is there an easy way to get following info of the client machine? machine name OS version IE or Netscape, and there version etc. Lan, Broadbank, or modem connection? Speed? ...more >>

How to use a asp:ListItem as a javascript trigger?
Posted by darrel at 3/24/2005 10:55:30 AM
I have an asp:RadioButtonList. If one of the items is selected, I'd like a text field to appear. I tried using an ONCHANGE event via the codebehind, but couldn't get that to work. Plus, I'm thinking that might not be the most accessible way to handle this anyways. So...I wanted to just atta...more >>

stuck: I cant reach usercontrol's class ..
Posted by Support at 3/24/2005 10:42:25 AM
in asp.net If I have a web usercontrol WUC with code behind Class CLASSWUC and I have a web page that loads the control Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init MANAGEGENERAL = LoadControl("WUC.ascx") MyPlaceholder.Controls.Add(MA...more >>

Data Web Controls & Join SQL Queries
Posted by epigram at 3/24/2005 10:28:38 AM
I'd like to know if there is a best approach, in terms of using the Data Web Controls (i.e. DataGrid, DataList & Repeater), for displaying data that is the result of a query that joins two tables that have a one-to-many relationship. For instance if I perform a query on two such tables, I mig...more >>

Filename of picture retrieved from database?
Posted by grz01 NO[at]SPAM spray.se at 3/24/2005 10:17:26 AM
Hi, I have written a webpage, showpict.aspx, in C# that will fetch a jpg-picture from a database and display it thru a html-tag like: <img src="showpict.aspx?id=23"> where the 'id' parameter tells what picture from the db to display. Problem is, if the user e.g. rightclicks the pict...more >>

null reference
Posted by simon at 3/24/2005 9:57:00 AM
I use session: If IsDBNull(Session("Source")) Then ' this is the line cause an error bindRptSell() End If But I get an error message: Object variable or With block variable not set. System.NullReferenceException: Object variable or With block variable not set. Why? I...more >>

Quick question on Paging
Posted by Rudy at 3/24/2005 9:33:03 AM
Hello Gang, Quick question on Paging on datagrid. Everything works except when I go to the next page, my datagrid dissapperas. I have post.is back on the page load, do i need it on the PageIndex changed as well? Thanks! Rudy...more >>

converting to dbnull
Posted by Tina at 3/24/2005 9:26:08 AM
I have instantiated an insertRow for a dataset. I now want to make the GLCode DBNull. I have tried: insertRow.GLCode = Convert.dbnull insertRow.GLCode = Convert.dbnull(insertRow.GLCode) and several other things. How is it done? ...more >>

Can someone pleaaaase help on this: Image display from SQL Server
Posted by NH at 3/24/2005 9:19:02 AM
Hi, I'm struggling to display an image on asp.net webform (vb.net). The image is stored in a image field in a sql server database. I have read a good few solutions to it and still havnt got it working for the last 2 days. Heres my code... when a user clicks on "View Image" button in...more >>

Sql server and ASP.NET web service
Posted by Vb2Machines at 3/24/2005 9:13:05 AM
Hello, I am in the process of building a web service that will connect to my sql server for data retrieval only. It will have to handle requests from multiple apps on our shop floor. Roughly 5 queries per application every 10 seconds. There is approximately 30 apps. It will be returning an ob...more >>

easiest or best way
Posted by rodchar at 3/24/2005 9:13:04 AM
hey all, i was wondering what the easiest or best way to capture which values in a datarow has changed? For instance, if a user changes a record, i'd like to be able to have the before and after values in variables to work with. thanks, rodchar...more >>

Hidden values
Posted by Roshawn Dawson at 3/24/2005 8:59:52 AM
Hi, Is it possible to pass the value of a hidden field in the querystring? If not, how can you pass the value from page to page without using server controls? Thanks, Roshawn...more >>

viewstate promlem on server2003/iis6
Posted by Amihai at 3/24/2005 8:49:05 AM
hi, I have an ASP.NET application functioning properly on Windows 2000/iis5, built using Visual Studio 2003. The application use viewstate. when move the application to other computer using server2003/iis6 the viewstate didn't work. when I compare between the received html from Windows 20...more >>

Set Radiobuttonlist Value via Javascript
Posted by Alphonse Giambrone at 3/24/2005 8:42:09 AM
Hi all, I have two radiobuttonlist controls on a page. When a user checks 'No' for rblDeleted, I want to automatically set rblSendCard to 'No' and disable it. The javascript function I wrote to do this 'appears' to work on the screen, however, when the page is posted back and I check the val...more >>

Parse / Convert string - i give up
Posted by Lelle at 3/24/2005 8:27:34 AM
sorry for crossposting im not sure i was in the right group hello i want to parse/rplace/construct wahtever a string i get i read with directoryinfo out the root off my webapplikation Dim dirInfo As New DirectoryInfo(Server.MapPath("")) c:\inetpub\wwwroot\TEST i store this in a variable...more >>

DataSet parameter is invalid. It cannot be null.
Posted by rahkim NO[at]SPAM hotmail.com at 3/24/2005 8:26:23 AM
I get this message when I run my project locally. It occurs on every page but the home page that is loaded on startup. However, if I compile the project and put the files on another server, I wont get the error. Strange thing is that I used not to get this error when I ran the project local...more >>

Why does view source show this?
Posted by dgk at 3/24/2005 8:10:28 AM
I'm writing a very simple webpage, one label, one imagebutton, using Visual Studio 2003. I've changed the IP for security reasons as I'm not ready for visitors. The page is in grid mode and is the start page for that site in IIS. The DNS for the site is a registered domain pointing to a dynami...more >>

question about functions and vb
Posted by Kurt Schroeder at 3/24/2005 8:09:02 AM
OK, this maynot be a simple question. Can a function (using vb for asp.net) return a record? if so how is the record passed back? thanks kes...more >>

posting/sending information to another place and remaining in my p
Posted by LU at 3/24/2005 7:19:05 AM
I have a webform and when i go to save information into a database I would like to send some of the saved information to a page that is not in the solution. The information could be sent to a website hosted somewhere esle, but I would stay on my page. Could I do some sort of post to another ...more >>

asp controls vs html objects
Posted by Kurt Schroeder at 3/24/2005 6:53:02 AM
I'm starting to use asp.net objects more often than html object just because thay are easer to change in VS.net My question is do they add a substantial amount of weight to a web page nd should i be avoiding asp controls when possible? thanks kes...more >>

Forms Authentication not working on server
Posted by russell8mccloy NO[at]SPAM hotmail.com at 3/24/2005 6:41:19 AM
Hello there, keywords so you can find this message: russell mccloy server forms authentication InvalidCastException not working after login logon We have an issue with Forms Authentication. I have a site using forms authentications. It runs perfectly on 3 pcs and 2 servers but wont run on o...more >>

IsInRole problem?
Posted by Dave at 3/24/2005 6:21:03 AM
Hi, I'm testing the IsInRole method on my app. I'm using Integrated security so I'm not sure if that has something to do with it. I have a groups table which I want to secure certain portions of my application. In the global.asax: protected void Application_AcquireRequestState(Object s...more >>

Averaging multiple dates
Posted by Matt Hamilton at 3/24/2005 6:19:04 AM
I have a query that returns multiple dates and I want to find the average date... How can I do this? I tried to use the ToOADate() to get the total of the dates as a double, then divide by the number of dates and use FromOADate() to get back to a date, but it does not produce the desired re...more >>

download control?
Posted by dhnriverside at 3/24/2005 5:39:08 AM
Hi peeps, I'm trying to find a control for downloading from my website. What I want to do is allow users to download quite a large file, use the Save As dialog so they can place the file where they like. But *not* use the download dialog. What I want is to display my site with a frame show...more >>

Can I hide a <TABLE>?
Posted by Andy at 3/24/2005 5:27:02 AM
Hi, In my app I have used HTML tables to aid with the layout of the site. i want some tables only to be viewed by some roles. e.g. I have a table called tblAdmin, but when I reference this table in code (to make it visible) I get "the type or namespace name 'tblAdmin' could not be found..." ...more >>

WebForm access to file on local machine
Posted by M at 3/24/2005 5:23:03 AM
Is there a way to call an .aspx file and have it (the downloaded page) access a file in the file system of the local machine where the Web browser runs?...more >>

Upload larger files
Posted by Mohan SRC via .NET 247 at 3/24/2005 4:17:59 AM
Hi, Can any one help me to solve this prblm. When ever i upload files using default FILEBROWSER ctrl, small files are uploaded w/o prbm. But larger files are not uploaded, instead the "PAGE CANNOT BE FOUND" error is shown. I used streams also, but experiencing same prbm. plz....more >>

Accessing functions in dlls from code behind
Posted by shaun duke at 3/24/2005 3:09:54 AM
I have been researching this over the last two days without success. I have a number of ultility functions that I want to make available to all pages. The pages will all be using code behind so my plan is to create an assembly CommonFunctions.dll place it in the /bin folder for the application...more >>

Problem using AzMan url Authorization and HttpHandler
Posted by Renzo at 3/24/2005 3:09:03 AM
Hi, I Have a web application that uses IIS 6.0 URL Authorization and AzMan to control access to URLs based on custom user roles. In some pages there is a custom web control that uses an HttpHandler to generate dynamic images from a database. The problem is that when I Set the wildcard config...more >>

URL Mapping
Posted by Jingxi Chen at 3/24/2005 12:21:02 AM
I want mapping any url to a certain .dll to process. For example I want all requests to URL http://myserver/vpath1 or http://myserver/vpath1/anyfile be redirected to myhandler.dll to handle. One important thing is that the URLs I want to redirect may not physically exit, they could be just vir...more >>

Cookies working on intranet but NOT working on Internet
Posted by Martin Heuckeroth at 3/24/2005 12:00:00 AM
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We have been looking our asses off but can not find a working solution. the code we came up with is ...more >>

DataRelation
Posted by Kevin Davis via DotNetMonster.com at 3/24/2005 12:00:00 AM
Aloha, I have a question when using the Datarelation. I built a dataset and need to use the Datarelation to build parent-child relationships. I have events that may or may not use resources. I have a resources table which has the resourceID, eventID, and amount. My code blows up because "T...more >>

session expiration message
Posted by Brian Henry at 3/24/2005 12:00:00 AM
Is there anyway to when the users loggin session expires (we have it set to expire after 15minutes of no usage) show a "session expired" message page when they try to navigate the site after it did? ...more >>


DevelopmentNow Blog