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 2006 > threads for monday april 10

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

how to check the value whether is decimal
Posted by joe at 4/10/2006 11:56:01 PM
how to check the value whether is decimal in javascript...more >>

Using customErrors returns Server Error in '/' Application
Posted by kristian NO[at]SPAM help2hire.com at 4/10/2006 11:55:38 PM
I'm using the following entry in my web.config: web.config <customErrors mode="On" defaultRedirect="~/CMS/Default.aspx"> <error statusCode="404" redirect="~/CMS/Default.aspx"/> </customErrors> And this is in the Global.asax Global.asax void Application_Error(object sender, EventA...more >>

Microsoft XML control: Does it work?
Posted by Gleeman at 4/10/2006 11:38:02 PM
Does this control work at all????? I have an html table in my asox form and one of the td tags needs be filled with an xslt transformation. Every request now fires twice on every pageload and every button click? I need to inherit from a base page so cannot simply throw it into the stream....more >>

optimizing aspnet application - speed up
Posted by Dariusz Tomon at 4/10/2006 11:26:04 PM
Hi I noticed that all my ASPNET applications (+ MSSQL Server - I checked the database and it is ok) run very slowly (especially from the beginning). I made comparison to other applications (not mine) on another servers. I wonder how could I boost the applications. The only thing I suspect i...more >>

How to set application dependency on custom configuration files?
Posted by Laser Lu at 4/10/2006 9:48:31 PM
Hello, everybody, In order to avoid making web.config lengthy, I just moved some custom configuration settings out from web.config, and centralized them into an xml file, which names data.config. It works fine except for one thing that the custom configuration file has a poor change awareness...more >>

Login redirect not working
Posted by AAOMTim at 4/10/2006 9:35:01 PM
This works in my VS IDE and was temporarily worknig on my publsied web site, but now the redirect to ~/secure/Default.aspx always returns to my login page. Here's a partof the web.config file taht deal with forms authentication (note that I am using SQL Server membership and role providers)...more >>

SVG-WMF or PNG-WMF conversion
Posted by Ganesh Palaniappan at 4/10/2006 8:43:53 PM
Would like to know whether any free tool (ActiveX kind of thing) available for SVG-WMF conversion or PNG-WMF conversion. Thanks in advance. ...more >>

HttpWebRequest with CookieContainer - not deleting cookie - what is wrong here?
Posted by macro at 4/10/2006 8:41:51 PM
when I use HttpWebRequest with CookieContainer object that handles cookies, i make more than one request and needs to handle cookies being added and removed between requests, just like a regular web browser like internet explorer. if I have this cookie header in a response: Set-Cookie: <...more >>



Folder and File Permissions
Posted by Kapil via DotNetMonster.com at 4/10/2006 8:38:55 PM
Hello everybody, I am using System.IO GetDirectories() method and GetFiles method to display all the files and directory on a DataGrid. Now I want to restrict accesss to Users to this directory and files. They should not be able to view this directory and files. How do I set the permissions from...more >>

Can't make forms authentication for non-ASPX files work
Posted by Ronald S. Cook at 4/10/2006 8:22:40 PM
In my web app, I want to secure not only .aspx files, but also .htm files. From what I've read, I have to jump through some hoops to protect the .htm files. In IIS, I right clicked on the default web site and clicked on the ISAPI Filters tab. I added ".htm" and chose "C:\WINDOWS\Microsof...more >>

organization chart in asp.net
Posted by Jason at 4/10/2006 7:52:16 PM
Hi, We have stored organization structure in database, and now I need to display organization chart on the web (asp.net based) instead of plain text list. Any free (cheap) tool can help me do this? Any idea? Suggestions? Thanks in advance. Jason...more >>

label control not heeding width attribute
Posted by Dabbler at 4/10/2006 7:19:01 PM
I'm trying to block out some text by setting Label width attribute which renders as a span tag so that all labels for textfields take up the same amount of space hence the textfields are all aligned but for some reason the width is being ignored in IE 6 even though it works in Firefox. Is the...more >>

