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 thursday april 21

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

Cannot open database requested
Posted by Gopalan at 4/21/2005 11:31:20 PM
Hi Simple for you. Cannot open database requested in login 'TestDB'. Login fails. Login = failed for user 'Computername\ASPNET' The user is given permission for accessing this DB the connection string is: "Server=3Dcomputername/sqlInstanceName;Trusted_Connection=3DYes;Database=3D= D...more >>


Images are not getting displayed when using HTTPHandler
Posted by Hitesh at 4/21/2005 10:52:02 PM
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are displayed. Can anybody know this issue and help me to resolve this. -- Thanks Hitesh...more >>

Not able to call Reporting Services reports by using HTTPHandler
Posted by Hitesh at 4/21/2005 9:53:01 PM
Hi, I have written an HTTPHandler that will take the request from clients browser and in-turn visit the reporing server running on HTTPS and retrive back the reports on the client's browser. But while doint that i am always getting 'ProtocalError' exception. With the error message: "The r...more >>

DataSet versus DataReader. Which one to use? Thank You.
Posted by Shapper at 4/21/2005 8:58:27 PM
Hello, I want to retrive N records from a database (I am using SQL and Access in 2 different projects): id class text 1 book book comments 2 paper paper comments .... I will filter records according to "class" field values. I will allways get ONLY 2 to 4 records wh...more >>

Cultureinfo with Date in Config
Posted by SMG at 4/21/2005 8:32:00 PM
Hi All, Can I put the culture information at a single place like some setting in config file, and just use it on every page where ever I require it. i.e. Just create the date object and culture info is by default attached to it as it is specified in web.config Regards, Shailesh G ...more >>

Exception Not Caught on Production Server
Posted by Axel Dahmen at 4/21/2005 7:12:08 PM
Hi, although I've created a try-catch construct embracing my code, my production server does not catch an exception like the following: try { string a[]=new string[2]; a[0]=a[2]; -- error } catch (SystemException err) {...} If run from my debugging server the catch statement...more >>

Resizing web form
Posted by Saket Mundra at 4/21/2005 6:44:04 PM
I want to resize my web form. I want that whenever the form loads on client's machine it opens with a defualt size specified by me. Also it should not be possible for the user to change the dimensions of the form after it is loaded i.e the size of the form shall remain fixed. Pls help out. ...more >>

Web Custom Control (Button)
Posted by Steven at 4/21/2005 6:40:50 PM
Hello, I'm creating a list of buttons in web custom control. When I'm creating them I'm giving the name of each button as this.UniqueId. But this is aslways giving me the "WebCustomControl1" as the UniqueId. So for each button the UniqueId is "WebCustomControl". Is there anyway I can decla...more >>



Check a download
Posted by Steph at 4/21/2005 6:17:49 PM
Hi, The users on our website can download pictures. I need to store in the database the id of each picture downloaded, but only if thedownload is completed. Is there a way to do that. I mean, is there a way to check if a download is canceled before it is finished ? Thanks. ...more >>

HTML question
Posted by simon at 4/21/2005 6:07:40 PM
I have simple question: The red table should be the same height as the blue one because it has set the height to 100% but it's not. How can I solve that problem? <html> <head> </head> <body> <table border=1><tr><td> <table bgcolor=blue> <tr><td><p>hhhh</td></tr> ...more >>

send mail not working
Posted by nicholas at 4/21/2005 4:05:46 PM
Why is this not working? I get no error, but no mail is sent. Thanks ! ######## code: ######## Dim objMM as New MailMessage() objMM.To = customeremail1.text 'I even replaced this with a simple email: still not working objMM.From = "mail@mydomain.com" objMM.BodyFormat...more >>

Odd Checkbox action
Posted by Casey at 4/21/2005 3:48:03 PM
I have this page. It has 3 textboxes and 4 checkboxes, and 20 or so hidden lables. When one of the checkboxes is checked, it will display data by making some labels visible, and others invisible. Everything works fine, except when the page is firt loaded, and one of the boxes it checked, it p...more >>

Size limit for web.config, and how is it stored in memory
Posted by Mike Sharp at 4/21/2005 3:36:46 PM
Hi all, I have a few questions. 1. Is there a practical maximum size for a web.config file? Point of diminishing returns? My reason for asking is that I am storing a fairly large amount of application configuration info in web.config, processing it with a generic configuration section ha...more >>

System.Net.WebClient Best Practices
Posted by jmhmaine at 4/21/2005 2:59:02 PM
I've used the WebClient class on a few projects but I wanted to know if anyone could point to the good resource for Best Practices with this object. The two things I haven't seen in sample code are: 1. How to retrieve connection error messages, such as a DNS resolution error or connection d...more >>

