Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > june 2006 > threads for monday june 19

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

sql
Posted by joe at 6/19/2006 8:35:01 PM
SELECT COUNT(*) FROM tbl1 WHERE @x = @y where @x is the field name but it do not work!...more >>


Image URL?
Posted by rockdale at 6/19/2006 6:40:11 PM
I believe this must be a very sample question. I have a image dir under myWebsite (myWebSite is the root dir of my web appl) I have an ascx file under myWebsite/userControls in the c# of ascx file, I load a image file using MapPath. imgSort.ImageUrl = Server.MapPath("Images/sort_asc.gif...more >>

filtered query with dropdown control
Posted by Spartaco at 6/19/2006 6:39:10 PM
I have a dropdown control into a page and a gridview, both are associated to two SqlDataSource controls, one of them is used to fill the DropDownControl, that is meant to be a filter over the query of the other SqlDatasource associated to the grid. This works fine, whenever I choose an item in...more >>

Compiler Error Message: CS0246
Posted by Kumar Bhogaraju at 6/19/2006 6:23:06 PM
We developed an application in 2.0; but our new hosting provider supports only 1.1. Can anyone point me to a link where we can migrate the application easily without rewriting the code? When we move the code to 1.1 environment, we are getting error: Compiler Error Message: CS0246 Thanks Kumar...more >>

How to validate a control that might be empty
Posted by Alan Silver at 6/19/2006 5:49:00 PM
Hello, I have a form in which the customer can enter their personal details. Some customers will have an account number, in which case they are allowed to enter this and not have to enter their address. How do I do validation for this? They must enter one of account number or address, bu...more >>

Help with CustomValidator in 1.1
Posted by David at 6/19/2006 5:47:04 PM
I need help with CustomValidator in 1.1. I added the CustomValidator control and code as per the doc., (See below) However, the code is never executed. Is there an extra switch or setting to force the OnServerValidate code to execute? <asp:CustomValidator id="CustomValidator1" runat=...more >>

"&" in Querystring
Posted by Tanmaya Kulkarni at 6/19/2006 5:19:09 PM
Hi, I need to pass a string having ampersand "&" in the query string like Company=Johnson&Johnson. How do I send it and receive it? TIA, Tanmaya ...more >>

