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 > october 2006 > threads for monday october 2

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

C# Mobile App - Strange Behaviour
Posted by Sid at 10/2/2006 11:54:43 PM
Hi, I am developing an application in VS-2005 for a Smartphone. I need to call the windows media player from the application to run video files. I use the following simple code (here 'path' is the path of the file on the phone) Process myProcess = new Process(); myProcess.StartInfo.FileName ...more >>


File download dialog box button events
Posted by pradeep_TP at 10/2/2006 11:51:02 PM
Hi all, I am using internet explorer 6.0 to access my interanet application. I have a download link on which when I click, I get a file download dialog box. Is it possibe to trap the Open, save and Cancel events on the dialog box?. Is it possible through javascript. Thanks. pradeep...more >>

using the ASP.net Security features.
Posted by Aussie Rules at 10/2/2006 9:39:08 PM
Hi, I have setup a web site that uses the asp.net security features. I have setup the security provider to use a database that is different to my applications database. Within my application, how can I get details of the user details stored in the security user table? For example the...more >>

Debugging
Posted by Uriah Piddle at 10/2/2006 9:00:55 PM
Hi Gang, Does anyone know the best way to make IE run a debugger when it encounters an error when running in VS 2005 debug mode? I'm new to web development and just discovered I have an error that IE has been ignoring. I've isolated it without the debugger but I would like to know how this ...more >>

communicating between webparts
Posted by Rotsey at 10/2/2006 8:27:27 PM
Hi, I want to put a webpart contol on the master page of a website. Then add a webpart to a page that has the master page linked to it. How do I update the webpart in the master page when a button is clicked in the page webpart??? I realise there is a webpartconnection control but is ...more >>

Errors CommerceStarterKit
Posted by Paulo at 10/2/2006 8:13:22 PM
Why when I try to run the Commerce Starter Kit I receive the errors that I published on server as a jpg picture... please take there! http://www.edutec.srv.br/sp/commerceStarterKit_Errors.JPG Can you give me some light? Im using VS 2005 Pro Thanks in advance ...more >>

C# vs VB.Net
Posted by Manny Chohan at 10/2/2006 8:04:01 PM
Hey Guys, Can some one tell me why is there more demand for C# vs VB .NET? Personally i have programmed in VB .net a little bit and have found it easier to use. Is there any hidden secret about C#? Please let me know. Thanks Manny...more >>

where can I find the file aspnet_regsql.exe?
Posted by Keithb at 10/2/2006 7:46:40 PM
My application is giving me this error message: "To enable a database for SQL cache notification, please use the System.Web.Caching.SqlCacheDependencyAdmin.EnableNotifications method, or the command line tool aspnet_regsql. To use the tool, please run 'aspnet_regsql.exe -?' for more informat...more >>



IE7 having problems with regular expressions
Posted by tshad at 10/2/2006 6:43:29 PM
Some of my regular expressions don't seem to work correctly in IE7. I am on asp.net 1.1. I have a site that has been up for a while and I started having problems on machines with IE7. IE5 and IE6 seem to work fine. In the following - 919-111-2222 as well as (919)111-2222 was giving one o...more >>

DateTime.Parse()
Posted by js at 10/2/2006 5:59:19 PM
I have a textbox contains text in the format of "yyyy/MM/dd hh:mm:ss". I need to parse the text using System.DateTime.Parse() function with custom format. I got an error using the following code. Could someone help me with the customization? Thanks. String was not recognized as a valid Date...more >>

