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 > january 2006 > threads for monday january 9

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

How to properly use try-catch block?
Posted by GS at 1/9/2006 11:22:34 PM
Hi, Is it possible to use try-catch block to return back to processing on = the same line where last error occured? Say I'm trying to establish connection to database in try {} and = catching SQLException, if I find out that it's timeout issue then I want = to try again to see if database is ...more >>


Hi All
Posted by Patrick.O.Ige at 1/9/2006 11:16:38 PM
Wishing you all Happy New Year. Just came back from my Christmas and New Years holiday trip. Hope the forum is still good as always. And did anybody missed me? I'm back:) Cheers Patrick ...more >>

Round Integer
Posted by Niclas at 1/9/2006 10:13:09 PM
Is there a way to format an integer (when displayed as a string) always rounded downwards. So that 9.99 would be displayed as a 9 and a 10.01 would be showed as 10 ? Niclas ...more >>

MembershipProvider/RoleProvider Problems
Posted by Mark Olbert at 1/9/2006 9:06:21 PM
I've written a custom MembershipProvider and a custom RoleProvider, and am trying to get them to work with the ASP.NET Configuration tool. Which is a royal pain in the butt, because there doesn't appear to be any way to debug the Configuration tool. In any event, when I create a new user I get t...more >>

Extracting from an ADO datasource to Access MDB.
Posted by Byron Hopp at 1/9/2006 8:31:09 PM
We have the need to extract data from an ADO dataset to an Access MDB. We have this working be having an empty MDB that we copy and utilize for the extract. We get errors on an irregular basis. What would be the best practice to provide this to a user in an MDB format. Is there something ...more >>

newbie - variable from code-behind to aspx page
Posted by Damiano Callegari at 1/9/2006 8:02:48 PM
Sorry for the question but I am a newbie of asp.net 2.0. I have a variable in code behind and I would show it in aspx page (with <% ... %>). How can I do it? or what is the best method for print db data in aspx page? thanks Damiano...more >>

File.Copy Error
Posted by Mark at 1/9/2006 7:40:02 PM
I get the error: System.IO.FileNotFoundException: Could not find file "C:\mydir\myfile.xls" Using the sub: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Path As String = "C:\mydir\" Dim File A...more >>

Debugging Custom MembershipProvider?
Posted by Mark Olbert at 1/9/2006 7:01:37 PM
So far, I am more than a little underwhelmed by the Membership API in ASPNET2, and the ASP.NET Configuration wizard in VS2005. The latter is slow as a pig whenever it does anything. Oh well, at least it's given me a chance to brush up on my Spider Solitaire game. In any event, I am trying to imp...more >>



cause postback from javascript
Posted by mr. dropdown at 1/9/2006 6:25:38 PM
Is it possible that a javascript code will raise postback? I mean, without any control related to the postback, just submit the webform with all the data, into some server method? Thanks ...more >>

Get current screen resolution?
Posted by Carlos Albert at 1/9/2006 5:47:14 PM
Hi, I need to get some statistic about wich resolution are my customers using, how can I get the current screen resolution from the codebehind, so I can store it in a database? ...more >>

Extending MembershipUser
Posted by Mark Olbert at 1/9/2006 5:21:53 PM
I'm writing a custom MembershipProvider which uses a custom class derived from MembershipUser (basically, the derived class adds a field to the MembershipUser base class). When I try to configure my website using the ASP.NET Configuration tool, and go to the Security page, I get the following er...more >>

JavaScript problem
Posted by Giorgos Papadakis at 1/9/2006 4:08:12 PM
I have developed an ASP.NET page (VB.NET) in which I have put some javascript code which does not work. In a static html file, it works fine, the problem starts when I try to use it in an ASP.NET page. Is there any way to do it in VB.NET? ...more >>

code behind AND page code
Posted by a NO[at]SPAM b.com at 1/9/2006 4:02:06 PM
is it possible to have page functions both in code behind AND on in the html? i.e. i added the following script to the html but nothing happens: <script runat=server language=C#> private void Page_Init() { tb1.Text="sdf"; } </script>...more >>

Why it does not work when accessing from internet?
Posted by Andrew at 1/9/2006 4:00:01 PM
Hello, friends, I am building a website hosted in my office. It uses Form Authentication. When I tested in my local network, it worked fine: Asking me to login if I tried non-public pages. After I typed my user name and password, it directed me to the page I wanted. However, if a person ...more >>

