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 wednesday june 7

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

Postback & Master Page
Posted by Vincent A. at 6/7/2006 11:45:20 PM
Hello, I'm developping an asp.net application which used master page on which i add several web control. One of the them is a menu control which as several button in order to develop each sub menu. When i click on this button it rises a postback and refresh all my controls. My question is the...more >>


How to bind data from database to the header template of Datagrid
Posted by Santosh at 6/7/2006 11:31:25 PM
Dear all i want to bind data to datagrid header template i am wrtting follwing code it is displaying data with in item template not but it is display data in header template <asp:DataGrid ID="datagrid" Runat="server" ShowHeader="True"> <Columns> <asp:TemplateColumn> <HeaderTemplate> <asp...more >>

GridView and delete problems with page refresh
Posted by J055 at 6/7/2006 10:26:16 PM
Hi I have a GridView which includes the ability to delete rows. This works fine accept for when a naughty user decides to refresh the browser thereby posting the same delete command instruction. The problem with this is that the refresh will either delete another record or generate an excep...more >>

Discover the primary key values in a gridview while editing it
Posted by Andrea at 6/7/2006 10:08:15 PM
The Gridview's RowDeleting event, give the power - cycling the e.Keys Dictionary, to discover the values of the Primary key fields of the dataset setup throught the DataKeyNames. Since I want to get the same value to display a more detailied form to edit my gridview fields that cannot be co...more >>

URL to Open Word with A Specific File
Posted by EoRaptor013 at 6/7/2006 10:00:16 PM
Couldn't figure out the search that would turn this answer up... Building a company intranet web site. Need a way to click on a link, button, whatever, on the web page and thereby launch Word or Excel with a passed DOC or XLS file. So, on a given page, there's a hotspot to click on that downlo...more >>

question about client callback and gridview
Posted by Chris at 6/7/2006 8:58:54 PM
Hi, I read about client callback and i have a question. Assume the option "sorting" is set in a gridview. Each time the user clicks on a fieldname, the data are sorted. My question is: are the data on each click fetched from the server, or are they 'cached' on the client-side and so avoidin...more >>

DataBoundLiteralControl loses plot
Posted by Iain at 6/7/2006 8:07:25 PM
I've got a databound templated custom control. The data is a list of simple objects which (in essence) have a name and a percentage value in them. This control works fine - mostly. Now I can navigate between different sections of my system showing this control and often it seems to work. ...more >>

how to send fax in ASP.net using System.web.Mail object.
Posted by BizWorld at 6/7/2006 7:31:40 PM
hi, i need to send fax using .NET System.web.Mail component in my asp.net page. it works fine for emails but Fax works well in Outlook but when i try to send Fax using .NET object it did not work. To address of fax should be [Fax:myfaxnoany]. here myfaxnoany means actual number that i need to...more >>



Form Data Submission
Posted by barry at 6/7/2006 7:26:41 PM
Hi Does anyone know of any source code which show how to post form data programmatically to a website. It could be something like submitting username and password (programmatically). TIA Barry ...more >>

Connection refused error from browser
Posted by Parag Mahajan at 6/7/2006 6:46:47 PM
Hi, I am able to browse my ASP.Net webapplication from IE (maybe because of some settings). But when I try to see the same page from a Firefox browser (non- IE browser), I am getting "Error Code 10061: Connection refused". We have the internet connection available through a manual proxy ...more >>

Identify visitor without session
Posted by Mike Kansky at 6/7/2006 6:26:48 PM
Scenario: 2 Computers on the network going through proxy (same ip/hostname). Both do not accept any kind of cookies. Visiting web site that needs to supply different content to each of this computers. Is there any other way to identify computer 1 and 2? Maybe i can get a Machine ID in ...more >>

Change Gridview Datasource or Select statement ijn code?
Posted by K B at 6/7/2006 6:07:03 PM
Hi. I have a gridview with sqldatasource, etc. For the grid, I also have a search textbox. If the user needs to filter the records, I want to dynamically adjust the SELECT statement for the SqlDataSource. I like all the automatic capabilities for paging, sorting, etc., so I don't want to just bi...more >>

