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 > july 2003 > threads for wednesday july 30

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

running a .bat file from ASP.NET page
Posted by venkat at 7/30/2003 11:59:50 PM
hi all, I am having a web application which needs to runs a .cmd file. How can I achieve that. regards Venkat...more >>

Does Option Strict On add overhead?
Posted by Showjumper at 7/30/2003 11:56:26 PM
By turning Option Strict on, is there extra overhead? For example w/o it on the following doesnt get flagged: validxhtml.Attributes.Add("height", 22) but with it on the 22 is underlined and the message is "Option Strict On disallows implicit conversions from 'Integer' to 'String'.". I then use v...more >>

__doPostBack code block not being generated by asp.net page
Posted by E at 7/30/2003 11:30:39 PM
I have 2 aspx pages... neither of which do anything out of the ordinary. One of the pages automatically generates this block of code when viewed at the client: ------------------------------------------------------------ <form name="webfrmForm" method="post" action="pokedex.aspx" id="webfrmFor...more >>

Printing Web Form
Posted by Yatin Bhuta at 7/30/2003 11:29:30 PM
Hi, I have a web form, which has many text boxes and a few buttons. One of the button is to print the web form. Some of the text boxes are multi line. Due to screen space limitation the height of the multi line text boxes is not enough to display the whole text box's value on the screen. Ho...more >>

Public Constants
Posted by jeff at 7/30/2003 10:25:23 PM
Hi, what is a good way to implement public common constants. like what we do in a common header file in C++. jeff ...more >>

Downloading a file to client
Posted by Ian Gordon at 7/30/2003 10:15:55 PM
Hi, I have 2 problems when downloading a file from my ASP.net app to the client PC. At the moment I'm doing it with the following code: Response.ContentType = "application/octet-stream" Response.AddHeader("Content-Disposition", "attachment; filename=" + strFileToDownload) Response.Writ...more >>

Deployed app update problem
Posted by jeff at 7/30/2003 9:23:32 PM
We have an in house asp.net application . it has been deployed on a webserver. it has the aspx pages and the needed dlls. I have a page with calendar control which has data from the database. Even though the data in the database is updated the calendar is not showing updated data. the page was...more >>

UnLoad Event
Posted by Ron Vecchi at 7/30/2003 9:13:57 PM
Does a page either dump all control rendering html to the response buffer prior to the UnLoad event? Basically I want everything sent to the browser before I execute some possibly long sql queries. I am thinking I could execute the queries in the Page_UnLoad event if everything that will be s...more >>



Session Expired error
Posted by Lenny at 7/30/2003 8:14:58 PM
I have application that uses session variables to preserve data between calls Session expiration time is set to 20 min. Sometimes my users getting error 'Session Expired' even right after they log in to application! Any ideas how to get around this issue? ...more >>

SqlDataReader problem
Posted by Arjen at 7/30/2003 7:21:05 PM
Hello, With my SqlDataReader I select 2 records. Here is a little bit of my code: SqlDataReader dr = documents.GetDocuments(ModuleId); // Load first row into Datareader if (dr.Read()) { // Read it! } // Load second row into Datareader if (dr.NextResult()) { // Read it! }...more >>

An error occurred while try to load the string resources
Posted by Kevin B. Campisi at 7/30/2003 5:51:10 PM
Hi There, I'm really stuck on this one and any help would be GREATLY appreciated. I've got an ASP.net application, that initially, gives me the following error: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. So, from that I cha...more >>

Should I learn VB.NET or ASP.NET?
Posted by TAM at 7/30/2003 5:43:47 PM
Hi, I read that ASP.NET uses VB.NET instead of VBScript. I also read that ASP.NET is a subset of VB.NET. So if I learn VB.NET first then do I have the knowledge for programming ASP.NET applications or do I need to learn both VB.NET and ASP.NET. Thank you. TAM ...more >>

Click Event for TableRow?
Posted by Steve - DND at 7/30/2003 5:29:06 PM
Is there any way to create a click event for a TableRow? It doesn't seem to be built in by default. If anyone knows how this can be implemented it would be most appreciated. Thanks, Steve ...more >>

CheckBoxList
Posted by Tina at 7/30/2003 5:02:11 PM
When I put a CheckBoxList on a web form and then populate it, it grows longer. The behavior I wold like would be more like the Windows Forms CheckedListBox where the control stays the same size and when the data becomes too long, scroll bars appear. Can this kind of thing be done with web for...more >>

