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 > january 2005 > threads for wednesday january 5

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

Need help in accessing a control embedded in a repeater
Posted by redmond at 1/5/2005 10:35:01 PM
I am implementing pagination using a repeater bound to an ArrayList. The ArrayList has Prev, 1, 2, 3.. Next values. <itemTemplate> <asp:LinkButton id="lnkPages" value=<%(Dictionary.key)%> item=<%(Dictionary.value)%/> <itemTemplate> I am trying to change style of the LinkButton which is c...more >>


Frames
Posted by MichaelR at 1/5/2005 10:26:20 PM
I have a .aspx page consisting of multiple frames. Is there a way within my ASP.NET code for one of the frames to force a refresh to a .aspx page in another frame? I've seen this done at the client using JavaScript, but I need to do some server side processing and then trigger the reload. ...more >>

SearchForm triggers postback 2 times?
Posted by Torben Philippsen at 1/5/2005 9:20:40 PM
Hi, I have a very simple searchform (an asp:textbox and a asp:button) I have enabled autopostback for the textbox to be able to execute the search method when the user hits the enter key. Ofcourse the search should also be executed when clicking the search button. Therefore I have added a...more >>

Can you render and image in ASP.NET?
Posted by Lars Netzel at 1/5/2005 9:06:57 PM
Hey! Is there any possibility to render images for the web in asp.net? Is it hard? Is there something built in or do I need external commercial components? best regards /Lars ...more >>

Connection pooling issue - Timeout expired.
Posted by mapexvenus at 1/5/2005 8:53:02 PM
I have a .NET application that uses SQL server. After some useage I get the following error: "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached" I looked ...more >>

