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 > february 2007 > threads for monday february 12

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

other problem with PsswordRecovery
Posted by Dan at 2/12/2007 11:14:27 PM
Hi, I define a Login control with PasswordRecovery and a CreateUserWizard. I use the default ASPNETDB.mdf database. I can create an user (let's say 'dan' and i can log in. The problem is: when i try the PasswordRecovery with username 'dan' with the right question answered, but there i...more >>


compiling problem
Posted by Brent at 2/12/2007 11:10:24 PM
Ok everyone i have dealing with this problem for a week and its starting to get on my nerve. I am pretty new to the asp.net world. I am not new to .Net only asp.net. So i hate a snag. right now im just doing some pretty simple pages. I just started getting into master pages when i keep getting...more >>

AutoEventWireup and PreInit
Posted by WT at 2/12/2007 11:03:43 PM
Hello, It seems that Page_PreInit is not run automatically when AutoEventWireUp is set for the Page as it is for Page_Load or Page_Init. Somebody could confirm this missing point ? CS ...more >>

Reset scroll position
Posted by C. Moya at 2/12/2007 10:45:03 PM
I hope someone has an answer: MaintainScrollPositionOnPostback works great. But, the problem is that sometimes we need to manually reset the scroll position back to the top (such as when hiding a panel and displaying different panel). 1) Temporarily setting MaintainScrollPositionOnPostbox=F...more >>

IIS and poor performance
Posted by meo at 2/12/2007 10:14:39 PM
I write some code as following: #1. myAppServer --tcp--> IIS ----> Web Application #2. myAppServer --tcp--> Windows Application The result is #1 is too slow when compared to #2 (around 3-4 times) Actually I found the problem is in IIS 5.0/6.0 because of I am using the same library (.dll...more >>

ASP.NET J#, C# and VB
Posted by Jman at 2/12/2007 10:03:28 PM
Which of the language would you choose between J#, C# and VB? and why? ...more >>

Visual Studio and PreInit handler
Posted by WT at 2/12/2007 7:40:52 PM
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS ...more >>

incrementing HH:MM:SS information: any method or datatype to save me time in .NET?
Posted by kenfine NO[at]SPAM nospam.nospam at 2/12/2007 6:59:08 PM
I'm doing some work with ffmpeg, which lets you work with audio and video. ffmpeg's command line accepts timecode information as folllows: 00:00:23. HH:MM.SS I want to increment that counter, say, adding ten seconds 1000 times. I could hack up my own string thingy to do this, but I'm be...more >>



web services and ajax
Posted by barry at 2/12/2007 6:27:33 PM
I have created a web service on my local machine and left if alone (HelloWorld) (vb.net) Below is the code for the declarative portion: <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> <Services> <...more >>

GAC web.config and Custome Events ASP .net 2.0
Posted by Ryan at 2/12/2007 6:03:42 PM
I created a custom event: MyPasswordChangedEvent. The .dll name is MyWebEvent. I created a strong name and added it to the GAC. So far so good. I know want to define an event using the new assembly and I want it available to ALL web applications, so I went to modify the global web.config fil...more >>

Flipped Gridview Control
Posted by spitapps at 2/12/2007 6:03:30 PM
In a traditional gridview control the items inserted(bind) into the control are rows and the data is in columns. I have a customer who wants the data fields as rows and the columns as the items being inserted(bind). I have never seen a gridview control displayed in this fashion but would like ...more >>

Exception
Posted by shapper at 2/12/2007 5:57:52 PM
Hello, I have a class with a function which returns a string. However, at the same time I might need to return an error code (integer). I need to access this code after calling the function. How can I do this? Maybe using exception some how? Thanks, Miguel ...more >>

problem with redirecting page with OnClientClick
Posted by Dan at 2/12/2007 5:38:42 PM
Hi, i try to redirect to another aspx page with jscript. I use "OnClientClick" but nothing happens. I tried two ways. What am i doing wrong? Thanks Dan .... <form id="form1" runat="server"> <asp:Button ID="ContinueButton" runat="server" OnClientClick="return profiel()" /> <...more >>

Issue with ASP 2's Table Adapter Wizard
Posted by David at 2/12/2007 5:18:17 PM
I have a SQLExpress database with a table that has a unique index. I am creating dataset/Table Adapter using the wizard. THe Wizard creates a select and insert commands, but does not create a Update or Delete command. Is there a way to force the wizard to crate the missing commands? If not...more >>

Getting reference to controls within ItemTemplate in a repeater
Posted by AC [MVP MOSS] at 2/12/2007 4:51:18 PM
I have a repeater with a header, footer, and item template. The item template is the only one with server controls (hyperlinks, labels, and a nested repeater). Within the top repeater, I'm handling the ItemDataBound method in the code behind. In this handler, I need to get access to the controls...more >>

asp.net 2.0 Treeview problem
Posted by Rick at 2/12/2007 3:55:25 PM
Hi guys! I have a problem with a master page that has a treeview control as menu, i have a root node, 5 parents and each parent has 10 leafs, 50 pages in total, each page is linked to master page, when i select a node in treeview it redirects to N page, its ok, but i want each time i sele...more >>

