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 > july 2007 > threads for tuesday july 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 31

trouble with HttpHandler in firefox 2
Posted by hawkeye parker at 7/10/2007 11:03:05 PM
Hello, IIS 6.0 server, .Net 2.0. I have a file download architecture which redirects file download requests to a custom server-side HttpHandler. The handler gets a stream over the file and "returns" the file via HttpContext.Response.OutputStream.Write. This works fine in IE, but with Fir...more >>


accessing a code-behind variable from a user control
Posted by TB at 7/10/2007 10:40:50 PM
On a user control (ascx) I have a datagrid with a hyperlink column containing the following code: <asp:HyperLinkcolumn headerstyle-width="80px" ItemStyle-Width="80px" DataNavigateUrlField="ID" DataNavigateUrlFormatString="home.aspx? i={0}&amp;<%=lang%>" Text="Click"></asp:HyperLinkcolumn> ...more >>

Conditional behaviour on client side based on return value from BLL
Posted by Rob at 7/10/2007 10:28:16 PM
Hi, I am using a databound web control (infragistics webgrid) whose dataobject's delete row property is set to run a particular method in the Business Logic Layer. Before calling the Data Access Layer to perform the row delete, some business rule validation is performed. If it fails the valida...more >>

Dynamically add dragpanels
Posted by Mike at 7/10/2007 9:21:35 PM
I want to be able to add an unknown quantity of dragpanels to a page at runtime. Is this possible using ASP.NET Ajax? Thanks ...more >>

Membership Provider deployment/App_Data directory just wont die!!! :-)
Posted by Jeppe Jespersen at 7/10/2007 9:18:17 PM
I'm deploying a web app that uses the Membership API. Great stuff. Until deployment :-( On my development maching, i run everything from a database registered in the SQL Server Management Studio. That is, my aspnetdb and a "homebrew" database for other purposes. In my web.config, I have set up...more >>

search textbox
Posted by rodchar at 7/10/2007 8:18:02 PM
hey all, i have a search textbox on my page and when the user hits the search button i create a parameterized query to get the results. when i enter a search criteria on the page that has angle brackets i get the following error message: System.Web.HttpRequestValidationException: A potent...more >>

Using Location path Security in Web.config with Param=1?
Posted by luqman at 7/10/2007 7:45:10 PM
I am using one common aspx file for different menus in ASP.Net and I want to restrict some Menus. For example: I want to Allow menu1.aspx?param=1 to users who have MENU1 Role, and menu1.aspx?param=2 to users who have MENU2 Role, but web.config is not accepting location paths with Param ? Pa...more >>

how to prevent application stops?
Posted by Dan at 7/10/2007 6:56:42 PM
Hi, We use an asp.net application for surveys. There are open questions (input is free). When someone types in characters like ' or < or > in the text, the application stops with a message that there is a potential danger etc ..., (asp.net thinks a hacker is busy to penetrate the system or ...more >>



Add slashes in Request.Form.
Posted by LamSoft at 7/10/2007 6:24:32 PM
How to add slashes for the each element in the incoming Request.Form I tried: for (int i = 0; i < Request.Form.Count; i++) { Request.Form[i]. = Request.Form[i].Replace("'", "\\'").Replace("\"", "\\\""); } But it causes an error and showing Request.Form...more >>

Operation must use an updateable query
Posted by dancer at 7/10/2007 5:53:51 PM
Using Asp.net 1.1 Trying to learn updating an Access database. Copied code straight from an example. Received this error: Operation must use an updateable query The line in question was this: DBCommand.ExecuteNonQuery() I looked here: http://imar.spaanjaars.com/QuickDocId.aspx?QUICK...more >>

Page Timeout
Posted by Brandon Owensby at 7/10/2007 5:32:12 PM
I am using ASP.NET 2.0 and programming in C#. I am trying to make it so that the secure pages in my web application time out in the browsers cache such that hitting the back button won't show the page just because someone hit the back button. I've seemingly done everything it says in the help...more >>