sending email
Posted by barry at 1/5/2005 8:10:14 PM
The code below is in a button but though there is no error message of any kind I am not getting the email which I am sending to myself. Any help would be appreciated. System.Web.Mail.SmtpMail.SmtpServer = "127.0.0.1" System.Web.Mail.SmtpMail.Send(TextBox1.Text, TextBox2.Text, TextBox3.Text, ...more >>

validation ctrl blocks submit button click event
Posted by Martin Knott at 1/5/2005 8:05:21 PM
Hopefully an easy answer. I've got a form with 1 input field, and a submit button. I register an event for the button, run in debug mode, push the button and sure enough I'm in the event handler. But when I add a validator to the form and connect it to the input field then I never can deb...more >>

Design View cause Vistual Studio to crash
Posted by Timothy Elvidge at 1/5/2005 7:49:02 PM
I have a default page thet causes Visual Studio to crash when opening it in design view. I have narrowed it down to the template colum but have no idea how to prevent this happening. The page compliles and functions correctly. Here is the ASPX code <%@ Page language="c#" Codebehind="defaul...more >>



Form Question
Posted by Miguel Dias Moura at 1/5/2005 6:07:08 PM
Hi, I allways have problems with form elements. I was creating a design where I want a drop down list width to be 100% of the width of the div where it is placed. <div id="myDiv"> <asp:DropDownList ID="search" runat="server" Width="100%"> </div> The CSS is: #myDiv {width=200px;}. ...more >>

Web.config / Application problem
Posted by Jim Lawton at 1/5/2005 5:37:40 PM
Hello Group, I've got a .net application (actually an httphandler) working OK on my local machine. I get certain values from the config file using i.e. Application["XMLFolder"]. I have now uploaded the application to a more realistic webserver location, but Application["XMLFolder"] now r...more >>

% Character is not valid.
Posted by Martin Eyles at 1/5/2005 5:21:49 PM
I get the following error:- c:\inetpub\wwwroot\ \analysis.aspx(1): Character is not valid. ^^^ (not a gap here, but I want to keep the folder name private) from the fist percent character in:- <%@ Page strict=true codeBehind="an...more >>

max number of web service clients???
Posted by Jaime at 1/5/2005 5:13:01 PM
Hi all, I developed an ASP.NET Web Service project using Visual Studio (C#). I'm hosting it on IIS and Windows XP Pro. The web service simply sends back UTC time as a 'double' value at the client's request. The test client I wrote requests this UTC at a 2/sec rate and just displays it. The...more >>

focus on wrong button
Posted by Frederik Vanderhaegen at 1/5/2005 4:49:09 PM
Hi, I've written a sort of wizard in which the user has to answer some questions. This wizard contains a radiobuttonlist en two buttons (back and next). With the first question there's no problem because I only show one button but with the second question the problems start. In the beginni...more >>

Page output caching
Posted by Tim Mavers at 1/5/2005 4:40:50 PM
Is there a setting in the web.config that will enable page-output caching for an entire site? All the documentation I find on output caching deals at the page or sub-page level. I saw a couple posts on Usenet that made reference to a "web.config" setting, but didn't actually state what it wa...more >>

Postback form .NET bug
Posted by Tim Mavers at 1/5/2005 4:34:39 PM
I am having a problem that I swore I read about a long time ago and it was a ..NET service-pack/hotfix bug. The problem right now is that whenever I try to postback on form, it simply does nothing. I distinctly remember the issue being fixed by a hotfix, but I can't remember which one. I ...more >>

is this possible in a datagrid
Posted by Craig G at 1/5/2005 4:08:29 PM
could i have the scenario:- i have a grid that has to contain a notes column. but this notes column is HUGE!! and takes up far too much space. so i need alternate solutions the idea:- in the item template column i have a button and a label (visible = false) the label contains the notes dat...more >>

Using pfx certificate to authenticate a webrequest
Posted by Nelson R. at 1/5/2005 3:47:28 PM
Hi, i need to get some info from a website page that requires an certificate. Ive got the provided certificate installed in IE, and when accessing the website page, it shows a window to select the client certificate and then shows the page correctly. Im trying to do this by code (vs2003 ...more >>

Asp E-commerce Framework
Posted by dandomingue NO[at]SPAM gmail.com at 1/5/2005 3:22:51 PM
What are some good frame work packages for ASP.Net to build E-Commerce sites from? I have found a few, but I need one that is easily customizable and provides all of the source code. ...more >>

sending xml over tcp/ip
Posted by Bob Garbados at 1/5/2005 3:06:56 PM
I need to construct an xml document, send it to a service over tcp/ip to a specified port, receive the xml response, and process the xml response. I can create the xml document to send, but what's the best way to move the data from an XmlDocument to a Byte array? Currently I paste the xml into ...more >>

office web components
Posted by Loane Sharp at 1/5/2005 3:04:36 PM
Hi there I'm producing charts on the fly using Office Web Components and VBScript in my ASP.NET application. The problem for me is that VBScript (which I'm new at) and VBA (which I have a bit of experience in) use fairly different code to achieve the same thing. If I take a previously pr...more >>

Determining ContentType for binary attachments
Posted by Stephen Walch at 1/5/2005 2:25:25 PM
I have seen many examples on the web for downloading attachments ffrom ASP.NET forms using response.WriteBinary, but they all use hard-coded ContentTypes (for example, Response.ContentType = "application/pdf"). Is there a good way to "guess" the content type for arbritary file name? Every ...more >>

Request has timed
Posted by laks at 1/5/2005 2:02:38 PM
Hi all I have the following piece of code for retrieving some info from an external url. I receive an error - "The operation has timed-out" at GetResponse() line. I have tried extending the time out duration. I dont have any SETI etc on my computer. Anything wrong in code? how can i resolve m...more >>

Button Problem
Posted by Rahul Borade at 1/5/2005 2:00:11 PM
Hi, I am facing one problem. I have 2 pages in my application. Page1.aspx and Page2.aspx On Page1.aspx I have one asp button. By clicking that button I redirect the page to Page2.aspx. Page2.aspx page load event takes 30 seconds to execute. So for that, I want to show a message to the U...more >>

check if selection is made
Posted by Andy G at 1/5/2005 1:49:49 PM
I want too validate a DropDownList box. I need to make sure the user selects one of the choices in the box except for the item with the ID of x (the number one in this case). What is the best way to check this? Thanks Andy ...more >>

RegularExpressionValidator
Posted by nzanella NO[at]SPAM cs.mun.ca at 1/5/2005 1:25:51 PM
Hello, It seems to me that the ASP.NET RegularExpressionValidator ASP.NET control only works whenever the input field is not empty, which means that in most practical scenarios this will have to be combined with a RequiredFieldValidator. Is this correct? I would like to know where this is doc...more >>

datagrid design question
Posted by JJ at 1/5/2005 1:19:04 PM
Hi, I am using a datagrid to display employee time sheets and need a running total for datagrid. So I am wondering since I am displaying totals in footer, should I use maybe a new datalist or datagrid for new records? So basically have 2 grids one for updates and the other for new record...more >>

pass value to user control from aspx
Posted by pei_world at 1/5/2005 1:07:41 PM
I have a user control: - using LoadControl("MyCtrl.ascx") MyCtrl _mycontrol = (MyCtrl)LoadControl("MyCtrl.ascx") Page.Controls.Add(_mycontrol); _mycontrol.Text it will be loaded when some events fired. so how can I pass value to this user control from aspx template file. ...more >>

Easy SQL Question - Newbe
Posted by Ryan Smith at 1/5/2005 1:07:01 PM
I am trying to insert data into an access 2k3 db and receive an invalid syntax message. The statement is: INSERT INTO Users (UsrName,Username,Password,UsrStatus,UsrType) VALUES ('TESTNAME','TESTUSR','TESTPASS',0,0) DB looks like the following: (ID=Autonumber)(Username,Password,UsrName =...more >>

DropDownList: possible to add new rows after the DataSource has been set?
Posted by Jim Bancroft at 1/5/2005 12:35:09 PM
Hi everyone, I'm have a DropDownList that populates itself from a DataTable. Is there some way to "append" additional rows after the datasource has been attached? For example, I'd like to bind my DropDown, then add an extra row for a default entry that'll appear no matter what data ...more >>

Splitter and Tabs
Posted by Lionel at 1/5/2005 12:21:05 PM
Hi, Is there a control in ASP.NET like the splitter one in C# ? Same question for the TabControl or an equivalent ? Thanks, Lionel. ...more >>

Problems in VB.NET and Web Application Creation
Posted by Brian at 1/5/2005 12:16:50 PM
Hello.. I can't create a web application using the web address of my test server, however I can get into it via FrontPage Extensions. I am fairly new at this so I hope I can provide enough info. The error I get is: The UNC share at (my location) does not exist or you do not have access. ...more >>

Modify page title on every page in application
Posted by MattB at 1/5/2005 12:09:06 PM
I'd like to preface every page in my application's title with some text. I have what I think is a good idea on how to do this, but I'm not sure how to refer to the current page from global.asax.vb. My plan is to put some code in the Application_BeginRequest event in global.asax.vb or in a ...more >>

How to remove all from asp:Table control?
Posted by TomislaW at 1/5/2005 11:49:58 AM
I have asp:table that is binding from database sometimes i need to remove all from table how to do that? ...more >>

Stop VisualStudio from closing the browser?
Posted by Raterus at 1/5/2005 11:23:59 AM
Hello, I'm using Firefox now as my VisualStudio 2003 browser for debugging my = asp.net applications. It's great, when I debug, a new tab is opened = into Firefox, and I can debug normally. My only problem is when the = asp.net application closes, VS axes the whole browser! If any other = ...more >>

Two Authentication
Posted by Boozer at 1/5/2005 11:23:04 AM
I have a portion of an application that needs to be protected by forms authentication and another portion that does not. I have created a subfolder and put different web.config files in each. That all works fine. The only problem is that the code-behind forms can't find the project dll. If...more >>

Java Script in Master Page
Posted by y2rottem at 1/5/2005 11:02:42 AM
Hi all, I am trying, to use form fields and a Master page: I have a form built within the <asp:contentpage>. trying to read its fields using JavaScript I get errors.viewing the generated html source i realized that all the controls got a different name "ctl00...<original name>". how should i r...more >>

Can I use multiple web.config ?
Posted by George at 1/5/2005 10:57:40 AM
Hi, Is it possible to specify the location of a web.config file in an ASP.NET application? I have one ASP.NET application which is to be hosted on 2 web sites in the same web server. I want to configure the 2nd web site as virtual directory so that the 2 web sites are pointing to the sa...more >>

Web Config Error?
Posted by Sam at 1/5/2005 10:54:33 AM
Inquiry? -------- I would like to authenticate all subdirectory via asp.net at Windows Server 2003 and IIS 6.0 but it prompt an error message as shown as below: Runtime Error? -------------- Description: An application error occurred on the server. The current custom error settings for th...more >>

Samrt Client ?'s
Posted by Deasun at 1/5/2005 10:41:02 AM
Ok i created a winform and compiled it. Ran it fine, it comes up and shows the form. I create a wbepage and put the following link on it. <html> <body MS_POSITIONING="GridLayout"> <a href="winformtest.exe">Call executable</a> </body> </html> When I run this in IE it keeps...more >>

Custom Event Handler
Posted by SDF at 1/5/2005 10:39:00 AM
Hello, I need to create and handle my own Events complete with my own EventArgs. Default.aspx has an HTML Button that opens Page2.aspx in a new frame, I need the user to set some params and then have Default.aspx post back and do something with the params. I am using window.opener to get De...more >>

More Threaded Cache Loading questions...
Posted by Weston Weems at 1/5/2005 10:15:48 AM
Ok, heres my application lifecycle.. Application_start->spawn thread with fetchcache() which calls some static business methods to fetch data etc and while I can tell that the threading there is working, it appears to still tie up those underlying business methods. Could it be that my sta...more >>

Setting Emplorer window properties
Posted by Angel at 1/5/2005 10:13:04 AM
Is there anyway to set certain display properties of internet explorer window when you are in a certain page. i know that when you use window.open() function you can set it there, but I want to be able to set these properties without having to open a new window. how would you do that? thank...more >>

File Download Not Working
Posted by ACaunter at 1/5/2005 9:49:01 AM
Hi there, when one of my pages loads up, the download dialog box pops up to download a file.. but the window turns all white and even after you download the file, the window stays white.. what should i do??? also, on one of my other pages, when i download a word document.. it somehow au...more >>

RadioButton GroupName does not work !
Posted by Mick at 1/5/2005 9:44:34 AM
Hi, Got a repeater which display question answers and which contains a placeholder. In the ItemDataBound Event, I insert a Radio Button for each answer and set their GroupName with the Question Id. Anyway, when I display my aspx page, I can check ALL radio buttons at same time ! What am I d...more >>

Use variable within HTML with ASP.NET
Posted by Jason at 1/5/2005 8:44:40 AM
I have defined a global variable in a global_variables.vb module in my ASP.NET application. Now that this variable is defined, how do I reference it within the HTML code of the ASPX page? In classic ASP, I could do the following: <% dim lcImagePath lcImagePath = "/mywebroot/images" %> ....more >>

HTMLInputFile control...
Posted by Jeti [work] at 1/5/2005 8:27:03 AM
I have a HTMLInputFile control placed onto the page, and everything works fine, except persisting its state... When user clicks "submit", I check some things on the server, and open the same page, filled the way user filled it... But I cant set HTMLInputFile control with the same data... Examp...more >>

pbm opening a web application project
Posted by (vinyaraghavan NO[at]SPAM mailasia.com) at 1/5/2005 8:19:38 AM
Hi, I'm not able to open a new web application project or an exicting one in VS.net. It just hangs when i try to open that. But i'm able to open the console appl. in the same. Please do help me out with this pbm. Thanks, vinya **************************************************************...more >>

Verify File Exists
Posted by MrMike at 1/5/2005 7:51:10 AM
This is a tough one, but here goes. I have a webform textbox where users input a filepath. For example: \\servername\sharename\file.xls. Is there anyway that I could use VB code to verify that the filepath and filename are valid after the user has input them? Basically this would serve t...more >>

Javascript and validation
Posted by M NO[at]SPAM at 1/5/2005 7:15:10 AM
Hi, it's possible to append a custom action to a client-side verification of a validation control ? I have a validator summary control that shows (automatically) a message box if the validation of the validators in the page fails; after the user close this message box I have to perform a clie...more >>

Frame for Response.Driect or Server.Transfer
Posted by Chris Podmore at 1/5/2005 7:09:03 AM
This is driving me mad so any help will be much appreciated. I have an html page with 3 frames, banner, left and right. The banner frames source is an aspx page. The aspx page has two buttons, both need to run some code and then redirect the user somewhere else. The problem is the redirected ...more >>

The viewstate is invalid for this page and might be corrupted
Posted by RJN at 1/5/2005 7:07:09 AM
Hi In the production environment I frequently find this error logged in the log file. at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadPageViewState() at System.Web.UI.Page.ProcessRequestMain() *** The viewstate is invalid for this page and mi...more >>

Why 2 Clicks To Use Buttons??
Posted by ACaunter at 1/5/2005 6:59:09 AM
Hi all, i was wondering why my buttons need 2 clicks to work. first time it just refreshes the window, and then the second time it will work... I am using ASP.NET and webforms buttons.... The weird part is that some of my buttons work fine, with 1 click, and a bunch don't... usually when i...more >>

Cancel Left-Click Options
Posted by ACaunter at 1/5/2005 6:49:04 AM
Hi there, I was wondering how to stop the user from being able to left-click on a picture and being able to save it or anythings... there should be no options of left-clicking a picture how would i do that?? thanks -- AdamPC@hotmail.com...more >>

opening a new browser
Posted by Craig HB at 1/5/2005 6:41:02 AM
Is there a way I can open up a new browser from a web page; that is maxmised, has the address bar hidden and goes to a specific URL. I have tried using the javascript, Windows.Open, but the browser that opens is not maximised and the user can't maximise it because the max button is unenable...more >>

Working With Times
Posted by ACaunter at 1/5/2005 6:37:08 AM
Hi all, I needed to know if there was a way to count the hours a user has been logged on for. When they first log in, i record the time and when the logoff i record the time, but now how would i subtract them.. specially if they log on at 2300hr and log off at 1am in the morning.. thanks ...more >>

Put Icon On Browser Window
Posted by ACaunter at 1/5/2005 6:35:05 AM
Hi there, I was wondering how to put an Icon up in the top left corner of the browser window?? also, is there a way to know if the user closes the browser window with the X in the top right corner.. i wanted to open a goodbye page if the user clicks that... thanks! AdamPC@hotmail.com...more >>

Microsoft.Web.UI.Webcontrol Treeview
Posted by Hutty at 1/5/2005 6:19:09 AM
I would like to convert the code below into an asp.net application where I can run it via the web. It works ok for vb.net, but my goal is to do it through the browser. I have in a few areas, in particular the "application.startuppath" where it's not part of the System.Web. HttpApplicationS...more >>

Log Out Progress
Posted by ayunie1402 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 1/5/2005 6:01:40 AM
How to log out and user cannot see back the page before log in back *-----------------------* Posted at: www.GroupSrv.com *-----------------------*...more >>

How to TimeOut a long running Request ??
Posted by Shalini at 1/5/2005 5:39:08 AM
If I have an ASPX page that is just sleeping for 3 minutes ormore and later does some processing and the ExecutionTimeout parameter in the machine.config is 90 seconds then the page does not timeout after 90 seconds. Even if the ExecutionTimeout parameter in the web.config is set or the Serve...more >>

Unable to timeout a long running request
Posted by Microsoft Centre Of Excellence at 1/5/2005 5:37:08 AM
If i have an ASPX page that is just sleeping for 3 minutes ormore and later does some processing and the ExecutionTimeout parameter in the machine.config is 90 seconds then the page does not timeout after 90 seconds. Even if set the ExecutionTimeout in the web.config or the Server.ScriptTimeo...more >>

Deploying .NET C# App - Works on my XP box but not our 2003 Server...
Posted by Zanthor NO[at]SPAM hotmail.com at 1/5/2005 4:44:31 AM
When installed on my local machine it works perfectly, behaves normally, etc... but I take the same installer package and put it on my intranet server... and when I try to run it, I get the following error. [WebException: The request failed with HTTP status 401: Unauthorized.] System.Web.Ser...more >>

DataGrid
Posted by sara at 1/5/2005 4:31:03 AM
Hi to all i have a data grid that it's bind to a data reader i want to add coloum to this data grid that contain index {1,2,3,.....} can i do that ?? ...more >>

I need help with datalist
Posted by student at 1/5/2005 4:11:45 AM
Hello all and thanks for all of the help. I am currently learning how to display data in a dataList. The problem here is that the data from the database is not being displayed completely. Only the first row of data is displayed and repeated on every row afterwards. Here's the code, please help, ...more >>

DataGrid
Posted by sara at 1/5/2005 3:53:02 AM
Hi to all i have a datagrid that i load it at runtime can i color certain row with certain condition ...more >>

Invoking Page_Unload from a C# code behind module
Posted by Andrew Vickers at 1/5/2005 2:43:02 AM
Hi, I'm just trying to manually add a page_unload function in my code-behind module, but with no success. Can anyone help me with the correct syntax to add the function to my code? I've tried the following already with no joy: protected void Page_Unload(object sender, System.EventArgs e)...more >>

Structuring of large application
Posted by Damien at 1/5/2005 1:56:55 AM
Hey guys, I'm currently developing a reasonably sized application, which is expected to grow in the future. At the centre is the User login facility - everyone using the site must log in. Thereafter, various different services may be available to the user, dependant on how they are set up -...more >>

how to pass value to my user control
Posted by pei_world at 1/5/2005 12:49:50 AM
I have a user control: - using LoadControl("MyCtrl.ascx") MyCtrl _mycontrol = (MyCtrl)LoadControl("MyCtrl.ascx") Page.Controls.Add(_mycontrol); _mycontrol.Text it will be loaded when some events fired. so how can I pass value to this user control from aspx template file. ...more >>

Custom Page Control
Posted by James Thomas at 1/5/2005 12:19:18 AM
Hello - I am attempting to override the Page control so it outputs a simple copyright message at the bottom of every page. The problem I'm running into is that it puts said message below the </html> tag, which is not compliant. How do I force this message to appear just above the </body> ...more >>

Problem with AS.NET Validation Controls
Posted by Mike at 1/5/2005 12:13:14 AM
I hope someone can shed some light on this for me. I just finished developing an ASP.Net App in C# on my PC. When I run it locally all of the validation works perfectly. When I copied it out to one of our production web servers the validation on one of the pages doesn't work at all. So as...more >>

Drop down list
Posted by sara at 1/5/2005 12:09:01 AM
Hi to all i have two drop down list when i select a certain item in the first one i load items to second one but when i select first item in first list no action is make why ?? any ideas?? ...more >>

size restriction on input type=file
Posted by z f at 1/5/2005 12:05:50 AM
Hi, i work with a vb.net asp.net web application. i have a web-form with an input type=file runat=server and it's working OK until i tried to upload a file of 4MB. it works with 1.78 MB i didnot check for sizes between 1.78 to 4 MB with the 4MB file i get a page failure and it not enter into...more >>


DevelopmentNow Blog