HttpCookie Error.
Posted by Terry Olsen at 2/12/2007 3:45:14 PM
I don't understand the error i'm getting on this page. Is this a bug or am I doing something wrong? Exception Details: System.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Web.HttpCookie'. Source Error: Line 24: Line 25: For Each ckie...more >>

Enable 1.1 framework on 2.0 website
Posted by Rick King at 2/12/2007 3:00:03 PM
Hi, Can someone tell me how i can enable an ASP.NET website to use the .NET 1.1 framework? The server only has .NET 2.0 installed, which is what the website is running as now but i need it to run under the .NET 1.1. Thanks for your help. R...more >>

add WebUserControls dynamically
Posted by rodchar at 2/12/2007 2:18:00 PM
hey all, let's say i have a WebUserControl that has a GridView in it. i have a blank web form on the page and in the code behind i'd like to dynamically create that WebUserControl could someone please show me a good article or some syntax to send the concept home for me? thanks, rodchar...more >>

Dot Net Nuke (DNN)
Posted by Brian P. Hammer at 2/12/2007 12:59:46 PM
I am looking for any feedback regarding .Net Nuke. We have a project to = convert our website from static to a more fluid site, as well as give = users the ability to make minor changes. Anyone use DNN before? = Thoughts and comments please?? Regards, Brian...more >>

