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 > june 2005 > threads for monday june 27

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

Modules and Sessions and Events
Posted by dt at 6/27/2005 11:44:33 PM
I'm trying to create a drop-in dll that will run as a module on an existing application with just one web.config change. However, it is necessary to maintain state within the module. I don't think that I'm using the events correctly. Can I only manipulate session between AcquireState and Relea...more >>


How to debug a usercontrol in asp.net
Posted by androoo at 6/27/2005 11:26:50 PM
Hi I have created a simple usercontrol in vb.net, compiled and tested it in another vb.net project and all fine. I include the dll (not in the bin directory) to the asp.net project I include the object tag to the page, i can see the ctrl at runtime, so all good. Yet it doesnt run or fire...more >>

DropDownList
Posted by Julia at 6/27/2005 11:22:04 PM
Hi, is it possible to have different colors or fonts in each row in a DropDownList? If so, how do I do it? Thanks Julia...more >>

How to use: WYSIWYG?
Posted by charliewest at 6/27/2005 11:08:01 PM
Hello - I am trying to implement a basic WYSIWYG feature on my website so that i can edit in HTML format basic text on my website and have this text saved (with the HTML formatting) in my MS SQL database. Can anyone suggest a free WYSIWYG control, or a similar way to do this? Thanks!...more >>