Forms Authentication Question
Posted by Samuel Shulman at 6/7/2006 5:33:52 PM
Using FormsAuthentication I would like to protect to folders 1 for admin and one for the clients, obviously clients who are authenticated can't have access to the admin folder Can anyone tell me what is the general approach to achieve that? Thank you, Samuel ...more >>

.NET 1.1 vs 2.0
Posted by Brad White at 6/7/2006 5:31:59 PM
We have a ASP.NET/c# 1.1 app that works great on most machines. On one machine it was mysteriously failing. Uninstalled .NET 2.0 and it started working. Install .NET 2.0 and it fails again. No error messages, just fails to respond. Any clues where to start looking? -- Thanks, Brad. ...more >>

Please help with Compiler Error: CS0030
Posted by keithb at 6/7/2006 4:48:56 PM
This application works without error in the development environment using the VS web server. When I publish the site to my IIS 6.0 server, I get this error at runtime when I open the Change Password page: Compiler Error Message: CS0030: Cannot convert type 'ASP.admin_changepassword_aspx' ...more >>

What is the purpose of CreateChildControls()?
Posted by Michael at 6/7/2006 3:42:26 PM
Hi, I'm coding a custom server control, and CreateChildControls() is giving me some pain. I'm just wondering why we have CreateChildControls(), and why this methods seems to be called at different times in the page lifecycle. I mean the order it is called is not deterministic. Example if no...more >>

If Querystring = Value, Redirect?
Posted by Badass Scotsman at 6/7/2006 3:20:02 PM
Hello, I have a dynamically generated site, with a URL format like so: www.site.com/index.aspx?Content=Horses www.site.com/index.aspx?Content=Parrots And so on... What i would like to do, on page somewhere, is this: if QueryString Content = Horses then 301 permanent redirect to www....more >>

The name of the current User
Posted by Samuel Shulman at 6/7/2006 3:03:13 PM
Hi I am working on a Web User Control that will contain the name of the logged user The problem is that the User property is only part of the Page and I can't access it from within the control Is there another way of retrieving the user's name? thank you, Samuel ...more >>

Question: merger dataset with three tables
Posted by JIM.H. at 6/7/2006 2:56:02 PM
I have two datasets and each have three tables in them. Datasets have the same structures and I need to merger these two datasets, (so each table should be merged with its corresponding) how can I do this?...more >>

Word Document with ASP.NET
Posted by aychai NO[at]SPAM gmail.com at 6/7/2006 2:37:35 PM
Hi all, I have a scenario where users fills in textbox fields on ASP.NET page from the server and when he/she clicks on a download button, the data from fields will insert into an existing word template. The user will then be asked whether to save as or open the word document on his client ...more >>

Getting Parser Error after publishing ASP.NET web application
Posted by pWade at 6/7/2006 2:27:14 PM
I built a relatively simple asp.net web application in VS 2005 which runs fine on my local machine. I disabled debugging in the web.config file and compiled the project under Release. I then clicked on Build->Publish Web Site and pointed it at our web server. It successfully published the file...more >>

CreateUserWizard fails to fire Deactivate event handler if web page is placed in a subfolder
Posted by keithb at 6/7/2006 2:21:17 PM
A CreateUserWizard with one intermediate step (select role) works OK in the root folder, but fails to fire the Deactivate event handler for the intermediate step when the web page is moved to a subfolder. Any ideas? Thanks, Keith ...more >>

UserHostAddress question
Posted by scott mcfadden at 6/7/2006 2:16:40 PM
ASP.Net gives you the ability to obtain the IP address for the current web request. Is there any way to determine which part of that address is IP network address versus IP node address? thanks scottm ...more >>

How do I create a message box in ASP.net?
Posted by tom c at 6/7/2006 2:15:11 PM
I guess in ASP.Net I need to create another small form with command buttons on it in order to have something like a message box in a desktop app. I am new to this and don't know how to get the sub form to pop up. Could someone point me at a walkthrough that explains this, or give me a quick ex...more >>

<asp:DropDownList> (Dinamically select item?)
Posted by John Smith at 6/7/2006 2:02:11 PM
I have this DataGrid: <asp:datagrid id="dg1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:TemplateColumn HeaderText="SM"> <ItemTemplate> <asp:Label id="Label2" runat="server" Text='<%# Container.DataItem("SM") %>'> </asp:Label> </ItemTemplate> <E...more >>

