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 > april 2005 > threads for tuesday april 19

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

Array with SQLParameters
Posted by Tim::.. at 4/19/2005 11:40:02 PM
Can someone please tell me how I build an array with all my SQLParameters! I want to do something like the example shown below... (" I know it doesn't work!") I would like to generate all the sql parameters on the fly if it is possible as I have a long form with a load of textboxes that I ...more >>


code behind not connected
Posted by Tom Jackson at 4/19/2005 10:57:17 PM
All of a sudden my aspx page no longer runs the code behind. It is rendered as html. The debugger won't stop on page_Load and none of my processing in the .aspx.cs runs? Thanks. Tom ...more >>

timer control in asp.net
Posted by yoshitha at 4/19/2005 8:43:59 PM
HI, I have a doubt . I am developing an application that is conducting test for the candidates. now my doubt is test duration is 30 min.i am displaying the questions randomly it is working well. now i need to check the duration i have to use timer control on the page. how to use and how ...more >>

Error Deleting Table from Access DB
Posted by Mark at 4/19/2005 7:09:01 PM
Not sure this is the right place for this questions, but here goes: I get an error message when deleting an table from a Access database. The code is as follows and the error message is after it. ***************** Start Code ******************** <%@ import Namespace="System.Data" %>...more >>

Crystal report with stored procedure in subreport
Posted by kenneth xg at 4/19/2005 6:21:05 PM
Hi, I have problem on passing parameters to subreports' stored procedures which require parameters, from an asp.net web form. I ve tried to use the stored procedures on the main report it works fine, however once the stored procedures were put into a subreport, it cause an exception: "...more >>

IPostBackDataHandler.LoadPostData
Posted by brian.mills at 4/19/2005 6:10:02 PM
I've been building some custom controls which have some special functionality with the data I use from a web service, specifically the ability to data bind to attributes (without an accessor method). However I've come accross an interesting issue with using them. I have reimplemented the c...more >>

HTML IMG vs ASP:IMAGE performance
Posted by Gonçalo Boléo at 4/19/2005 5:41:22 PM
I have no need to have server control over an image. What is the best choice to use HTML img tag or asp:image for best performance? thanks, Goncalo Boleo ...more >>