DataSet to Excel via OWC
Posted by tony at 6/27/2005 9:15:27 PM
Hello, I have a problem outputting a dataset from a sp to an excel spreadsheet. I am looping through the dataset and populating the spreadsheet cell by cell. foreach ( DataRow dr in ds.Tables[0].Rows ) { iCol = 1; foreach ( DataColumn dc in ds.Tables[0].Columns ) { ...more >>

Popup window does not work
Posted by (dik NO[at]SPAM lul.com) at 6/27/2005 8:30:59 PM
Hi I have a page with a button that has to open a popup window: btnPopup.Attributes.Add("onclick", "window.open("popup.aspx",null,'height=250, width=250,status= no, resizable= no, scrollbars=no, toolbar=no,location=no,menubar=no ');"); the error is:could not find page popup.aspx what could...more >>

Web Application does not work
Posted by Wilton Yuan at 6/27/2005 8:30:29 PM
Hi, I am new of ASP.NET. I developed a small test web application, it works fine in the computer that Visual Studia 2002 installed. However, I copied all files to another computer, it cannot be openned. Where is the problem? Thanks in advance Wilton ...more >>

HELP !!! forms authentication !
Posted by fredda054 NO[at]SPAM hotmail.com at 6/27/2005 8:05:57 PM
Hi everybody ! I'm working on a asp.net app and have been doing fine until I now try to secure it using Forms authentication. I'm still pretty new to .net and very new to "forms authentication" but I understand it's a pretty neat thing ! Here's my problem: In my solution I have a main ...more >>



does anyone know where is it?
Posted by Bruno Alexandre at 6/27/2005 7:14:35 PM
Hi guys, does anyone know where is the Website used in the MSDN "Lear ASP.NET 2.0 with Jeff Prosise" (http://msdn.microsoft.com/asp.net/beta2/multimedia/default.aspx) events? The website used is called "Contoso", but I can't find it in the MSDN site, so I can evaluate it with the...more >>

default view
Posted by rodchar at 6/27/2005 6:40:02 PM
hey all, given DataSet11.Products.DefaultView.Sort = fieldName & " " & sortDirection is there a way to iterate thru the dataset using the default view or just in a particular order? thanks, rodchar...more >>

VWD 2005 beta 2 problem
Posted by Bruno Alexandre at 6/27/2005 6:28:12 PM
I guys, I downloaded the new Visual Web Developer 2005 beta 2 and then I restarted the PC, open the program and build a hello world aspx page with just a label. When I press Ctrl + F5 it open the IE, but instead of showing the hello world message it shows this: Server Error ...more >>

INamingContainer Issue
Posted by Sam Samnah at 6/27/2005 5:53:23 PM
With INamingContainer ChildControl UniqueIDs or ClientIDs are Represented similar to the following: ParentControlID:childControlID Now my problem is the colon ":" used to sperate the Parent and child IDs. Javascript appears to view the colon as delimiter and treats it accordingly. I'm wr...more >>

Button in footer of a datagrid not firing the event....
Posted by Stu at 6/27/2005 5:29:25 PM
Hi, I have a button in the footer of a datagrid that sometimes does not tigger the item command. The page is quite large & has a number of homegrown controls in it. Has anyone come across this type of behaviour before? Can anyone suggest a solution? Thanks in advance, Stu ###########...more >>

Beta 2 Profile Question
Posted by Arnie at 6/27/2005 4:27:02 PM
How can I access Profile information for a non-logged-in user from an app_code business object? I can get Profile info for the logged -in user via HttpContext.Current.Profile. I can get Membership info for any user via System.Web.Security.Membership.GetUser("Username") Older docs refe...more >>

Format money no cents
Posted by tshad at 6/27/2005 4:15:00 PM
How do I display an amount as money (with commas and dollar signs) as well as only showing the whole number? For example, I can take an amount which is defined as money and display it with commas like so (in Sql Server), SalaryMaxDesc=CONVERT(varchar, CAST(SalaryMax AS money), 1) From thi...more >>

dividing numbers
Posted by rodchar at 6/27/2005 4:03:04 PM
hey all, i'm trying to convert cint(1.8) into an int and whenever i do it makes it a 2. how do i make it a 1? thanks, rodchar ...more >>

Could not find Microsoft.Web.UI.WebControls.dll for webcontrol
Posted by Charts at 6/27/2005 3:41:01 PM
I download IEWebControls.exe, and installed it. Installation created IE Web Controls directory. The readme.txt said, 3. Create a /bin subdirectory for the application and copy the file Microsoft.Web.UI.WebControls.dll to this directory. However I could locate Microsoft.Web.UI.WebContr...more >>

HELP...component service: access denied to registry key
Posted by mimi at 6/27/2005 3:22:37 PM
I created a component service called DataAccess dataaccess.dll. I have 3 web client applications that referenced to the dll. They all work fine on my local. But moving to the server, we get the error 'access to the registry key HKey_Class_Root\... is denied. I've been trying to look up the...more >>

Opening a new browser window to a specific size without the menu bar and address window.
Posted by UJ at 6/27/2005 3:00:49 PM
How can I open a window, preferably through a hyperlink, that will open a new window with no menu bar/address bar and is a specific size? TIA - Jeffrey. ...more >>

mobile webpage?
Posted by strout at 6/27/2005 2:54:03 PM
I never heard of mobile webpage. Did anybody know? Our client asked us if he can access their website's mobile website. My understnading is the mobile browser can access any website just like normal browser. The only difference is the images are turned off. Correct me if I am wrong. TIA...more >>

App Locking on Opening New Browser Window
Posted by JJ_377 NO[at]SPAM hotmail.com at 6/27/2005 2:53:18 PM
I have these lines of code in my vb.net code behind (on load) of my webform: btnViewRequests.Attributes.Add("onclick", "a=window.open('MainForm.aspx?LocationID = " & LocationID & "','_new')") btnReference.Attributes.Add("onclick", "a=window.open('../RefFiles/Reference.htm','_new')") If I ...more >>

How to programmatically access ObjectDataSource values (instead of binding to data controls)
Posted by kenfine NO[at]SPAM u.washington.edu at 6/27/2005 2:43:59 PM
I've defined an ObjectDataSource against a dataset, and I can bind the ObjectDataSource's members to data controls. I'm wondering how to take the values in an ObjectDataSource and programmatically manipulate them before they're bound to any data control. I'd be using them almost like you'...more >>

basic query on form postback
Posted by varkey.mathew NO[at]SPAM wipro.com at 6/27/2005 1:10:31 PM
Hi there, I have a basic form with a postback. The following is a line of dynamic code written so that when the user clicks on the Button control, he will receive a confirm messagebox. btnSubmit.Attributes.Add("onclick","return confirm('Are you sure you want to leave without saving your c...more >>

Compiler error CS0006
Posted by Steven Berkovitz at 6/27/2005 1:08:03 PM
I have a common problem with just about every ASP.NET web app I've ever developed. Randomly after compiling a project, I will get a CS0006 compiler error with the following description: Compiler Error Message: CS0006: Metadata file 'c:\windows\microsoft.net\framework\v1.1.4322\temporary as...more >>

custom error page doesnt load
Posted by dee at 6/27/2005 12:43:40 PM
Hi In web.config I have to the following: <configuration> <system.web> <customErrors defaultRedirect="error.htm" mode="On" /> </system.web> </configuration> I generated a forced error in my page. Instead of being redirected to error.htm i get the following error me...more >>

adv of context menu in asp vs javascript
Posted by Craig at 6/27/2005 12:26:07 PM
what are the advantages/disadvantages of using a .net context menu vs using the javascript one that I can create in Macromedia Fireworks? I'm not familiar with the .net context menu. ...more >>

Can I populate a Dataset from string values?
Posted by Paul D. Fox at 6/27/2005 12:16:32 PM
I would like to read from Active Directory and populate a dataset to be passed in a Web Service. I can get the data from AD just fine, but can I populate a dataset with these values and do a "Return dataSetName" in my web service? ...more >>

Read html contents
Posted by MarkD at 6/27/2005 11:56:30 AM
I have a page that calculates a large formula in javascript and I display the results in a td.innerHTML. We now want save that value in a db, but since its not a label how can I access that value in codebehind? Thanks in advance, MarkD ...more >>

Can't go beyond page 2 in Crsytal Reports
Posted by John Dalberg at 6/27/2005 11:48:06 AM
I have a report that has over 10 pages. I can't go beyond page #2 when clicking on next page button. However I can go to any page if I enter the page number in the 'go to' field. Last page does work. Any ideas? -- John Dalberg...more >>

datagrid question
Posted by rodchar at 6/27/2005 11:37:05 AM
hey all, i was wondering if you knew a particular row id in a datagrid (which shows 10 records at a time) that you wanted to look at is there a way to position to the current page index for which that item is found? thanks, rodchar...more >>

Response.writefile ....(file located on another server)
Posted by dotnettester at 6/27/2005 11:21:01 AM
Hi, I want to write a file to browser which is located on another machine but connected on same network. For example if I try \\machine-1\filefolder\file1.pdf in the browser on machine-0 (hosting IIS), the file is downloaded. But when I try through the code to check if File.exists('\...more >>

Rich Domain (business objects) Qustion
Posted by cmay at 6/27/2005 11:00:33 AM
I am trying to build more applications using a more OO approach, with more seperation of business and presentation logic. One problem I am running into involves the design philosophy behind using a rich domain. Lets say that for a specific page you need to view all the line items for a gi...more >>

Can't configure data adapter
Posted by JackO at 6/27/2005 10:59:01 AM
I have created a stored procedure with 2 input parameters. When I try and configure a data adapter to use the stored procedure, I receive the following error. Failed to get schema for this stored procedure. What would cause this?...more >>

How to pad an image??
Posted by Arthur Dent at 6/27/2005 10:38:30 AM
I have an image tag which i am putting out in a repeater. The repeater itemtemplate is basically: <itemtemplate> <a href=abc> <img src=xyz> </a> </itemtemplate> I cannot seem to get my images to have any vertical padding. Ive tried adding both of the following: style...more >>

Directory security - Server 2003
Posted by Randy at 6/27/2005 10:07:50 AM
Hi all, I've got a sub directory under my main app directory. I'm trying to use it to upload files using PostedFile.SaveAs. The only way I could get it to work was to add Everyone and set it to Full Control. Is this the only way to handle this? Seems like it's not a good idea to have everyone...more >>

reading XML files from codebehind file
Posted by Martin Eyles at 6/27/2005 10:06:55 AM
Hi, I have a configuration file I made in xml which I am using to name a database server. (this way I can deploy my web page on various servers, and just change this file to make it work). Unfortunately, I can't figure out how to read this from the server side code behind file (either vb or ...more >>

FormsAuthentication and "unable to validate data": HELP!
Posted by Harrie Verveer at 6/27/2005 9:56:43 AM
Hi, I'm building quiet a large webapplication (CMS) in ASP.NET. On localhost the application runs fine. For publishing we use 2 hosting providers at the moment (let's call those 'A' and 'B'). Hosting provider A doesn't give any problems and the application runs just fine. On hosting provi...more >>

How to permanently get rid of this very ennoying bug?
Posted by Jensen Bredahl at 6/27/2005 9:14:53 AM
Hello, I have a fresh installation of visual studio.net 2003 and once in a while i get the following error message when i try to open an asp.net project. *** visual Studio.Net has detected that the specified server is not running asp.net version 1.1 . You will be unableto run asp.net web ap...more >>

VB.NET "Text" to SQL "Text"?
Posted by Kivak Wolf at 6/27/2005 9:04:03 AM
Hey everyone, I have a textbox in my web page that is going to be used to enter an E-mail into (just plain text, no HTML). Now, this will interact with a SQL database where the contents of the textbox are sent from the SQL database to the textbox, then the user edits it, and then the text ins...more >>

Response.Write, Form and IsPostBack
Posted by CBKowitz at 6/27/2005 8:39:08 AM
I have a page that calls a public sub that is in the code behind page. This sub will, depending on the number of records, write out a number of statements. One of the statements that is repeated for each record is: <form id='frmViewEmployeeDetail' name='frmViewEmployeeDetail' runat=server ...more >>

Drilling Down to the very Data in the FormView/DataGrid
Posted by Kivak at 6/27/2005 8:06:24 AM
Hey everyone, I know we have to be able to do this, or Microsoft was stupid. How do we get down to the very variables in the DataGrid and FormView? Lets say I have a table to hold a product ID and the product name... ----------------------- | ID: | Name: | | 1 | MyProduct1 | ...more >>

session value lost
Posted by catweezle2010 at 6/27/2005 7:46:30 AM
Hello NG, I have three files (default.aspx, search.aspx and work.aspx). The way is: login on default (if session is newsession). The loginname I write into as sessionvariable (username). So I redirect to my search.aspx. Here I have a form which allows fill in some fields (place, street, name ...more >>

Panel scrollable?
Posted by UJ at 6/27/2005 7:36:05 AM
I've got area of a screen that needs to be scrollable (it's a long list from a database) but only that section should be scrollable - not the whole page. How do I do this? A panel? TIA - Jeffrey. ...more >>

Need help designing a way to flip through articles
Posted by tperri at 6/27/2005 7:01:06 AM
I've been given several articles that include text and a picture that I need to place into a web control. This web control will be displayed on a news page. I only want to display one article at a time. At the bottom of each article I need to have a previous button (if applicable) and a nex...more >>

client login name
Posted by catweezle2010 at 6/27/2005 5:06:16 AM
Hello, I have to identify the user of an asp.net site by his windows login name (like environment.currentuser in Access). Till a few days I'm trying several scripts I've found. For example one like this: strLogonName = System.Security.Principal.WindowsIdentity.GetCurrent().Name The best re...more >>

Problem with user control on ASP.NET 2.0
Posted by Ahmed at 6/27/2005 3:42:23 AM
Is it possible for a user control on a webform to access the base class(another webfrom) of the host page ? e.g my code does something like this: ChildPage inherits from ParentPage and a function in the code behind of a user control hosted on ChildPage does this ParentPage p = (P...more >>

Keep colored cells of my datagrid in memory
Posted by Franck at 6/27/2005 12:34:44 AM
Hi, I'm addin javascript on some of my datagrid cells in the ItemCreatedEven which changes cell color on click (simulating selection). However, Postback event erase all selection and bring back default grid color. How can I keep in memory the user selection ? Thks for help. ...more >>

center datagrid
Posted by Vincent Vinet at 6/27/2005 12:00:00 AM
I am trying to center a datagrid horizontally on a form, yet it stays aligned right... the horizontal align property seems to be useless, just as putting the grid inside a centered div or table is there any other way to center the grid? ...more >>

get remote machine datetime
Posted by DB at 6/27/2005 12:00:00 AM
Hi All, Is there any way to get remote machine datetime using asp.net application? Help would be appreciative. Thanks n Regards, Deepak ...more >>

Control ids
Posted by Steve Peterson at 6/27/2005 12:00:00 AM
Hello Is there a way to change the id of an generated html of an asp.net control? What I mean is that, for example, if I have an textbox control and give it an id of "txtName", the html generated is something like: id="_ctl2_txtName". Apparently,according to our clients "search engine ex...more >>

ASP.NET - Urgent help
Posted by Stelios Skiathitis at 6/27/2005 12:00:00 AM
We 've been developing an ASP.NET application for our office. For some reason we created a web form which consists of about 60 visual controls. For visual display reasons we grouped them using the IE tab strip control. 20 of the visual controls are dropdownlists which are populated from sql s...more >>

Extended tooltip
Posted by Franck Diastein at 6/27/2005 12:00:00 AM
Hi, Until now, I have been using DHTML for extended tooltips with picx and some lines when using asp. Now, I have switched to asp.net, and I want to know if there are webcontrols for multiline tooltips ? TIA...more >>

Read CSV into GridView
Posted by Lelle at 6/27/2005 12:00:00 AM
hello! how can i read a csv file with this syntax into my gridview? SSN","First Name","Last Name","Salary","Department 111-11-1111","Ann","Adams","60000.00","Accounting 222-22-2222","Beth","Baker","55000.00","Marketing 333-33-3333","Cecil","Carelton","61000.00","Information Technology 444-...more >>

Is there any other way....
Posted by msnews.microsoft.com at 6/27/2005 12:00:00 AM
hi, Is there any other way of implementing the following scenario except = framesets. I want to open the user's website link in a new browser window but the = URL remain unchanged that is URL should be of my site. How can i do this in asp.net except using framset. Reply me as soon as pos...more >>

User Control
Posted by PawelR at 6/27/2005 12:00:00 AM
Hello Group, In my web application (file myPage.aspx) I have user control registered as: <%@ Register TagPrefix="uc1" TagName="TopMenu" Src="TopMenu.ascx" %> in "html" I have: <uc1:topmenu id="myMenu" runat="server" /> In file TopMenu.ascx I have accesor read only: public TextBox UserNam...more >>

asp.net 2.0 okey for productiv servers ?
Posted by Mike Schwarz at 6/27/2005 12:00:00 AM
hi my question is, if the asp.net 2.0 framework can be already installed on productiv servers in a hosting envirement, or if there are known bugs and problems if applied to a productiv asp.net 1.1 windows envirement, will the installation effect existing asp.net applications? thankx for ...more >>

I need help badly
Posted by Sam Samnah at 6/27/2005 12:00:00 AM
I am building a custome control and I need to access the information in the hidden field (HtmlInputHidden HIH) so that when a button is pressed the information in the hidden fields value is returned. Somehow, when the submit button is pressed the value in the Hidden field disappears into cybe...more >>

How to save state when dynamically create controls?
Posted by Julia at 6/27/2005 12:00:00 AM
Hi, I have a custom control which render drop down boxes according to XML configuration file I would like to know how do I get the selected items of the drop down boxes should I override LoadViewState and SaveViewState? Thanks in advance ...more >>

how to check expiry date
Posted by Naga Kiran at 6/27/2005 12:00:00 AM
Hi I want to set expiration date for my web based application. for eg it has to be worked for 15 days from the date when it was installed. More over i dont want to use system date to check the installed date with current date as because any one can easily change the syste...more >>

How to access registry
Posted by Naga Kiran at 6/27/2005 12:00:00 AM
Hi i want to access registry from asp.net web application can anybody tell me how to do this one. am getting the follwoing error when trying to access registry through asp.net application "Requested registry access is not allowed" but when running in vb.net application am not getting a...more >>

IP
Posted by Aurelio at 6/27/2005 12:00:00 AM
How can i know the ip of the host from which an user visit my web? ...more >>


DevelopmentNow Blog