ASP.NET 2.0
Posted by suresh_C# at 4/21/2005 2:55:04 PM
Dear All, When will the final [Production] version of ASP.NET will come in the market. Thanks ...more >>

Visual Studio 2005 (Beta 1) and auto-generated partial classes
Posted by C.Batt at 4/21/2005 2:40:40 PM
Long, annoying story: I'm having trouble viewing the auto-generated code of an aspx web form. There doesn't seem to be a "show all" (or "reveal all" or anything like that) button in the solution explorer window. All I can see in the solution explorer, for a web site type of project, are the...more >>

Newbie needs a kick
Posted by ACE FAN at 4/21/2005 2:08:00 PM
Hi, How do I have a link in one frame that shows a webform in another frame? I am having trouble locating tutorials or help on this. Thanks. Curt ...more >>

Search Engines
Posted by AGB at 4/21/2005 1:41:28 PM
Hi all, I know this is a little off topic but I have been tasked with implementing a search engine in my website. Does anyone have any suggestions...I have looked at Google and Verity. Thanks ...more >>

IE and Caching
Posted by tshad at 4/21/2005 1:01:25 PM
I am having a problem with IE on one machine where it will not work after the first time on certain pages. It appears to be going to the cache all the time. On other machines I don't have that problem. If I delete temporary files, it will work the first time. If I close the browser and t...more >>

Page.id and Page.UniqueID
Posted by Arne at 4/21/2005 12:49:02 PM
Is the Page ID supposed to do anything? Before service pack 1 on .net 1.1, I had a proper name of the page that I could use for a generic error routine. Now the ID is blank. The ID is also useless in ASP.net 2.0 Beta 2. <%@ Page Language="vb" AutoEventWireup="false" %> <!DOCTYPE HTML PUBLIC...more >>

help!!!! escape & querystring
Posted by mavrick101 at 4/21/2005 12:45:01 PM
How can I get querystring values from a url which has been 'escape'd? regular Request.queryString doesn't seem to work... Help!!!!...more >>

User sending email attachments?
Posted by VB Programmer at 4/21/2005 12:32:20 PM
I know how to send emails using ASP.NET. How can I allow the user to attach a file to an email that they submit (via an ASPX online submission form)? Ex: Allow user to submit a resume along with their info. ...more >>

New to ASP.NET - A very basic question regarding the ViewState and Server Round Trips
Posted by msnews.microsoft.com at 4/21/2005 12:26:07 PM
Hello All, I am very new to ASP.NET and I have a basic question. Can somebody please explain? I have an .aspx Web Page with a textbox control. When the Page initially loads I am calling a Javascript function to write a text information in the text box. After that when I refresh the P...more >>

application pool problem
Posted by Glen at 4/21/2005 11:27:04 AM
I have a web service project that was fine untill I created a new application pool and moved my service to the new pool. Now I can not even open the project in VS. Error message says "file path c:\Inetpub\wwwroot\myproject does not correspond to the url http://localhost/myproject. The two n...more >>

SQL statement won't recognize variable
Posted by Chumley Walrus at 4/21/2005 11:21:27 AM
I'm trying to declare a variable (datetime data type), and insert that value in the where clause of an SQL statement (I'm using MS Access db with oledb classes) in an aspx page using vb.net: dim todd = DateTime.Today.ToString ( "d" ) Dim strSQL as string ="SELECT article, articleheader,...more >>

asp .net datagrid
Posted by Carlos at 4/21/2005 11:06:33 AM
Hi all, Can a datagrid be used to report the result set of one column only. What would be the recommended way of reporting. Can dynamic labels be created as values are being read? Thanks! Carlos ...more >>

'Action Canceled' when hyperthreading enabled - ASP.NET bug?
Posted by Joe Jax at 4/21/2005 11:03:21 AM
I am developing an ASP.NET app using VS.NET 2003 on a P4 based desktop. Most every time I run the app from VS.NET the web page comes up with 'Action Canceled', and I have to hit refresh to continue. However, if I turn off hyperthreading in the BIOS is doesn't happen. I'd like to use hyperthrea...more >>

State management
Posted by DKode at 4/21/2005 10:50:24 AM
Can anyone point me to a good location for state management information. I am having to re-code a good portion of my login code to properly manage persistent state. As it is right now, I was saving the object(user) into the HttpContext.Current, but I find this does not persist from page to page....more >>