making a dropdownlist visible when clicking in a textbox of a detailsview?
Posted by André at 6/19/2006 4:49:52 PM
Hi, I made a detailsview containing several fields for inserting only. I also made a dropdownlist which is invisible at start. Now, when clicking in a particular textbox, the dropdownlist must become visible (in order to put the selected value of the dropdownlist into the textbox of the detai...more >>



PWD protecting individual files.
Posted by darrel at 6/19/2006 4:19:50 PM
I need to be able to password protect individual pages. For instance: /protected.aspx?id=123 /protected.aspx?id=555 Both would need to be only accessible to two different people (with their own usr/pwd). What is the most appropriate way to handle this? Typically, I'd use forms authent...more >>

Stress Testing
Posted by Robert at 6/19/2006 3:35:03 PM
I am trying to figure out if using the Application Center Test is the preferred tool of performance / stress testing in an ASP.Net 2.0 application. I used ACT with my 1.1 applications, but was wondering if there is a new tool under 2.0. If not what is the preferred tool.? Thanks,...more >>

IIS 5.0 and ASP 2.0
Posted by DTM at 6/19/2006 3:27:04 PM
We have a win2k with SP4 running IIS5. We have Framework v2.0.507277 installed and looking run an application in ASP 2.0. We are having troubles because the default user is IWAN which doesn't have the correct permissions to run an ASP 2.0 application. How do we run this new application pool ...more >>

ASP.NET 2.0 <=> Windows NT 4.0
Posted by Patrick Jox at 6/19/2006 3:19:04 PM
Hi, I have a client request to build an asp.net application. This application shall be installed on a machine running Windows NT 4.0 SP 6a. As far as I found out framework 2.0 may not installed on any NT versions. But I hope I can at least use ASP.NET 2.0 in combination with Framework 1.1 and...more >>

sitemap in memory
Posted by Smokey Grindle at 6/19/2006 3:15:57 PM
is it possible to create a dynamic site map in memory then use that as the website sitemap? my problem for using a static one is that I have dynamic content pages which are based off an article ID so 90% of my pages are like this artice.aspx?articleID=105 but then that article could ha...more >>

breaking information out of a string
Posted by Smokey Grindle at 6/19/2006 2:51:34 PM
I want to make custom tags that will go into a string like the following "Follow this link [link url="me.aspx"]Link Title Text[/link]" this is an example of course... but how would you go about creating a custom tag system like this? I want to be able to take that and convert it into its H...more >>

User control Problem
Posted by Mukesh at 6/19/2006 2:39:56 PM
For developing a portal i m using dot net 1.1 framework with VS2003 . i Have a datagrid on a usercontrol i m using the control for displaying data on a page where a dataset is generated . how can i specify the data source of the grid (on the User control) from page ... Plz help M...more >>

DataGrid Roll-Over Rows
Posted by Alex Maghen at 6/19/2006 2:15:02 PM
I'd like to set up the DataGrid so that as users rollover a row, that row is highlighted a different color and then goes back on roll-out. Any samples for how to set that up? ...more >>

Profile Personalize event called Multiple times
Posted by Prasanna Pattam at 6/19/2006 1:08:02 PM
I am using Custom Profile and creating the profile in Profile_Personalize event. I am also using sitemap. When a page has a menu control, then the Profile_Personalize event is called 6 - 7 times per page. I am using default providers for profile and sitemap. I created a test project which ...more >>

Role Provider
Posted by John Yopp at 6/19/2006 1:03:04 PM
I have created my own custom Membership and Role providers and everything works fine. However, I want to be able to determine if the user is in a particular role when I am validating the user. Since this code is already part of my Role Provide, does anyone know how to reference the current...more >>

How can I restart IIS or server from ASPX page or web service?
Posted by DataSprings at 6/19/2006 12:57:29 PM
Hi. I am wondering if its possible to restart IIS or my web server simply from an IIS page? Not sure what code I would need and maybe impersonation? Any thoughts or ideas anyone? -Chad ...more >>

Image control
Posted by luci at 6/19/2006 12:23:08 PM
Hi, i'm writing a pice of code to fill the image control (in asp.net page) with a image uploaded on the server. The way I used is this: protected void cmdUpload_Click(object sender, EventArgs e) { thumbUpload.SaveAs(Server.MapPath("/public/news/_tmp_news.jpg")); Syst...more >>

ASPNETDB.MDF when no SQLExpress, only SQL Server 2005?
Posted by nick at 6/19/2006 11:58:02 AM
I have only SQL Server 2005 installed on my PC. And I tried to add the following rows in web.config to use SQL Server 2005 instead of Express: <connectionStrings> <clear /> <add name="LocalSqlServer" connectionString="Data Source=.\SQL2005;AttachDbFilename=|DataDirectory|\ASPNETDB...more >>

Do you know a free .net Blog or even paid
Posted by mazdotnet at 6/19/2006 11:42:27 AM
Hi everyone, I'm looking at replacing the current Blog engine on our website with another one that would require users to login first before posting a comment since we're getting too much spam. We're currently using DasBlog which works great except anyone can post comments. Is there a better ...more >>

DropDownList - IndexChanged
Posted by mosscliffe at 6/19/2006 11:01:55 AM
I am trying to use IndexChanged of DropDownList to control the next part of my site. The problem I have is that the 'indexchanged' is not getting called if I select the first entry on first displaying of DDL. Similarly if I re-select the previous selection with the mouse, it still does not ...more >>

Scoll a table cell.
Posted by UJ at 6/19/2006 11:01:42 AM
How could I make a cell scroll. I have a cell that contains a datalist and I want to be able to have just the contents of the cell be scrollable; everything else for the table should remain constant. Any ideas how I would do this? TIA - Jeff. ...more >>

Getting a return value from a sql command
Posted by K B at 6/19/2006 10:47:57 AM
Hi, I'm using the following and the insert portion works fine but I'm not getting the return value (TicketID) which is the identify column of the table. I can't figure out what I'm missing; all examples I see use stored procs but I need to use a string command for this. Dim sSQL As String = "I...more >>

Help with WS
Posted by Chris at 6/19/2006 10:44:03 AM
Hi, I created a webservice that returns a dataset. How can I load this into excel? I want to have the excel spreadsheet access this webservice. Thanks...more >>

What to use instead of frames?
Posted by UJ at 6/19/2006 10:03:58 AM
I've got a page where I want to have three frames or areas. On the left - two rows - on the right a single area. Thing is - on the right - I need to load a web page for preview use. From what I've read, framesets are a bad thing. What can I do instead? I'm using .Net 2.0 TIA - Jeff. ...more >>

Determine which control fired a Page_Load
Posted by matt.grande NO[at]SPAM gmail.com at 6/19/2006 8:59:28 AM
I know this question has been asked on here before a few times, but none of those results suit my needs. Here's my situation. I have a search form. When I click the submit button, the query is run and, based on this query, links to a "results" page are placed on my form. This HAS to be done...more >>

Access HTML control in Javascript
Posted by Ben at 6/19/2006 8:50:53 AM
Hi, I have a ASP page which applied default master page style. I added a html text control in the ContentPlaceHolder and try to access it in javascript. I always got a null value of document.form2.DataType.value. ('document.form2.DataType' is null or not an object) Could anyone point out e...more >>

GridView: Linked DropDownList
Posted by sck10 at 6/19/2006 8:44:21 AM
Hello, I am using a GridView with 2 dropdown boxes. I would like to update the second dropdown based on the first dropdown selection. Any help with this would be appreciated. Thanks in advance, sck10 ...more >>

ApplicationID
Posted by Giovanni at 6/19/2006 7:43:01 AM
Dear Friends, I was just wondering if there was a method by which I can get/check the existancy of an Application (aspnet_Applications table) in ASP.NET 2.0 using the applicationID instead of the ApplicationName? In essence, I want to pass the ApplicationID instead of the ApplicationN...more >>

How to compile the code behind .cs files
Posted by Argirop at 6/19/2006 7:21:01 AM
I started recently with asp.net 2.0 and I am currently trying to generate the mysite.dll by compiling the corresponding code behind .cs files. I am using the csc tool that displays one CS0103 error message (The name '...' does not exist in current context) for every control id that I am using...more >>

XmlSerializers, Structs, and Default Constructors
Posted by Flinky Wisty Pomm at 6/19/2006 6:23:02 AM
Hi, this is just out of curiosity really. I had a struct, requirements changed and I needed to inherit from it, so I made it into a class. After the change, XmlSerializer choked because XmlSerializable classes require a default constructor. Why don't structs? ...more >>

HTML Control and ASP.Net control question
Posted by amjad at 6/19/2006 6:13:01 AM
Hi is there any way to assing database value to html control like txtaspcontrol.text=myvalue; same to html text control txthtmltextcontrol.text=myvalue through asp.net form i am using asp.net 1.1 ...more >>

Problems executing external application (.exe) using Windows service
Posted by gaurav tyagi at 6/19/2006 4:52:02 AM
hi mahesh i am gaurav from bangalore i have one problem ,can u please help me out. i have one windows application and one windows service. from windows application i have to call one process "gpg" to encrypt my text file so i use system.Diagnostics.process class to make new process. my co...more >>

listbox items looping problem
Posted by nasirmajor NO[at]SPAM yahoo.com at 6/19/2006 3:50:58 AM
dear all, i have a listbox whose items are displayed in listbox e.g ('1','3','4',) my problem is the last comma (, after 4) i don't want this comma as i have to use this string in sql query. the loop through procedure is this protected void Button1_Click1(object sender, EventArgs e) { ...more >>

Storing source code in C:\Inetpub\wwwroot
Posted by teddysnips NO[at]SPAM hotmail.com at 6/19/2006 3:25:52 AM
I've been brought onto a new project and there's a file that lays out the preferred method of obtaining the source code. This file starts as follows: "Do not get the source for the web project throught SourceSafe explorer or Visual Studio will attempt to open the web project from wwwroot, no...more >>

using Atlas on hosted server
Posted by Dabbler at 6/19/2006 2:24:01 AM
I have an application I can run on my local server but when I moved it to my clients hosted production server I get the dreaded: "The application attempted to perform an operation not allowed by the security policy." This appears on the line: <atlas:ScriptManager ID="sm" runat="server" Ena...more >>

Choosing Layout: Css-Layout or Table-Layout
Posted by hpourfard NO[at]SPAM gmail.com at 6/19/2006 2:05:36 AM
Hi, After I designed my page (using several tables), while I was surfing the web I considered a professional looking web site which had been used DIV tags instead of tables, with many css classes. for sure designing in div layers is much more time consuming. so there should be a good reason f...more >>

dynamic controls creation - issue
Posted by Sri at 6/19/2006 2:01:58 AM
Hi, I need to create controls dynamically on click of a button. When the user click on a button, I need to create a text box, dropdown list and check box in a row. Additional row has to be created with the controls on each click of the button. I am able to recreate the controls each time on P...more >>

Adding a png with transparent background to a Image button
Posted by KrippZ NO[at]SPAM gmail.com at 6/19/2006 1:51:41 AM
Hello ! I need some help with transparent png:s on my site. Currently i'm using the FILTER:PROGID:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"',sizingMethod='scale') method in a htc app I found on the net , this workson all of my images except for Image buttons. none of the imagebut...more >>