Auto Download from Web Page
Posted by Prakash at 4/10/2006 6:29:00 PM
Hello all, In Intranet, i want to make file download without User Interaction(Dont want the Dialog which ask Open and save) and want to save that file to a specified location in clients system.Enabling Acitvex in the Browser won't be a problem , all user will enable Activex for I...more >>

How to add attributes to GridView ButtonFields?
Posted by Rob Roberts at 4/10/2006 6:22:31 PM
Is there any way to add attributes to GridView ButtonFields? I'm looking for a way to add event handlers to ButtonFields. With regular ASP.NET buttons, I can add event handlers by using the Attributes collection, like this: MyButton.Attributes.Add("onmouseover", "this.className='actionH'"...more >>

XSLT caching
Posted by Floris van Haaster at 4/10/2006 5:06:27 PM
Hi all, What I have: I have a website and in the code I generate a xml document. I also have a couple of xsl files and then I use the following lines to generate the website from the xml and xsl: xslTran.Load(serv.MapPath("default.xsl")) xslTran.Transform(xmldoc, Nothing, Response.Outpu...more >>

HELP...Authentication questions
Posted by Newbie at 4/10/2006 5:01:47 PM
Hi all, I'm hosted my ASP.NET 2.0 on an .NET 2.0 enabled shared hosting provider. I tried the user registration page and it returns following error: "An error has occurred while establishing a connection to the server". Please click this link, just enter anything you want: http://www.infote...more >>

ASP.NET 2.0 Automation
Posted by sck10 at 4/10/2006 4:56:51 PM
Hello, What is the best way to go about automating a web page to send email? Is this something that I need to do with IIS 6? -- Thanks in advance, sck10 ...more >>

Selecting an item in a drop down list
Posted by KatMagic at 4/10/2006 4:10:22 PM
How do you force a drop down list to default to a particular item based on its value? I have a drop down list with options Yes, No, Maybe, All, and I would like it to default to "All" This is my code, what am I doing wrong? ddlBilling.SelectedIndex = ddlBilling.Items.IndexOf(ddlBilling....more >>

ObjectDataSource caching questions
Posted by J055 at 4/10/2006 3:01:35 PM
Hi I've implemented caching for my ObjectDataSource. <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnableCaching="True" CacheDuration="10" CacheExpirationPolicy="Sliding" SelectMethod="GetUsers" TypeName="BizObject"></asp:ObjectDataSource> This works, however I need to ex...more >>

Page/window focus...
Posted by Rob R. Ainscough at 4/10/2006 2:42:42 PM
I'm using .NET framework 2.0 with ASP.NET and VB.NET code behind. What I want to accomplish: User must accept an agreement (which is displayed in a separate IE Window) before they can proceed with the current page. User clicks on a checkbox on PageX (.aspx) which calls a uses JavaScript (...more >>

close db connections
Posted by Howard at 4/10/2006 2:24:14 PM
using (SqlConnection connection = new SqlConnection(constr)) { using (SqlCommand command = new SqlCommand(com, connection)) { //read from db } } Is this sufficient to close db connections or do I need to add connection.close().. I know the object will be disposed afte...more >>

Problem with FormView and DropDownLists
Posted by Bas Paap at 4/10/2006 2:21:02 PM
I'm having a problem with formviews and DropDownLists in ASP.NET 2.0. I'm using a formview to insert an order into a database. Part of the order is the customer. Currently, I have a dropdownlist bound to a datasource that simply selects all customers from a database table. The DropDownList's S...more >>

Wire up a click event within another click event doesn't work...
Posted by Chu at 4/10/2006 2:04:54 PM
Thanks everyone for taking a moment to read this. I've got a page where I use a LinkButton and I wire up a dynamic event to the button. When the user clicks the button, the event is fired as expected. In the event code for that button, a new LinkButton is added to the page and is wired up to ...more >>

Help!! redirect classic asp page to asp.net 2.0 page using queryst
Posted by KenLee at 4/10/2006 1:38:01 PM
I made an application which includes classic asp page and asp.net page. when I tried to redirect from classic asp page to asp.net 2.0 page, it works under my local IIS directory. ex) <a href="default.aspx?store=<%=rs("store")%>"><%=rs("store")%></a> However, When I copy that application ...more >>

Better way? (DataView question)
Posted by James at 4/10/2006 1:24:03 PM
Basically I have a DataGrid that I'm binding to the results of a stored procedure call. The recordset is fairly small. Initially I'm creating a DataSet from the results and binding it. There's a DropDownList on my page that filters the records that are displayed in the grid. How I'm curr...more >>

64 bit and asp.net makes problems
Posted by the friendly display name at 4/10/2006 1:13:02 PM
Following configuration: Hardware: 64 bit system (amd athlon 64 bit 3000+) Software: Windows 2003 Standard Edition x64 version. ASP.net 2.0 (x64 version) is installed on this system. Problem: The 64 bit aspnet_isapi.dll doesn't work! I've assigned the file extensions ..aspx, .a...more >>

set visibility of label in datagrid IF text string present
Posted by footballhead NO[at]SPAM gmail.com at 4/10/2006 1:03:55 PM
Hello- I have page on my site that displays the results of a product search in a datagrid. There is a text field that has a full description of the product named FullInfo. I have placed some keywords in this description that denote certain things about the product such as SALE, CLOSEOUT, FR...more >>

Web.conf debug attribute creates different control naming conventions .NET 1.1
Posted by Roy Assaly at 4/10/2006 12:57:32 PM
I had initially this question on Reporting Server, but I started to think this has to do with ASP.NET. I'm calling a web server on another server and passing parameters back to it. When debug="true" in Web.config, everything works fine. If debug="false", I can't pass that info back to the we...more >>

asp.net & word problem
Posted by Jesse Johnson at 4/10/2006 12:49:02 PM
I have some code that inputs text into a word template but I cant figure out how to input a line break. I have: cell.Range.Text = "Jesse Johnson"; I NEED TO A LINE BREAK HERE cell.Range.Text = "Address"; I NEED TO A LINE BREAK HERE cell.Range.Text = "City, State Zip"; I want it to read...more >>

Executable
Posted by Jim McGivney at 4/10/2006 11:30:40 AM
On an aspx page the user has the ability to view and if desired, download an image (.jpg). I would like to place a button on the aspx page that opens Adobe PhotoShop (if present) on the users computer and pass a command line argument to open the specific image. The user can then manipulate t...more >>

drop down menu looses initial option
Posted by Laura K at 4/10/2006 11:16:19 AM
I have a drop down menu which has a list of subcategories and the initial value is "please choose a Subcategory". When the user chooses a subcategory they are taken to a new page where the drop down list shows the selected subcategory in the menu. So far that is working. The problem is that w...more >>

DropDownList doesn't carry correct Viewstate selectedIndex
Posted by Phuff at 4/10/2006 11:15:24 AM
Apparently if you have any duplicates in your Value collection the selected index that is maintained through the state defaults to the first index in that group of duplicates. So my items correspond to the Box_Id in the table (the unique identifier in the DB). There are 8 boxes, 1-8. Then I ...more >>

Accessing a Persistent Object throughout a user session
Posted by Alex Maghen at 4/10/2006 10:24:01 AM
I want to create an object which is attached to the specific user session and I want to be able to access that object directly throughout the Pages, Page Controls, and Master Pages of the site. I'm assuming that the best way to do that is to create the object and then put it into the Sessi...more >>

writing to an access database?
Posted by bazzer at 4/10/2006 9:56:19 AM
can anyone tell me please how i write to an access database from a webform? i can fill listboxes and textboxes and so forth with data from my tables in my database no problem. but i dont have a clue how to add rows/records to those tables from my webforms. can anyone point me in the right dire...more >>

why isnt target="_blank" working????
Posted by Jon via DotNetMonster.com at 4/10/2006 9:42:34 AM
<siteMapNode title="share price" description="Link to Netcall on the London Stock Exchange" url="http://www.yahoo.co.uk" role="" target="_blank" /> Hi all I'm trying to open the Yahoo web site in a new window using the above code in my asp.net web.sitemap. I'm expecting the target="_bla...more >>

Microsoft Word and ASP.net
Posted by Jay Douglas at 4/10/2006 9:18:46 AM
I'm researching a solution that will allow the opening and SAVING of Word documents over the web. I've found numerous articles that detail how to create/modify document server side, but I'm needing the web server to actually save the file somehow. This can be an ActiveX or other proprietary co...more >>

Referencing separately compiled asp.net apps
Posted by hgnis_ppc NO[at]SPAM yahoo.co.in at 4/10/2006 8:40:00 AM
In one of my recent projects , I am planning to split the work as a core asp.net application and 3 separate modules (asp.net applications) that provide other functionalities. I want to be able to develop the modules independently and then copy the aspx pages and the dll into a sub directory of...more >>

gridview: "Viewing record x of y"
Posted by NH at 4/10/2006 8:35:03 AM
I have a girdview with paging enabled. How can I add a message in the footer to say "Viewing records 1-15 of 45" etc Thanks...more >>

FormsAuthentication Problem
Posted by thecoolone at 4/10/2006 8:33:01 AM
I have an index.aspx page containing a button and the code in btn click is private void Button1_Click(object sender, System.EventArgs e) { if(User.Identity.IsAuthenticated) { Session["name"]=User.Identity.Name.ToString(); Server.Transfer("welcome.aspx"); } else {...more >>

how to build web forms dynamically - AddHandler
Posted by bill at 4/10/2006 8:26:53 AM
I am building a web form dynamically using VB 2005. I add several textbox controls, radio button controls, checkbox list controls, etc. to a placehoder control on the page, and I want to add an event handler to handle the TextChanged or other appropriate event for all the text boxes (they ...more >>

MasterPage -> Page -> MasterPage Code Access
Posted by Alex Maghen at 4/10/2006 8:16:01 AM
Hi. I'm a little confused about the code that resides in the code-behind of a MasterPage and the code that resides in the code-behind of the actual pages that USE that MasterPage. I'm noticing, for example, that the Page_Load on the specific page executes before the Page_Load of its MasterP...more >>

Viewstate/Postback for dynamic controls. CRAZY?
Posted by mivhaelveloz at 4/10/2006 8:01:22 AM
I thought I had a good grip on viewstate handling, but am suprised by a small test: In my aspx file I have a PlaceHolder control and a button for posting back. Dynamically in Page_Load I create a TextBox, and add it as a control of PlaceHolder. I do this regardless of whether IsPostBack ...more >>

combining datatypes in bound column
Posted by drdave NO[at]SPAM canoemail.com at 4/10/2006 7:32:34 AM
Hi, In a bound column I have currency datatypes, but the client does not like $ 0.00 and wants to show a blank instead.. I'm trying to use an if statement to write out string.empty but it doesn't want to allow the different datatype.. The currency amounts are stored as number in the db... ...more >>

Maintaining DropDownList selected index
Posted by Phuff at 4/10/2006 7:04:36 AM
Thanks in advance! I'm trying to maintain a dl list's selected index on postback. What I'm doing is when a person selects an item from the drop down list I select a date in a calendar control and populate a text box with the date. To do this I set auto postback to the drop down list. But it ...more >>

csproj requires Policy Management
Posted by Jerry J at 4/10/2006 6:49:02 AM
I am taking over an existing ASP.net project. When I open the project in Visual Studio I get the following error message: "The project 'http://localhost/myproj.csproj' requires Policy Management. Open this project in Visual Studio .NET Enterprise Developer or Visual Studio ..NET Enterprise ...more >>

Strange problem setting focus on a TextBox within a WizardStep.
Posted by clickon at 4/10/2006 6:44:02 AM
For testing purposes i have got a 2 step WizardControl. Eqach step contains a text box, TextBox1 and TextBox2 respectively. If i put the following code in the respective activate event handlers for the two steps, TextBox1.Text ="foo"; and TextBox2.Text = "bar"; Then in the first ...more >>

ItemDataBound not being caught
Posted by Jon at 4/10/2006 5:53:01 AM
Hello everyone, We're using ASP.net 1.1 and when we load a control dynamically, using LoadControl, the ItemDataBound of the DataGrid that sits in this dynamically loaded control does not get hit. Does anyone know why at all? Any help would be great. Thanks, Jon...more >>

ASP.NET Folder Security
Posted by Dave at 4/10/2006 5:38:35 AM
Hi, I am developing a web application which needs different levels of security. - Basic browsing with name and basic profile being stored - Changing account information e.g. address, password etc - Buying an item from the store I want all users to be able to do this, but I want them to h...more >>

DropDownList - ToolTip
Posted by Oren at 4/10/2006 5:22:01 AM
hi all, i tried to create foreach item in DropDownList a ToolTip. It doesn't work. any idea ? DropDownList ddl; DataTable dt = (DataTable)Session["list"]; foreach (DataRow dr in dt.Rows) { ListItem li = new ListItem(dr["name"].ToString(), dr["id"].ToString()); ...more >>

Retaning state of Dynamically Created Controls in ASP.NET.
Posted by aroraamit81 NO[at]SPAM gmail.com at 4/10/2006 3:28:34 AM
How do I retain State for Dynamically Created Controls in ASP.NET. I have created a control on first time page load, but when I do post back, then my dynamic controls gets disappeared. I have used code like this: CheckBox chkbox=new CheckBox(); chkbox.ID="chkcontact"+objread2["contact_id"].To...more >>

Can I bind an array to GridView to show hyperlinked columns?
Posted by ianstirkcv NO[at]SPAM yahoo.com at 4/10/2006 2:47:52 AM
Hi, Does anyone have an ASP 2.0 code sample that shows how to bind a one-dimensional array to a GridView, such that the rows are shown as hyperlinks? Thanks Ian ...more >>

Scheduler in ASP.NET Application
Posted by Vijay Kerji at 4/10/2006 2:18:29 AM
Dear Friends, please read the following scenario... - A website which invites different users to register/participate in an initiative - Intial time period will be given to the user to access the site(consider an year to start with) - at the end of the registrtaion period, an auto generate...more >>

passing linkButton value as sql parameter
Posted by bill tie at 4/10/2006 2:03:01 AM
I create several link buttons based on database data. When a user clicks a link button, 1. I want to pass the value of the button as a parameter to an SQL query string; 2. suck more data out of the database; and 3. create another bunch of link buttons. All on the same page. Can anybo...more >>

Saving attachments from outlook express to Sql server table
Posted by Vipin Kumar at 4/10/2006 12:46:01 AM
Hi All, I want to store all the attachment's name from outlook express to the sql server database table using C#. Is there a way around to do this. Should i use the .psi files for that. How could i do it. Could anyone give me a hint, so that i can go to the way. Thanks in advance. Vipin K...more >>

ASP 1.1 to 2.0 problem
Posted by ^MisterJingo^ at 4/10/2006 12:25:16 AM
Hi all, I finally got VS2005 and used the conversion wizard to upgrade a webportal I have from .NET 1.1 to 2.0. Since doing this I get strange errors. THe first I recieved was: CS0246: The type or namespace name 'ett' could not be found (are you missing a using directive or an assembly refer...more >>

When ASP.NET Application expires?
Posted by satsreedhar NO[at]SPAM gmail.com at 4/10/2006 12:20:39 AM
I want to keep ASP.Net Application state does not expires, even if all session states expire and there is no new traffic for a certain amount of time. Can I do that? ...more >>

Datagrid not showing records on production server
Posted by syedrafey NO[at]SPAM gmail.com at 4/10/2006 12:06:55 AM
Hello, One of datagrid on my aspx page is not showing records on production server while there are records in database table. I have tested that page on my local machine and it is working fine. All other forms (approx 40+) are working fine on production server. That RuleDetail.aspx page has...more >>

Thread was being aborted error message
Posted by Jimi at 4/10/2006 12:00:00 AM
Hi all, I have a user control which raises an event to the parent page when a person clicks on a link in a datagrid. In the event handler inside the parent page I construct a url to redirect to containing information sent from the datagrid. It all works fine on my local machine but when I ...more >>


DevelopmentNow Blog