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 > august 2006 > threads for thursday august 24

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

Bug? OutputCache directive processed when commented out
Posted by Amil Hanish at 8/24/2006 11:14:55 PM
I had an aspx page with output caching turned on. Then I wanted to do some other stuff and I commented it out like: <!-- <%@ OutputCache Duration="1800" VaryByParam="t" %> --> The IDE correctly shows this as a green comment...but don't be fooled. .NET still processes and caches the outp...more >>


Setting HtmlSelect SelectedIndex using a value
Posted by writebrent NO[at]SPAM gmail.com at 8/24/2006 10:06:53 PM
This is my code: HtmlSelect m = new HtmlSelect(); m.ID = "m1"; m.DataSource = dvBasic; //DataView created elsewhere m.DataTextField = "value"; m.DataValueField = "key"; m.Value = "2"; //<----NOT WORKING ctrls...more >>

Problems with Theme and Context.RewritePath()
Posted by MatsL NO[at]SPAM newsgroups.nospam at 8/24/2006 9:49:28 PM
Hi, I'm using Context.RewritePath() in a HttpModule to get url rewriting done. http://localhost/Web1/articles -> http://localhost/Web1/Default.aspx?m=articles But I'm having problems with Themes when I'm using that. The problem rises when my url ends with a '/'. Example: http://localhost...more >>

ASP.net SQL Insert Problem
Posted by Brad Baker at 8/24/2006 9:41:12 PM
I'm trying to write a simple asp.net page which updates some data in a SQL database. At the top of the page I have the following code: <%@ Page Language="C#" Debug="true" %> <%@ import namespace="System.Data" %> <%@ import namespace="System.Data.SqlClient" %> <script language="c#" runat="s...more >>

A connection attempt failed problem
Posted by Dennis at 8/24/2006 8:33:09 PM
I'm getting the following problem occasionally...the application will work perfectly well for a period of time and then this pops up. I have tried turning off the default proxy in the web.config which I had seen on other posts but that did not solve the problem. Any assistance or ideas ...more >>

URGENT - Very Puzzled - IIS Authentication
Posted by Bren at 8/24/2006 8:16:05 PM
Hi All My appologies for the URGENT shout but I need to get this sorted by 06:00 GMT otherwise I am going to have 150 screaming intranet users moaning at me. Win 2k Server ASP.NET 2 I have just deployed our shiny new ASP.NET 2 Intranet app and want to use Integrated windows authenticat...more >>

Form & List
Posted by Jeff at 8/24/2006 8:08:46 PM
hey asp.net 2.0 If it's possible then I want to use a "form & list" control on my asp.net 2.0 webpage. In "form & list" I mean "list" displays rows of data, and when the user clicks one of those rows, the row becomes highlighted. the "form" part will display the detail of the row selecte...more >>

Asp.Image gets wipped from source code at run-time
Posted by Switch4Mac at 8/24/2006 6:47:03 PM
Hi, I want to insert an ad in my MasterPage. So in the MasterPage, I have this piece of code: <asp:Image ID="GatesAd" runat="server" ImageUrl="http://www.gate.com/images/banners/gate_148x400_final.gif" AlternateText="www.Gates.com" /> and I even tried with the simple: <img src="http://ww...more >>



Mutliple Drop down list boxes
Posted by Ami at 8/24/2006 5:47:37 PM
Hi All Can someone help me how to code Multiple drop down listboxes, like Country code and associated state codes. When I select a particular country, only states that belong to that country must be populated. Please help. Right now I have 2 countries that contains distinct states for each of...more >>

Redirect to an MMS link
Posted by Stupid48 at 8/24/2006 5:12:46 PM
I have a predicament.... I am passing a variable to an ASPX page that contains a physical path to an ASX file. Then, on that page, I take that link on Page_load and create a Windows Media Server on-demand publishing point. My plan was to then do a reponse.redirect("mms://...") to the end us...more >>

AspNet Charting tool recommendations
Posted by Igor at 8/24/2006 4:58:49 PM
Hi all, I'm looking for a tool that can design charts and save chart definitions in a file. I would put those chart definitions in a database and then later load them and render charts (as images) in asp.net application (using the library from that tool). That way I can easily add new chart...more >>

How to Display the Map from the Shape files in ASP.NET?
Posted by Vikas Kumar at 8/24/2006 4:55:26 PM
How to Display the Map from the Shape files in ASP.NET? ...more >>