HTML stripping?
Posted by Carlo Razzeto at 7/10/2007 5:29:00 PM
Any one aware of a good library/function out there which quickly and reliably can strip out all HTML from a string? We have an ASP.Net page that needs to be able to scrub out some (rather bad) HTML from a CSV field, most solutions we've come up with/found only partially work (some times missin...more >>

How to ajax or async a call from a user control to the masterpage without an updatepanel?
Posted by Rissoman NO[at]SPAM gmail.com at 7/10/2007 5:26:54 PM
I have two user controls on a master page. I can easily bubble up an event on usercontrol 1 from a click event to the page.aspx, than then calls a method on the masterpage, but this causes the screen to do a postbacka nd full load. What I'm doing is i have a button on one user control that whe...more >>

newbie question
Posted by mans at 7/10/2007 4:37:11 PM
Hello, I am a C/C++ programmer and I have MSVC2005 professional. I want to develop my first ASP.NET application and web page. I started to read some tutorials but I found that I should create the web page manually ( placing different objects on page and adding events to them and so on) ...more >>

Beginner's question about textboxes,
Posted by Toni at 7/10/2007 4:36:38 PM
Hello, I have an ASP.NET page that fills a textbox in the load event of the page textbox1.text = "Some text" I would like to this page to run in the way that the user could edit the text in the textbox, and when he clicks a button, this edited text will be then read from the textbox int...more >>

DataGridViewRow Alternate Text
Posted by at 7/10/2007 4:24:30 PM
I want to add alternate text like on an html image to a DataGridViewRow. Is it possible? ...more >>

GridView and coloring some rows
Posted by pelegk1 at 7/10/2007 3:40:01 PM
i want in my GridView to color in some colors background of the rows,when i have certin values in the binded data. how can i do this? thnaks in advance peleg ...more >>

jpeg from database to file
Posted by MattB at 7/10/2007 3:07:06 PM
Hi. I have an asp.net 1.1 application that I need to retrieve a jpeg image from a database and write that to the local (not client's) file system. What I'm doing is a club login page, and each club can have a logo stored in the sql database. In the past I have streamed an image directly t...more >>

GridView and dynamic query
Posted by pelegk1 at 7/10/2007 2:40:02 PM
i have a GridView which i can Page on (go to page 2,10,...) the thing is that i have a dynamic query which set the GridView from starts on page 1. the thing is that when i start to go over the pages - the dynamic query isnt saved and i cant go to the real page 4 for example of the dynam...more >>

Web page run local app
Posted by Garry at 7/10/2007 1:51:02 PM
I need to build a web site that can automatically download a file from the server to the users local C: drive and then open the file in Word on the local PC) How can I do this ? If i write a vb program to do the download, howto I link this to the web site / web page? any ideas PLEASE . ...more >>

Search database from list
Posted by Michael at 7/10/2007 1:36:04 PM
Hello, I know that this question might need to also be in the SQL forum, but I'm not sure where I need to code this. So here it is. I need to create a search textbox that allows users to type in multiple words. Like if they wanted to search for "big red house". I want to return all rec...more >>

interface type
Posted by rodchar at 7/10/2007 1:34:02 PM
hey all, i created and implemented an interface called IAnimal. inside my code when i instantiate an animal object: dim _animal as IAnimal _animal = new Dog() i assumed i would be able to do something like this: _animal.GetType() and it would tell me it was a dog type. do i have to c...more >>

Asp.net/vb and Oracle
Posted by booker NO[at]SPAM mgt at 7/10/2007 1:28:01 PM
Hopefully, I frame this problem/question correctly. I have some code written/updated in visual studio 2003. This code when setup on other machines where I have installed the Oracle 9i client, and the Oracle 9.0 odbc drivers will connect to my oracle database when debugging. I ported the S...more >>

Iterate through loop of variables
Posted by Steve at 7/10/2007 12:35:18 PM
Hello- I have numerous variables called varNameX (where X is equal to a number from 0 to a known number "n"). Using VB.NET, I would like to iterate through all of these variables to run comparisons. Example: For x as Integer = 0 to N If varName(x).Text = "Some Text" Then boo...more >>

