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 > september 2006

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

Asp.net configuration don't see my database.
Posted by craigkenisston NO[at]SPAM hotmail.com at 9/30/2006 11:23:25 PM
I started an application using the membership provider from Microsoft. I ended with two databases, one for my data and other for the memberships. I then decided to merge both databases and everything went fine. I could ran my application and worked perfectly. But now I need to run the asp.net...more >>


Master Page
Posted by Weston Fryatt at 9/30/2006 10:48:03 PM
Can you change text or add controls dynamically on a Master Page (not in the Content Place Holder)? ...more >>

Screen Size Recommended
Posted by Samuel Shulman at 9/30/2006 10:12:59 PM
I currently design a new website and I wonder whether to design for a 600/800 screen or 1024/768 Any accepted advice on that? Thank you, Samuel ...more >>

Remove first word of a string
Posted by shapper at 9/30/2006 7:54:09 PM
Hello, I want to remove the first word of a string. For example: MyString = "Hello World! How are you?" I need to create 2 string: MyString1 = "Hello" MyString2 = " World! How are you?" I was able to get the first word but not to remove it from the original string. Could someone h...more >>

How to use Server.Execute within the server side VB.net ?
Posted by Oscar at 9/30/2006 7:00:44 PM
What's the right coding to open another aspx page within server side vb.net (not within the html) ? In case I only code Server.Execute("page2.aspx") with a VB.net Subroutine, the browser shows a mess of both page 1 and page 2 within the same window. ...more >>

Can't access controls in code behind
Posted by David A. Osborn at 9/30/2006 6:31:18 PM
I have a web project inVS2005 that I copied some existing pages from a website that I previously created. To clarify the website was originally created in Visual Web Developer Express and not I have created a web project (not a website) in VS2005 and add a few of the pages to this web project ...more >>

installing services
Posted by Mukesh at 9/30/2006 5:55:18 PM
Hi friends i wants to install a service (MS application Block) on the server using a web application. Can i do this if yes then how can i do this I m using MS VisualStudio.net 2003, C#, .net1.1 Mukesh Delhi India...more >>

How to load another aspx page within a VB subroutine?
Posted by Oscar at 9/30/2006 4:32:41 PM
What code do I need within VB to load another aspx page within the browser ? ...more >>



dynamically writing property values to a control INSIDE of a user control?
Posted by kenfine NO[at]SPAM nospam.nospam at 9/30/2006 4:15:32 PM
I want to use codebehind to pass property values to a control that I've embedded INSIDE of a user control. In other words, let's say I have the following: MyPage.aspx ....with the following control placed on it... MyUserControl.ascx .... and inside of MyUserControl.ascx, is an instanc...more >>

Substring and ()
Posted by shapper at 9/30/2006 12:29:29 PM
Hello, I have a string which looks as follows: "asdksdjfssdf@sdfsdfsdfsdfsdf.com (John Smith)" How to create a substring with only the part which is between (), i.e., the name? Thanks, Miguel ...more >>

Usercontrol in Page_Load
Posted by Big Charles at 9/30/2006 12:28:35 PM
Hello, I don't know how UserControl should work: If I put MyPlaceHolder.Controls.Add(MyUsrControl) inside "If (Not Page.IsPostBack) Then", when MyWebForm is loaded, the usercontrol is not loaded. Why not? Example: Public Class MyWebForm Inherits System.Web.UI.Page Privat...more >>

Uppercase
Posted by shapper at 9/30/2006 12:25:01 PM
Hello, How can I make the first letter of a string to be upper case? Thanks, Miguel ...more >>

XML, XSL and ASP.Net
Posted by djamilabouzid NO[at]SPAM gmail.com at 9/30/2006 11:56:02 AM
Hi, I am wondering if someone can help me. This will be very grateful. Here is an explanation of my problem: o I have collections in SQL Server 2005 database o I search these collections by keywords o I collect the search results in an XML o I use XSL for the layout of my results o I di...more >>

Moving to Java or stay with ASP.NET ?
Posted by Big George at 9/30/2006 11:21:22 AM
Hello, Just looking for some feedback. I have an intermediate level of ASP.NET. Since some time ago, I liked to learn Java. However, my hughe problem is time: working many hours every day and studying IT project managment at university at night, don't leave me time to learn Java. So,...more >>

