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 > threads for thursday september 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

Own TypeConverter - Only works after restart of Visual Studio
Posted by Rolf Welskes at 9/28/2006 11:48:54 PM
Hello, the problem seems to be complex and is in all developments of web-controls which uses own TypeConverter. For this I have here a simple demo-program of the problem: The Control-code: A class MyString which is a class which is similar to a string [TypeConverter(typeof(MyStringType...more >>


[c#] problem with calling stored procedure
Posted by Piotrek \ at 9/28/2006 11:00:28 PM
Hello, i'm trying to call stored procedure like: ALTER PROCEDURE [dbo].[getValuesDay] @p1 int, @p2 Datetime AS BEGIN SET NOCOUNT ON; SELECT Value, Date FROM [testowa].[dbo].[test1] WHERE ID_sensor = @p1 AND @p2 = Convert(nchar(10),[Date],102) END From ASP web page using c#. Th...more >>

Own aspNet control - tag contents as default property
Posted by Rolf Welskes at 9/28/2006 10:44:40 PM
Hello, I have writen a simple aspnet control MyCtrl and want to use it as follows: (c01 may be the tag-prefix): <c01:MyCtrl>this is a simple text</c01:MyCtrl>. The control-code: [DefaultProperty("Text02")] [ToolboxData("<{0}:MyCtrl runat=server></{0}:MyCtrl>")] [PersistChildr...more >>

shared object in GAC for different processes
Posted by Amil Hanish at 9/28/2006 9:20:14 PM
Is it possible, using static properties, to have a shared object in the GAC that can be accessed by differnet processes? If so, how? If not, how can I have a shared .NET object that can used by different processes? Thanks. Amil ...more >>

what do i need to do to make this work
Posted by rodchar at 9/28/2006 9:12:01 PM
hey all, how do i make the toolbar example (shown at the link below) work for vs2003 or vs2005? http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/overview/toolbar.asp thanks, rodchar...more >>

Encrypting query strings
Posted by Parrot at 9/28/2006 9:08:02 PM
I cannot get an answer as to why my session state no longer remains active between webpages after working for 2 years. So I want to try to pass data thru query strings in my url. I tried to use SecureString to encrypt the sensitive data but cannot figure out how to encrpyt data using this met...more >>

asp 1.1 and javascript
Posted by John O'Donnell at 9/28/2006 8:38:48 PM
Is there a good way to have a javascript call an asp.net 1.1 page wihc has button on a form. I want to return a value back to the javascript so I know the button was pressed. i assume i want to use showmodaldialog to open the asp.net form but how to get a return value? ...more >>

onscroll Event Not Firing in ASP.NET 2.0
Posted by Sam at 9/28/2006 7:39:19 PM
While attempting to get my floating toolbar to work in ASP.NET 2.0, I noticed that the onscroll event is not firing. I've specified this on the BODY tag, as always. After some testing, I realized that the new DocType being used in 2.0 (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional...more >>



URL Mapping
Posted by ed at 9/28/2006 7:38:02 PM
Hello All, In my app I have a page that shows articles something like showarticle.aspx?articleid=xxxx, I want that it looks like: /showarticle/article-one-title.aspx and so forth, so I was thinking to use the “new” asp.net 2.0 URL Mapping instead of write a http module to handle this....more >>

ASP.NET and .NET Framework 2.0
Posted by HartsVideo at 9/28/2006 6:40:02 PM
Hi, No one seems to know the answers to these questions or they're just not telling. I downloaded and installed .NET Framework 2.0 and along with it came ASP.NET. .NET Framework 2.0 wrecked havoc with my video programs so I uninstalled it and reverted back to 1.1. I have 2 problems th...more >>

Checking for a registry value...
Posted by jonefer at 9/28/2006 6:39:01 PM
How can I lookup registry values? I'd like to check for the existence of this folder in the registry: HKLM\Software\AcmeCompany\MWIApplications\AutoLogonForSharedWorkstations so that I can use a login prompt for only these machines. Has anyone ever done this? ...more >>

Problem of transfer project to a new server
Posted by Candy at 9/28/2006 5:41:02 PM
Hi, there, I'm trying to open and edit a exsiting Web project on a new server using Visual Studio. But I got problem opening it, the error message as following: " The web server reported the following error when attempting to create or open the web project located at the following ...more >>

Snippet Editor
Posted by sck10 at 9/28/2006 5:29:56 PM
Hi Does anyone know of a good snippet editor for c#? Thanks, sck10 ...more >>

gridview row programatically set to edit mode
Posted by Gerhard at 9/28/2006 5:16:02 PM
How can I set a row in a gridview programatically to edit mode (rather than having to have the user click the edit row command), so the fields can be edited and the Update and Cancel buttons display instead of Edit? Thanks....more >>

How do you pass credentials from a classic ASP app to ASP.NET 2.0?
Posted by CK at 9/28/2006 5:09:14 PM
Good morning all, We have a classic asp application on our local intranet. Employees log in to and use the app. We recently added some additional functionality to the site and this was written in .net 2.0. How can I discover that a user has already logged in and been authenticated in classic ...more >>

this is strange....
Posted by Jeff at 9/28/2006 5:08:10 PM
Hey asp.net 2.0 My problem is that the image web server control (see below) won't display the image if web.config have this setting: <authorization> <deny users="?" /> </authorization> <asp:Image ID="logo" runat="server" ImageUrl="~/logo.png" /> Any ideas what I should do to so...more >>

app_offline.htm DOESN'T go away
Posted by jonefer at 9/28/2006 4:57:01 PM
everyone talks about how cool this file is, and I imagine it would be if I intentionally put it there. However, I just want to publish my page. Thus far, I have been successful publishing it to the test server. Now my server administrator has built a new server, but every time I publish ...more >>

Client server question
Posted by gsalbertson at 9/28/2006 4:07:03 PM
am new to asp.net and have a question on just what is processing on the server and what is processing on the client. I have an asp.net page with html controls on it, say a couple of text boxes and a button. The user enters a number in one textbox, then the code behind does stuff -- let's say...more >>

Gridview Commandfield imageurl
Posted by AG at 9/28/2006 4:02:02 PM
I have a asp.net 2.0 gridview control with select, edit, delete buttons enabled and set to image button type to display my images. Is there any way to access the selectedimageurl property at run time so I can supply a different image for the selected row? I am assuming that I would do it in th...more >>

Wizard control: making sidebar invisible?
Posted by VMI at 9/28/2006 3:19:12 PM
My web app uses the new Wizard control, but I would like to make the sideBar invisible so that the only way a user can navigate through the wizard is through the <Previous> and <Next> buttons. Is this possible? I'm using VS 2005 v2.0. Thanks. ...more >>

XMLHTTP status 500?
Posted by Siva at 9/28/2006 3:14:01 PM
Hi, I am getting XMLHTTP status 500 when I try to post a page on my simple ASPX page. I am not doing much in Aspx page. What I am doing is I just print the type of Request by the following line: MsgBox(Request.ServerVariables("REQUEST_METHOD")) I have another page which post the xml on thi...more >>

Changing the colours of scrollbars and pulldown arrows
Posted by JJ at 9/28/2006 3:12:57 PM
With all the skinning possibilities of asp.net 2.0 I am surprised that I cannot (easily) change the colour of a controls scrollbars/border or a dropdownlist's arrow. I realise that I may have to do this via javascript, if it is possible, can anyone help me? I have found a way to chaange ...more >>

How to get ClientID of a control added in the DataGrid ItemCreated event?
Posted by DC at 9/28/2006 3:04:24 PM
Hi, I am doing something like this in the ItemCreated event (ASP.Net 1.1): DataGridItem pagerRow = e.Item; TableCell pagerCell = pagerRow.Cells[0]; Control addedControl = new Control(); addedControl.ID = "addedControl"; pagerCell.Controls.Add(addedControl); Now I want to include some ...more >>

Problem with Virtual directory on my local machine.
Posted by tshad at 9/28/2006 2:27:56 PM
I am trying to use my IIS web server on my local machine for testing my web site. The problem is that periodically it will not use the virtual directory for the root. This happens for my logon page, for instance. If I have the following Virtual Directory: Staff. I would call this by ...more >>

Databinding a Multi Column List?
Posted by cmay at 9/28/2006 2:04:46 PM
I need to databind a record set from the database into a page. The output I need is a textbox and a label for every item in the resultset, but I don't want a long vertical list... instead I want a table with 3 or 4 columns, with each cell holding a textbox and a label. So if I were to bind ...more >>

Mixing and matching VB and C# in vs.net 2005
Posted by jason NO[at]SPAM cyberpine.com at 9/28/2006 2:02:39 PM
I've been working with C# for over a year now without touching vb.net code. I had a few light years of vb.net before that. No real vb6 or windows form experience. Suddenly, I have an assignment where I've been asked to create a few new pages on an exsisting website. The website is written in v...more >>

ASP.Net 2.0?
Posted by SwampFunk at 9/28/2006 12:46:29 PM
I've been developing apps in ASP.Net for a few years but have been working in linus/java world recently. I curious about ASP.Net 2.0 but haven't upgraded my VS environment in a long time... or ever. I'm curious what exactly ASP.Net 2.0 is. I'd like to use the new MasterPages and ADO.Net uim...more >>

HtmlDecode in <asp:image>
Posted by MRW at 9/28/2006 12:24:46 PM
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"))) %> /> I...more >>

Precompiling or Securing Code
Posted by archsg at 9/28/2006 12:15:01 PM
Hello, I have an ASP.Net 1.1 application that I need to move to a production server on a customer's network. I do not want the customer to have access to any code. It looks like VS2003 does not allow for precompiling code like you can do with VS2005 and 2.0. Is this correct? If so, is...more >>

Trouble Performing An HTTP POST
Posted by rh1200la NO[at]SPAM gmail.com at 9/28/2006 10:55:09 AM
Hi there. I'm having trouble with an HTTP Post in my code behind. Can anyone help? Here's my code: string data = "&fields_fname = " + txtFirstName.Text + "&fields_lname=" + txtLastName.Text; string url = "http://localhost/app/default.asp"; WebRequest objWebRequest = WebRequest.Create...more >>

Expressions as properties for unbound controls
Posted by David W at 9/28/2006 10:40:53 AM
Is there a way to set a property to an expression of an unbound control without doing it in code-behind. For example, if I had a label control, and wanted to set the Text= property to a Session var - something like: <asp:Label ID="lblTest" runat="server" Text="<%= Session("name") %>"></asp...more >>

HTTP Form Post in C#
Posted by rh1200la NO[at]SPAM gmail.com at 9/28/2006 10:08:29 AM
Hi all...i'm trying to do a form post in my codebehind file using this method: public static string HttpPost(string URI, string Parameters) { System.Net.WebRequest req = System.Net.WebRequest.Create(URI); //req.Proxy = new System.Net.WebProxy(ProxyString, true); req.ContentType ...more >>

Do Masterpages have a PreInit event?
Posted by needin4mation NO[at]SPAM gmail.com at 9/28/2006 10:01:48 AM
I have this code. The preinit never fires: public partial class MasterPage : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Label1.Text = Profile.FullName; } } protected void Page_P...more >>

blue textbox
Posted by pmclinn at 9/28/2006 9:56:57 AM
I want to override the asp.net textbox control, so that all my textboxes have a light blue background. What is the best way to accomplish this task? ...more >>

How check is app has file write security permissions?
Posted by Ed Sutton at 9/28/2006 9:52:01 AM
Is there an easy way to check using .NET 2.0? Thanks in advance, -Ed...more >>

HttpModulesSection Management?
Posted by xeroxero at 9/28/2006 9:22:45 AM
I have multiple HTTPModules defined in my ASP.NET 2.0 web site, and want to remove/add one via a web page button click. I know that making a change will cause the web app to restart, which is what I want. I have obtained the collection of HttpModules with this code: HttpM...more >>

PlaceHolder and UserControls
Posted by David at 9/28/2006 9:20:48 AM
I have a UserControl loaded into a PlaceHolder and I have a button there which is suppose to load another UserControl into the same PlaceHolder and hide the previous one. Why does the events of the controls that are inside the second UserControl doesn't work the first time I try to rise them? ...more >>

Web vs Windows Application
Posted by Seth Bourne at 9/28/2006 9:14:23 AM
It is really painfull when migrating from Windows Application to Web Application. it's because web application has so many weakness which have the user to use 'more mouse' than 'keyboard' it self. it's really dont fit for Point of Sale System which is need faster data entry. is it anyway we ...more >>

Problem in ASP.Net.
Posted by Abhijit at 9/28/2006 9:13:16 AM
Hi, I am devloping a web site in ASP.Net using visual studio 2005.My web page contains many hyperlinks.Now the problem is when I click on some of the hyperlinks it asks me for windows username and password,even though my login credentials are checked at the begining with the help of LDAP (i...more >>

Master Pages, Javascript, and Body tag
Posted by PCK at 9/28/2006 9:12:02 AM
My goal is to populate the body element so that I can add an onkeydown event. <body onkeydown='x();'></body> I am currently using master/content pages. I do not want this function on every page using my master page. I want to be able to decide what pages get this function on a page by pa...more >>

Basic Membership and Roles Question Migrating from Class ASP
Posted by needin4mation NO[at]SPAM gmail.com at 9/28/2006 8:37:11 AM
Hi, right now I have a classic ASP site that filters users based upon a MySQL database. The database was created with users and groups tables. Based upon the values in the database a user is allowed to see certain controls or menu options on the page. Does ASP.NET 2.0 Membership and Roles re...more >>

Managing Threads
Posted by Roger at 9/28/2006 8:18:03 AM
Can someone provide a simple code sample on how to manage threads?...more >>

Asynchronous web pages
Posted by mark.norgate NO[at]SPAM gmail.com at 9/28/2006 8:03:08 AM
Hello The thing that interested me more about ASP.NET 2.0 before it came out was asynchronous web pages. Now it's here and I have time to investigate, I'd like to know about how to write pages that don't do callbacks to the server. Where is this described in the MSDN Library? I can find exa...more >>

access denied error for file upload
Posted by igotyourdotnet at 9/28/2006 7:55:01 AM
Ok, here is the issue: I have 2 web pages one does a file upload to a database and the other page does a FTP to a server, both pages use the c:\temp directory. The page that uploads to a database works fine, the page that FTP's the files returns me an error (Access denied filename.txt) Now ...more >>

Item number in datarepeater
Posted by DotNetDev at 9/28/2006 7:19:07 AM
I have a datarepeater. <asp:Repeater id="_quiestionsDataRepeater" runat="server"> <ItemTemplate> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td> <asp:Label id="Label2" runat="server">Label</asp:Label> </td> </tr> ...more >>

q; validate password
Posted by JIM.H. at 9/28/2006 6:51:03 AM
I have a password field in my login page (ASP.NET 1.1), how can I validate password based on at least 6 characters, one number, and one capital letter. ...more >>

text file format
Posted by igotyourdotnet at 9/28/2006 6:07:02 AM
I need to create a text file which I can get working but i need it to be in this format which I'm close but not exactly there yet. format I need: 1234569 BMW 1253252Mercedes 9876522 Lexus 9858252 Jaguar I'm getting this format: 1234569 BMW 1253252 Mercedes 9876522 ...more >>

Loop
Posted by shapper at 9/28/2006 4:41:40 AM
Hello, I created a connection to a database and everything is fine. Finally I wrote this: connection.Open() **** MyFunction( [ Title Field ], [ Text Field ], [ Link Field ]) **** connection.Close() I need to loop trough all records and call a function as I wrote in ...more >>

Ashx file: Request.QueryString and other problems ...
Posted by shapper at 9/28/2006 4:24:30 AM
Hello, In an .ashx file I tried to use the following two code lines: 1 .Me.GetLocalResourceObject("MyImageImageUrl").ToString() which gave me the error "GetLocalResourceObject is not a member of News". News is my class. 2. Request.QueryString("Culture") which ...more >>

reading data from dataset
Posted by Overseer at 9/28/2006 4:04:30 AM
I wanna take data from dataset which takes datas from Sql, to textbox.how can I read data from dataset. ...more >>

How to debug a web appplication?
Posted by Carl Gilbert at 9/28/2006 1:41:42 AM
Hi I have implemented the ASP.NET Club Site Starter Kit on my 1&1 web space. I have recently been getting some errors where the page doesn't load and just comes up blank. I have put a handler on Application_Error in global.asax to email me whenever an error occurs. Sometimes I get upto 100...more >>

using HttpWebRequest to view reports
Posted by Mike P at 9/28/2006 1:36:04 AM
I am using HttpWebRequest to view my reports (see code below). However, I need to be able to pass parameters to the report in the code, and if possible show graphs as well. Does anybody know how to do this? protected void Page_Load(object sender, EventArgs e) { // Create a request...more >>

Maintaining Session between 2 sites
Posted by Vishal at 9/28/2006 1:07:08 AM
Hello, I have 2 sites running with different domain names. I want to share the session between these 2 sites. Both uses same SQL server database. I have enabled the SQL server session state but it does not maintain the same state. When i looked in the database i found that it create 2 ses...more >>

Using in "Eval" in databound controls
Posted by Newish at 9/28/2006 12:38:49 AM
Hi Is it really not recommended to us Eval in databound controls as follows: <td><asp:TextBox id="BookTitle" Runat="Server" Text='<%# Eval("BookTitle") %>' Font-Size="8pt" Width="80px"/></td> If so what is the alternative. Thanks Newish ...more >>


DevelopmentNow Blog