alter web.config from asp.net web form?
Posted by eRic at 7/30/2003 4:49:43 PM
is it possible to alter the web.config file from an asp.net web form? i am trying to create an admin tool for a web app. ...more >>

how to reference assemblies from web.configs in subdirs?
Posted by Lucas Fletcher at 7/30/2003 4:42:05 PM
Hello, I was wondering how I can reference assemblies from web.config files residing in subdirectories without having to create a new project for each web.config-containing subdirectory? I would like to use an HttpModule, but only for files in a particular directory, so I add a web.config f...more >>

questions about IE controls
Posted by noname at 7/30/2003 4:23:51 PM
i recently downloaded the IE web controls from here: http://www.asp.net/IEWebControls/Download.aspx?tabindex=0&tabid=1 i've installed and got the samples running fine. now i want to develop with them. 1. how do i get vs.net to recognize the controls (such that intelisense does it's magi...more >>

Microsoft Index Server
Posted by Clive at 7/30/2003 4:06:51 PM
Hi, I have an ASP.Net application and I want to have a search section on it. Does anyone know if... 1 Can I call Microsoft Index Server to do my search. 2 Can I conrol the style/format of the way the results page. Thanks, Clive. ...more >>

.NET training videos!
Posted by pook at 7/30/2003 3:43:20 PM
does any one wher eone can del some .net training videos?????...more >>

Get the name of the current page
Posted by IntraRELY at 7/30/2003 3:32:20 PM
How do I get the name of the current .aspx page using vb.net in asp.net? TIA, Steve Wofford www.IntraRELY.com ...more >>

DataGrid - sorting/paging problem
Posted by Hajime Kusakabe at 7/30/2003 3:18:53 PM
Hi. I have created a datagrid (datagrid1) without any columns on a aspx page. Then aspx.vb adds columns from a database. It is somthing like this .... ================================== Dim myBoundColumnEntryBy As New BoundColumn() myBoundColumnEntryBy.DataField = "Entry By" myBoundColumn...more >>

Imagebutton over a little text
Posted by Edmilson at 7/30/2003 3:17:17 PM
Hi, How can I put a little text below a imagebutton control ? Is there any property ? tks ed ...more >>

System.IO.IOException
Posted by Krissy at 7/30/2003 3:14:22 PM
Hi all, Yesterday we upgraded our server to the 1.1 Framework. (from 1.0) Our project was also converted in Visual Studio to 1.1 Since we have uploaded the project, we are getting an error with one of our pages which is trying to read a list of files from a network share and populate a drop...more >>

ASP.NET - DropDownList Get's First Select value
Posted by Micheal at 7/30/2003 3:03:07 PM
I have an ASP.NET website using C# that has a Web Control DropDownList. The DropDownList is filled by a database call to SQL Server. The problem is that when I click to change what is selected from the DropDownList, it only select the 'first' value in the DropDownList no matter what I select. ...more >>

WEBFORM: Howto open a new browser ?
Posted by Roby SGM at 7/30/2003 2:33:24 PM
Hi. In a webform (VB.NET) how can I open a new instance of the browser ? Thank you Roby ...more >>

Server Error in '/' Application.
Posted by Ellis George at 7/30/2003 2:24:59 PM
Platform: Windows 2003 Server Web Edition We are experiencing the following error: Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Configuration Error Description: An error occurred during the processing of a configuratio...more >>

run aserver side function from a datagrid
Posted by Davef at 7/30/2003 2:17:34 PM
Is it possible to click a DataNavigateUrlFormatString and run a server side function? If now how do you do this? -- ______________________ David Fetrow HelixPoint LLC. http://www.helixpoint.com davef@helixpoint.com Interested in Affordable Email Marketing? Check out the HelixMailer a...more >>

Populating a datagrid from two separate data sources
Posted by John at 7/30/2003 2:11:59 PM
Hi all, I have an interesting situation. I have a datagrid I'm currently populating using a dataset but now I need to introduce some extra records into this. I'm unsure of which method to use. Is it possible for me to populate (fill) a dataset from another dataset and at the same time, make su...more >>

wrapper function for uploading files
Posted by Brian Pittman at 7/30/2003 1:55:50 PM
Hi, I was wondering how to go about creating a wrapper function for uploading files to the server? I have made an attempt on my own without success. I don't get any exceptions from the function but It doens't upload the file either. Any help is appreciated. Brian '********************...more >>

