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 2007 > threads for monday august 27

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

XmlTextReader - finding attributes and then children.
Posted by lejason NO[at]SPAM gmail.com at 8/27/2007 10:15:49 PM
Hi, I have an XML file that is a list of product models and info. The list will eventually contain about 100 products, each product having multiple elements for things like names, specifications, images...etc. Here is the XML Doc. <productlist> <product id="001"> <name>Articulating B...more >>


dynamically create multiple instances of usercontrol in codebehind
Posted by Padam at 8/27/2007 10:12:02 PM
I created a user conrolt in C# and want to create multiple instance (one by one) of usercontrol onclick of button. if i hard code in .aspx page like <%@ Register Src="~/UserControls/AddPhaseMilestone.ascx" TagName="AddPhaseMilestone" TagPrefix="uc1" %> <uc1:AddPhaseMilestone ID="AddPhaseM...more >>

Get the username and password of a registered user
Posted by sravan_reddy001 at 8/27/2007 6:52:02 PM
Hi, There is a problem with the default SMTP mail provided by ASP administration tool so i configured SMTP mail and i want send the password to his mail when a user want's to recover his password. The username and password are stored in an encrypted form. How can i get the details??? plea...more >>

session.timeout after page is refreshed
Posted by Astrix at 8/27/2007 6:01:20 PM
Hi, I am working on a problem w.r.t session.timeout I have a code to redirect to this new page after 20 seconds. Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout * 60) - 1180) +"; URL=index.aspx"); Once the initial page is loaded, i start pressing "F5" to refresh the pa...more >>

Need suggestions/opinions about pdf/word manipulation
Posted by Brian Simmons at 8/27/2007 5:10:01 PM
Hi All, Not even sure if this is the right group to post to, but I'll give it a shot here. I'm using ASP.NET 2, and C#. Basically, my client has a 2 page contract in Word. It's a pretty simple boiler template type of thing. Essentially, I have to insert the FirstName/LastName/Dates, e...more >>

scripting using Button
Posted by stephen at 8/27/2007 5:06:15 PM
Hi Steve, Sorry if you have seen this post before but I cant figure this one out... Thanks for the information but now I am getting new errors: I have used this code in the rowdatabound, how do i modify this to take 2 values? protected void dgCustomer_RowDataBound(object sender, GridViewR...more >>

Selected a Form text box on load
Posted by Shaun Rigby at 8/27/2007 4:33:36 PM
Hi Guys, I have been doing some research on the internet to find the answer but no joy. I have a <form> in my site with a textbox and button which, when submitted, send the query to Google. My question is, on form load how do I make this text box automatically selected so that i can j...more >>

Getting SQL error on sp but still runs
Posted by David C at 8/27/2007 3:39:35 PM
I have an aspx page with an editible GridView. When I click the Update button the stored procedure runs (I know because the underlying data was changed) but throws an exception as follows: Source: .Net SqlClient Data Provider An unhandled exception occurred: Message: Cannot find the obje...more >>



How do I validate controls inside a repeater?
Posted by Alan Silver at 8/27/2007 3:24:10 PM
Hello, I have a repeater that is being used to show products from a database. Inside the ItemTemplate is a DropDownList, that contains the numbers 0-5. The user can use this to set the quantity of that product that they wish to order. I want to be able to do client-side validation on the...more >>

accessing table cell programmatically
Posted by ma at 8/27/2007 2:20:46 PM
Hello, I want to inject a piece of JavaScript inside a table cell. How can I do this? The table is statically created on master page. Regards ...more >>

C# 2.0 (Lotus Notes 6 & 7) Create mail document in draft folder for Lotus Notes
Posted by SteveM at 8/27/2007 1:47:52 PM
I could use some of the expertise out there to sort out issues with what I am trying to do Any help or suggestion will be appreciated :-) The Problem: I have a C# application that I want to create a customized email document and store it in the draft folder on the machine that the user of th...more >>

Postback and databinding question
Posted by Froefel at 8/27/2007 1:01:16 PM
Probably a beginner's question: My page has AutoEventWireup=true. I have a gridview that's bound to an ObjectDataSource that returns projects as a DataView. One of the columns is an Imagebutton that, when clicked, takes the user to the details page of the requested project. Everything is w...more >>

Including content in a View in MultiView
Posted by Nathan Sokalski at 8/27/2007 12:55:50 PM
When I include a MultiView control in my application, I receive the following error: MultiView cannot have children of type 'Label'. It can only have children of type View. I receive the same error (with 'Label' replaced with another control type) when I use other control types as well....more >>

Scripting using button
Posted by stephen at 8/27/2007 12:51:08 PM
Hi all, I found a nice piece of code that helps me select a value from a datagrid (second page) and pass the value to the calling page (first page)... but If I need multiple values then the script fails, I am not good at scripting, can someone please help me this is the code: <INPUT i...more >>

