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 2008

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

Open Word Document from a Dialog Web Page
Posted by Peter at 4/30/2008 11:00:55 PM
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name); Response.AddHeader("Content-Length",...more >>

substitute img when EVAL file name is not found
Posted by Keith G Hicks at 4/30/2008 7:38:03 PM
I'm hoping there's a simple way to do this. I need to show a dummy image in an asp image object if the file is missing. Here's my asp.net 2.0 markup: <asp:Image ID="imgGrad" runat="server" BorderColor="DimGray" BorderStyle="Solid" BorderWidth="1px" Height="120px" ImageUrl='<%# "~/Images/Classm...more >>

Visual Studio 2008 terribly slow in Design view
Posted by kcroyals1@gmail.com at 4/30/2008 7:37:08 PM
Is anyone having the problem where Visual Studio 2008 hangs for minutes when switching to Design view of an aspx page? I know there's a hotfix, but it has been no help. My co-worker might have hit on something that it is related to Office 2007. This is because we have VS2008 at home with no prob...more >>

Dynamic checkboxes and selection
Posted by sck10 at 4/30/2008 5:22:17 PM
Hello, I have a list of products (SQL Server) that I need to show with check boxes next to them. Once they submit the form, the items checked will be inserted into a table. I think I need to use a CheckBoxList, but how do I show what has been matched in the future. For example, I check 5...more >>

ext 3.5 History back button from different page
Posted by Max at 4/30/2008 3:48:33 PM
I recently moved to ASPnet Ext 3.5 What I can't get with Ajax and History browser managemet is this: User fills some fields (dropdown and textbox) on page 1 (all are in an update panel) User clicks Submit Button I write the data into a DB I add a history point with ScriptManager to be able ...more >>

Update with $ sign
Posted by David C at 4/30/2008 3:18:13 PM
I have an asp.net FormView that is displaying a money field as shown below. <asp:TextBox ID="txtInitialClaim" runat="server" Text='<%# Bind("InitialClaim", "{0:c}")%>' Width="120px"></asp:TextBox> When the update command runs it throws an error because the dollar sign is in the field. I w...more >>

Light ASP.Net Page
Posted by Thalia Mei at 4/30/2008 2:35:05 PM
Hi, Would like to know what is the best way of creating an ASP.Net web page that return just a line of "Text". This ASP.Net will not required any HTML tag, or Post Back Features. So we created below in Code Behind: protected override void Render(HtmlTextWriter writer) ...more >>

Professional design advice needed
Posted by mazdotnet at 4/30/2008 1:49:45 PM
Hi guys, We have an events page in our company that's database driven and we need to shared it with our partners. They need to pull information from our site. They can be running asp, php, .jsp..etc. I was thinking of using a web services and returning datatable (maybe to XML). Is that the be...more >>



EnableEventValidation exception when dynamically adding controls on client with JavaScript
Posted by Lewis Holmes at 4/30/2008 1:33:53 PM
Hi I have the following situation in one of my asp.net pages. The user can add multiple table rows to a form by selecting a button. These rows can contain asp.net controls. When this button is selected, the row is added using JavaScript. The script uses cloneNode to clone a hidden template...more >>

Tricky page structure
Posted by jpavel at 4/30/2008 12:42:07 PM
Hello everyone. I'm having a problem with accessing components. I've looked for a solution in other forums but until now no one have given me any tiny clue about how could I solve it. I know there is a solution to it, but, I couldn't find one. I have a webpage in a website with the the following ...more >>

How to Get Exception StackTrace in Application_Error ?
Posted by Cramer at 4/30/2008 11:15:10 AM
I'm developing a new ASP.NET 3.5 app and I have an http module hooked up to Application_Error that logs [otherwise unhandled] detailed exception data. When it parses and evaluates unhandled exceptions, it "sees" all exceptions as type "System.Web.HttpUnhandledException", with the message: "E...more >>

Is Vista Ready for VS2K5?
Posted by Ross Culver at 4/30/2008 9:31:50 AM
I'm about to get a new computer for VS2K5 development. Is it ok to get Vista yet or should I stick with XP? Thanks, Ross ...more >>

Subdirectories in an application
Posted by Miguel at 4/30/2008 9:17:57 AM
Hello, I need to put some files in a subfolder because I don't want all the files in the subfolder to be under form authentication. The problem is that in the root folder I have a "App_code" folder, where I have clasess to instanciate. This clases are not accesible from the aspx's locat...more >>

How avoid spammers?
Posted by Cirene at 4/30/2008 8:25:58 AM
Building an ASP.NET community site where people can post ads, messages, etc... Based on your experience do you have any suggestions on how to avoid spammers (at least deter them)? Ex: Should I try to get their IP address, if so how? How about image verification? Does ASP.NET do that? ...more >>

CompilationError
Posted by CreativeMind at 4/30/2008 8:21:47 AM
hi, can anyone guide me plz. i m adding attribute of runat=server from codebehind file <asp:imagebutton id="imgCompletionDate" CssClass="clImageButton" ImageAlign="absMiddle" BorderStyle="None" ImageUrl="..images \img1000024.gif" CausesValidation="False" Height="20"></ asp:imagebutton></TD> ...more >>

Question about membership/security
Posted by Cirene at 4/30/2008 8:01:35 AM
I am creating an ASP.NET 2.0 website. Rather than using all the membership functions I wanted to just create my own SQL Server db and use SESSION vars to track if the user is logged in etc... Is doing it in this way just as secure? I know that the "membership" stuff will save me some codi...more >>

How does the FILE object in ASP.NET page locate the files saved in Mac machine ?
Posted by bienwell at 4/30/2008 7:47:14 AM
Hi, I have a web page in ASP.NET which has a FILE object and a browse button. Users can click the browse button to locate the files they want to upload into the web server. Some users save the files in Mac machine and run the web page. How can they select these files to upload into the web ...more >>

Extended Characters in ASP.NET app
Posted by Doug Odegaard at 4/30/2008 7:31:15 AM
Has anyone used and successfully deployed an application that requires the entry and rendering of extended, printable characters in the browser? I have a client with such a requirement but without an extensive prototype test I wondered if any of you have had gotchas and suggestions. They curre...more >>

Master Page style
Posted by Arne Garvander at 4/30/2008 7:22:08 AM
I have a web page which use a master page. I would like to post a style element to the master page header section how do I do that? -- Arne Garvander Certified Geek Professional Data Dude...more >>

newsgroup menu
Posted by Arne Garvander at 4/30/2008 6:40:00 AM
I can't find the menu option for asp.net news group. What page is it on? -- Arne Garvander Certified Geek Professional Data Dude...more >>

ASP.net
Posted by Arne Garvander at 4/30/2008 6:39:00 AM
I can't find the asp.net news group anymore. Where is it? -- Arne Garvander Certified Geek Professional Data Dude...more >>

check the Require SSL option
Posted by ad at 4/30/2008 4:42:46 AM
Hi, I want to check the Require SSL option in Default web site of IIS; How can I do that with program? ...more >>

How to create Treeview for cross browsers ( mozilla etc.)
Posted by sermet at 4/30/2008 4:32:52 AM
Hi everybody, I have an application that works for IE. I used treeview.htc to create a tree view. And I want my client side code to work with linux based operating systems. So the code should work on firefox or other gecko browsers. Sample code for IE is like the following: <HTML XMLNS:mytree...more >>

how to find controls in repeater
Posted by CreativeMind at 4/30/2008 3:14:44 AM
hi i want to find disable/readonly the controls( hyperlink and a button in 2 different cols.). either in javascript or in codebehind. thx...more >>

Problem with Objectdatasource and project less solution.
Posted by Prasanta at 4/30/2008 1:40:26 AM
Hello, I have a project less solution asp.net 2.0 with c#. I have a method in page code behind which returns a datatable, that method I want to assign in the objectdatasource select method, but when ever I am passing the typename in objectdatasource with the class name its saying couldn't fin...more >>

How to hide div in AccordionPane?
Posted by staeri@gmail.com at 4/30/2008 1:24:05 AM
In the content section of an AccordionPane I have a div (runat=server) containing a link button. I want to hide the div from code-behind (VB) but I can't figure out the correct syntax. Can someone please help me? Very grateful for fast response! Best regards, S...more >>

Allowing a Stored Procedure Argument to be NULL
Posted by Jonathan Wood at 4/29/2008 6:15:01 PM
I've written a stored procedure and would like to filter the results returned based on the argument. It works so far, but I'd also like to allow this argument to be null. I know I can rewrite my procedure using ISNULL(). But then it won't work for the non-null arguments. Does anyone know...more >>

ASP.NET Menu control
Posted by iHavAQuestion at 4/29/2008 5:42:01 PM
I am working with a asp.net Menu control which has 3 tab controls <asp:Menu id="MenuId" <Items> <asp:MenuItem Tab1 <asp:MenuItem Tab2 <asp:MenuItem Tab3 </Items> </asp:Menu> Each tab has a registration form with a save button. Once I click save button on tab1, Ho...more >>

Checking server status via ASP.net
Posted by darrel at 4/29/2008 3:02:31 PM
I swear I've read you can do this somewhere before, but don't recall where or what it'd even be called to do the correct googling. What I've been asked to do is make a 'dashboard' app that checks the status of various servers. If they are down, show an error. I found/modified this snippet:...more >>

Capture PK violation in Details View
Posted by randy.buchholz at 4/29/2008 1:26:36 PM
I'm trying to catch a database error (PK Violation) from a "plain vanilla" DetailsView. I have tried try/catch in both the Inserting and Inserted events of the DetailsView and DataSource. Also, tried converting the insert link to a template field and wrapping the xx.Insert() in a try/catch...more >>

How do you make gridview controls disappear?
Posted by COHENMARVIN@lycos.com at 4/29/2008 1:10:19 PM
I have a gridview control that is filled by the user adding rows to it with a submit button. Once he is totally through, I want to give him a 'success' message and then empty the grid. That should be easy, because the grid is full of records that are from a database where the select statement ...more >>

Cache.EffectivePrivateBytesLimit shrinks as box gets bigger?
Posted by Mark at 4/29/2008 12:47:02 PM
Hi... We've been trying to migrate our asp.net apps off older, underpowered hardware to newer, bigger boxes but when we do, we see our databases start to melt. When I started to look into it, I found that the older boxes all had bigger EffectivePrivateBytesLimit values than the newer box...more >>

How change framework
Posted by Cirene at 4/29/2008 12:38:09 PM
How do I change an application to target the .NET 2.0 framework, NOT the ..NET 3 framework? I'm creating a winform app, but I would think it's the same method. The option to change doesn't show up in the properties page of my project. ...more >>

CreateUserWizard control: forcing it to use a programmatically provided username and e-mail
Posted by Ken Fine at 4/29/2008 12:27:49 PM
I am using ASP.NET's CreateUserWizard control. I want to force the visitor to use a username and e-mail address that I am providing in programming, and I do not want the visitor to be able to edit the forms input. I am aware that I can roll my own Create User form by using the membership AP...more >>

401 While Accessing Web Service
Posted by Ben at 4/29/2008 12:14:54 PM
I'm trying to access a c# web service from a web form. I set up the web reference proxy object as follows: proxy.PreAuthenticate = true; proxy.Credentials = CredentialCache.DefaultCredentials; but i get a 401 error. If I switch the IIS website from Integrated Windows Auth to An...more >>

Some kind of GridView
Posted by Dave at 4/29/2008 12:01:47 PM
Hi Guys I want to create a grid similar to those used on Gumtree where advertising posts are separated by a row with the date in it. e.g. Date post post pose Date2 post post post Date3 post post Can I do this with a GridView or do I need to be looking at alternative controls?...more >>

How to delete multiple rows in a GridView?
Posted by Michael at 4/29/2008 11:01:25 AM
It seems that a gridview allows us to delete only a single row at a time. How to extend this functionality to select multiple rows and delete all of the selected rows in a single stroke? just like what hotmail web UI is doing now (having the option of selecting multiple rows (using the checkbo...more >>

cross page post back problem
Posted by WebBuilder451 at 4/29/2008 10:53:01 AM
I the page knows there was a cross post back. but i can not find the control. (asp.net 3.5) calling page has a master calling control: <asp:Button ID="btnSendAlert" runat="server" Text="Go" onclick="btnSendAlert_Click" PostBackUrl="ItemUpLoadAdmin.aspx" CommandArgument="5...more >>

Is it possible to call server side function from client side code in asp.net?
Posted by Simon at 4/29/2008 10:49:02 AM
I heard that we could do that by using AJAX. Could anybody share how to do it? Thanks. ...more >>

Question about SQLServer Session State Management
Posted by gnewsgroup at 4/29/2008 10:19:47 AM
For asp.net web application, I had thought that using SQL Server Session State management would imply that all session objects be stored in SQL Server database ASPState. But when I look into it, I notice that only stuffs related to SessionID are stored in the database. None of my session obje...more >>

How to find control
Posted by iHavAQuestion at 4/29/2008 9:35:00 AM
I am using a menu control in which i have a tab controld in which i have a dropdownlilst How do i find the values in a control. I have tried this in C# ?LTCMenu1.FindControl[Tab2.FindControl[ddlStatusVerify.DataValueField.ToString()]] Can any one plz help me out. ...more >>

how to find contrtol
Posted by iHavAQuestion at 4/29/2008 9:33:01 AM
I am using a menu control in which i have a tab controld in which i have a dropdownlilst How do i find the values in a control. I have tried this in C# ?LTCMenu1.FindControl[Tab2.FindControl[ddlStatusVerify.DataValueField.ToString()]] Can any one plz help me out. ...more >>

AjaxToolKit
Posted by iHavAQuestion at 4/29/2008 8:29:03 AM
I have downloaded ajax and this part of the code works fine in my new sample website <ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server" /> <asp:TextBox ID="txtTelerik" runat="server"></asp:TextBox> <asp:Button ID="btnTelerik" runat="server" Text="Show" /> ...more >>

client side validation trouble
Posted by DaveyP at 4/29/2008 3:27:27 AM
Ok. I have a page with a textbox which is used to enter numeric data. If data is entered, the code goes to the database and gets the relevant data. If it's left blank, the code assumes that new data is being entered and allocates a number. The problem is that the client side validation (cus...more >>

Adding global objects to a web application
Posted by Andy B at 4/29/2008 2:41:13 AM
I want to have page level access to a certain object but cant figure out how to do this. I create a class method that returns the object, but I cant get it to be global to the page. By global to the page, I mean to let all methods and event handlers have access to the same instance of the obje...more >>

server.urlencode work for winforms
Posted by Cirene at 4/28/2008 10:13:34 PM
Why is it when i try to use server.urlencode in a winform app that it can't seem to locate the function? (I am utilizing the browser control.) Thanks! ...more >>

Programmable limits on upload size
Posted by Mike Kraley at 4/28/2008 6:27:20 PM
In my ASP.NET application, I'd like to set limits on the maximum size of an uploaded file. Normally I'd just set the maxRequestLength of the httpRuntime element in web.config. But in this case, I have a few different aspx pages and I want the limit set differently for each. Yes, I could ...more >>

How to enable AJAX in ASPX page after the fact
Posted by Cirene at 4/28/2008 6:10:56 PM
I created an ASP.NET website using Visual Studio 2008. I want to now use some of the AJAX tools, but they won't drag/drop on my master page. I think I have to somehow "enable" AJAX or reference the files properly. Any advice on how I can enable the ASPX page for AJAX? ...more >>

session expiry when using sessionState mode="SQLServer"
Posted by Moe Sisko at 4/28/2008 6:02:30 PM
Using dotnet 2.0 sp1, I've got ASP.NET session state working ok in SQLServer mode, but the sessions never seem to expire. e.g if I add a timeout attribute like so : <sessionState mode="SQLServer" sqlConnectionString="Integrated Security=SSPI;data source=localhost" timeout="1"...more >>

Master pages for plain HTML pages?
Posted by Cirene at 4/28/2008 5:21:00 PM
I am using VS.NET 2008. In Dreamweaver you can create page templates (equivalent to Master Pages) and make HTML documents based on them. In VS.NET can you have a HTML file linked to a Master Page? ...more >>


DevelopmentNow Blog