I guess no one knows how to get the web path to currently selected theme?
Posted by ThazKool at 9/30/2006 11:20:36 AM
I have been trying to figure this out and to no avail.... If I had a couple of hours to spend on this I would, but alas I do not. If anyone could help, I would greatly appreciate it. Thanks, Ch=E9 ...more >>

Text to HTML
Posted by Tina at 9/30/2006 11:08:44 AM
I have a text file perfectly formatted with carriage returns, indents, spacing etc in NotePad. I want to put text that looks exactly like that into a <div> and get it formatted exactly the same way in Visual Studio. But I can't seem to get this done in Visual Studio other than pasting it in...more >>

Responding to event from programmatically created button - ASP.NET
Posted by dinotius NO[at]SPAM gmail.com at 9/30/2006 10:56:01 AM
Hi, Can anyone please tell me how to respond to an event in VB when a programmatically created button is clicked? I can get it to work if the addhandler event is in the pages Page_Load sub but not in a custom routine. Thanks. ...more >>

HtmlEncode in <asp:image>
Posted by MRW at 9/30/2006 10:42:23 AM
Hello! I'm taking a file name from a database and using the <asp:image> tag in GridView to show the image. However, some of the file names have spaces in it and no matter what I do, for example: <asp:Image runat=server ImageUrl=<%# HttpUtility.HtmlDecode((Eval("WallpaperLink"))) %> /> ...more >>

Create Custom DateTime
Posted by shapper at 9/30/2006 9:11:59 AM
Hello, I am taking a date/time value from a database and I need to display it as follows: [Weekday], [Day] of [Month] [Year] # [Hour]:[Minutes] And example: Saturday, 30 of September 2006 # 17:30 I tried a few functions in Asp.Net 2.0 but I was never able to create a really custom f...more >>

Atlas Update Panel: javascript sequence issue
Posted by rodchar at 9/30/2006 6:42:01 AM
hey all, how can i get javascript procedure to execute as the very last thing before the page is rendered? Background: I have a DIV element inside an update panel. I am setting the scrollLeft attribute of the DIV via javascript to move its contents left and right, fine so far. The problem ...more >>

How to create wesite in multiple user languages
Posted by Pramit at 9/30/2006 6:41:05 AM
Hello friends, Can anybody guide me how to create a website using asp.net 2.0 which gives user to choose multiple languages like engloish, chinease , french etc. also examples of these types of sites? ...more >>

Google and Asp.Net
Posted by shapper at 9/30/2006 5:47:06 AM
Hello, If you make a search in Google for "CNN" you will get the result as follows: CNN.com - Breaking News, US, World, Weather, Entertainment & Video ... CNN.com delivers the latest breaking news and information on the latest top stories, weather, business, entertainment, politics, and m...more >>

Visible Bindable Property - Eval code help
Posted by Steve at 9/30/2006 12:41:02 AM
In my gridview, I have a template column whose 'visible property' I wish to bind to a database field called "TransactionType" which is of a string datatype. I only want the data in this gridview column to be visible when the "TransactionType" field = "Income" i.e. I want to do something lik...more >>

Chat script with c#
Posted by Overseer at 9/29/2006 5:58:51 PM
How can I code a chat script with asp.net. How can I find code sample which coded with asp.net using C#. ...more >>

Get first N words of a string
Posted by shapper at 9/29/2006 5:34:50 PM
Hello, I have a string which holds a text. Is it possible to create a substring which uses the first N words of that string? Thanks, Miguel ...more >>

LoginID as parameter to GridView or Dataset
Posted by Bret at 9/29/2006 4:55:01 PM
I am VB developer learning ASP.net. What is the best way to do the following. User logs in against our companies SQL Server to check if they have permissions in our Security table. If successful, I want the "login" name or ID to feed a parameter in the GridView to return a recordset or datas...more >>

Goofy Drop Down List
Posted by Uriah Piddle at 9/29/2006 4:36:09 PM
Hi Gang, In VS 2005, I can't get an ASP DropDownList to take a BorderStyle property. I've tried both with a skin id and inline. No matter what style I apply, it comes up with the default style. I specified 'Dotted' and nothing dotted happens. In Firefox, its the same except the border is ve...more >>