Stupid question - binding an <asp:label> --> stored procedure returning a scalar?
Posted by Homer J. Simpson at 8/27/2007 12:47:51 PM
I have the following stored procedure: ALTER PROCEDURE [dbo].[spGetQuickNoteCount] AS BEGIN SET NOCOUNT ON; SELECT COUNT(*) FROM QUICKNOTES END ....and the following data source in my .aspx file: <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ Connection...more >>

executing a server method after page is rendered
Posted by at 8/27/2007 12:42:14 PM
Hi all I am calling a method in a Page_Load event that makes use of a value from a text box. Unfortunately the textbox value is only set after a javascript runs and the page is rendered. Therefore the textbox is actually empty when the Page_Load event fires. Is there a way to execute the...more >>

Stupid format question
Posted by Ghistos at 8/27/2007 12:20:02 PM
I know, this is a very simple question but... I want to bound an ObjectDataSource with a DropDownList. And I want to do it like that : Residential Condominium Duplex Triplex Land Commercial Lands... These come from a class with properties and I just want to insert blank...more >>

ASP.NET "Remember Me" check box
Posted by Abdo Haji-Ali at 8/27/2007 12:15:19 PM
Greetings, I'm using the ASP.NET membership model in my site and everything works perfectly, locally. However when I uploaded my site (To my host which is GoDaddy), and ran it remotely the "Remember Me" check box was not working *at all*. What I mean is when I try to log in with "Remember Me"...more >>

populate multiple dropdownlist
Posted by sweetpotatop NO[at]SPAM yahoo.com at 8/27/2007 11:55:38 AM
Hi, I am try to populate a number of dropdownlist with the same item, for i = 1 to 5 dd = me.controls("dd" + Cstr(i)) itm = new listiem itm.text ="abc" itm.value ="aaa" dd.add(itm) next i But I am getting the following error "Conversion from string "dd1" to type 'Intege...more >>

debug a dll
Posted by someone NO[at]SPAM js.com at 8/27/2007 10:36:45 AM
Hi, I want to debug my asp.net web site, when I open a dll project and attached the web page process and it didn't stop on the break point. How to debug the dll? Thanks. ...more >>

Hide Edit and New buttons in a formview
Posted by Dennis at 8/27/2007 10:09:50 AM
I have a basic formview with edit and new buttons. I would like to hide the buttons if the user is not a member of certain groups. I know the code looks like this, but I can't figure out where the code needs to be called from because it errors if the controls don't exist. If Not Roles.IsUs...more >>

Doubt connections
Posted by Paulo at 8/27/2007 10:06:41 AM
Hi, if the customer choose access (mdb) I have to use OleDbConnection, OleDbCommand classes, etc... etc, but if the customer chooses Sql Server as database I have to use SqlConnection, SqlDataReader, etc... Do you know any pieces of code / classes wich gives to me the flexibility to choose ...more >>

C# casting question
Posted by WebBuilder451 at 8/27/2007 9:40:04 AM
I know this one is basic (and Thanks) i have a function that calls a storedprocedure and i'm using the return code for validation See Below public Boolean fn_isVaildUser(string userid, string password) { // returns 0 invalid or 1 valid for a userid and password str...more >>

Is it possible to programatically change the Meta Tag HTML
Posted by Ross Culver at 8/27/2007 9:39:14 AM
I need to be able to create a new aspx file for new users that are specific and optimized for that user. For instance, Joe Blow clicks a button and Joe_Blow.aspx is created. I can create the file, no problem, by copying a template file and renaming it. But I need to be able to change the ...more >>

CSLA Framework - Opinions Please
Posted by GaryDean at 8/27/2007 9:01:14 AM
I'm involved in an assessment of the CSLA Framework developed by Rockford Lhotka. I would like to hear from anyone who has experience and opinions regarding the viability and usefulness of this framework. -- Regards, Gary Blakely ...more >>

beginner question
Posted by John at 8/27/2007 8:54:57 AM
please look at below: default.aspx ========= <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://ww...more >>

Unable to retrieve the user sid from context.
Posted by ipramod NO[at]SPAM gmail.com at 8/27/2007 5:21:15 AM
Hi, I have a code snippet C# when executed gives the following exception on IE. ___________________________________________________________________ Unable to retrieve the user sid from context. This is typically caused by the context not yet being set. Description: An unhandled exception...more >>

Cannot get IIS pickup directory
Posted by Mike at 8/27/2007 1:10:01 AM
Hi guys, I'm using this code to generate emails and it's working in my machine: // Create the mail message MailMessage objMailMsg = new MailMessage(strFrom, strTo); objMailMsg.BodyEncoding = Encoding.UTF8; objMailMsg.Sub...more >>


DevelopmentNow Blog