requiredvalidator for checkbox
Posted by SStory at 7/30/2003 1:40:50 PM
Is there no way to require a checkbox to be checked in ASP.NET? The requiredvalidator control doesn't work for it--should I make a server--roundtrip for that and check during the btn_click event? Is there another way? Thanks, Shane ...more >>

Cache question
Posted by asianx74 NO[at]SPAM yahoo.com at 7/30/2003 1:39:19 PM
Via the -global.asax- file, on application startup, the following code does not work: System.Web.Caching.Cache.Insert (works on all other pages ...) whereas this works fine: HttpContext.Current.Cache.Insert Can anyone explain why this is so?...more >>

how to create a pop up "now processing" window?
Posted by David at 7/30/2003 1:30:13 PM
I would like to pop up a small window that tells the user to "please wait" while the server completes a long task (eg. completes an order) and then once the server is done, close the pop-up and redirect to a results page. I understand that it's a combination of server-side redirects and j...more >>

how to load an ascx file in class.vb ?
Posted by Quentin at 7/30/2003 1:29:50 PM
I need to import an *;ascx, as an object, in my class, that is in myclass.vb. How can i do ? i saw the method LoadControl but i can't use it, or maybe i did wrong, if could help me it would be very nice :) Bisous de France et merci d'avance. ...more >>

Application Search Engine
Posted by C at 7/30/2003 1:14:36 PM
Hi, I am starting to develop an ASP.Net app that will have a search section that will allow the user to search the site. I have come across the google search appliance which is quite big. I am currently considering freefind.com search product. Does anyone else out there know of any...more >>

ASPNET user.
Posted by J. Marcelo Barbieri at 7/30/2003 12:05:22 PM
When I install Visual Studio, VSDEBBUGERS and VSDEVELOPERS groups are created. Right? What about the ASPNET user? Do I have to create it manually? thanks ...more >>

how does viewstate appear?
Posted by suzy at 7/30/2003 12:00:39 PM
i am having problems after problems... first i tried to create a page template and finally got that to work. so currently all my pages inherit from a template page class. i am adding controls to my page dynamically (so my html designer has no html code in it). the problem is if i view the ...more >>

RadioButtonList and JavaScript ... Help
Posted by Sean at 7/30/2003 11:54:58 AM
Hi .... I have a radiobutton list and a label in a webform. <asp:radiobuttonlist id="one" runat="server" CssClass="text" AutoPostBack="False" RepeatDirection="Horizontal"> <asp:ListItem Value="one">one</asp:ListItem> <asp:ListItem Value="two">two</asp:ListItem> <asp:ListItem Value="thre...more >>

Hiding the link
Posted by Ronald Celis at 7/30/2003 11:52:38 AM
Does somebody knows how to hide the link for a web page??? something like this I have a webside in http://localhost i have the default.html that redirects the call to a aspx file in http://localhost/test/test.aspx what i want is to hide the display in the address, so even is the user is in ...more >>

Redirect to more than one URL
Posted by mdengler NO[at]SPAM go.com at 7/30/2003 11:52:19 AM
Is it possible to do a Response.Redirect to multiple URLs? I have tried the following and it simply ignores the first redirect: Response.Redirect("test.aspx", false); Response.Redirect(p.UrlSend, true); I have designed the test.aspx page to simple write a cookie, just to see if it is wo...more >>

validator.enableclientscript property set to false and server side validation is not occurring.
Posted by DesignerX at 7/30/2003 11:43:08 AM
Just to insure that my application would work as expected with older and inferior browsers I set the enableclientscript of my validators to false. The validators and the input boxes they check are dynamically created server controls. I have a submit button on the form, I included an isValid() che...more >>

When control init event fired???
Posted by Anatoly at 7/30/2003 11:25:43 AM
Put any control on web page. create Init event for ths control. Write Response.Write("here") inside this event. Compile\build\run. I never saw "here" string appear on web page. Why??? ...more >>

aspx pages not viewable
Posted by Lee Hopkins at 7/30/2003 11:04:48 AM
We have just purchased .net ent. edition for our company. I have installed .net on my desktop where I do the developing of our aspx, and vb.net applications. the Network people installed the 1.1 framwork. I have just built my first page. a few labels/text boxes and a button or two for testi...more >>

