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 monday july 30

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

problem with dropdownlists in gridview
Posted by Mark at 7/30/2007 10:05:44 PM
Hi, There are two dropdownlists in two EditItemTemplates of a gridview. They are populated programmatically (see code below). This works. But now, the selected value of the first ddl (dropdownlist1) takes always the selected value of the second ddl (dropdownlist2) , and the new value cho...more >>

Problem with ImageButton.OnClientClick when DataBinding
Posted by Nathan Sokalski at 7/30/2007 9:07:30 PM
I have the following tag in one of my DataList's ItemTemplates: <asp:ImageButton ID="btnViewQuestion" runat="server" BorderWidth="0" ImageUrl="images/qmark.gif" Height="27px" Width="26px" OnClientClick="window.open(<%# DataBinder.Eval(Container.DataItem,"questionid","'viewquestion.aspx?ques...more >>

page_load fires with ajax call
Posted by Dica at 7/30/2007 8:38:56 PM
i've got a script that takes about 10 seconds to complete with page_load. for that reason, i turned to ajax for additional dynamic updates i needed to do on the page without having to force the user through that 10 second delay, but it looks like page_load still gets called with an ajax submit...more >>

Url not working correctly in DataGrid
Posted by tshad at 7/30/2007 8:21:45 PM
I have a page that is loading a control from another folder. I want the references to be from current folder not the folder the control came from. And that has been working fine in most cases. But not for this one. This is DataGrid with a Hyperlink column. The page www.ft.com/jobseeker/test...more >>

2nd Chance Exception System.NullReferenceException: Object reference not set to an instance of an object.
Posted by Abstract Labs at 7/30/2007 7:57:27 PM
We have recently deployed our application with the addition of AJAX.net for the last two weeks we have been suffering deadlock issues with the application pool. We are in a farmed environment and our application uses impersionation on a domain security account. We are using a state server all ap...more >>

Getting a "normal" HTML form to work inside the server-side form tag
Posted by Deane at 7/30/2007 7:46:09 PM
I've run into this problem on many occasions -- I need to have the server side form tag on my Web form, of course. But I also need to have *another* form on the page that posts to a URL totally out of my control. I can think of three situations off the top of my head. In one case, it was...more >>

ObjectDataSource and DropDownList
Posted by Bill Gower at 7/30/2007 6:06:58 PM
I have a asp.net page that has a DDL tied to a ObjectDataSource. I want the DDL to display a blank in the list when the page is first displayed and let the user select the entry they want. I have tried CategoryList.SelectedIndex = -1 and CategoryList.SelectedValue = "" Neither clea...more >>

For certain directories, protecting files from direct access that match a naming pattern OR mediating http access through my app
Posted by Ken Fine at 7/30/2007 5:49:13 PM
Short version: I want to know how in ASP.NET I could bar direct http access to some files in a directory that match a pattern, but not others. An alternate solution would be to bar all direct http access to files and require that any access of the files be mediated by my web application. In ...more >>



controls are all null at page_load()
Posted by kevin at 7/30/2007 4:36:00 PM
using VS2005 My masterpage has two panels and two hyperlinks. The initial content aspx page is blank. The page_load event of the masterpage hides one of the panels based on SESSION variables. When I press one particular link all controls are null, thus throwing an error. The other h...more >>