Remote logon page like Microsoft passport
Posted by Steven Spits at 6/19/2006 12:00:00 AM
Hi, Our company has a database of users that we use to authenticate users on various websites. However, some of our customers want to develop a website on their own and use the same database authenticate users. At first I was thinking to create a WebService that accepts username & pas...more >>

How to determinate if a GridView is empty
Posted by ad at 6/19/2006 12:00:00 AM
Hi, How to determinate if a Gridview is empty? ...more >>

Imagebutton / Image bug?
Posted by Peter at 6/19/2006 12:00:00 AM
Hello NG, Why in Asp.net 2.0 Image / Imagebutton always renders a style 'border-width:0px' even if Borderwidth is empty ? Is there a workaround ? thanx ...more >>

How to access datagrid on web page from user control on the same page
Posted by Yanesh Tyagi at 6/19/2006 12:00:00 AM
Hi All have a web page named itemList.aspx. It contains a datagrid (id = datagrid1). The web form also have a user control named itemSearch.ascx. This user control have several options to search and a submit button. I want to change the datasource property of datagrid1 on the click of s...more >>

Russian website
Posted by Gerald at 6/19/2006 12:00:00 AM
Hi group, my question is both for asp.net. I have to do a website in Russian. So far, I have some problems with the russian character. Can someone give me good tips on how to make non ascii website with asp.net and C#? Thank you Gerald ...more >>


DevelopmentNow Blog