NTLM Authentication with multi-tiered application
Posted by Andy Fish at 1/9/2006 3:59:16 PM
Hi, I have an asp.net application in several tiers and I would like to enable it for NTLM. Say the web front end is running on server X and the business logic is running on server Y. In the non-NTLM case, the user types his password into the web front end and server X passes it to Y in o...more >>

Your favorite tutorial for caching viewstate?
Posted by clintonG at 1/9/2006 3:56:34 PM
I've got a big fat cow -- a wiazrd control with 19 steps -- and I need to put Bessie back in the barn. I need to learn how to cache the Viewstate for this page and maintain state should the user hit the browser's back button. I'm looking around of course but ask what are your favorite tutoria...more >>

Error on post back
Posted by Wayne Sepega at 1/9/2006 2:54:00 PM
I have two drop downs on my web form. The contents of DropDown2 depends on what is currently selected in DropDown1. I use client side java script to re-populate DropDown2 whenever DropDown1 changes. In doing so, if I select a value in DropDown2 that wasn't there when the page was built I re...more >>

Basic Script Not Working in ASP.Net Page
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 1/9/2006 2:49:02 PM
Looking to do something pretty simple... I have a cancel button on my page. When the user clicks it, i want to verify they want to cancel and if so, redirect them. Code: ------------------------------------------------------------- <html> <script language=vbscript> if MsgBox("Testing...more >>

Textbox value change on select other item dropdownlist
Posted by Atreju at 1/9/2006 2:31:13 PM
Ok I got form within a c sharp page. Situation: On the form I have a drop downliwst and a textbox, the dropdownlist is populated with products and the textbox has a default vale of the product price. Problem: The first item prce in the dropdownlist is populated in the textbox. When I sele...more >>

Move to vs2005 causes errors in external controls
Posted by musosdev at 1/9/2006 2:10:02 PM
Hi guys I'm still working through my conversion to VS2005, I'm getting there, but there's a couple of errors I can't fix. My project uses a couple of external controls (not written by me), namely Metabuilders CheckedListBox and the Obout:Calendar control. Everything worked fine in vs20...more >>

Releasing a loaded assembly in ASP.NET 2.0
Posted by Oenone at 1/9/2006 2:05:40 PM
I've an ASP.NET 2.0 project into which various Plug-In DLLs can be installed. I'm running it in the ASP.NET Development Server. In order to load one of the PlugIn DLLs I'm using System.Reflection.Assembly.LoadFrom(filename) to load the DLL and then calling CreateInstance on the assembly that...more >>

whats problem in asp.net 2.0
Posted by Vaidas Gudas at 1/9/2006 2:02:27 PM
I has web project on virtual pc, maked with framework 2.0. there I was used the method role.roleexists("admin") and everything was worked good. but when i replace this project on my local machine, where is installed both versions 1.1 and 2.0 of framework. And on the this method I am getting th...more >>

Postback hanging
Posted by Grant Merwitz at 1/9/2006 1:41:34 PM
Hi I have a control on a web page with just a datagrid. For some reason, post back is not working on this page. You can view this page here: http://www.workshare.com/company/blog/default2.aspx Now, this page has a control on it that is a simple as: <asp:DataGrid id="dg" runat="server...more >>

System.Drawing For Drawing Text Images
Posted by jjbutera NO[at]SPAM hotmail.com at 1/9/2006 1:41:29 PM
There are a lot of examples out there, but I was hoping something could help me further. I'd like to draw text (unknown length) to an image, but then crop the image to the height and width of the text. Is this possible? I'm guessing I can get the height from the Font.Height property. But how ...more >>

Misunderstanding ConnectionStrings?
Posted by Shawn Wildermuth at 1/9/2006 1:31:27 PM
I have a web project whose web.config has a ConnectionString setup. I have a second assembly with my Typed DataSets. The designer has created an App.config file with a connection string in it for the designer to use. The web project referecnes the data assembly with the TDS's in it. When I...more >>

How to add an ActiveX component to .NET web form?
Posted by david at 1/9/2006 1:31:02 PM
I could not find the option to do it. Anyone know it? Example?Thank you. By the way, how to add an ActiveX Control to a html file? Example? Thank you. David...more >>

Problem with WinForms User Control Hosted in IE
Posted by Segfahlt at 1/9/2006 1:22:01 PM
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in both projects. Both controls(dlls) have been signed using SN.exe and I've set up the appropriate...more >>

Is ViewState messing with me?
Posted by rgrandidier at 1/9/2006 1:16:03 PM
I have a hidden element I add to the form each time dynamically, however, it seems that when I do a submit and change the hidden element value from 1 to 2, it displays it as 1 on the form even though I step through the code and it shows setting the hidden elements value as 2. What's up with...more >>

asp.net 1.1 datagrid sort event
Posted by Fred at 1/9/2006 1:03:59 PM
hi, in my forms i have a few grids w/ sorting, everytime a grid is sorted, i must make new queries to the database to fill all the grids and initialize all the other controls on the page, it`s working but doesn`t seem efficient, is there some other way of doing it? TIA...more >>

Datalist- Panel for each item? Possible?
Posted by footballhead NO[at]SPAM gmail.com at 1/9/2006 1:03:29 PM
I have a datalist on a page and I'd like to inlcude a panel that I can show or hide for each item in the list. Actually, I only want to show 1 panel at a time. Is this possible? I was thinking that to do this I would use a panel in the template. But in order to control the panels, they would e...more >>

Using System.Drawing for a Custom Font
Posted by jjbutera NO[at]SPAM hotmail.com at 1/9/2006 12:51:41 PM
I have a custom font installed on my machine, but I can't seem to use it with System.Drawing. Dim f As New Font("MyCustomFontName", 20, FontStyle.Regular) This just gives me the default of Arial. Is there something I should know? Is there only a specific set of fonts that can be used with th...more >>

Is there any tools or methods let me to monitor session state on IIS?
Posted by ABC at 1/9/2006 12:40:02 PM
Is there any tools or methods let me to monitor session state on IIS? I want to view what session states on server and to control the memory allocation. ...more >>

Check files on 2 servers
Posted by Stephen at 1/9/2006 12:13:17 PM
Hi, I want to create an executable that can check folders on 2 servers and synchronize them if files dont match. Can some one please point me to the right direction (sample code etc..) Thanks in advance, Stephen ...more >>

height:100%+overflow:auto=no scroll?
Posted by PJ6 at 1/9/2006 12:13:05 PM
I would really like to have a DIV that uses a scrollbar but also expands to fill all available space in its container. Is that possible? At least in IE when height = 100% the scrollbar disappears and the DIV enlarges to the size of its contents. Paul ...more >>

All session are getting down when I delete sessions folders
Posted by Cesar Ronchese at 1/9/2006 12:11:07 PM
Hello, I'm experiencing a very weird problem. I have a ASP.Net 2005 application = (VB.Net) that creates some folders to store temporary files. example: Session_Start(...) IO.Directory.CreateDirectory(Server.MapPath(".") & = "\SessionFolders\" & Session.SessionID) (...) The ...more >>

Set page stylesheet in code-behind?
Posted by Liam at 1/9/2006 12:07:34 PM
Let's say we want to change the page style each day: <HEAD> .. .. .. <style type="text/css" media="all">@import url( TuesdayStyles.css ); </style> </HEAD> Is it possible to do this in *code-behind* ? Can you write the <STYLE> directive into the <HEAD></HEAD> section of the page? Th...more >>

adding table inside itemtemplate
Posted by Edge at 1/9/2006 11:33:46 AM
hi all, I added a html table with 2 rows inside the itemtemplate of my gridview. It works ok, but the table border never touches the border of my gridview cell. How should I do if I want the internal table and my grid cell share the same border, so noone realizes that there is a table ins...more >>

Getting logged on username
Posted by dew at 1/9/2006 11:10:31 AM
How can I get the name of the logged on user when using identity impersonate? This returns the IUSR: System.Security.Principal.WindowsIdentity.GetCurrent ...more >>

How to enumerate all properties of the object and output them?
Posted by GS at 1/9/2006 10:41:14 AM
Hi, What would be c# code to enumarate all properties of object and output = them in a form "property name:value"? Thanks, GS...more >>

Long running requests terminate -- should I start a process on the server instead?
Posted by mortb at 1/9/2006 10:38:52 AM
Hi! On my ASP.NET web site I do some operations that takes several minutes to handle. I.e. one action shall generate a file from some data in our database. The action takes about 5 minutes to complete. The problem is that the users of our system are not on our network and somewhere along th...more >>

udate doesn't work as expect need help
Posted by paapa21 at 1/9/2006 10:36:02 AM
I have two datalist in two panel (viewdatalistpanel and updateDatalist). One datalist bring all student details from the database and the other update the student details in the database. On page load the viewdatalistpanel is visible, when a button is click it become invisible and the updateda...more >>

menu problem
Posted by PJ6 at 1/9/2006 10:34:40 AM
In I.E., is there any way around the problem of text boxes and combo boxes displaying in front of any and all controls - especially menu controls? Paul ...more >>

Can a web service produce bad XML?
Posted by needin4mation NO[at]SPAM gmail.com at 1/9/2006 9:59:47 AM
Hi, I have a simple web service. In my HelloWorld() all it does it retreive about five last and first names from a database. It then returns the DataSet. When I run the Web Service in VS 2003 and I get the general IIS web service page I press "Invoke" and the web service runs and brings back...more >>

Chart control
Posted by jack at 1/9/2006 9:52:19 AM
hi I wanted to use chart control in asp.net but dont know how to do this. i would be glad if any one help me with this. thanks for replying me .. ...more >>

How dynamically declare Image controls in a web form?
Posted by david at 1/9/2006 9:51:02 AM
I want to display image information and images in a web form. The problem is that I do not know how many images in a directory, but I have to display all images in the directory into the web form. Before display images, I have a static design of labels and textboxes for information (GridLayout...more >>

Is it possible to add a PostedFile to Session
Posted by Jgold7 at 1/9/2006 9:48:41 AM
Don't know if this is in the right group, but here goes: I am working with a website that I am selecting files to be uploaded on one page (ex. UploadAttachment.aspx) and I need to retrieve those file on another page (ex. SubmitPage.aspx) and send them to an Imaging application called ImageRight. ...more >>

save word document from IE
Posted by kmercer46 NO[at]SPAM yahoo.com at 1/9/2006 9:25:39 AM
i need to open an existing word document from my asp.net page, i used the code Response.contenttype="appliaction/msword" i opens the document in the IE, when i made changes to that document in the IE i canot able to save the changes, the save button is not working, instead saveas option is ...more >>

2.0: missing aspnet account
Posted by musosdev at 1/9/2006 8:52:02 AM
Hi guys I've just noticed I don't have an ASPNET user account running on either my Workstation or Server (both running .net2.0, workstation has vs2005 pro). Simple question... should it be there with .net2, and if so how can I create it!? Cheers Dan...more >>

my country time
Posted by lai3288 NO[at]SPAM gmail.com at 1/9/2006 8:41:11 AM
How to display the time of my country but not the time of the server I hosted?? ...more >>

Need help with Page Interaction using ASP.Net 2.0
Posted by AAOMTim at 1/9/2006 7:30:05 AM
In my design, page 1 is a web-based dashboard used to assign resources to an organization. The dashboard includes information about the organization as well as a list of all assigned resources. Included on page 1 is a lookup button that will open a search menu to find additional resources to...more >>

"loading..." message on dropdownlist?
Posted by Stimp at 1/9/2006 7:26:32 AM
I have two dropdowns that take a few seconds to populate (they are populated from a remote database, but the connection to the database is not the best). Is it possible to put a 'Loading...' message into the dropdownlist which will show by default, and then will disappear when the dropdown ...more >>

How to refer LoginUrl
Posted by ad at 1/9/2006 5:10:36 AM
I have define a LoginUrl in Web.config like: <authentication mode="Forms"> <forms name="HealthCookie" loginUrl="Login.aspx" protection="Validation" timeout="99999"> How can I refer the LoginUrl with program? ...more >>

Build Solution from network share in VS2005 won't work - please he
Posted by musosdev at 1/9/2006 4:20:03 AM
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from the network share. It loads in VS2005 fine, and I can edit and save code changes etc, but when ...more >>

Can't find Trace Into button in toolbar
Posted by ad at 1/9/2006 4:11:25 AM
When I use VS2005 Beta2, I can find Trace Into button in toolbox when debug. But when I use the release version, the Trace Into disappear. Where can I find it? ...more >>

adapter preview-data succeeds, but ASPX page says 'Cannot open database'
Posted by bennett NO[at]SPAM peacefire.org at 1/9/2006 2:41:18 AM
I'm trying to write an ASPX page that uses an OleDbDataAdapter to get data from a SQL Server database. When I test the connection, it returns success, and when I preview the data using the Adapter's "preview data" right-click option, it works, but when I load the actual page, I get the error "C...more >>

Auto Code Reformatting
Posted by David R. at 1/9/2006 1:44:47 AM
Is there a way to manually run the Code Reformatting for C# code and aspx code? ...more >>

ASP.NET 2.0 Cookies
Posted by David R. at 1/9/2006 12:32:37 AM
I'm writing my own login dialog and want to store the user's info in a cookie (for the "remember login" option). Somehow when I try to retrieve the cookie, it keeps telling me it's null. What am I doing wrong? From login page: Response.Cookies["RememberMe"].Value = "Y"; From mainm...more >>


DevelopmentNow Blog