Newbie layout question please help
Posted by SStory at 7/30/2003 10:50:41 AM
I am new to ASP.NET, but not to ASP or Visual Basic. I have read much of ASP.NET unleashed first addition. It all looks neat, but I don't understand several things. One thing in particular is that I laid out all of my controls on a form that took a long time to set up--lots of fields. I did ...more >>

Windows identity during asynchronous calls
Posted by Dave Mullen at 7/30/2003 10:45:59 AM
I'm trying to access a SQL server from a thread started from an asp.net application and get a "Cannot log into database as user null..." error. How can I make the thread inherit the same identity as the calling process? When I spin off the thread I have seen that it typically runs as NT ANONYMO...more >>

how to add aspx and the class file separately in VS.NET?
Posted by BH at 7/30/2003 10:27:59 AM
I'm looking at the source code of the ASP.NET forum sample application. It has the "code-behind" classes compiled into a separate DLL, totally separated from the aspx/ascx files. Adding the class files alone in VS.NET is straightforward, but is there a way configure VS.NET to add aspx/ascx fil...more >>

Passing unicode characters in forms
Posted by Matthew Thompson at 7/30/2003 10:27:18 AM
I have as issue I am finding hard to research. I use a stored proecdure in SQL 2000 to provide search capability for our database of news stories and articles. Being an international magazine publisher we use foreign characters extensively. When searching for words (I am using Full Text In...more >>

To run without compiling
Posted by Eddy Soeparmin at 7/30/2003 10:13:11 AM
Hi there, Is there a way to run the app without recompiling each time? Every time when I need to run the app, I press F5 or click on the debug icon (Play) to run it. Then VS .NET recompiles every thing then run it. Can we bypass that? Please let me know. Thanks. Eddy ...more >>

Looking for a quicker way to fill a datagrid???
Posted by Helixpoint at 7/30/2003 9:50:14 AM
Here is my code: Dim availMach As New ASPNETProduct.machinedb() Dim dstMachList As DataSet dstMachList = availMach.GetAvailMach(theSearchVal, theSearchBy, theMachCode1, theSearchView, SelSort, SelSortDir) availMachList.DataSource = dstMachList Public Function GetAvailMach(ByV...more >>

Listbox DataBinding
Posted by babe_jt NO[at]SPAM hotmail.com at 7/30/2003 9:17:48 AM
I am trying to bind data from a database to a DropDownListBox on an ..aspx page. I want to display 2 fields in listbox (listbox's .DataTextField = two fields in the database "Employee.FName" & " " & "Employee.LName" - space in between the names) and also have the listbox's .DataValueField ...more >>

BC30188 Declaration Expected
Posted by mr_nur2000 NO[at]SPAM yahoo.com at 7/30/2003 9:16:24 AM
Can Somebbody pls help me out here. i am new to .net programming, i am trying to connect to an access database and read, but i get the error message 'BC30188 Declaration Expected' this is what i did 'create the connection object Dim objConn As New System.Data.OLEDB.Connection() .. .. .. ...more >>

Application_BeginRequest is fired 2 times each time I do an action on the browser...
Posted by cynic07 NO[at]SPAM hotmail.com at 7/30/2003 8:57:07 AM
Hi, I hope someone could help me with this problem... First, the context : IIS : v5.1 Framework : v1.1 Language : C# I have a main page (default.aspx) which is my server default page. That I open http://localhost/MainProject/ or http://localhost/MainProject/default.aspx, I have the App...more >>

Synchronizing ASP.NET Content Across WebFarm
Posted by Christopher D. Wiederspan at 7/30/2003 8:40:55 AM
We are getting ready to move an ASP.NET application off of a single development machine and onto a "webfarm". Basically our webfarm is a bunch of identical servers with the load-balancing provided by a network appliance. What I'm wondering is what is the best way to keep the ASP.NET (.aspx and ....more >>

Sessions -Setting a timeout in order to re-logon
Posted by Ric Pullen at 7/30/2003 8:37:43 AM
Hi, i've been playing around with the session time out setting in the webconfig. Now i set it at 1 minute and waited in the global.asx in the session end event but it does not fire. What i'm trying to achieve is the following. Forms authentification login : - Done If the user leaves the ...more >>

Back Button and code execution
Posted by John at 7/30/2003 8:32:27 AM
Hi, I have a web form accounting app. In certain instances it causes trouble if the user clicks the Back button. I've read several posts that indicate that it is not recommended (or even possible) to try to disable the Back button. So, what I did was save a session variable with the n...more >>

Initialize dynamic controls on postback
Posted by Mark Miller at 7/30/2003 8:31:16 AM
I have created a number of RadioButton controls during the OnItemDataBound event of a datagrid control. ..aspx file: <asp:datagrid id="dgProductOptions" runat="server" AutoGenerateColumns="False" OnItemDataBound="LoadChildRecords" Width="100%"> codebehind: public void LoadChildRecords(ob...more >>

can i use and *.html file as the body in mailmessage class in ASP.net C#
Posted by khawar at 7/30/2003 8:09:49 AM
i am tring to send email using mail message class in asp.net using C# language. can i use and *.html file as the body arg in mail message class. help bye ...more >>

Client-side Totalling
Posted by Tobe at 7/30/2003 7:08:22 AM
On my web page, in a datagrid, are a bunch of textboxes. I want to keep a running total as the user changes the numbers. It a fairly large page, so I don't want to keep hitting the server. Is there a way to use, clientside, an 'onTextChanged' type function? How?...more >>

Valid list of HTTPResponse.ContentType string types
Posted by Robert Hanson at 7/30/2003 7:07:07 AM
Hi All, I am look for a valid list of string args that can be used with HTTPResponse.ContentType. Thanks for any help!! Bob Hanson CEO Custom Programming Unlimited LLC *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Losing event handlers
Posted by mjsogla NO[at]SPAM hotmail.com at 7/30/2003 6:56:56 AM
I have written an ASP.NET app with C# code-behind. While modifying the code and testing it, I find that I will sometimes lose all event handlers on the page(SortCommand, PageIndexChanged, Load, and ItemCommand). There doesn't seem to be a pattern. Sometimes I make no changes at all and when I...more >>

disable or prevent a button with onclick and javascript
Posted by cruegseg NO[at]SPAM heery.com at 7/30/2003 6:54:55 AM
I scoured this group and others looking for the best way to disable a button after the first click to prevent multiple submissions, but never did find anything that worked like they said it would. I went ahead and wrote my own bit of code so I'm sharing it here for everyone. Even though it doe...more >>

recommendation for a good WYSIWYG editor control
Posted by yoni at 7/30/2003 6:40:20 AM
I'm need recommendation for a good WYSIWYG asp.net editor control to allow web site content managment dynamically. thanks for your help. ...more >>

Using virtual directories for common directories (scripts, images, styles, etc.)
Posted by google NO[at]SPAM vandevuurst.com at 7/30/2003 5:03:48 AM
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of you has some ideas about this. I'm using the NetAdvantage component suite from Infragistics for my web applications. When installing they create s...more >>

custom layout : RadioButtonList
Posted by Christian H at 7/30/2003 3:04:47 AM
Hi! I'm wondering how I can add extra html to a radiobuttonList, so that I can control how: -the whole radioButtonList is rendered. -each of the radiobutton elements are rendered. What I am basically trying to do is to combine x radioButtonlists, so that the output will look like this: --...more >>

Error finding 'System.Web.UI.Page"
Posted by Sanju at 7/30/2003 2:27:30 AM
Hi All, I've successsfully installed VS.net 2003 and when i execute any ASP.NETR application it gives following error. Visual Studio was unable to find a designer for classes of type 'System.Web.UI.Page" Please help as my desinger is not showing anything..Where can i get this class. C...more >>

File Field Control
Posted by Anne at 7/30/2003 2:16:12 AM
hie all, i have dragged a File Field control from the HTML tab to my page and i am able to browse and retrieve the file i want. the only problem i have is, i do not want my users to be able to browse to other folders. i want them to be able to just browse at the specific folder only. in ot...more >>

Trying to start an application
Posted by Kenneth at 7/30/2003 1:42:58 AM
Hi, I've upgraded to .NET 2003 and I opened an .NET 2002 app and let the new IDE convert it to .NET 2003 project. Then I tried to start the application but it keeps on saying "Error while trying to run project. Unable to start debugging on the web server. The project is not configured ...more >>

cache question
Posted by Mike P at 7/30/2003 1:23:53 AM
I've read a couple of articles on cache and setting expiration etc. What I can't find the answer to is - if you don't set an expiration for your cache, what is the default? And when your cache does expire, how do you catch this event? For example, if I have a datagrid which is populated by cac...more >>


DevelopmentNow Blog