Using Business Rules Table
Posted by sck10 at 8/24/2006 4:46:14 PM
Hello, I need to create a Business Rules table that can be pulled into the web page and use it as criteria for who should receive the approval email. For example, I have created a travel request form that ask a series of questions: TravelType: Domestic or International VisitType: (Cus...more >>

How to make a EXIT button on Asp.2.0
Posted by Henry Lee at 8/24/2006 4:27:35 PM
Hi, I am using Asp 2.0 environemnt to develop our company Intranet. This should be a easy task for some of you but I just have no clue to make a exit button on the web page for user to click and close the broswer. Does it need Java script which I am not familiar with or there is a simp...more >>

ItemDataBound question
Posted by Loading name... at 8/24/2006 3:56:47 PM
hey asp.net 2.0 I have a ItemDataBound event in my repeater control. My problem is that I don't know how to access the data in the ItemDataBound control. Lets say the datasource has a field named "helloworld" and I have a label named "lblName" in the repeater control: lbName = e.item[...more >>

javascript checkbox
Posted by rodchar at 8/24/2006 3:53:02 PM
hey all, just wondering about something i noticed. if i add a new html page to my project and i drag a checkbox out on to the page and double-click it to create a client-side click event i get the following: onclick="return Checkbox1_onclick() why do you need the return keyword? t...more >>

Formview Line Breaks
Posted by MDB at 8/24/2006 3:51:04 PM
Hello All, I have a label in a form view that I need to have display the line breaks. Is there an easy way to do this? For some reason, I havn't been able to find a straigh answer on this. Here is what I have: <asp:FormView ID="FormView1" runat="server" DataKeyNames="ID" DataSourceID=...more >>

Progress Bar or Waiting message
Posted by fabrice at 8/24/2006 3:49:58 PM
I m looking for a solution to show a message when ma first page is loading. It is the "home page" of the application. And I'd like to give the message 'please waiting ...' during the loading. I m working under framework 1.1 whith vb.net. I have found out some solutions but none of then is wor...more >>

Page CallBack
Posted by Ben Schumacher at 8/24/2006 3:31:24 PM
I have a .aspx page that implements ICallBackEventHandler. On the page I have texbox server controls and a button with a click event set to trigger the call back to the server. I put a breakpoint in the page_load event to step through whats happening in the codebehind as the page is called b...more >>

Forms authentication isn't working...
Posted by Paul Mason at 8/24/2006 3:26:18 PM
Hi folks, I have a project that was initially set up to use windows integrated authentication, which I have now changed to forms authentication. The problem is that my local development copy still thinks it's using windows authentication and when I start the debugger goes straight to Def...more >>

asp.net 2.0 membership ASPNETDB_TMP.MDF" is on a network path that is not supported for database files
Posted by jason NO[at]SPAM cyberpine.com at 8/24/2006 3:12:29 PM
I've been playing around with new (for 2.0) membershp functionality. I was able to build a simple login form that secures a directory on a project I built locally on my development desktop. However, when I attempt to follow the same steps on the remote test server (a website I access via fil...more >>

Incorrect duplicate ID added to server control, leaving it with 2 IDs
Posted by aaron NO[at]SPAM aaconsult.com.au at 8/24/2006 2:48:56 PM
Hi All, I have a custom web control which works perfectly. Its just a tabcontrol to spit out navigation tabs, it inherits from System.Web.UI.WebControls.WebControl In web page design view, say I give the control an ID of "tab1". I am getting this weird and very frustrating behaviour: W...more >>

How to convert a .txt file extension to a .xls file extension?
Posted by Steve at 8/24/2006 2:41:52 PM
Using VB.NET, How do I convert a .txt file extension to a .xls file extension? The text file is already created and saved in a folder on the server. Thanks Steven ...more >>

ICallBackEventHandler
Posted by Ben Schumacher at 8/24/2006 2:39:49 PM
I have a page that implements ICallbackEventHandler. I'm trying to accomplish auto saving a page everytime the user navigates away from the page. To initialize the callback, I fire the onunload event on the window as can be seen below. <script type="text/javascript"> window.onunload =...more >>

Session is null in ashx handler
Posted by Jan Kucera at 8/24/2006 2:39:24 PM
Hi, why is session object null if the ashx file is requested? How can I force to create session when the request is to custom handler? Thanks, Jan ...more >>

Open a new browser window problem!!
Posted by nashak NO[at]SPAM hotmail.com at 8/24/2006 2:26:17 PM
Hello, I have a aspx page on which I have a button. In the click event method in code-behind I do some processing and now need to open a new window in another browser and pass a couple of parameters. I included in my aspx file, the following js function: function OpenChecklist(strCaseID) ...more >>

newbie - keeping my object data as page refreshes
Posted by AAJ at 8/24/2006 2:08:50 PM
Hi all I have some experience in 'Windows' programming but I am new to Web programming, I wonder if anyone can help. I have a middle layer object that brings some data from a database class . The class reprsents a Callout, has lots of methods and properties and manages the business logic...more >>

GridView DataFormatString not working for varchar dates
Posted by ronrogell NO[at]SPAM quadax.com at 8/24/2006 1:09:16 PM
I would like to format a date field in a GridView that is defined as a varchar. Here is the bound field that I am trying to format. What am I doing wrong? Can this only be done for DateTime fields? <asp:BoundField DataField="FILE_PROCESS_DATE" HeaderText="Process Date" DataFormatString="{0:...more >>

TreeView 2.0
Posted by Victor Rodriguez at 8/24/2006 12:29:41 PM
Is there a way that I can have a client side event like oncontextmenu="showfunction();" on each node? thanks, Victor ...more >>

I just completed my CCNA Boot Camp IP-GATES (GOA) http://www.ipgates.com
Posted by davidprice123 NO[at]SPAM gmail.com at 8/24/2006 12:14:07 PM
I just completed my CCNA Boot Camp IP-GATES (GOA) http://www.ipgates.com and would be happy to share my experience. I have been to IP-GATES (IT TRAINING) training session in Goa India. The CCNA teacher at IP-GATES is great. He Thought me much more than I needed to know. All concepts were ex...more >>

Converted Web Application from 1.1 to 2.0 Causing Problems
Posted by rishabhshrivastava NO[at]SPAM gmail.com at 8/24/2006 11:21:50 AM
Hello All, I converted a Web Application from ASP.NET 1.1 to 2.0 using the Migration Add-Ins and I have been working on this converted version for 2 months now. Today I realized that if I open the project from File menu as "Open Website" it gives me errors all over but if I open it as "Open...more >>

Email Confirmation Message Doesn't pick up the style sheet only in hotmail/yahoo
Posted by Tatyana at 8/24/2006 11:20:57 AM
Hello, I'm having problems to Style Order Confirmation Email Body. I'm sending it out as HTML. Everything looks fine in Outlook, but hotmail accounts (checked it on yahoo and hotmail) seem to disregard the stylesheet and only grab the inline styles. Is there a solution to the above problem...more >>

Finding Email address in a Profile
Posted by Owen Richardson at 8/24/2006 10:29:02 AM
I just started using The Login Objects and the CreateUserWizard creates a number of fields including Email address and i cant figure out how to reference it: intellisense tells me that Profile.Username is available, as are all of my customised fieldnames - but where would i find the Email Ad...more >>

File.CreateText
Posted by Jon at 8/24/2006 10:04:01 AM
Hello all, I'm creating a file with the extension mai and the file contents are in Japanese (シャーのエア抜き). Now the code works and creates the file, but when I open it in Wordpad, the japanese text has become シャーのエア抜き. Why is this and ...more >>

Populating Controls - Form Load Dynamically
Posted by netasp at 8/24/2006 9:03:39 AM
hi all, how can I populate one aspx form when page is loading based on page ID? for example: loading page A (to search for VB code) would display labels and texboxes, dropdown lists all related to VB, plus the address bar would show something like this: www.somethinghere?id=3 and if you c...more >>

Sending email with invalid address
Posted by glenn at 8/24/2006 9:02:03 AM
Hi folks, I am using the Send method in the System.Web.Mail.SmtpMail class. If I pass an address that does not exist or is in anyway invalid, I throw and exception as shown below. I need to determine how I can check to see if the email address is invalid before I call the Send method which ...more >>

Calling methods in the Master Page advice
Posted by Spondishy at 8/24/2006 8:38:17 AM
Hi, I have a master page with a literal control. As an example, I'm trying to set the text of the literal to the current time. In the code behind for the master page I've got a method that returns the string for the current time. So I have this: <asp:Literal ID="Literal1" runat="server" ...more >>

IIS Health Monitoring via ASP.NET
Posted by wwwmike NO[at]SPAM gmx.ch at 8/24/2006 8:37:15 AM
Does anybody has a working example how I can intercept application restarts and send log information via emails or write them to my SQL Server 2000DB. Since I am on a shared server I do not have access to the log files myself but I want to monitor the health of my asp.net application for debu...more >>

Hash Values SHA512
Posted by Jerry Lanphear at 8/24/2006 8:11:02 AM
I am developing an application which allows users to create transactions using excel and uploading the transactions using a .csv text file. I am using System.Security.Cryptography.SHA512 to create a hash value saved in am SQL 2000 database. My user has asked me what is the probability that tw...more >>

Gridview to CSV
Posted by Vincent at 8/24/2006 7:57:17 AM
Hi, I use the following code to export to Excel, which works fine. GVAPInv.AllowSorting = "False" Gridvew1.DataBind() Gridvew1.AllowSorting = "False" Gridvew1.DataBind() Response.ContentType = "application/vnd.ms-excel" Response.Charset = "" M...more >>

Impersonation
Posted by cvs at 8/24/2006 7:49:11 AM
I have a web application which is using forms authentication. This application is to create a folder on a network share and place a file there. To be able to do that I impersonate a user with full access to the network share but I am still not able to create the folder and get a security exce...more >>

Postback not processing without Trace Mode
Posted by jeffreytfritz NO[at]SPAM gmail.com at 8/24/2006 7:14:27 AM
I have a situation where we have placed a composite webcontrol (containing several buttons) on a webpage. The control has several 'OnClick' events wired up to the buttons, and handlers are placed in the page's code-behind file. On a normal visit to the page, you click one of the buttons, postba...more >>

Download a file with filename of mixed byte codes
Posted by Jon at 8/24/2006 6:48:02 AM
Hello, We've discovered a problem whereby if we try to download a file (in IE) that has a filename of mixed byte codes (like English and Japanese) the leading single byte code characters are deleted or changed to something else, but the japanese are OK Is this an IE problem, or anyone kn...more >>

Reading scanned barcode into webform
Posted by Rachel at 8/24/2006 4:51:01 AM
Hi, I am looking for a way to scan a barcode on the client machine and then be able to post this information back to a webserver using .net 2.0. Any ideas would be greatly appreciated TIA Rachel...more >>

IE7 and master pages
Posted by CSharpguy at 8/24/2006 4:35:01 AM
I'm using master page for my web app. On one of my web forms (content) I'm using a GridView and a panel to show a graph. In IE6 the page shows correctly, the master page expands and shows the footer, gridview and graph correclty. In IE7 the master page does not expand and my grid is overlaying...more >>

HTTPModule and ISAPI
Posted by Sheila at 8/24/2006 4:25:02 AM
Hi, I have setup a Sharepoint 2003 server which has an ISAPi filter installed, now I want to develop a HTTPModule which needs to run before the ISAPI filter. So my question is, if a HTTPModule and an ISAPI filter are installed on the same web virtual directory, which one will process first?...more >>

Casting Error!!!!
Posted by AJ at 8/24/2006 2:01:01 AM
Hi All, I am having a problem with the following code: During the Item Bound event is am getting a 'Cast' error for this line: if(!((DbDataRecord)e.Item.DataItem).IsDBNull(2)) Any thoughts why this is happening? Cheers, Adam private DataView GetEnrollments() { //create db conne...more >>

Simple OOP question
Posted by Nemisis at 8/24/2006 1:36:54 AM
HI everyone, I think i am on the right path but if someone could confirm it, that would be great. In my business Layer i have my business object, for this example, called User. User has about 50 properties. To save the user object in my business layer i call the factory and pass in th...more >>

Exception "Thread was being aborted." with Server.Transfer()
Posted by Totto at 8/24/2006 12:00:00 AM
Hi, I'm doing a server.transfer from a click event of a button, but an exception is raised with "Thread was being aborted" Anyone know why? Thanks Tor ...more >>

How to set Default field values
Posted by Brad Farrell at 8/24/2006 12:00:00 AM
I've got a small VB .Net application. The user clicks on the "add New" button on the tool strip to add a new record. Then they enter the data and save. Pretty straightforward. I'm trying to find a way to set some default field values. I've tried loading the field.Text value, but that does...more >>

Windows 2000 pro OK?
Posted by ad at 8/24/2006 12:00:00 AM
I have web application, which is develop under VS2005. Could I deploy this Web application to a Windows 2000 professional computer? ...more >>

calling event function
Posted by Gunawan at 8/24/2006 12:00:00 AM
I have define event handler call btnFind_Click protected void btnFind_Click(object sender, EventArgs e) { .... } What I want to do is calling this function from another function. what should I do with the parameters coz I can't call this function using btnFind_Click(); TIA Gun...more >>

State not working properly -- sessions and ASP.NET 2.0 Profiles
Posted by lykken NO[at]SPAM newsgroups.nospam at 8/24/2006 12:00:00 AM
Hello all. I have a pretty urgent problem with state in a newly developed e-commerce application. Some customers have experienced that the Buy-button won't work. Needless to say, really, that my client is not happy about this. When a user clicks the Buy-button she is redirected to a page that...more >>

How fill the textbox with the DataSet values?
Posted by Patricio at 8/24/2006 12:00:00 AM
Hello all I have a form that contains several textbox. I have also a DataSet that contains the Fill function by ID. How can I assign the DataSet values into my TextBox? Thanks a lot. ...more >>


DevelopmentNow Blog