How to allow only one user to access a web page at one time?
Posted by Ben at 6/7/2006 12:38:23 PM
Hi, In ASP.NET website, I have a web page is used to dump raw data into database (SQL Server). The database data will corrupt if two users dump raw data concurrently. How to allow only one user to access a web page at one time? Thanks, Ben ...more >>

array length question
Posted by Madhu at 6/7/2006 12:24:42 PM
I would like to know how the following will be handled in the .net framework: Pl. don't pay attention to the syntax int a[10] int b a[1]=2 a[2]=2 a[3]=2 a[5]=2 a[7]=2 a[8]=2 b=a.length % using the in-built function to find the array length Rest of 'a' is not assigned any ...more >>

ASP.NET 1.1 Active Directory Role Based Security Question
Posted by Mike at 6/7/2006 12:18:17 PM
I am using ASP.NET 1.1 and need to make sure that viewers of a web page belong to a role in Active Directory. I am looking for some samples, articles or links etc. that can get me started showing me how to do this. Thank you. ...more >>

Master Page and Import Namespace
Posted by Paul at 6/7/2006 12:13:05 PM
Hello: I want to nlude this statement into everyone of my application's .aspx pages. <%@ Import Namespace="System.Data.SQLClient" %> What is the best practice to do this? Can I do this using a Master Page? User control? Something else? TIA. - Paul...more >>

Element is not a known element. This can occur if there is a compilation error in the Web site
Posted by MK at 6/7/2006 12:10:51 PM
Hi, I am having problem while adding user control into a user control in 2005 WAP project. The controls are in the same project. When I try to drag and drop the user control into and user control I just get the path of the user control. When I try to add manually using <%@Register the us...more >>

<asp:DropDownList> (Dinamically add items?)
Posted by John Smith at 6/7/2006 11:12:34 AM
I have this DataGrid: <asp:datagrid id="dg1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:TemplateColumn HeaderText="SM"> <ItemTemplate> <asp:Label id="Label2" runat="server" Text='<%# Container.DataItem("SM") %>'> </asp:Label> </ItemTemplate> <...more >>

DataTable.ImportRow question
Posted by kempshall at 6/7/2006 11:02:41 AM
Hi, I have a question about the .NET DataTable.ImportRow method. If I import a DataRow into an empty DataTable, will the empty DataTable pick up the schema of the DataRow I'm trying to put into it? For example, I have code that looks like this: DataTable tableWithData; DataTable emptyTable...more >>

databound and hyperlink field needed in gridview
Posted by Carlos at 6/7/2006 11:00:25 AM
Hi all, I need a field that it is both databound, and hyperlink in a gridview. That is, the value is obtained from a query, and at the same time needs to point to a new page where will be used to make another query. How can this be possible in asp .net? Thanks in advance, ...more >>

How To: write to EventLog from .NET 2.0 web app?
Posted by Rob R. Ainscough at 6/7/2006 10:55:52 AM
I'm having difficulty writing anything to the web servers event log from my web app located on that server. Putting this in my web apps web.config did NOT help - immediate causes and error in my web app before it displays the default page. <healthMonitoring> <rules> <add name="All Eve...more >>

DataBinding: 'System.Data.DataRowView' does not contain a property with the name
Posted by John at 6/7/2006 10:51:29 AM
I'm getting this error when i'm trying to databind my dataset to a dropdown: DataBinding: 'System.Data.DataRowView' does not contain a property with the name '12/12/2003' but if I do a response.write I can see the dates fine, what is causing this error? code: dYear.DataSource = dsYearofSal...more >>