user control needs data
Posted by rodchar at 2/12/2007 12:46:00 PM
hey all, i have a simple web page that has one DropDownList that contains employees. The page also has a WebUserControl that displays a GridView of records related to the DropDownList.SelectedValue. On the PageLoad of my web page how can i get the DropDownList.SelectedValue (which is the E...more >>

Accessing multiple values
Posted by Paul at 2/12/2007 12:42:58 PM
Hi all, I've written a custom DAL for a web app i'm currently working on, and I am trying to make it as efficient as possible- where possible. Objects are populated on creation using the DAL, currently I pull out 1 row of the db into a dataset, and assign the values to members of the class - ...more >>

Problem with Image display on separate window
Posted by tshad at 2/12/2007 11:50:30 AM
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo" runat="server"/> <asp:Label ID="CompanyPicture" runat="server"/> I have 2 links that open...more >>

Application object in web farm
Posted by Chris Cap at 2/12/2007 11:50:02 AM
We are considering moving from using several seperate webservers to a web farm. I was lookingg at implementing a start server to manage state for the web farm. The problem is, how do we keep the Application object consistent between all web servers? As far as I read the state server onl...more >>

setting focus in ASP 1.1, despite of smartnavigation
Posted by Finn Stampe Mikkelsen at 2/12/2007 11:45:39 AM
Hi How can i set a focus to a textbox in my codebehind page?? I have this WebForm, that takes information from a user and 2 buttons on the form. One that takes action on the entered information and one that resets the form... The second on, the reset button, i would like to set focus ba...more >>

Inheriting from a GridView
Posted by Andrew Robinson at 2/12/2007 11:43:16 AM
I am attempting to better automate a Pager Template within a GridView. I am succesfully skinning a Drop Down List withing my control (the DDL is added to my control). I correctly populate the item list that corresponds with the number of pages, but I am unable to wire up the Selected Index Cha...more >>

post to an alternate non dot.net page
Posted by WebBuilder451 at 2/12/2007 11:38:00 AM
I need to post a form to an alternate technology. I have created pop up windows that on post back will open a new window, but this uses get. I need to encode variables and POST to a new window on post back? Are there new elemebts in 2.0 that allow for this, or does anyone have a solution? T...more >>

ASP.NET 2.0 TreeView Binding Issue
Posted by aaronh64 NO[at]SPAM hotmail.com at 2/12/2007 11:35:46 AM
I'm trying to bind to the ASP.NET TreeView control and utilize the PopulateOnDemand functionality. However, I am receiving the following (very confusing) error: "PopulateOnDemand only supported when binding the TreeView to a data source control using the DataSourceID property or when the TreeN...more >>

How to set a button from a user control the default button on an aspx page
Posted by AlecL at 2/12/2007 10:53:35 AM
Hi All, I have added a user control onto an aspx page and want to make the submit button of that user control the default button when the panel in which the user control is located is visible. I have used the code: Page.RegisterHiddenField("__EVENTTARGET", "Login.btnSubmit") in the Page Loa...more >>

RE: Website configuration tool
Posted by SAL at 2/12/2007 10:52:43 AM
Here's what it say in my machine .config file: <connectionStrings> <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> </connectionStrings> ...more >>

ASP.NET Reflection problem
Posted by Renaud Langis at 2/12/2007 9:56:01 AM
Hello, I have an asp.net web page (say page.aspx) which derives from a custom base page object (CustomPage : BasePage : System.Web.UI.Page) Which has a method called DoSomething(params). My web page contains a UserControl (say Control.ascx). In the control class, i want to call the DoSom...more >>

Invoking an exe file
Posted by Eugene Anthony at 2/12/2007 9:46:13 AM
I tried the code bellow and I am getting an error: protected void Button1_Click(object sender, EventArgs e) { System.Diagnostics.Process pProcess = new System.Diagnostics.Process(); pProcess.StartInfo.FileName = "C:\\Documents and Settings\\Eugene Anthony\\Desktop\\...more >>

why is this html table still visible?
Posted by Dan at 2/12/2007 9:23:04 AM
Hi, i defined a html table with Visible="false", but i still see it in the browser. Why and how to hide that table? Thanks Dan %@ Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb" Inherits="Default3" %> <head runat="server"> <title>Untitled Page</title> </head> ...more >>

Customized Membership Provider
Posted by Hardy Wang at 2/12/2007 9:08:01 AM
Hi all, We currently have our own customer/login tables in our database linked with CustomerID columns of both tables. Some of the requirements of the system are 1) When I validate users, I need to pass more parameters than just username/password, for example customers are created for diffe...more >>

How to get rid of status window in W2k
Posted by tshad at 2/12/2007 9:03:11 AM
My status window is showing in a small XP window I am opening up even though I have "Status=no" function OpenLogoPreviewWindow() { window.open('logoDisplay.htm','myWindow','menubar=no,toolbar=no,directories=no,resizable=no,scrollbars=no,location=no,status=no');}In the script, I have to add a...more >>

Data Source Viewer in VS2005 for ASP.NET?
Posted by buju77 NO[at]SPAM gmail.com at 2/12/2007 8:55:50 AM
hi, is there a Data Source Viewer in VS2005 for ASP.NET? So I can drag & drop a field onto the page like in the Desktop application. tia, Buju ...more >>

Max pool size reached exception when trying to open a new connection
Posted by ramneekm NO[at]SPAM gmail.com at 2/12/2007 7:36:47 AM
hi all, i am working on a asp.net web app and using ado.net 's SqlClient Data Provider to connect to sqlserver 2005. I am getting the exception "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections w...more >>

Sessions Expiring Prematurely on Production
Posted by Andrew Chung at 2/12/2007 6:57:15 AM
Hi all, For an application that I'm working on, upon successful authentication, Session.Timeout is set to 60 minutes. This behaviour works as expected on my own machine. If I refresh a page after 40 minutes of inactivity, it remains, but after 61 minutes, it expires and I am sent back to the ...more >>

asp.net UICulture
Posted by Alex at 2/12/2007 6:48:48 AM
I have a question about asp.net. I'm trying to create a multilingual site with resources and stuff, it works ok, but what is the difference between using: UICulture = "en" or using Thread.CurrentThread.CurrentUICulture = new CultureInfo("en"); ?! Both work well. (i have a base page where i ...more >>

creating dynamic controls out of static controls
Posted by Tarscher at 2/12/2007 6:19:31 AM
hi all, I have this seemingly simple problem. I have lost a lot of time on it though. When a user selects a value from a dropdownlist (static control) a dynamic control is generated. I have to create the dynamic controls in the OnInit stage of the lifecycle. Since data from static controls...more >>

mencoder
Posted by Eugene Anthony at 2/12/2007 5:55:18 AM
How do I actually call "mencoder" from asp.net 2.0 with C#? I actually intend to convert any movie files to a flash fine. Eugene Anthony *** Sent via Developersdex http://www.developersdex.com ***...more >>

controls are not recognized in a class file
Posted by ruthiefy NO[at]SPAM walla.co.il at 2/12/2007 5:02:52 AM
Hi, I need a few sql queries results so I created a new class with has a few functions that load the data. After executing ExecuteReader, I need to load the data to the dropdownlist control. The problem is that the control isn't recognized in the new class (recognized only in Default.aspx.vb...more >>

printing reports from server
Posted by a.mustaq NO[at]SPAM gmail.com at 2/12/2007 2:21:54 AM
Hi All I Want to print a report from server.Please tell how to achieve it. ...more >>

How to AllowPartiallyTrustedCallersAttribute Class
Posted by TheDude5B at 2/12/2007 2:03:59 AM
Hi, I have been informed by my Hosting company that I need to include the AllowPartiallyTrustedCallersAttribute Class in my assembly in order for my code to work. So just now none of my .net 2.0 web sites are working because of this. I do not know how to add this into my code, or how to add...more >>

ViewState / Own Object
Posted by Rob at 2/12/2007 1:45:30 AM
Hi all, I have my own object stored in the viewstate on one of my pages, as the user progresses through the next couple of pages I want to update it. In order to get my object in there I had to make is serializable, my question is now that its in there - how can I update it? For example,...more >>

DropDownList
Posted by Eugene Anthony at 2/12/2007 1:36:11 AM
Connection code: SqlConnection cnn = new SqlConnection(ConfigurationManager.ConnectionStrings["myConnection"].Con nectionString); SqlCommand myCommand = new SqlCommand(); myCommand.Connection = cnn; myCommand.CommandText = "SELECT * FROM Authentication WHERE Authenti...more >>

Mac and ASP.NET 2.0
Posted by mail747097 NO[at]SPAM fificorp.net at 2/12/2007 12:30:12 AM
How do I get ASP.NET 2.0 to treat Safari on Mac as a browser that can handle for example Javascript? ...more >>


DevelopmentNow Blog