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 2006 > threads for monday august 28

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

Make a purchase with Commerce Starter Kit without logging in.
Posted by Warren Churulich at 8/28/2006 11:33:43 PM
Is there a way to allow a customer to make a purchase with Commerce Starter Kit without logging in? Please post the answer here and perhaps samples. Thanks, Warren ...more >>


Can I use Webpart with Microsoft Access to replace sql server 2005 ?
Posted by TMT32 at 8/28/2006 10:57:38 PM
Hi all, I would like to use Webpart and login component. But they are all need running with Sql 2005. Can I connect it it Microsoft Access ? Thanks TMT32 ...more >>

ASP.NET 2.0 hosting with ATLAS for personal homepage
Posted by veerleverbr NO[at]SPAM hotmail.com at 8/28/2006 10:56:34 PM
Hi, I'm looking for an ASP.NET 2.0 hosting with ATLAS to put my personal homepage. I don't want to spend more than 25=80 / year (=3D32 USD). And of couse, I don't want add banners or popups. Anyone knows or has experience with a good one? Veerle ...more >>

membership/roles create user problem
Posted by John at 8/28/2006 10:26:27 PM
Hi I have a web service asmx file in a sub folders of site app root folder. With in the web service I am trying to cerate the user as below; <WebMethod()> _ Public Function CreateUser(ByVal Username As String, ByVal Password As String, ByVal Email As String, ByRef ErrMsg As String) As Boo...more >>

Right & Left
Posted by sck10 at 8/28/2006 6:39:49 PM
Hello, What are the equivalent functions for Right and Left in c#? Thanks, sck10 ...more >>

How to include a js file globally in asp.net
Posted by green_tea NO[at]SPAM optusnet.com.au at 8/28/2006 6:12:32 PM
Hi there, I'd like to know how to include a js file globally in asp.net so all my pages can access js functions in this file. (Only include it once and not include this file one by one to all my pages.) Thanks for your help. Green ...more >>

DataRow.Item
Posted by GaryDean at 8/28/2006 5:48:37 PM
The docs say that the DataRow class has an Item property so I could set a value without having to know the column name i.e. myDR.Item[0] = myString; but, there is no Item property in the DataRow. What am I not understanding? -- Regards, Gary Blakely ...more >>

Webparts, Personalization and the WindowsProvider
Posted by Malcolm at 8/28/2006 5:33:01 PM
I'm trying to create a intranet site that uses webparts and Personalization but based on the windows active directory login of the user not forms login. i have the basic page working so that it displays the webparts OK, but when a user tries to make a change to the webparts (using DesignDis...more >>



method is inaccessible due to its protection level
Posted by sck10 at 8/28/2006 5:03:06 PM
Hello, I am getting the following error: fvServiceIdea_ItemUpdating_Validate(object, System.Web.UI.WebControls.FormViewUpdateEventArgs)' is inaccessible due to its protection level. Below is what I am using, so I don't understand what level of protection is being used. Any assistance...more >>

question about compiling
Posted by Bob at 8/28/2006 4:50:35 PM
Hi, I compiled my asp.net application for deployment like this: aspnet_compiler -p "C:\MyDevelopment\WebSite1" -v / C:\mydir. I can see the same aspx and other files and a dir 'bin' with the compiled files. Then i made a virtual dir. under IIS for c:\mydir. It works. My question is: can...more >>

GridView & setting parameters in code
Posted by Loading name... at 8/28/2006 4:02:41 PM
Hey asp.net 2.0 I have a GridView on my webpage. The datasource behind this GridView needs 1 parameter. This parameter is afaik only available from the code (the parameter is the PortalModuleBase.UserId from DotNetNuke)... I've set up 1 parameter for the sqldatasource and set its parame...more >>