mysterious ajax
Posted by rodchar at 9/29/2006 4:20:01 PM
hey all, i have an update panel with a simple textbox in it. outside i have a server-side button. i put a trigger on the update panel for the button click event. (it just places "Hello World" in textbox) works great. however, if i drag an html button on to the form, run the web app, click...more >>

"Error 1 Metadata file..." What is this?
Posted by Charlie NO[at]SPAM CBFC at 9/29/2006 3:05:27 PM
Hi: Getting this error. Not sure what to do. App won't compile. Looks like it is something out of my control. Error 1 Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\biolabnet\4bfeaa1c\ff23cac2\App_Web_filtercat.ascx.cdcab7d2.ehc-pwme.dll' could ...more >>

When a control on form has blank value or has no items (dropdownlist) then it wont' be in Request.Forms
Posted by TS at 9/29/2006 2:35:05 PM
we publish our exceptions to email at work and include the form's vlaues to help debug in production. Since the control wont' appear if it is empty, how can i access it to show the controls wiht a blank value (currently i won't know if the control was ever made visible (sent to browser) since ...more >>

Fire up checkbox onclick event from asp.net codebehind
Posted by ccordero NO[at]SPAM gmx.net at 9/29/2006 12:43:39 PM
Hi! I am working with asp.net 1.1 and javascript. I have a client side checkbox, a client side button, and an asp.net image button. When I check the checkbox, I want the client side button to disable, and I want the same button enebled if I uncheck the checkbox. I have the checkbox_onc...more >>

How to dynamically display entries made into a growing log file
Posted by Aspiring .NET Programmer at 9/29/2006 12:34:38 PM
Happy Friday everyone!!! I am working on a windows service and a C# application and needed some help with certain functionality. Please read through my issue below. Thanks! I have a windows service which writes into a log file periodically (text file). I want to create a windows form appl...more >>

URL Rewrite problems
Posted by Miguel Isidoro at 9/29/2006 12:27:02 PM
Hi all, I am developing a ASP.NET 2.0 application that must use friendly URLs. As an example, a content in http://www.mysite.com/music/pearljam for instance should be rewritten to http://www.mysite.com/Artist.aspx?id=1. The problem I am having is the fact the url doesn't have an .aspx exte...more >>

Params & QueryString
Posted by rn5a NO[at]SPAM rediffmail.com at 9/29/2006 12:23:05 PM
Assume that an ASPX page is accessed using the following URL: http://myserver/Page1.aspx?fname=john The value of the querystring fname (which is john) can be retrieved using both Request.Params("fname") & Request.QueryString("fname"). So what's the difference between Request.Params("fname"...more >>

math in C#
Posted by igotyourdotnet at 9/29/2006 12:21:02 PM
How can I perform a math function in C# example: int sales = 25 int goal = 225 i want to devide sales by goal so the sale person knows how much of his goal he's at...more >>

Regular Expression
Posted by Ben at 9/29/2006 12:18:01 PM
I use the following code to get a valid date input. validatorExpression = new RegularExpressionValidator(); validatorExpression.ControlToValidate = this.ID; ValidatorExpression.ErrorMessage = "Valid Input mm/dd/yyyy"; validatorExpression.ValidationExpression = @"^\d{1,2}/\d{1,2}/\d{4}$"; vali...more >>

Container.DataItem
Posted by rn5a NO[at]SPAM rediffmail.com at 9/29/2006 11:39:40 AM
When I do this: <asp:DataList ID="dlProducts" runat="server"> <HeaderTemplate> <table border="0"> <tr> <td>Category</td> <td><%# Container.DataItem("Category") %></td> </tr> </table> </HeaderTemplate> </asp:DataList> then ASP.NET generates the Object variable or With block variable...more >>

Gridview and ObjectDataSource with Custom object : update problem
Posted by Olivier Matrot at 9/29/2006 10:58:13 AM
Hello, I'm using a gridview with objectdatasource and custom objects collections SELECT/INSERT/UPDATE/DELETE methods are using custom objects as parameters. This is working fine. But I have a problem with the object that is passed back to the update method. It contains some of the properties o...more >>

Microsoft Application Blocks for .NET 2.0 VB Version???
Posted by lds at 9/29/2006 10:47:37 AM
I am in the process of trying to migrate some of our existing .NET applications from version 1.1 to 2.0. In our 1.1 apps we have a common assembly that uses the sqlhelper.vb class from the Micosoft Application Block provided for version 1.1. When I try to migrate I get a few errors, so I tho...more >>

Screen Refresh
Posted by Starbuck at 9/29/2006 10:27:19 AM
Hi In asp.net (vb code) is there any way of just have controls that have changed refresh rather then the whole screen. Thanks in advance -- nivekski www.kevsbox.com ...more >>

Set/Get cookies
Posted by David at 9/29/2006 9:45:48 AM
I have an ASP.Net site that uses a cookie to hold setting for the last search criteria (entered in textBox, etc. fields. When I click the search button, it sets the value of the cookie in VB code as part of the OnClick event of that button. However, the cookie values are not set until Postba...more >>

Button Click- Server and Client
Posted by Sekhar at 9/29/2006 9:33:02 AM
Hello All I have a Question. I have a button "Submit". If the user is not logged in I want to him to Login. So I show him a div tag which asks him if he wishes to login. I want this to implement on the client side. If the user is not logged in I dont want any postback But if the user is ...more >>

SSL and IE not working
Posted by tshad at 9/29/2006 9:13:01 AM
I have a site with SSL connected and in my IIS 6 properties window the port is set to 4434 and it was working OK. I then accidently put 4434 in another site on a machine and it quit working. I took the 4434 out of the incorrect site and it still doesn't work. My pages were working fine and...more >>

How to pack a big amount of information on the query string?
Posted by craigkenisston NO[at]SPAM hotmail.com at 9/29/2006 9:04:24 AM
I need to send a big amount of data to one server in the query string. It is like 3kb of text information, in ascii code with linefeeds and carriage returns. I noticed that using winzip I can get the file 1kb long. I'm not sure if there are zip utilities for C#/Asp.Net, but I guess there are and...more >>

How can I search in this forum?
Posted by Oscar2 at 9/29/2006 8:38:44 AM
How can I search in this forum? There is only one field to enter search terms, however it report 'searching has been disabled... I don't expect to browse each thread one for one to find thread referring to my subject. -- Oscar -----------------------------------------------------------...more >>

Problem using Web User Control
Posted by DotNetDev at 9/29/2006 7:34:02 AM
Hi, I have a web user control 'control1.ascx' which is used on page 'default.aspx'. The control renders fine. But I would like to get new values in the control based on the submit button. So if the control had a value and I click the submit button. I want the control to load based on the va...more >>

How do you find the name of the ascx file from inside?
Posted by ThazKool at 9/29/2006 7:07:29 AM
I am trying to get the name of the ascx file from inside a C# script tag inside the ascx file. I have looked through all the properties of the control, but I cannot find anything that gives some sort of path or name. Can anyone help? Thanks, ThazKool ...more >>

site redirect?
Posted by Smokey Grindel at 9/29/2006 7:01:09 AM
Say I have one site that has this structure http://localhost/ <- public side http://localhost/internet <- private part of same site protected using NT Authorization so say I have two host names mapped to this same site say they are Http://internet and http://intranet when someone goes to ...more >>

url rewriting
Posted by Smokey Grindel at 9/29/2006 6:56:52 AM
I am using ASP.NET 2.0 and know about the static list in the web.config for URL rewriting, but my list is dynamic and I am running into some problems... 1) How do you get URL rewriting to work in the file based website in ASP.NET 2? I tried and every path I go to comes back as resource not fo...more >>

redirect after sometime
Posted by rn5a NO[at]SPAM rediffmail.com at 9/29/2006 6:09:55 AM
A logged in user clicks a Logout link which takes him to Logout.aspx where in I am using the SignOut method of the FormsAuthentication object to logout the user. What I want is as soon as the user is taken to Logout.aspx, apart from logging him out, a Label should be displayed to the user saying...more >>


DevelopmentNow Blog