Getting error 2755 when trying to deploy an ASP.NET 1.1 app
Posted by Rod at 6/7/2006 10:21:16 AM
I am attempting to install an ASP.NET 1.1 app onto a Windows 2000 Server, for testing. (This ASP.NET app is about 2 years old and we've installed it on a production server successfully those 2 years.) I choose to use a deployment project for the app 2 years ago, in part because it includes ...more >>

HTML Code generation
Posted by Ganesh Muthuvelu at 6/7/2006 9:56:02 AM
Hello, I was wondering if there is a way to store all the HTML element information in a database and then dynamically generate the HTML code for a page?.. Basically, I do not want to design every HTML page, instead just define the elements like "label", "Textbox", "Submit" button etc., in a d...more >>

failed to connect to SQL server from asp.net
Posted by ajfish NO[at]SPAM blueyonder.co.uk at 6/7/2006 9:45:37 AM
Hello, I have an asp.net application which connects to SQL server using the normal ado.net mechanism. One customer cannot get it to connect to the database. his connection string is user id=aaaa;password=bbbb;initial catalog=cccc;server=dddd and he gets the message: Cannot open databas...more >>

Session Object is Null in Page Load
Posted by JebBushell at 6/7/2006 9:34:01 AM
Here's my code: private void Page_Load(object sender, System.EventArgs e) { clientId = Session["clientId"].ToString(); .... etc. It bombs on the assignment after the session has timed out (System.NullReferenceException: Object reference not set to an instance of an object). I don't un...more >>

ObjectDataSource has no values to insert error
Posted by siamesedream NO[at]SPAM gmail.com at 6/7/2006 8:34:14 AM
Hello, I'm having trouble using the insert method of an ObjectDataSource that uses a custom DataObjectType. If I'm using a custom DataObjectType does my insert method have to take that object, i.e. myInsertMethod(MyCustomObjectType foobar) or can I actually specify parameters to the insert meth...more >>

ObjectDataSource & GridView: Can't update when PK is readonly
Posted by Raja at 6/7/2006 8:10:35 AM
Hi Everybody Just playing with ObjectDataSource and noticed the following. I have a Gridview which binds to a ObjectDataSource. ObjectDataSource gets data from a typed dataset created with VWD. In the table from which the data is coming has a Primary Key field. Gridview is set to edit mode. D...more >>

group data in gridview
Posted by John at 6/7/2006 7:48:46 AM
On my gridview I need to group the sales by year. 2000 - 2001 - 2002, etc is there a way to do this with using the gridview? example: sales for: 2000 data blank row sales for: 2001 data blank row now the data that is being pulled back to populate the gri...more >>

Working with External Design and CodeBehind compilation errors, Best Practice?
Posted by PeterKellner at 6/7/2006 7:31:45 AM
I have a project where a html designer gives me a pile of html to wire up. I do that and it works fine of course. Then, the html designer makes a bunch of changes, give me back the revised aspx file and of course it always gives compiler errors. I've asked the designer not to remove any cont...more >>

position of a control in a table cell
Posted by GV at 6/7/2006 7:30:01 AM
Hi all, I created 2 label controls and add them to a table cell the first one is fine left justified but i want to right justify the 2nd label control to the right of the cell? How to you programmically control where in the cell a control is placed? here is my code to create the controls ...more >>

New to ASP.Net, Cascading DropDown List in Detail View...Please help
Posted by Sam at 6/7/2006 6:48:29 AM
A) Destination Table with 4 Fields. 1) Last Name 2) First Name 3) State 4) Zip Code. B) Look up table State/Zip Code with 2 Fields 1) State 2) Zip Code. I created a DetailView Form in Asp.net to Insert/Update Destination Table. Destination Table's State and Zip Code Fields are...more >>