variable Connectionstring= in a <asp:SqlDataSource ... ?
Posted by tbh at 10/2/2006 5:00:15 PM
is it possible in the ConnectionString of an asp:SqlDataSource construction to refer to a variable i define at the top of my ASPX script and initialize, for example, during Page_Init()? (the only examples i have seen use hard-coded references to connection strings defined in machine.config,...more >>

Set IHttpHandler for all files in a directory?
Posted by David Thielen at 10/2/2006 4:55:01 PM
Hi; I have tried both: <add verb="*" path="html-image\*.jpg" type="BitmapView"/> and <add verb="*" path="html-image\*" type="BitmapView"/> But neither works. In both cases I just get file cannot be found and it never calls my code. If I set <add verb="*" path="html-image.*" type="Bit...more >>

Parameter between ASP.net and xsl programs
Posted by djamilabouzid NO[at]SPAM gmail.com at 10/2/2006 4:46:35 PM
Hi, Thank you very much, Mohamed, about your last answer. That helped me a lot. I have another question about ASP.Net: o I do a research in a collection of images o I display images by number of 12 in each page o I use a parameter in the asp program to tell my xsl program which images ...more >>

Dynamic Controls question
Posted by J055 at 10/2/2006 4:07:24 PM
Hi I have a FormView, Panel and ObjectDataSource control. I'm trying to change the Panel.Visible property to true based on a value in the ReturnValue object in the ObjectDataSource.Selected event. I can't find the Panel control from the inside the Selected event method even though the contr...more >>

Add Google AdSense javascript code at runtime
Posted by shapper at 10/2/2006 4:05:55 PM
Hello, I need to place Javascript code inside an Asp:Panel so that the Google Adsense banner be placed inside the panel. I know how to do something like this in a page: ' Add javascript file (Show_Ads.js) [Google AdSense] If Not Page.ClientScript.IsClientScriptIncludeRegistered("A...more >>

GridView, must not be understanding something fundamental
Posted by JohnK at 10/2/2006 3:48:02 PM
I have a GridView MyClass[] List = new MyClass[10] ; for (int i = 0; i < 10; i++) { List[i] = new MyClass(); List[i].FirstName = " First " + i; List[i].LastName = " Last " + i; } GridView1.DataSour...more >>

codeSubDirectories and build order
Posted by Nick at 10/2/2006 3:44:48 PM
So, this link: http://msdn2.microsoft.com/en-us/library/54dwfbb7.aspx says, "The build order is inferred from the top-down order of the = codeSubDirectories collection. The App_Code directory is built last. = However, there are no build order dependencies, which means that the = build order...more >>

generating Excel files w/ .NET? (an ASP.NET, C# web app)
Posted by matt NO[at]SPAM mailinator.com at 10/2/2006 3:43:58 PM
hello, can anyone speak to some of the common or preferred methods for building Excel .XLS files, programmatically thru the .NET framework? i have an intranet app that needs to generate & email .xls files for users. these are not reports, but rather more like forms. its a pretty simple doc,...more >>

Asyncronous operation
Posted by Rob Nicholson at 10/2/2006 3:20:00 PM
I've developed a ASP.NET website which is running on a Windows 2003 Server with IIS6. I need to be able to run an asynchronous task that checks a POP3 mailbox, processes an email, writes data into the database and send SMTP emails back out. All of this is implemented and working fine except th...more >>

initial load only
Posted by Starbuck at 10/2/2006 3:06:07 PM
Hi I want to set a value on the initial load of a asp page and only then. What I have noticed is that every time I click on my Treeview control all of the following are called - Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init Protected Sub P...more >>

using access for login controls, create user wizard
Posted by Runsrealfast at 10/2/2006 2:58:53 PM
I am currently setting up my website to login etc. The default that asp.net is set for is sql server express (express edition, to poor to buy the real thing!) my host will only allow for access. How can I change the default settings to use access instead of sql server express? please help! ...more >>

state server and VWD 2005
Posted by Adam Sandler at 10/2/2006 2:54:50 PM
Hello, I'm using Visual Web Developer 2005 and developing on my local machine with the development server. I'm getting some errors that are caused by being "unable to make the session state request to the session state server." Someone (who is now unavailable) told me that I need to start ...more >>

Open Multiple New Browser Windows from ASP.NET
Posted by dnes at 10/2/2006 2:42:40 PM
Open Multiple New Browser Windows from ASP.NET I'm having trouble figuring out how to open multiple new browser windows (each one displaying something different). As you can see from the code below, I have one ASP.NET page that has a foreach loop, and inside this foreach loop, I was to spawn ...more >>

Copy HTML code in an ASP control.
Posted by drop at 10/2/2006 2:35:15 PM
Hi, I need to know if there is an ASP control in which I can easily paste some HTML code. Basically, we have a management application in which the client can enter it's product description. The client wants to be able to enter HTML in the description textbox so he can customize the presenta...more >>

Basic asp.net 2.0 question about the dataset
Posted by needin4mation NO[at]SPAM gmail.com at 10/2/2006 2:20:52 PM
If I have a legacy database that I cannot use the Drag and Drop dataset tools with Visual Studio, is the correct (only) way to get to the data using a DSN on the machine like so: DataSet ds = new DataSet(); OdbcConnection conn = new OdbcConnection("DSN=myDSN;uid=xxx;pwd=xxx"); ...more >>

How do I handle this date?
Posted by needin4mation NO[at]SPAM gmail.com at 10/2/2006 2:15:06 PM
Hi, I have a database that requires dates in this format: 30-sep-2006 The ODBC driver does not convert. In 1.1 I either parsed the date and put it in the right format or used a validator on the client side explaining how to submit the date. I haven't written anything big in 2.0 and don't...more >>

Authentication Twice?
Posted by ClevelandSteve at 10/2/2006 2:09:58 PM
I am using forms authentication in my project. Within my login page I check that the user is valid against the database and use the following code to issue the cookie and redirect them to the next page: FormsAuthentication.SetAuthCookie(txtUser.Text.Trim, False) Response.Redirect("UserAccount...more >>

get the sql statement
Posted by Afton Wynona at 10/2/2006 2:07:32 PM
How can I get the actual SQL statement rather than this sh@thole error? Data type mismatch in criteria expression. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it ori...more >>

how to: debug asp embedded in HTML
Posted by oaksong at 10/2/2006 1:48:39 PM
I'm using the data controls, or trying to. I've got a grid-view and a details-view. They work. I'm trying to setup and Insert via the Details view. It doesn't work. The error message makes it clear that the variables are doing what I'd like them to do. Essentially, I don't understand how ...more >>

disable updates on formview
Posted by rodchar at 10/2/2006 1:01:03 PM
hey all, if i want the user to only be able to add one record on the formview what's the best way to do this? they can edit current record but not add more than one. they can also delete that one record. any ideas? thanks, rodchar...more >>

force insert to show
Posted by rodchar at 10/2/2006 12:48:02 PM
hey all, if you have a formview with emptydataset, is there a way to make the Insert button show up? thanks, rodchar...more >>

using html control to download file from client to server
Posted by Paul at 10/2/2006 12:33:02 PM
Hi I am using the HtmlInputFile control to upload a file from a client to a server. I have a browse to find the file on the server but need to create the path dynamically as to were it will go based on some dropdown boxes, one for the year and one for the month. This line saves the file so I...more >>

Dynamic BoundField in a gridview
Posted by Chicagoboy27 at 10/2/2006 12:31:51 PM
I have dynamically bound a field to a gridview using the follwoing code: BoundField nameColumn = new BoundField(); nameColumn.DataField = "territory"; nameColumn.HeaderText = "Terr Num"; nameColumn.SortExpression = "territory"; //appends the column at the end GridView1.Columns.Add(nameC...more >>

How to Create a new Custom Web Control
Posted by Elmo Watson at 10/2/2006 12:22:12 PM
I've got VS.Net 2005 - professional I have an idea for a custom control, which will inherit some databinding stuff, but I'm not really sure where to start. There's not anything in the New Project window that lists a Web Custom Control template, or anything near it - - At this point - all I ne...more >>

MS Enterprise Library
Posted by Dave at 10/2/2006 12:17:31 PM
Hi, I have started using MS Enterprise Library for the data access layer and found it great. I have changed to coding on another machine though and didn't think it necessary to a full install of the Enterprise Library. This caused a problem that the following article solves: http://scottonw...more >>

Lock table for inserts
Posted by simonZ at 10/2/2006 11:49:21 AM
I create a transaction: sqlTran=3DsqlConn.BeginTransaction(IsolationLevel.Serializable); Then, I insert some data into report table with sqlCommand object: oCmd =3D new SqlCommand("c_reportInsert", sqlConn); oCmd.CommandType =3D CommandType.StoredProcedure; oCmd.Transaction =3D sqlTran; .....more >>

Gridview PagerStyle problem
Posted by kuangzhang NO[at]SPAM gmail.com at 10/2/2006 11:41:16 AM
Dear MS Gurus, I have read many posts on the Gridview pagerstyle problem but have yet to see a fix or an work around. Following is what I am experiencing: in the Aspx Page I have this <PagerStyle CssClass=3D"PagerSytle"/> After render the Aspx page the HTML looks like this <tr class=3D"Pager...more >>

GridView & ObjectDataSource (functionality is client side or server side?)
Posted by Angel Of Death at 10/2/2006 11:16:59 AM
When you use the ObjectDataSource with the GridView ASP.NET control is it the client (browser) that makes the SOAP request required for interaction with the WebService or is it the server? I'm just trying to work out how the GridView control works (i.e. what it does for me behind the scenes). ...more >>

Request object doesn't include items that have a blank value
Posted by TS at 10/2/2006 11:07:08 AM
In my production exceptions i get an email with all the form elements and their values to debug. the controls that have a blank value are not seen and it makes my debug job harder (was the control's value blank or was it set invisible on server so its not in the html). how do i access all c...more >>

How to use .Net user control in regular ASP
Posted by pargat.singh NO[at]SPAM gmail.com at 10/2/2006 10:51:09 AM
Hi Everyone: I have a reguirement to develope a user control in .Net and to use in our portal page which is developed in regular ASP. Is this possible and if yes can someone please give me some example or point me to some usefull line. Lots of thanks in advance. Pargat Gill ...more >>

Cookie setting with IP address, not Domain name
Posted by Todd Brewer at 10/2/2006 10:28:01 AM
I have an ASP.NET 2.0 site that stores a cookie on the browser. Instead of the domain name (www.somename.com) it comes accross as the IP address of the server. This works in Firefox, but fails with IE 6 because of security. I went through and forced the Domain like this: this.Res...more >>

Asp.Net and AdSense
Posted by shapper at 10/2/2006 9:47:52 AM
Hello, Does anyone knows an Asp.Net 2.0 control for Google's AdSense? Thanks, Miguel ...more >>

URL Rewriting and themes
Posted by Smokey Grindle at 10/2/2006 9:40:25 AM
How have you guys handled the postback / themes problem with url rewriting in ASP.NET 2.0? ...more >>

themes and print css
Posted by Smokey Grindle at 10/2/2006 9:39:43 AM
Is there a way to add a print media css style to a theme? so i can have it like this <link rel="stylesheet" type="text/css" media="print" href="print.css" /> instead of just a normal css style sheet? basically offer two styles per theme one for screen display and one for print? thanks! ...more >>

membership/users db location
Posted by CharlesA at 10/2/2006 9:14:02 AM
Hi folks, I'm using VS 2005 Team system with C# and ASP.net 2.0. I have an MCSD.Net in 1.1 and relevant commercial experience of ASP.net 1.1 when I click the 'ASP.Net configuration' on the top right of the properties window and it launches the new web based administration, I can create users ...more >>

Event wireup headache
Posted by Oddball at 10/2/2006 8:44:04 AM
I've been browsing through this newsgroup and I am yet to come across exactly the answer I was looking for so, after a while, I figured I'd searched long enough and hard enough to actually post. My problem is simple: I have a search control - it runs a search and returns a number of produc...more >>

Detecting Session Timeout
Posted by Mike at 10/2/2006 7:49:01 AM
Hi. How can I detect if a user's session has timed-out? I'd like to be able to redirect the user to a specified page in the event of session timeout. Thanks!...more >>

Master Page w/User controls
Posted by Chris Davoli at 10/2/2006 7:28:02 AM
I initially created a master page for a common look and feel in my project. I am trying to refer to a user control that is on a master page. When I add a new web form to the project I check the checkbox for "Select master page" so the page has the same look and feel as the master page. The pro...more >>

datalist and ajax update panel
Posted by rodchar at 10/2/2006 7:11:02 AM
hey all, i saw an update panel example one time where they put a button outside the update panel and a textbox inside the panel and setup a trigger on the update panel to update when the button was clicked. well, i'm trying to do the same thing except with a datalist but i can't get it to ...more >>

formview and checkboxes
Posted by rodchar at 10/2/2006 7:03:02 AM
hey all, i'm trying to bind my dataset to a formview but i get a message that says: Conversion from type 'DBNull' to type 'Boolean' is not valid. in order to fix this do i have to specify false for the bit field in the database or is theere a config in formview i can modify to accept it? ...more >>

ASP.net and SQL impersonation for High Scalability
Posted by Gordowey at 10/2/2006 6:27:14 AM
Hi all, I would like to ear your opinion about the best approach for and ASP.net with high workload traffic (High number of visitors) using SQL DB Consider the following scenario: - Website with 10.000 visitors/day. (and can grows faster. High Scalability is one of teh requirements) - Sing...more >>

Session lost when deleting a directory ion asp.net 2.0
Posted by vikram.lakhotia NO[at]SPAM gmail.com at 10/2/2006 5:46:51 AM
Hi Have you tried deleting a directory in Asp.Net. Here is an article discussing the problem deleting a Directory in Asp.Net http://www.vikramlakhotia.com/Deleting_Directory_in_ASPnet_20.aspx Hope this helps Thanks Vikram www.vikramlakhotia.com ...more >>

group dataset
Posted by igotyourdotnet at 10/2/2006 5:35:01 AM
I want to group my data being returned from my dataset, the dataset looks like this: <bmw></bmw> <Lexus></Lexus> <ChevyTahoe></Chevy> <Mercedes></Mercedes> <ToyotaFourRunner></Toyota> If I get bmw, Lexus, or Mercedes returned i want to group them as 'Luxury' and show them in my grid as...more >>

Newbie: Help with DetailsView insert
Posted by news.sbcglobal.net at 10/2/2006 3:01:57 AM
Hi. I'm hoping this is a simple problem... I have a web page with a drop down list box containing data (colors for example) and a DetailsView control where the item selected in the drop down list box can be edited or a new item added. It's adding items that I'm having trouble with. Whe...more >>

VS2005 v VS2003 designer
Posted by Phil H at 10/2/2006 1:58:49 AM
I've been using VS2003 professional edition for some time now and have just upgraded to version 2005. It appears that Microsoft have done away with the MS Word type formatting controls on the toolbar for basic web page text e.g. paragraph formatting, bulleted and numbered lists etc. Can any...more >>

Caching problems
Posted by Tomasz at 10/2/2006 1:41:29 AM
Hello, i have following lines in my Page_Load: Response.Expires = -1; Response.AppendHeader("Pragma", "no-cache"); Response.Cache.SetNoStore(); Response.Cache.SetCacheability(HttpCacheability.NoCache); I'm running this page additionally with dummy parameter: Response.Redirect("Page.aspx...more >>

newbie: can this be put into a css file?
Posted by Jeff at 10/2/2006 1:29:57 AM
Dear reader! Below is the source of a asp.net 2.0 menu. I wonder if it's possible to put styles like <StaticSelectedStyle ForeColor="blue" /> into a css file? and if it's possible, how? A link explaining this would be greatly welcome! Or maybe it's better to put it into .skin files? Bes...more >>


DevelopmentNow Blog