Formview FindControl conversion to c#
Posted by sck10 at 8/28/2006 3:52:04 PM
Hello, I am trying to get the value of a control in a FormView. In vb, I would use the following: e.NewValues("ServiceIdeaQ01") = CType(this.fvServiceIdea.FindControl("lblServiceIdeaQ01Edit"), Label).Text For c#, what I have found on the web is the following: Label ServiceIdeaQ01L...more >>

HTTPModule to generate RSS Feed
Posted by Van den Driessche Willy at 8/28/2006 3:43:43 PM
I am writing a HTTP Module to generate an RSS feed for certain requests. = For the moment everything is hardcoded and my code looks like (the idea = is - for the moment to generate the RSS feed on the fly for every = request - caching is another worry for later): Public Class rssHTTPModule I...more >>

DetailsView - Won't switch to Edit mode if databinding programmatically
Posted by Mark Stafford at 8/28/2006 3:30:35 PM
I am attempting to use a DetailsView control to view some data where the fields returned by the database are determined at runtime. I create the TemplateFields on the fly using a class that implements ITemplate and repopulate the Template properters of TemplateField in OnInit. And I am DataBin...more >>

Clickable rows in Grid View
Posted by Seema Multani at 8/28/2006 3:20:00 PM
How can I make clickable rows in Grid View in ASP.Net 2.0 in VS2005 Thanks in advance ...more >>