ASPNET app on Win2003
Posted by RichardF at 4/21/2005 10:49:12 AM
I have an ASP.NET website and webservice that has been tested extensively on many XP machines. I just ran the two install install routines (one for the web service and one for the web site) on a machine running Windows 2003 Server. When I try to access my website now it says it cannot find t...more >>

Cache question
Posted by David Young at 4/21/2005 10:20:33 AM
Just to make sure I'm on the right track here. The every object I put in Cache is application scope right? So the SAME instance will be used by ALL users of the ASP.Net Application. Just want to make sure that each user won't have his own copy. Dave ...more >>

Checkbox column in a datalist question
Posted by Derek at 4/21/2005 9:45:53 AM
I have a datalist that contains one unbound column with a checkbox. When the user clicks a button, I need to count all the checked boxes in the datalist. Can anyone give me an idea as to the best way to do this? Thanks....more >>

Need to strip/disable script
Posted by Bill Borg at 4/21/2005 9:45:10 AM
Hello all, My users can include html with their data, in order to control formatting, images, etc. in the datagrid I return, but I want to make sure in certain cases they can't enter script. When I find it I will replace with something harmless, but I want to make sure I find it. So, far...more >>

vertical Scroll Bar with CheckBoxList in ASP.NET
Posted by bienwell at 4/21/2005 8:46:13 AM
Hi, I'm using the CheckBoxList control in ASP.NET for Web development. This checkboxlist is bound by the database. If we have more items for this checkbox list, it takes space on the page. I want to have vertical scroll bar (like CheckedListBox in Window development) to save space. Can we do...more >>

Good_morning_or_good_evening_depending_upon_your_location._I_want_to_ask_you_the_most_important_question_of_your_life._Your_joy_or_sorrow_for_all_eter
Posted by RonGrossi382731 NO[at]SPAM yahoo.com at 4/21/2005 8:18:47 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 >>

Transaction issue
Posted by viktor9990 at 4/21/2005 7:43:04 AM
I'm inserting info in database when clicking a button. Some procedure are called. I want to do that with a transaction (when clicking on the button and within its procedure) so that everything will be inserted or nothing. How to do that? Thanks Private Sub btnRegister_Click(ByVal sender As Sy...more >>

how to display text in new line in a TextBox in Vb.NET?
Posted by nsj at 4/21/2005 7:21:06 AM
Is there a newline command to use ?...more >>

Datetime formating and paging
Posted by Tim::.. at 4/21/2005 7:17:07 AM
Hi I'm trying to create a pager that allows you to show records by year and month! I am getting close but would really appritiate some help! Can someone please tell me how I convert the value of (i) into a date so that l.Text shows the date as Feb or Mar etc etc EG: If i = 1 then I wa...more >>

how to display text in new line in a TextBox in Vb.NET?
Posted by nsj at 4/21/2005 7:14:03 AM
how to display text in new line in a TextBox in Vb.NET?...more >>

2.0 Controlling password complexity in Membership
Posted by Morgan Roderick at 4/21/2005 7:12:01 AM
Hi How do I control the password complexity for users registering themselves in a webapp using Membership? From http://beta.asp.net/QUICKSTART/aspnet/doc/security/membership.aspx "Note that by default, the Membership feature requires passwords to be at least seven characters long, and t...more >>

Configuration Error ->error loading xml web.conf Parameter name: ticks.
Posted by TC at 4/21/2005 7:01:43 AM
Anyone know what this means Parser Error Message: Error loading XML file E:\Inetpub\wwwroot\web.config Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks. windows 2000 server with Microsoft .NET Framework Version:2.0.40607.42; ASP.NET Version:2.0...more >>

asp.net assembly
Posted by mehdi_mousavi at 4/21/2005 5:18:53 AM
Hi folks, There are 2 ways to load an external program into users' browser (to be activated on client-side), say, ActiveX Controls & Java Applets. Can we add up ".NET Assemblies" to the mentioned list, too? Any help would be highly appreciated, Cheers, M.Mousavi ...more >>

onFocus Event Refresh
Posted by I am Sam at 4/21/2005 5:09:01 AM
Hi Everyone, It has been a while. Anyhow, I have two windows, one to upload a binary file and another that displays a list of files that have been uploaded to the server. I need the window/page/file(Whatever you want to call it) that displays the binary files uploaded to refresh when the wi...more >>

Database records filtering
Posted by asad at 4/21/2005 4:35:02 AM
Hello, i want to filter my records in ASP.NET pls tell me how can i do it thanks...more >>