getting at edited values in gridview
Posted by Mike P at 6/7/2006 6:41:38 AM
How do you get access to the values you have entered under edit mode in a gridview? I only seem to be able to access the values prior to them being edited. protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { // 1)Convert the row index stored in the C...more >>

Hide user control
Posted by kmercer46 NO[at]SPAM yahoo.com at 6/7/2006 6:37:18 AM
I need to hide the user control by checking a small if condition.If the condition is false then then the user control is set TRUE,else It should be FALSE.How can i do it in the ASP.NET with VB.NET . Thank you ...more >>

How to trap backbutton of IE 6.0
Posted by mac at 6/7/2006 6:18:03 AM
I am building web applcation using ASP.NET on IE 6.0. The requirement is to show a popup when user clicks back button and perform clean up operation. Does anybody knows how to do it. I am using xmlhttp to hit to server by checking event.clientY < 0. The problem occurs when the user selects ...more >>

asp.net user control
Posted by edsuslen NO[at]SPAM yahoo.com at 6/7/2006 5:55:31 AM
I am trying to migrate from asp to asp.net and having problem replacing include with user control. On every page we have include asp that have some common asp code that I need to run before the page code kicks in, but user control code is always running after the page code. I am even registerin...more >>

escape problem
Posted by Dan at 6/7/2006 5:23:01 AM
I'm using asp.net c# in my code behind I coded the following: ButtonAsynchronous.Attributes.Add("onclick", @" setTimeout( ""UpdateImg('AnimatedProgress','images/running.gif');"" , 50); "); This renders into: onclick=" setTimeout( "UpdateImg('AnimatedProgress','images/running.gif');" , 50...more >>

next primary key in label control
Posted by nasirmajor NO[at]SPAM yahoo.com at 6/7/2006 4:43:36 AM
please any urgent response. Dear alls; (database relevent quetion) i want to display the next availible primery key {e.g 1,2,3 (autonumbered) next 4} on the user entry form in "label" control.Thanks ...more >>

Implementing our own providers
Posted by Pradeep at 6/7/2006 4:04:37 AM
hello, I want to implement my own provider in asp.net instead of the default aspnetsqlmembershipprovider... i want to implement my provider in such a way that i want it to get the data from my own schema instead of creating and using the default set of aspnet db....could anyone tell me how this...more >>

asp.net help
Posted by amjad at 6/7/2006 3:04:01 AM
i have access front end and sql server 2005 back end. Now i am writing asp.net application using same GUI i have with access. i am using tab control in access to seperate or group similar fields. cos i have 80 fields in one form so i used tab control. now i want to do that thing with asp.net...more >>

How to set sql timeout on the sqldatasource control
Posted by DarrenB at 6/7/2006 3:00:02 AM
Hi I have a query which takes longer than the default (30seconds I guess) time to process (I am using the full text index in a sql server stored procedure!). The results are place on a web page using the gridview and the sql datasource controls. In .Net 1.1 I guess I would have used the co...more >>

Problem with creating Thumbnail Image within the Datalist?
Posted by savvy at 6/7/2006 2:55:23 AM
I want to create a Thumbnail Image from a given large Image and bind it to the Datalist with the datasource being Database. I followed this link given below Creating Thumbnail Images on the fly with ASP.Net http://west-wind.com/weblog/posts/283.aspx according to link given, if we change th...more >>

disable edit button in gridview
Posted by Mike P at 6/7/2006 2:12:31 AM
How do you disable the edit button for selected rows in a gridview? Here is my button : <asp:CommandField ShowEditButton="True" ButtonType="Link" ShowCancelButton="True" UpdateText="Update" EditText="Edit" CancelText="Cancel" /> *** Sent via ...more >>

urgent asp.net invalid cast error
Posted by amjad at 6/7/2006 2:12:02 AM
System.InvalidCastException: Specified cast is not valid. hi i am received that error below is my code result = new CustID(Convert.ToString(reader["CustID"]), Line 57: (DateTime)reader["BirthDate"],Convert.ToString(reader["Name"]), Convert.ToString(reader["Sex"]), (Byte)reader["NameFo...more >>

Using WebRequest to Replace MSXML3.DLL COM Object
Posted by leeo at 6/7/2006 1:47:48 AM
Hi We've upgraded to VB.NET from VB6, but are now having some difficulty in understanding how to communicate data to the DPB website (the dental practice board). Could anyone help in translating the following function so that we can use .NET components rather than COM (I understand we should...more >>

GridView & Labels ?
Posted by Mr. Murad Jamal at 6/7/2006 1:05:02 AM
I have a GridView Control, I added a label to each cell, how can i access that label from Code Behind ? Thank you in advance !...more >>

DataGridItem.FindControl() (REPOST)
Posted by John Smith at 6/7/2006 12:00:00 AM
I have this code: <asp:datagrid id="dg1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:TemplateColumn HeaderText="SM"> <ItemTemplate> <asp:Label id="Label2" runat="server" Text='<%# Container.DataItem("SM") %>'> </asp:Label> </ItemTemplate> <Ed...more >>

How to compile code files to dll?
Posted by Aras Kucinskas at 6/7/2006 12:00:00 AM
Hello, I have developed a web application using VS 2005. The application contains couple of independent modules. The forms and controls code files are separated in to .vb and .ascx. Now I want to distribute the modules to another machine but do not want to expose source files (vb). How to comp...more >>


DevelopmentNow Blog