Ajax and browser compatibilty
Posted by JJ at 7/10/2007 11:58:59 AM
Just considering my first ajax enabled site.... I notice that Ajax is 'compatible with most modern browsers'. What do you more experienced ajax users do when it comes to older browser compatiblity? i.e. don't worry about it / warn the user / code for older browsers also; Thanks, JJ ...more >>

Communication between ASP.NET app and Windows Client app
Posted by Sekhar at 7/10/2007 11:40:04 AM
Hi All I have a requirement where the user clicks a button on the windows app. A browser pops up. User enters some data in the browser. And I want the data sent back to the windows app. How do i do this. I see two issues here. How would the client know when I am done with my Changes on...more >>

Removing Menu Items and Child Menu Items
Posted by Larry Bud at 7/10/2007 11:32:18 AM
Trying to conditionally remove menu items of the 2.0 .NET menu item control and I'm stumped. This removed a root level item: Menu1.Items.Remove(Menu1.FindItem("Administration")) But this does not remove it's child item Menu1.Items.Remove(Menu1.FindItem("Administration/Activities")) N...more >>

Why Spring.NET Application Framework?
Posted by Thiago Bohn at 7/10/2007 11:15:09 AM
Hi, my name is Thiago. I'm Brazilian... Sorry, but my english isn't good I'm reading the http://www.springframework.net/doc-latest/reference/html/index.html... I saw the samples, but i would to build a simple CRUD app and i don't know how start... Can anyone help me? ...more >>