Problem with DllImport StackOverFlowException
Posted by Danilo at 4/21/2005 4:30:03 AM
hi we use [dllImport] to call some function from unmanagged code. when we use WinForm it works, but over aps.net we have a StackOverFlowException. what could be the problem??? thx!...more >>

Tables Asp.Net Visible property
Posted by csgraham74 NO[at]SPAM hotmail.com at 4/21/2005 4:22:15 AM
Hi guys, im having serious trouble with my tables in asp.net. i inherited a system that allowed me to set my tables visble property to true and false. When i try and create a table using html i do not have that property. does anyone know of a different way to create a table ???? the syst...more >>

Local SMTP Server Error
Posted by zubair at 4/21/2005 3:23:02 AM
Hello All I have just comeacross a problem: I'm debugging a site on my local computer using Visual Studio.net. When I send mail it gives error "System.Runtime.InteropServices.COMException: The transport failed to connect to the server" Should I configure the SMTP server correctly or there ...more >>

Unable to start debugging on the web server!!
Posted by ricky at 4/21/2005 2:50:01 AM
dear all, i am a babe of asp.net, when i used username like "ricky" and tried to debug my asp.net project, the ide returns me a error message that says i'm not the debugger users, actually i am the debugger users and administrators. so i changed another account "administrator" to login and...more >>

FormView, empty TextBox gives error: Input string was not in a cor
Posted by Ottar at 4/21/2005 2:43:02 AM
I have a few numeric fields, and when I update i get the error: "Input string was not in a correct format". Next line:" System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2178925" This is beacuse some of my Text...more >>

Formmating item in datagrid
Posted by alan at 4/21/2005 2:33:02 AM
my DB has a date column my data_set's locale is zh-HK, i want to the date format to be "en-US" while other items remain using zh-HK locale so, how i can only format the items for a specific column? thanks a lot!!...more >>

Populating multiple dropdowns
Posted by Andy at 4/21/2005 2:03:03 AM
What I want to do is to populate multiple dropdowns when editing. Presumably... a) I should use a DataReader so that I can get each ResultSet for each dropdown control, and that should cut down round trips to the server. b) I should populate these dropdowns in the DataGrid_EditCommand? What I...more >>

Display File on an asp.net Page
Posted by Martin Moser at 4/21/2005 1:58:04 AM
Does somebody knows, if theres a way to display any file (tiff, doc, pdf, .....) "inline" on an asp.net site? What I want to do is, to display a file, which is stored in the DB, and some information around it. If you know a way, or a third party control, please let me know. tia Martin...more >>

ASP Application
Posted by Pure Heart at 4/21/2005 1:51:03 AM
Hi every time i want to develop a asp web application on my xp computer i have the error "http/1.1 500 server erro" .. I have IIS instaled and running and asp.net 1.1 service are running also so whats the problem .. thanx -- Ammar S. Mitoori IT Head QIMCO Co. Tel : +9744831199 Mobile : ...more >>

Multipl Virtual Directories (projects) in one web setup project
Posted by Murali Krishna. Siruvuru at 4/21/2005 12:27:02 AM
Hi, I have 3 individual web projects (2 apps under one main app) and all of them need to be deployed using single web setup. Currently my web setup is creating only one virtual directory for main app. I am able to add webfolder and other projects in these web folders, but how to make the...more >>

Strange session timeout problem(urgent help needed).
Posted by jensen bredal at 4/21/2005 12:00:00 AM
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section...more >>

how to open new window and response.write to it
Posted by Josh at 4/21/2005 12:00:00 AM
Hi, Anyone know how to open a New Browser window and then "response.write" to the new window. I know how to open a new window, but then targeting response.write at it is a mystery. I need to keep the original window open as well as the new one. Can anyone help? ...more >>

active-x controls with runat="server"
Posted by Martin Eyles at 4/21/2005 12:00:00 AM
Hi, I have a page that contains the following <div runat="server" id="Pikea"> <object runat="server" id="PiTV" style="width:560px; height:560px" classid="clsid:{3DF152A5-521D-4330-A8DC-1424CEB66BAA}" VIEWASTEXT> </object> </div> This all worked beautifully without the runat="ser...more >>

ASP.NET Starter Kits 2.0 .
Posted by Paul Aspinall at 4/21/2005 12:00:00 AM
Hi I know it may be a little early in the proceedings, and ASP.NET 2.0 is not yet released, but does anyone know if there are any ASP>NET 2.0 versions of the Starter kits that were released with ASP.NET 1.0? I would just like to get a feel for how things should be done, as I'm going to inst...more >>