Confusion on nothing
Posted by John at 8/28/2006 3:06:25 PM
Hi I am confused over how to check for nulls (Nothing in vb.net?). For instance I am trying to create user in my vb.net/asp.net app as below; Dim newUser As MembershipUser = Membership.CreateUser(Username, Password, Email, passwordQuestion, passwordAnswer, True, status) If (newUser = Noth...more >>

Problem with incomplete page and blank explorer
Posted by Daniel Alvarez at 8/28/2006 3:05:54 PM
Hello. First of all, I'm working in an ASP.NET 1.1 project, which has a large page (due to client requirements, a huge page is needed to process the information, and it has a lot of interactivity with the user, so that if some value changes, the screen refresh showing some other data, or a grid, ...more >>

How to debug?
Posted by Arjen at 8/28/2006 2:52:02 PM
Hi, Last week I realized that my web application is getting slower and slower. When I hit a button - the browser starts loading - and after two seconds I get my page. Now I want to know where the problem lies. The (built in vs.net) webserver? The web application? The database? I don't know...more >>

determine origin of request
Posted by John A Grandy at 8/28/2006 2:19:30 PM
How to determine if a request originated from a link click , or otherwise ( such as pasting the url the browser ). This would seem to work ... if (Request.Url.Host == Request.UrlReferrer.Host) { But what if Request.UrlReferrer == null ... ? Any other ideas ? ...more >>

Composite Control Client-Side Validation
Posted by drop at 8/28/2006 2:02:14 PM
Hi, I'm using a Composite Date Control that I want to be able to validate Client-Side with the ASP RegularExpression Validator. I want the validator to be outside of the Composite Control so I can easily move it around. Right now, I can make Server-Side validation by using ValidationProper...more >>

checkbox won't fire raisepostbackevent
Posted by ginny at 8/28/2006 1:45:52 PM
I wrote code like this, found checkbox cause post back, but won't fire this function, but button do, could you help me figure out? Thanks. protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument) { //Response.Write("source control is " + ...more >>

Referencing a page control for another class
Posted by Greg Smith at 8/28/2006 1:06:58 PM
I have a page that has a code behind file that is looking very messy. I would like to put some of the code in a class library to clean up the page but I can't get the syntax correct for referring to controls like buttons on the from functions in the class library. What would be the correct ...more >>

refreshing GridView
Posted by Loading name... at 8/28/2006 1:03:52 PM
hey asp.net 2.0 I have a GridView on my webpage. This GridView get its data from a SqlDataSource. On the same webpage I've added textbox and a button - so the user can add records to the table which the GridView is based on... After a new record is saved to the table, I want the Grid...more >>

How to Send Mail using AUTHENTICATION?
Posted by AbraAbraCadabra at 8/28/2006 12:12:41 PM
Here is the code I have been using to send mail... Set objCDO = Server.CreateObject("CDO.Message") With objCDO .To = strTo .From = "markus@domain.com" .Subject = "This is the subject" .HtmlBody = "This is the Body" .Send End With Set objCDO = Nothing It use...more >>

updating a SQL database from a multiple selection listbox
Posted by Ned Balzer at 8/28/2006 11:27:28 AM
Hi, Can anyone tell me what is the best approach for passing multiple keys from a listbox to a SQL update? I prefer to use stored procedures for updates. I am using asp.net 2.0 and SQL 2000, soon to upgrade to SQL 2005. I can envision several ways to do it, such as passing a delimited set ...more >>

problems with IIS impersonation
Posted by Sridhar at 8/28/2006 11:24:01 AM
Hi, I am having problems setting up a website which needs to be available only inside the domain. I have set up a website on one of our servers. When I remote in to the server and login to the website, it is working fine. But when I try to login from my local computer it is giving the er...more >>

updating asp:HiddenField using a foreach of submitted values?
Posted by Kevin Blount at 8/28/2006 11:18:29 AM
Here's the code I tried, and found it failed... <form runat="server" method="post" name="CreditCardForm" id="CreditCardForm"> <% foreach (object item in Request.Form) { if (item.ToString().IndexOf("__") != 0) { //Response.Write(item + " = " + Request.Form[item.ToString()] + "...more >>

ASP.NET 2.0 Grid View and multi select list box
Posted by probashi at 8/28/2006 11:15:45 AM
Hi, Using the SqlDataSource/SelectParameters/ControlParameter one can easily bind a Grid View with a list box (or any other controls), pretty cool, but my list box is multi select. My questions is, how can I bind a Grid View Control to a multi select list box (or any multi values controls) ...more >>

CS0433: The type 'ProfileCommon' exists in both
Posted by Phil at 8/28/2006 11:15:01 AM
I've started getting this message after doing a publish of an Asp.Net 2.0 (c#) web site. The site uses a custom profile provider - I'm sure there is a relation here, but I can't find it. Everything worked before, and the same code is working on another site. I've tried deleting temp asp.net ...more >>

Bind a querystring being passed over
Posted by Phillip Vong at 8/28/2006 11:00:54 AM
Please help. I'm a newbie. Using VS2005. I have a simple aspx page. I want the querystring being passed in to bind to a textbox in a control. How do you do this? Basically, www.website.com?string=100 The site autoloads into Formview1 / InsertItem Template. TextBox1 shows up as blank...more >>

Out-of-memory errors and caching errors.
Posted by George1776 at 8/28/2006 10:06:18 AM
All, I've recently upgraded our production ASP.NET/C# application from framework 1.1 to 2.0. Since then I've been plagued by out-of-memory errors and problems with the cache object (which may simply be a result of being out of memory.) We're running on IIS 5.1 on a single Windows 2000 serv...more >>

Enterprise Library for .NET Framework 2.0 - January 2006
Posted by rockdale at 8/28/2006 9:53:03 AM
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to integrate it into my asp.net application. As i am going to connect to mySQL database, I need to include the source code in my project so that I can debug better. But I all those examples I found are reference the compiled dll...more >>

PreRender Event
Posted by Prem Kumar at 8/28/2006 9:29:02 AM
Hi What is the exact use of an Pre-Render event? Kindly explain with a sample as When would we exactly need this event? Prem...more >>

Gridview and Setting column width problem
Posted by Chuck at 8/28/2006 9:21:28 AM
I'm setting the column with for a gridview (25+- columns) and have paging turned on. When the gridview is first displayed, the column widths are all set to the default. But after paging to another page, the widths are set as they should be. Going back to page one, the widths are still corr...more >>

ASP.NET 2005 CompositeControl Class - Nesting
Posted by Electric Co. at 8/28/2006 8:48:09 AM
Hello, I have two questions: 1.) How successfully does ASP.NET 2005 handle custom composite controls nested inside of custom composite controls? For example: Cntrl_A inherits from CompositeControl and does all sorts of neat stuff Cntrl_B also inherits from CompositeControl and has t...more >>

How can I save a DateTime from my C# program into a SQL Server (datetime) database column.
Posted by Steve Kershaw at 8/28/2006 8:43:36 AM
Hi I have a problem in that I need to save the creation date of a new record to a column. The column is set up as a datetime type and the C# date is a DateTime type. I keep on getting an error that states that I'm trying to write to a SQL column that's set up as an 'int'. Is there anyway to do...more >>

Not able to access Session internal domain web application
Posted by Sridhar at 8/28/2006 8:14:02 AM
Hi, I am trying to setup a ASP.NET 1.1 web application so that it will be available only inside the domain. When I try to save the username in Session, it is giving exception. How do I enable sessions in the iis? Thanks, Sridhar....more >>

Problem with Polish accents with ASP.NET C#
Posted by AmigoFd at 8/28/2006 8:09:21 AM
Hello, This problem is really driving me crazy ... * I have a mySql database which is latin1_swedish_ci * In my web.config I have: <globalization requestEncoding=3D"ISO-8859-2" responseEncoding=3D"ISO-8859-2" fileEncoding=3D"iso-8859-2" culture=3D"pl-P= L" uiCulture=3D"pl-PL" /> *...more >>

Confused on Menu Security Trimming
Posted by Kbalz at 8/28/2006 7:24:16 AM
I'm using xml site map to trim my security on my menus.. Its working rather well, but I'm having this gripe about it.. Here's my psuedo problem.. <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode title="Home" descrip...more >>

Nested Masterpage
Posted by delvsb at 8/28/2006 6:53:02 AM
Hi. I would like to ask whether it is normal that you cannot view the child master page in the design view when using nested masterpages. ex. i have the ff files maintemplate.master template1.master whose masterpagefile is maintemplate.master i cannot display template1.aspx in design ...more >>

How to make Base64 string url safe
Posted by Rasmus at 8/28/2006 6:36:01 AM
In a asp.net site i need to make a url link like this: http://server.com/test.aspx?base64=c+KAnMOfxZLDqhd2w4DCtMOmwr8hawkCdsK9YH7igqwITuKAmcOhXAcDxbjFoR3Cum/DqwFJRU7DpzbigJlYZD1cJcKBwqgaBsObw6VxMMW9wrTDpD7CpSTDkeKAuuKAlFfDt8W+Jz3CvhM7w5HCjeKAneKAuT3Dn8WTw5zigKErw6QFxaF+wrvDksOkwqjDq1fCrsOewrc= I...more >>

formatting HTML
Posted by Ant at 8/28/2006 6:33:02 AM
Simple question - I think... I want to make the HTML in my ASP.NET more readable by seperating all the HTML controls by a line or two, but when I run the app. or switch to design mode, it snaps back into one big ugly block of messy HTML. Difficult to find controls amongst. Is there an op...more >>

Is there a name for this?
Posted by cowznofsky at 8/28/2006 6:12:00 AM
We often see a GUI feature that shows 2 list boxes and a series of buttons in between them with "<", "<<", ">>", and ">" options. Is there a name that is commonly used for this? ...more >>

ASP not displaying
Posted by glbdev NO[at]SPAM yahoo.com at 8/28/2006 6:07:19 AM
I have dotnet installed and it runs fine. However, I cannot run any files with the extension of ".asp". I have a separate folder with only asp files and attempts to run it through the browser come back with the error message of "The page cannot be displayed". Any suggestions? - Gary ...more >>

Gridview and effective paging
Posted by nyhetsgrupper NO[at]SPAM gmail.com at 8/28/2006 5:39:58 AM
Hi everyone, In a datagrid the entire data is read but only the page you want is displayed to the user when you enable paging. Does the Gridview control works in the same way? So if you have 100000 records and you only want 10 records displayed on each page, does it read all 100000 and displa...more >>

Partial classes
Posted by Sebastian at 8/28/2006 4:44:02 AM
Hi Everyone, we're currently developing an web-app for insurance company. We've got a long form-flows and view-classes (MVC) of about 2000 lines of code. Is there any possibility to split code-behind classes into multiple files using partial classes? It would be helpfull to balance work on ...more >>

Select Parameters in SQL data source
Posted by Alan at 8/28/2006 3:39:12 AM
Hi, I'm having a problem inserting a parameter into an SQL Select statement with <asp:ControlParameter>. This should be very simple, but for some reason it just isn't working: <%-- Get username and put it in the textbox --%> <% Session("UserName") = HttpContext.Current.User.Identity...more >>

Gridview and DatasourceID
Posted by hfritz at 8/28/2006 3:11:45 AM
Hallo, in the DefaultPage.aspx I set the department information to sessionvariable (DEP1, DEP2 ...). I want to use this department information to bind it to the Gridview-datasourceID on 10 other pages. I need to do this, because every department has its own Database to store documentinfomat...more >>

server control visible(false) after post back
Posted by walanta at 8/28/2006 2:17:32 AM
I'm trying to get rid of the TextBox1 and Button1 on the page after posted back. However, it's still visible. Any idea why? protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == true) { TextBox1.Visible.Equals(false); ...more >>

Membership/roles help
Posted by John at 8/28/2006 2:09:36 AM
Hi I have looked in help but am not clear how to do the following in vb.net code. 1. Check if a user belongs to a specific role. 2. Change user's password. Is it possible to do it without knowing the old/existing password? Would appreciate if someone could give me some pointers. T...more >>

Createuser exception handling
Posted by John at 8/28/2006 12:53:39 AM
Hi I am using the membership createuser method but need to find the error when one arise. I am using the below code; Public Function CreateUser(ByVal Username As String, ByVal Password As String, ByVal Email As String, ByRef ErrMsg As String) As Boolean Try Membership.CreateUser(U...more >>

Can login with Login Control
Posted by ad at 8/28/2006 12:00:00 AM
I used login Controls of VS2005 to develop Web application. My program will check password and user ID in login.aspx. If the password is wrong, my program will display an "password is wrong" message to user. If the ID and password are correct, my program wiill transfer to home.aspx After m...more >>

showing progress bar
Posted by Vikas Kumar at 8/28/2006 12:00:00 AM
Hi if I want to show a progress bar in my web application how can i do it Like this much % of task has been completed as its shown when installing some desktop application i want to do same in my web application ...more >>

ASP.NET and Flash
Posted by Tor Inge Rislaa at 8/28/2006 12:00:00 AM
I am just wondering if there is a way to use Flash within ASP.NET (2005) Is it possible have Flash content as a part of a webform? (as you can within an HTML document) TIRislaa ...more >>

generating DAL
Posted by Patrick.O.Ige at 8/28/2006 12:00:00 AM
Hi guys, Is there any free stuff to generate DAL code out there? Thanks in advance ...more >>

debug="false" in web.config and <%@ debug="true" ...%> in aspx file => true or false?
Posted by André at 8/28/2006 12:00:00 AM
Hi, I put that question already, but it's still not very clear to me, so ... Assume following option in web.config= debug="false" but in one aspx page (test.aspx) <%@ debug="true" ..%> Am I right with those statements: 1) 'page test.aspx will be debugged, but all others wil not' ? ...more >>

updating db via SqlDataSource
Posted by Loading name... at 8/28/2006 12:00:00 AM
hey asp.net 2.0 I have a GridView which get its data from a SqlDataSource object on the webpage. This GridView consist of 1 column (I removed the id column because the user don't need to see it. Maybe the Update need this column?) I have enabled updating on the GridView. In Sql Server 2...more >>


DevelopmentNow Blog