Help with Web Custom Control
Posted by Simon Harris at 4/19/2005 5:40:26 PM
Hi All, I am trying to create a web custom control to handle the banner and footer areas of our website. Our site is, in the main ASP/VBScript driven, making heavy use of include files. I have two problems/queries: 1) Can I include the content of an ASP file in my control? (You can see...more >>



uploading multiple files
Posted by Andy Fish at 4/19/2005 4:59:01 PM
Hi, I have an asp.net form with multiple <input type=file> elements on it. when the form is posted, I get an array of files, but how do can I figure out which one in the array relates to which input box on the screen? do I have to assume that Request.Files[0] always coresponds to the firs...more >>

schedule to start web server automatically
Posted by Zeng at 4/19/2005 4:23:13 PM
Hello, I would like to make sure my web server gets hit periodically every 1 hours or so in case aspnet_wp.exe process gets recycled because memory consumption exceeds the setting limit - it would get relaunched and my code (static) gets to run again. I can put this in a batch file and have...more >>

Access to currently executing Page object
Posted by Chris Newby at 4/19/2005 4:05:17 PM
Is there a static context property that will give access to the currently executing System.Web.UI.Page instance? ... doesn't seem like there would be, but thought i'd ask. TIA// ...more >>

Need help with calling custom Stored Proc from ASP.Net (VB.Net)
Posted by Jack Black at 4/19/2005 3:50:06 PM
Help!! I'm trying to call a custom stored procedure from a VB.Net code-behind page in an ASP.Net application, and I keep getting an error with no real helpful info... Basically, I'm accepting a username and password from a front-end, and performing a simple INSERT into a SQL Server table via ...more >>

protected withevents shadows - how do I use this?
Posted by Brian Lowe at 4/19/2005 3:21:01 PM
I have several aspx pages that include a couple of asp:placeholder controls, an example is myPage.aspx. The page inherits from a custom class 'myClass' which inherits System.Web.UI.Page which lets me ad my own properties and methods to a bunch of pages in my app. I want code in myClass t...more >>

Datagrid
Posted by cooltech77 at 4/19/2005 3:01:02 PM
hi all, I am a newbie and i need some help.I have datagrid on my asp.net page which has hyperlink columns. the datagrid configuration in the aspx page is as follows <asp:DataGrid id="dgNewsLinks" DataKeyField="News_ID" runat="server" Width="283px" AutoGenerateColumns="False" GridLines="Non...more >>

asp.net compile options
Posted by robin9876 NO[at]SPAM hotmail.com at 4/19/2005 2:37:40 PM
What are the differences for Compile project as debug instead of release? If a project is compiled as release and then needs to be debugged, is setting the value in web.config debug=true the only change required? ...more >>

files required for asp.net debugging
Posted by robin9876 NO[at]SPAM hotmail.com at 4/19/2005 2:36:20 PM
For debugging .aspx files with only .dll and .pdb file deplyed, are there any other files required to debug? ...more >>

server side or client side buttton
Posted by csgraham74 NO[at]SPAM hotmail.com at 4/19/2005 2:29:13 PM
Hello again!! my understanding of the principles of this stuff are a bit vague so i apologise in advance - sort of thrown in at the deep end. Anyway - I am working on a project at the minute and i have created a button using the following code. <asp:button id="Button1" onclick="upload" run...more >>

Lock Print Screen and File Print
Posted by Bryan Shaw at 4/19/2005 1:57:22 PM
I do not want my users to be able to copy and paiste anything on these web pages, which will be on an internal web site. Is there a way to prevent the printing of a web page? Is there a way to lock the PrtScn key from doing a screen shot? Thanks! Bryan Shaw bshaw@amerexenergy.com...more >>

ASP.NET Worker Process Account
Posted by Ajay Choudhary at 4/19/2005 1:44:20 PM
Hi, I am trying to figure out the default Worker Process Account for ASP.NET Worker Process. Following is my list - IIS 5.0 on Windows 2000 - ASPNET IIS 5.0 on Windows 2000 with Domain Contoller - IWAM_<machine name> IIS 5.1 on Windows XP ...more >>

Request.ServerVariables("HTTP_REFERER") contains nothing; why?
Posted by Jake at 4/19/2005 1:34:12 PM
I need to know whether a request for a resource on our web server is coming from a particular affiliate domain or from another domain. In my testing, the HTTP_REFERER variable sometimes is empty. Under what circumstances can it be empty? Is there any way to know the origin of a request, for certa...more >>

SMTP email problem
Posted by venky at 4/19/2005 12:50:42 PM
Hello all, I wrote a small program which sends email to different address. I am using smtp object and i set smtp server as my verizon online. I use to send the email, everything works fine except the mail which gets send to hotmail goes and sits in the junk folder of hotmail. Anyone has any ...more >>

Datagrid paging more than 20 pages
Posted by Kalvin at 4/19/2005 12:20:13 PM
I am using the datagrid. I have allowpaging=true. I load the data and there is about 7000 records. At the bottom there is pages 1 through 10 and (...). The first time I click on (...) it takes me to pages 11 through 20. If I choose 12 it takes me to page 2. If I choose (...) it goes to pag...more >>

Nested Repeater Tutorial please
Posted by D. Shane Fowlkes at 4/19/2005 12:05:10 PM
Hey guys....I tried Googling and search these forums before posting but couldn't find really what I was looking for. I'm looking for a very simple example or tutorial on how to nest Repeaters in VB.NET. It seems everything that I'm finding is in Csharp or is just incredibly complicated using...more >>

Creating script files on demand during runtime..
Posted by Praveen at 4/19/2005 11:29:13 AM
I have script files embedded as resources in my dll. During runtime, I would like to write it out into the app dir (or a app sub-dir) and send the appropriate virtual path to the client. This makes deploying my dll much easier - just a single dll, not having to worry about deploying script f...more >>

preserve previous page state - asp.net
Posted by sri_san NO[at]SPAM mailcity.com at 4/19/2005 11:08:44 AM
Hello, I am working on a website where I need to navigate to the previous page once the user clicks on "back" button. I store the previous page from the "HTTP_REFERER" Server variable and the back works fine. But unfortunately, I am not able to have the user selections preserved on the ...more >>

asp.net app not running
Posted by dave at 4/19/2005 11:07:03 AM
I am attempting to run and ASP.NET application. When I click the start arrow, my entire system locks up and I can't do anything else; I need to reboot my machine. I ran the aspnet_regiis -i command, and ASP.NET is not showing up in the user accounts either. I am running XP Pro with IIS i...more >>

remove space
Posted by Aaron at 4/19/2005 10:54:41 AM
is there a function in asp.net that removes all spaces in output html? so it's harder for humans to read and steal your code. and smaller size too Aaron ...more >>

Dropdownlist setting index to 0
Posted by tshad at 4/19/2005 10:53:19 AM
Is there a way to stop the system from setting the SelectedIndex of a dropdownlist to 0? I have it set at -1 in my code and if I push a button (that does nothing in my test), during PostBack it will be set to 0. I know that when I initially bind it from a table, it will set the SelectedI...more >>

Simple datalist question
Posted by dinesh at 4/19/2005 10:51:02 AM
I'm converting an app written using the pure .net framework from command line, to Visual studio 2003. Having a problem with the datalist that wasnt there before: e:\inetpub\wwwroot\WebApplication2\winelist.aspx.cs(38): The type or namespace name 'MyList' could not be found (are you missing ...more >>

Same header and footer across multiple sites/server.
Posted by Ryan Fiorini at 4/19/2005 10:41:50 AM
I have multiple web sites on different servers, which have the same header and footer code. What is the best architecture to allow for the sharing of the code across the servers? Thanks, Ryan ...more >>

How to change the property of file type?
Posted by david at 4/19/2005 9:11:01 AM
When you right click on a file in windows, there is a property of type of file, which seems to associate this file with an application for it. For example, when you double click on a .doc file, the microsoft word application is activiated and open the file. I have the following question: ...more >>

How to run multiple instances of my site on my development machine?
Posted by David Hearn at 4/19/2005 8:53:57 AM
I have the need to run my web application side by side for testing purposes so that I can compare two copies side by side. Is there any way to do this. I have tried opening the project twice and running each of them but it only works sometimes. Thanks in advance! ...more >>

How to hide .aspx extension
Posted by hn at 4/19/2005 8:51:02 AM
Hi, Is it possible to hide the aspx extension in the URL displayed on the address bar?...more >>

Bound Dropdowns, Postback, & Back Button
Posted by Matt at 4/19/2005 8:44:21 AM
I'm pulling a few records from a table and writing them to a databound dropdown. I use: if ispostback = false then bindcontrols() end if to make sure that it retains the selected value for postback. That all works fine. The problem comes in when I choose to delete an item from ...more >>

How do I assign an ID to ListItem?
Posted by Amelyan at 4/19/2005 8:25:34 AM
How can I assign an ID to dynamically generation ListItem that I add to dynamically generated CheckBoxList or RadioButtonList? I need to identify the specific ListItem later through Request.Form when user sends back data. ...more >>

Do You Want To Know For Sure That You Are Going To Heaven? The reason some people don't know for sure if they are going to Heaven when they die is bec
Posted by RonGrossi382681 NO[at]SPAM yahoo.com at 4/19/2005 8:20:21 AM
The reason some people don't know for sure if they are going to Heaven when they die is because they just don't know. The good news is that you can know for sure that you are going to Heaven which is described in the Holy Bible as a beautiful place with no death, sorrow, sickness or pain....more >>

Basic stuff
Posted by mark.gilkes NO[at]SPAM shoosmiths.co.uk at 4/19/2005 8:14:19 AM
Hi, I am just starting to expore asp.net and I have coded a simple HelloWorld type page using a csharp code-behind file. I have used a <asp:Label /> server control and after wiring up my event handlers I tried to set the Text property of the Label control in the Page_Load method. When my pag...more >>

I don't want the enter key submitting a webform :'(
Posted by fasenjof at 4/19/2005 7:48:04 AM
Hi everybody! I need some help here. I have some .aspx pages in my application with some textboxes, Submit buttons, etc. All of them work perfect, but I don't know why, when I press the Enter key, I leave session and have to login again. I also have a usercontrol (.ascx) which I use in t...more >>

Potentially dangerous script - urgent!
Posted by STech at 4/19/2005 7:40:04 AM
If data you post back contains the following string on<<any sequence of characters>>= example: on2q3asdf= The page will throw the following exception: A potentially dangerous Request.Form value was detected from the client This has been fixed in .Net 2.0. Is a hot fix available for 1....more >>

Crystal Reports and XP SP2
Posted by lee NO[at]SPAM relayworks.com at 4/19/2005 6:57:09 AM
I am using Crystal Reports for Visual Studio 2003 to produced a pdf file and then pushing it out to the browser client using the methodology described by the Microsoft online documentation. This used to open a new browser window with the pdf document displayed inside. However, after a recent ...more >>

Dts works from SqlServer but not from ASP.net
Posted by luis valencia at 4/19/2005 6:54:16 AM
I have an asp.net page that executes a DTS. When I execute that DTS from enterprise manager it takes about 5000 rows from the as400 and insert into sql server It works right. but when I execute it from my asp.net page I have this error. Error al procesar DTS TransferirDatos(ExistMP) en el...more >>

Here's challenge - for me at least!
Posted by Jon at 4/19/2005 5:56:02 AM
Hello all, I'm needing a little help (and direction) for something. Here's what I need to do: Allow a user to upload multiple files to a database asynchronously (so that the upload does not lock their browser). I also don't want lots of file type controls on the form (ideally only 1 and...more >>

CrystalReports, Login Failed
Posted by Åženol Akbulak at 4/19/2005 3:08:01 AM
Hi, I want to use Crystal Reports in my asp.net application. I get this error: ### CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed. ### I have read this solution and then I applied solution: http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B319264 But I still...more >>

how to Calculate Time
Posted by yoshitha at 4/19/2005 12:00:00 AM
hi , am developing quiz application. the questions will be displayed one at a time after clicking next button only the next question will be displayed. for evry test the time to finish this test will be maintained in back end. so i set 75 minutes for a particulat test. after 75 minutes w...more >>

DTS running in C# does not work when processing olap cube
Posted by Joel Leong at 4/19/2005 12:00:00 AM
I use C# to invoke DTS. The DTS run successfully if no process cube function in it. But after i add process cube function, the ASP.NET page hang. I even impersonate ASP.NET to an account with OLAP Administrator and System administrator. it jus hang there. So what is the problem I'm having? It...more >>

Indexed PNG?
Posted by Dylan Parry at 4/19/2005 12:00:00 AM
Hi, I've been searching for the answer to this for a while, but I've had no luck! Does anyone know how to convert an RGB PNG to Indexed on the fly? TIA -- Dylan Parry http://webpageworkshop.co.uk -- FREE Web tutorials and references...more >>

delete button
Posted by Trond at 4/19/2005 12:00:00 AM
I added a delete button to a datagrid. I also added an event: private void dgMessages_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) I added this to event: Label1.Text=dgMessages.DataKeys[e.Item.ItemIndex].ToString(); but the label is not set to the Da...more >>

SQL datetime format
Posted by frank frank via DotNetMonster.com at 4/19/2005 12:00:00 AM
Hello, When I get a value( smalldatetime data type) from MSSQL database out and bind with dataGrid, it will display something like "19/04/2005 12:00:00 AM". Now I want it like "19/04/2005". I'd appreciate any clue ! Franky -- Message posted via http://www.dotnetmonster.com...more >>

disable mouse scroll on dropdownlist
Posted by nicholas at 4/19/2005 12:00:00 AM
On an aspx page I have a webform with an asp:DropDownList control. If the visitor selects a value in the dropdown and than want to scroll down the page, he accidently changes the selected value of the dropdown. So, is it possible to disable this? THX ...more >>

create web application remotely
Posted by Evan Camilleri at 4/19/2005 12:00:00 AM
how can I create a web application remotely? i have access to a server and would like to create a web-application in a folder - if it is my IIS then i right click, properties and press create application BUT how can i do this remotely?? and what rights/ports do i need Evan Camilleri ...more >>

Why does this line compile without error?
Posted by Josh at 4/19/2005 12:00:00 AM
Note the space just in front of ".Add" HttpContext.Current.Session .Add("PeriodSelectedOnTripSummary",value); ...more >>

Response.WriteFile set page title
Posted by Grant Merwitz at 4/19/2005 12:00:00 AM
Hi I am currently using the Response.WriteFile, to write a pdf file to a web browser. This method is working fine and helping me secure the files i need to. However, when a new window is opened and a pdf displayed, the window takes on the title like: http://localhost/getfile.aspx?fil...more >>

A question about website subdivisions and sln:s
Posted by kurt sune at 4/19/2005 12:00:00 AM
I have been thinking about and looking for best practise about how to subdivide a web site into subwebs and how best split aspx pages into different smaller mora manageable solutions. Anybody has opinions or tips? Litterature, articles, links? /k ...more >>

<asp:table> and <colgroup> ?
Posted by Rob Meade at 4/19/2005 12:00:00 AM
Hi all, I recently read a book regarding improving the performance of web pages loading, one of the suggestions was to add <colgroup> and the relevant <col> tags with information such as cell widths and so on. Having understood how this works and what it can do I was keen to apply it this ...more >>

Frame Refresh Only
Posted by Rik at 4/19/2005 12:00:00 AM
Hello Experts, I am new Bee in ASP.Net even in Web development. My first task is to Display three Frames on a form (Done). Every frame contains datagrid bounded by database(Done) Every frame contains one button each frame (Done) Now My task is when I press button on any single frame, it ref...more >>


DevelopmentNow Blog