best way to transfer variables from 1 page to a 2nd to a 3rd page
Posted by nicholas at 4/21/2005 12:00:00 AM
Have a multi-page subscribtion. So the user fills in some data on the first page, than an other part on the 2nd and the last part on the 3rd page. What is the best and simplest way to get all the inserted data on the 3rd page to insert in de dbase? (not using request.querystring! as this is n...more >>

the goto statement
Posted by Martin at 4/21/2005 12:00:00 AM
Hi, I would like to ask peoples opinion of the "goto" statement in C#. I have always been taught NOT to use this statement in OO code (first OO language I learned was C++ about 8 years ago) as it creates "saghettii code" I would have throught that using a function to "jump" to other code...more >>

transfering variables with CONTEXT
Posted by nicholas at 4/21/2005 12:00:00 AM
I'm using context to transfer variables from 1 page to another. But, with more than 2 pages it fails. Ex: page1.aspx: Context.Items.Add("customername", customername.text) Server.Transfer("page2.aspx") page2.aspx: response.write(Context.Items("customername")) => returns the customername ...more >>

Degradation
Posted by Chakra at 4/21/2005 12:00:00 AM
We notice that a particular module in ASP.NET application takes x seconds when just one user is using it, but takes 1.5 x seconds. Is 50 % degradation normal for a .NET application ? I realise this is a very ambigous question since the environment plays a role, however is resource contention an i...more >>

DateTime format
Posted by PawelR at 4/21/2005 12:00:00 AM
Hello group, In my webapps I have datagrid binding with table from dataset. In table I have columns with datetime format. In dataGrid date is display in format "yyyy-mm-dd hh-mm-ss" but I want only "yyyy-mm-dd". This column is "Template Column" How do it? ...more >>

How to display N records from a database in some Div's? Thanks.
Posted by Shapper at 4/21/2005 12:00:00 AM
Hello, In a database table named t_content I have the following records: id page name content 1 index introduction Introduction Text 2 index welcome Welcome Text ...more >>

date and time
Posted by Trond at 4/21/2005 12:00:00 AM
I have a column in a datafrid where "Last run time" is a integer. THe integer is retrieved from SQL server 2000 and is like this: 145600. That means 14:56:00 Same with date: 20050330 means 30 mars 2005. How can i convert those in the datagrid so that they shows 14:56:00 and 30.03.2005? Best ...more >>

public variable
Posted by nicholas at 4/21/2005 12:00:00 AM
why is this not working: ###### code ####### Public userlogin as String Sub Page_Load(Sender as Object, e as EventArgs) userlogin = request.form("userlogin") response.write(userlogin) 'THIS WORKS ! End sub Sub btn_step4_Click (sender As Object, e As System.EventArgs) response...more >>

Abort ASP.NET Request
Posted by Lucas Tam at 4/21/2005 12:00:00 AM
Quick Q... what's the command to abort an ASP.NET request? I used the STOP command but this throws a JIT error - anything else to just stop the request? Thanks. -- Lucas Tam (REMOVEnntp@rogers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/a...more >>

Accessing session variable values from the 'Application_BeginRequest' handler
Posted by Stu at 4/21/2005 12:00:00 AM
Hi, I am trying to access session variable value from the 'Application_BeginRequest' handler in the global asax file but get the message - 'Session state not available in this context'. I have tried loading the current context using 'Dim context As HttpContext = HttpContext.Current' but g...more >>

FindControl requires that controls have unique IDs
Posted by SouthSpawn at 4/21/2005 12:00:00 AM
I have a datagrid with a checkbox column, and dropdown list that does a autopostback. Basically, the dropdown list is a filter for the datagrid. Here is my workflow. 1. Load .aspx page. 2. Click on filter to show certain results in datagrid. (This will do a autopostback) 3. Select item from...more >>

Seeking clarity on asp.net threading
Posted by James T at 4/21/2005 12:00:00 AM
Hi I am considering spawning a background thread to perform a long running task in my asp.net application and I was hoping someone could shed some light on several issues for which I have not been able to find solid answers. Will the spawned thread be terminated prematurely when the orig...more >>

Facing Session Timeout problem
Posted by Hema S via DotNetMonster.com at 4/21/2005 12:00:00 AM
Dear All, Problem 1 ----------- I am using Sql Server for session state and setting the timeout property. But my session is not getting expired at all. Snippet <sessionState mode="SQLServer" sqlConnectionString="server=10.10.10.216;uid=XX;pwd=XX;" cookieless=...more >>


DevelopmentNow Blog