ASP.Net ReportingServices & CPU Usage
Posted by Blasting Cap at 7/30/2007 4:23:45 PM
I have a report (stored procedure) that I have set up in SQL 2005 Reporting Services. In a web app, I put a Reportviewer control on the page, and call the report. After a lot of trial & error, it appears to work. Sort of. What happens is when I open it on that tab (I am using AJAX Tab ...more >>

Unable to FindControl in a Dynamically loaded control
Posted by tshad at 7/30/2007 4:22:22 PM
I am trying to access a control (PlaceHolder Control) that is in a dynamically loaded control. I know it is there as I can see it in my trace. It may be that it isn't actually loaded yet - but not sure. In the following page, I am loading a page called "page.aspx" into a control called pag...more >>

question about UpdateParameters.Add
Posted by Justin at 7/30/2007 4:11:35 PM
Hi, this code updates a table with the new values with the event RowUpdating of a gridview. Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating Dim vlgn As Int16 vlgn = e.NewValues("vl...more >>

Multiple Placeholders or One to load controls
Posted by tshad at 7/30/2007 3:19:57 PM
I am using asp.net 1.1 and am creating my pages with different looks and using controls for each part of the page (top, bottom, navigation etc) The way I have it set up is the following where I have 4 different controls (one for each page part). I am looking at a couple other ways of doing t...more >>

DetailView
Posted by viktor at 7/30/2007 3:18:45 PM
I am having a problem cahnging default mode in the code.What i am trying to do is: on page load event: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Page.IsPostBack Then itemview.DefaultMode = DetailsViewMode.ReadOnly Else itemview.D...more >>

Directory permission for disk I/O from web service
Posted by Milop at 7/30/2007 2:47:57 PM
Hello. I have an ASP.Net 2.0 web service on Win2003 server that needs to write to a shared directory on the same machine. The web.config file is using "None" as the authentication mode. I am referencing the directory using UNC naming (\\WEBSERVER\Folder\.....) I thought the web service...more >>

HTTP POST only knowing server IP and port number
Posted by Vesna Sarajevo at 7/30/2007 1:41:41 PM
Hi all! I have to pass a SOAP message to a server, and I know only server IP and the port number. I was gonna do it from a form, using WebRequest Class and StreamWriter to fetch the result. What I don't know is how to pass this port and server IP instead of URL? Should I do this some oth...more >>

GridView Control - Disable/Enable Row Editing
Posted by Mel at 7/30/2007 1:24:13 PM
I want to disable the editing of a row in my gvParts GridView control. How? I need to evaluate the value of one Template Field to determine if the record should be edited or not but the template field always returns an empty string. Any ideas? ...more >>

TreeView "onmouseover"
Posted by Steve at 7/30/2007 12:55:36 PM
Hello! How can I realize, that when the Cursor is over an TreeNode, that the TreeNode will be underlined. I think the code must be in the "TreeNodeDataBound" Event, or? Regards Steve ...more >>

Globalization
Posted by hardieca NO[at]SPAM hotmail.com at 7/30/2007 12:48:12 PM
Hi, I'm working on a multilingual CMS. I have a number of controls and labels that are generated based on the number of languages the CMS supports (ie. for the section management portion of the app, we could have dynamically generated control labels "English Section Name", "French Section Nam...more >>

Where to put Form tag
Posted by tshad at 7/30/2007 11:48:44 AM
I have pages that are identical except for the middle of the page to the right where I do all my work. <html> <head> </head> <body> <table> <tr> <td> <table> <tr> <td> <form> <asp:...> ...more >>

Web site for mobile phones
Posted by JJ at 7/30/2007 11:46:15 AM
I need to build a simple web site which is viewable by mobile phones. This is a new area for me. Can someone point in the direction of some useful information on using Visual Studio 2005 to create such a site? Thanks, JJ ...more >>

asp labels -- how to avoid a databind() call?
Posted by Steve Hershoff at 7/30/2007 11:26:41 AM
Hi everybody, I have a question about asp.net's labels and the DataBind method. I have a method in a code-behind page (this is VisualStudio 2003 btw) that (simplified) looks like this: public string GetName() { string sName = ""; if(Session["ds"] != null) sName = Sessi...more >>

Loading Controls dynamically
Posted by tshad at 7/30/2007 11:21:19 AM
I am using asp.net 1.1 and am creating my pages with different looks where the middle right is where my actual changing content will go. It seems to work pretty well except for some strange behavior and this seems to be caused from the placement of the my Panel objects. I am using Panels a...more >>

Question on Ajax vs. plain javascript
Posted by Bill Gower at 7/30/2007 10:01:03 AM
I have a asp.net form where if the user checks a check box I need to disable some of the fields. I don't need to make a trip to the server for anything at this point so is this is a case of using javascript to disable the fields or should I be using Ajax do that? As probably can be seen from...more >>

Access denied javascript error
Posted by Jeremy at 7/30/2007 9:57:30 AM
I'm getting an access denied error from a line of Javascript which I think comes from some of the ajax plumbing. I debug it in visual studio and the code is in the ScriptResource.axd file of my application. I've included the code below, and the access denied error is happening when trying to...more >>

AJAX, Intercept Submit before it happens
Posted by Lit at 7/30/2007 9:44:10 AM
Hi, I have an update panel with a Submit Button. ( AJAXified ) Is there a way, good way, of Intercepting a submit before it happens? I would like to do something in JavaScript before proceeding with the submit process. How to Inject such JavaScript from Code Behind? Thank You, Li...more >>

Ajax & Large Listbox
Posted by Jeremy at 7/30/2007 9:05:55 AM
I've got a very large listbox that gets populated using ajax. The listbox and a button are in a panel inside an update panel. The button click of the button sets the panel visible property to false. Everything works nice and snappy except for when I click the button. The panel takes about ...more >>

Handling validation errors on the page level
Posted by hardieca NO[at]SPAM hotmail.com at 7/30/2007 8:50:59 AM
Hi, I've created an n-tier app where validation rules reside in the business layer. When a webform is saved, a business object examines its state, and if some property is invalid, throws a custom exception (ValidationException) The exception bubbles up to the UI where it gets trapped: Pr...more >>

HELP with several Issues with DotNetNuke and asp.net
Posted by sonali.noni NO[at]SPAM gmail.com at 7/30/2007 8:28:48 AM
Hi, I'm very new to DotNetNuke and asp.net, and having several major issues. I'd really appreciate any help you could give me! I'm using DotNetNuke 04.05.03 and asp.net 2.0 I have two databases set up: DotNetNuke (which I installed myself using the book "Professional Dot Net Nuke 4" as a ...more >>

AJAX .NET timeout problem
Posted by 00_DotNetWarrior at 7/30/2007 8:10:20 AM
In my application, I use session to store some postback value. So, I solved the standard ASP.NET session timeout issue by doing these: 1. In web.config, I used <sessionState> and set it to 12 hours with mode set to "inproc" 2. On IIS win2003 level, I set it "Idle recycle" value from defau...more >>

IFRAME containing ASP.NET Site within a Classic ASP Page
Posted by Mike at 7/30/2007 8:02:01 AM
Hi. I've built an ASP.NET web application which exists as it's own URL. Another site which was created in classic ASP, and exists as it's own URL, has an IFRAME containing my site. I'm experiencing a problem with the height of the IFRAME when the ASP.NET site redirects to another page. ...more >>

Shutting down COM app from a command line
Posted by Larry Bud at 7/30/2007 7:30:19 AM
Not sure where else to post this.... One of our developers quit and I'm taking over stuff from him. He had a COM app that would lock files on occasion (yeah, thanks for leaving that in production instead of finding the real problem)... anyway, the "fix" was to shut down the com app when it wo...more >>

HRESULT return value in Javascript without exception
Posted by Rob at 7/30/2007 7:10:02 AM
Hi, If I call my own DLL from Javascript, a HRESULT is returned. Javascript cannot cast this to an integer. Is there any other way of typecasting this returnvalue to integer, wihout using the exception method which is described everywhere ? Please note that I am unfamiliar with javascript, I a...more >>

Finding Dupe in a List
Posted by Larry Bud at 7/30/2007 6:26:57 AM
I have a function which return a List, and I'm trying to add users to it from 3 different roles, but I don't want duplicate user names. The "Contains" ALWAYS is returning FALSE, so I'm not finding the dupe. Here's the code: Dim datalist As New List(Of TroubleTicketUser) Dim str As String Di...more >>

opening a window in a different browser
Posted by Ali Shahzad at 7/30/2007 5:32:03 AM
Hi, asp.net 2.0, ie6, opera 9.22 For various supportability reasons, we need to redirect a page to a url and require that the target url should open in an Opera browser. The call is simple Response.Redirect(url, true); It works fine if its all IE environment. but am wondering how can ...more >>

Using VS 2008 Orcas B2?
Posted by Showjump NO[at]SPAM gmail.com at 7/30/2007 4:36:45 AM
Just wondering how many of you all are using VS2008 bETA 2 to work on 2.0 projects? I dl'd the beta 2 release but have not installed ityet because i was concerned about future uninstall when the RTM/RC version is out and the possibility of breaking 2.0 stuff when i uninstall. Any valid concerns?...more >>

Prevent the URL access.
Posted by muthu at 7/30/2007 12:41:54 AM
Hi, I have a homepage.aspx and lot of other pages also.Some pages are pop up pages which will get input from the user. now what happens is some users try to enter the URL of the popups directly to the browser window and tries to enter values.As he is logged in before, He able to access the page...more >>


DevelopmentNow Blog