Browser Incompatibility
Posted by WhiskeyRomeo at 7/10/2007 11:14:03 AM
I create web applications in VS 2003 and the .Net 1.1 framework (we haven't moved the application forward to .Net 2.0 yet). The application looks great In IE 5.x and greater. But even a simple login page that only has textboxes look like crap in FireFox and Safari. Since ASP.Net generates...more >>

Cannot access file after writing it!
Posted by David Lozzi at 7/10/2007 10:55:59 AM
Howdy, I am using ASP.Net 2.0 and Crystal Reports in VS 2005. I am taking a report, converting it to PDF then writing it out to a folder. Then I attach this file to an email and send it off. Once it's sent, I then want to delete the file from the folder, and here lies the issue. When i try ...more >>

adding data from multiline text box
Posted by Steve at 7/10/2007 10:47:28 AM
Hello, I'm new to the asp.net programming world and one of my first projects is to create an entry form for managers to enter in some information about their employees. My form has a multiline text box so the manager can add 1 or more employeess. They have to enter in the information as ...more >>

Unable to create the web
Posted by Leon at 7/10/2007 10:40:01 AM
Hi Everybody. I am running VS 2005 with Service Pack on Windows 2003 server. All I was trying to do is to create a new website. I am getting an error message: Unable to create the Web 'http://MySite'. Could not find a Webserver at 'MySite'. Please check to make sure that the web server is va...more >>

Results to Excel
Posted by dancer at 7/10/2007 10:38:24 AM
How can I save the results of a fill-in form to a Microsoft Excel spreadsheet? I can insert the results into an Access table, but the reports are so tedious to make from Access. Reports are very easy to make using Excel as the data source. Since there will not be multiple tables or queries, I...more >>

File Upload Security
Posted by Matt at 7/10/2007 10:11:51 AM
Hi all, I am tryign to do simple file uploading and no matter where I try to have the file saved to I am getting 'Access denied' to the destination... Dim newFile As New IO.FileStream(strPath, IO.FileMode.Create) I have tried a numer of locations, each folder I have given EVERY user FULL...more >>

sorting XML data in DG
Posted by slinky at 7/10/2007 8:31:27 AM
I have an XML file that is successfully displaying in my datagrid on my .aspx. I need to sort the data before it displays: Here's my .aspx code: <%@ import Namespace="System.Data" %> <script runat="server"> Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim myDataS...more >>

Creating a Data Source
Posted by Mel at 7/10/2007 8:04:27 AM
I have Visual Basic code in the Page_Load event that makes a connection to an Excel 11.0 file. Is it possible to do the equivalent using a data source so it existed on the form? If so, how? A data source would be handy since I need to retrieve the Excel data from many procedures/functions in ...more >>

ObjectDataSource OnSelected event raised twice
Posted by chris.c.woodward NO[at]SPAM gmail.com at 7/10/2007 7:25:41 AM
This event seems to be being raised twice in my codebehind. I have only one SelectMethod and do not have a SelectCountMethod. Its causing a problem because I'm dynamically loading a user control into a PlaceHolder control in the method and am having to do a check to see if it already exists or n...more >>

Class definition location??
Posted by Mark at 7/10/2007 7:22:02 AM
Hi, I have found a need to define a class for use in a page code-behind class file. I have a well structured model which consists of business logic components and data access components. The class I need to define will only be needed for this particular page. I am unsure where to put this u...more >>

Explicit Localization Syntax - One Works, Other Does Not
Posted by Chris W at 7/10/2007 7:02:08 AM
We have created two (2) global resource files in App_GlobalResouces: Global.resx Global.es-MX.resx In an ASP.NET page, we use two different syntaxes to set text on the page, depending upon the context. Syntax 1: <% =Resources.Global.QuickSearch%> Syntax 2: <%$Resource...more >>

windows.open in aspx page
Posted by archana at 7/10/2007 6:08:12 AM
Hi all, I want to open one page without navigating user to another page. What i am having is having aspx page having calender control.this aspx page i am showing to user when user want to set date usig windows.open method of javascript. Here i am facing one problem that is how to setvalue s...more >>

Use HTML <input type="file" > instead of .Net FileUpload control?
Posted by Gert at 7/10/2007 5:40:31 AM
Would it be possible to access the file CONTENT in codebehind for a standard: <input id="htmlFile" type="file" /> Then in codebehind: foreach (string keyName in System.Web.HttpContext.Current.Request.Form.Keys) { //i can see keyName = "htmlFile" here as well as the "c:/myfile.txt" for exam...more >>

Can VS 2005 Trial version get integrated to Visual Source Safe 6.0
Posted by aroraamit81 NO[at]SPAM gmail.com at 7/10/2007 2:14:13 AM
Can VS 2005 Trial version get integrated to Visual Source Safe 6.0 ...more >>

Base page refrence
Posted by Vikram at 7/10/2007 12:24:01 AM
I have a web page which inherits from another page called Basepage. In the Base page class I want to get reference of any gridview which is in derived page. How to do that? Thanks...more >>

Advice on best way to migrate to a library
Posted by Brian Cryer at 7/10/2007 12:00:00 AM
I've developed software (vb.net) that renders maps using svg. My manager would like this "mapping component" to be migrated into a library so it can easily be used by other web based applications. So far so good. However, the page that generates the svg (currently a .aspx file) writes direc...more >>

email to-> hotmail problem (DiscountASP)
Posted by Jassim at 7/10/2007 12:00:00 AM
can anyone check this thread and help me please http://forums.asp.net/p/1131438/1794655.aspx#1794655 ...more >>

VS2005: Debug - no symbols?
Posted by Rob Meade at 7/10/2007 12:00:00 AM
Hi all, I'm trying to debug my application - my main page works correctly, in that I can add break points etc, but I have a second page which is loaded when a link is clicked on the main page. When I add breakpoints to that page they change to a grey outline of a circle (instead of the r...more >>

Publish Failed
Posted by moondaddy at 7/10/2007 12:00:00 AM
I have a asp.net 2.0 project (vs 2005) and am trying to publish it to a folder on the same machine (the dev machine). the project (and solution) builds fine, but when I publish it, it publishes most of the files and folders and then fails. It doesn't give any error msg so I don't know where ...more >>

How to trace the Insert Query of Sql Data Source ?
Posted by Luqman at 7/10/2007 12:00:00 AM
I have created a Insert Query in Sql Data Source using Oracle Database, with the parameters, and its connected with DetailView Control. When I try to Insert through DetailView Control, Illegal Variable Name/Number Error occurs. Is there any way I can trace or display on screen, what exactly ...more >>


DevelopmentNow Blog