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 > may 2006 > threads for monday may 8

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

beginner question: feeding a query string into an Xpath expression
Posted by xerj at 5/8/2006 10:18:57 PM
I've worked out how to retrieve a parameter from a query string in a url using Request.Querystring("whatever"). However, what I can't figure out is how to feed this into an Xpath expression. For instance, say I have an Xpath as follows: food/fruit[@type='typeoffruit']. How do I programmatic...more >>


validation sample code in Business logic layer and Data Access Lay
Posted by ss at 5/8/2006 9:54:02 PM
Hi, Can anybody give me a SAMPLE VALIDATION CODE (MOST COMMON ONES) IN BUSINESS LOGIC LAYER & DATA ACCESS LAYER I REPEATE SAMPLE VALIDATON CODE IN BLL & DAL BYE SS...more >>

web pages help
Posted by AVL at 5/8/2006 9:35:01 PM
Hi, I'm a developing a web application. One of it's requirements is that if the users try to downlaod the web apges, they shouldn't get the relevnt css files of the web page.. how can I acheive this? any good sites????. ...more >>

Web App Question
Posted by Carl Gilbert at 5/8/2006 9:31:30 PM
Hi I am trying to get a simple ASP.NET web application to work on my 1&1 (1and1) web space. I managed to get something working a while ago, with thanks to Karl Seguin, but for some unknown reason it stopped working. I have two domains: www.airbrushesonline.com which is directed at a fo...more >>

Formview and uploading files
Posted by Chris at 5/8/2006 8:35:15 PM
I am using the formview in conjunction with the object datasource. On basic textual data it updates fine via the the update method but I would like to have a pdf file to upload. What is the best way to approach this. I need to give the pdf a unique name and store it on the server and store tha...more >>

Restrict '\' character using RegularExpression Validator..
Posted by den 2005 at 5/8/2006 8:03:01 PM
Hi everybody, How do restrict entering these characters <>\"%';()& and telling user these caharcters are not allowed to be enter in the textbox field using RegularExpression Validator? I put in the Validation Expression property [^<>\"'%;()&]. It restrict every character execpt 0 to 9. H...more >>

Html Form Help!!!
Posted by Roshawn Dawson at 5/8/2006 7:36:01 PM
Hi, I have an .aspx page that contains an html form. Below is the code used for the form: <form id="Shoes" method="post" runat="server"> <label for="q">Search:</label><br /> <asp:textbox id="q" maxlength="100" runat="server"/><br /> <label for="sz">Shoe Size (US):</label><br /> ...more >>

2.0: asp:Button click at server
Posted by R.A.M. at 5/8/2006 6:52:41 PM
Hello, I have very simple problem which I present here second time, because I haven't got a solution. I need to process asp:Button click at server. I have written (my experience is little) in .aspx: <asp:Button ID="GoTo" runat="server" Text="Go To" OnClic...more >>



Dynamically adding a stylesheet
Posted by Nathan Sokalski at 5/8/2006 6:06:21 PM
I want to dynamically add a stylesheet using <style type="text/css"></style> tags. The code that will use this stylesheet will be shared, so I will not have control over what the user does as far as stuff like adding runat="server" and id="someid" attributes to the <head> tag of their .aspx ...more >>

Use XML to add data to database
Posted by sreevidhyas NO[at]SPAM gmail.com at 5/8/2006 6:03:32 PM
Hi I am a newbie to the ,net programming and am trying to use XML to add/update data in the database (SQL server/C#) if anyone can please show me how to do it or if there are any tutorials i can read i would really appreciate that. ...more >>

Upload image in WEBFARM
Posted by Prabha at 5/8/2006 5:38:54 PM
Hi, My appliaction is hosted in webfarm, how to upload a file to all the server in webfarm. Please help me, its very urgent. Millions of advance thanx. Regards ...more >>

HttpRuntime.Cache
Posted by Jose Fernandez at 5/8/2006 5:24:47 PM
Hello First of all, sorry for my bad english ;) I have a USER class that i create to every user that enters the website (not neccesarily logged in). At the same time i insert it into a the HttpRuntime.Cache if it doesn't exist. In every request i verify if the user is in the Cache so i don'...more >>

Turn off EventLogWebEventProvider
Posted by Bird at 5/8/2006 5:10:47 PM
Hi, By default, EventLogWebEventProvider is enabled. Can I disable it? (to avoid events written to Windows Event Log) Thanks! ...more >>

Secrets to bypassing Hotmail's junk folder
Posted by HB at 5/8/2006 4:57:43 PM
As many of us know, when we send legitimate emails to real customers from our apps, those emails often end up in the Hotmail (and MSN -- and AOL, too) junk folder. I've done a lot of testing with Hotmail, using different domain sender names, different sending IPs, different SMTP servers, etc....more >>

dot NET and Privacy
Posted by Bill at 5/8/2006 4:56:13 PM
I'm looking at shareware ASP.NET applications for my web. Some applications includes a ..DLL that goes into my web's /bin subdirectory. Since the internet is such a wild and wooly place, how can I tell if the .DLL might compromise my privacy & security? I'm new to .NET, but I want to know if th...more >>

Multiple DataSouce for a DataGrid
Posted by Waran at 5/8/2006 4:56:01 PM
How to bind Multiple results into a datagrid. For example Assume the values for dsCustCode.Tables(0).Rows.Count = 4,and the values are "'Val1','val2','val3','val4'" in the below loop In the above situation four datasource needs to be bind in the grid. I know the below is binding the last v...more >>

Refreshing a page causes databound gridview to re update datasource.
Posted by Mike Grace at 5/8/2006 4:52:51 PM
Hi, I have a gridview which is using a SqlDataSource to update a table. The SqlDatasource is using a stored procedure to update the table. If I edit a row, change a value and click update the change is successfully applied to the SQL table. After this, the values in the underlying table...more >>

Call / Embed Method in ASPX
Posted by Andrew Robinson at 5/8/2006 3:53:48 PM
quick question: I need to call a method from within my ASPX file. What is the syntax? What I have isn't working. <asp:HyperLink ID="HyperLink98" runat="server" NavigateUrl='<%= GetUrl() %>'>Back to Summary1</asp:HyperLink> in my cs file: protected string GetUrl() { return "This...more >>

Best way to populate ListBox from SQL Server?
Posted by Robert W. at 5/8/2006 3:37:02 PM
I have a SQL Server table called "ClosedMonths" that contains two pertinent fields: Yearx Monthx 2000 1 2000 2 2000 3 I want to simply query this table and populate a WebControls listbox with the contents, though in this format: Jan 2...more >>

Datagrid: Sorting and Paging
Posted by Kuldeep at 5/8/2006 3:36:16 PM
Hi All, I have been trying to find some algorithms for datagrid sorting and paging. Please help Regards Kuldeep ...more >>

ExecuteReader: Connection property not initialized
Posted by phil at 5/8/2006 3:29:13 PM
Hi, With the code below, i get the error: ExecuteReader: Connection property has not been initialized. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in th...more >>

Seeing what app/process is locking a file?
Posted by darrel at 5/8/2006 3:03:57 PM
Is there any tool to check to see what, at any given time, is locking a particular file? We're having an issue where some of our XML file become locked and we're tryign to figure out what is locking them. -Darrel ...more >>

Coding approaches-which is faster?
Posted by Chad at 5/8/2006 3:02:43 PM
Which is generally faster: Using... 1) Databound controls, such as the datagrid. 2) Creating your own tables like this: Dim MyTable as newTable Dim MyRow as new Row MyTable.Rows.Add(MyRow) Dim MyCell As New Cell MyRow.Cells.Add(MyCell) etc... 3) Dim s as string ...more >>

DataSource Problem for Nested DataList
Posted by scottls at 5/8/2006 2:38:00 PM
Hi All, Thanks for reading my post. I have been working on getting nested datalists working properly wihtin my framework for many days and I think I'm almost there. See if you could help me get over the hump here. Some of our products come in different sizes - i.e. what I call "units". ...more >>

GRIDVIEW: changing column attributes
Posted by MarkAurit at 5/8/2006 2:13:01 PM
I have a gridview with some boundfields and buttonfields, and based on the user's role I want to modify their attributes: for example, if the person's role doesnt allow updates, I want to set a buttonfields visible attribute to "false". I know how to get data values from a clicked column, but...more >>

Cookieless Forms Authentication
Posted by Oscar Thornell at 5/8/2006 2:00:43 PM
Hi, By setting the property "cookieless" (it can take 4 different values...) in the web.config you could control weather an application relies upon cookies or uses the querystring... My problem is that I would like to do this dynamically and check for some items (specific to my context/a...more >>

problems connecting to a data source
Posted by Adam Sandler at 5/8/2006 1:55:35 PM
Hello all, I'm trying to use VWD 2005 Express Edition to connect to a database. For my initial prototyping though, I'm just using an Excel spreadsheet as the source and everything resides on the local host. All I want to do right now is get the info from the source and display it on a webpage...more >>

How to SQL Express/IIS/Security???
Posted by porko at 5/8/2006 1:20:02 PM
I've got a very simple ASP.NET 2.0 web application that uses some SpDiscoverParameterSet with my database queries. It works fine when running or debugging under Visual Studio. When I try to run it through IIS, like a real web app, I get a SpDiscoverParameterSet Failed". This is a security...more >>

IIS
Posted by Akhenaten at 5/8/2006 1:11:14 PM
Hi. How do I install IIS on my PC? I'm running XP. I keep reading that I should just goto Add Components and chose it. But it's not there. Many thanks ...more >>

User authentication code wanted
Posted by coffngrl NO[at]SPAM gmail.com at 5/8/2006 1:03:29 PM
I am on a super tight deadline. I am searching for any shareware asp.net components/code snippets that I can use to add user accounts, login, role-based security to a asp.net app. I am not in control of the server, but can add components to the app - so files I can upload are OK, but I can't ...more >>

Datagrid versus Gridview
Posted by Arne Garvander at 5/8/2006 1:01:02 PM
The code below works fine in a DataGrid. <asp:TemplateColumn HeaderText="Select"> <ItemTemplate> <%# GetLink(Container.DataItem) %> </ItemTemplate> </asp:TemplateColumn> What is the corresponding syntax for Gridview? -- Arne Garvander (I program VB.Net for fun and C# to get paid.)...more >>

compilation configuration
Posted by musosdev at 5/8/2006 12:37:01 PM
Hi guys Ok, so I've been trying to work out how to get a Release version of my website out of VS2005, and I'm having no luck! Hopefully you guys can help.. I've tried setting compiler debug="false" - it doesn't work. I've got some #if DEBUG.. code in my site and it always shows debug, whet...more >>

error: Declaration expected
Posted by phil at 5/8/2006 12:05:46 PM
Hi, When executing this (asp.net 2.0), i get the error: Compiler Error Message: BC30188: Declaration expected. Line 9: Dim dtreader As SqlDataReader Line 10: Line 11: db = new Sqlconnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\access\nemi.mdb") Line 12: Line 13: Sourc...more >>

Textbox in a User Control
Posted by Jason at 5/8/2006 11:18:02 AM
I have created a user control, MyControl.ascx, that has a text box and a button. The button updates a table in SQL with the text in the textbox. Now, I include that control in a page Default.aspx. From Default.aspx, on page load, I populate the textbox through the public property TextBoxBody ...more >>

GridView UserControl Problems
Posted by Giovanni at 5/8/2006 11:07:01 AM
Dear Friends/Gurus, I have exhausted myself and have yet no solution to the following: I have an ASP.NET 2.0 Survey type application. On a page, I have placed a GridView which is bound to an SQLDataSource. The GridView contains 3 columns: QuestionNumber, QuestionText, and a Templa...more >>

can I popup page form server side?
Posted by ChrisA at 5/8/2006 10:53:02 AM
I have a small (feedback) page in asp.net 1.1. Is it possible to cause a page to be opened in another window in respose to a post from another aspx page? Is there something I can do in the page itself (either aspx or code behind) to cause it to be popped up in a new window? I'm aware of t...more >>

Display changing tables
Posted by C Did at 5/8/2006 10:49:46 AM
Hi, I need to display a simple table. The hitch is that the table changes depending on circumstances. So today it could be a table with three columns, tomorrow it could be twelve. I just need to dump the data to the page in a simple manner. I won't know until run time the nature of the t...more >>

What happens between Page.PreRender and Page.Unload event?
Posted by Mariella Bakker at 5/8/2006 10:48:33 AM
Hi All, In an ASP.NET project I am trying to improve performance. As it is now there seems to be a huge bottleneck between the end of the Page.PreRender event and the beginning of the Page.Unload event. Using a performance analyzing tool (AqTime 4.9) I am not able to find out what is happen...more >>

work in group on an asp.net v2 website
Posted by Nick Wouters at 5/8/2006 10:30:54 AM
Dear All my second question here -> We are going to rebuild an existing website from classic asp to ASP.net v2. We are fully aware we better build this website again, so we made a team of 9 persons who are going to build this website again. Now what is the best way to work in group in AS...more >>

masterpages vs. CSS or Masterpages with CSS??? help me out please!
Posted by Nick Wouters at 5/8/2006 10:27:49 AM
Dear All In Classic ASP I used CSS for ALL layout. Now in ASP.NET version 2 I am testing out Masterpages as they come in very handy. It seems like it is replacing CSS for layout but what is the best choise? 1) Using Masterpages with Themes (css / images / skins included in this theme) ...more >>

format a databound label
Posted by rodchar at 5/8/2006 10:13:02 AM
hey all, i have a label inside an item template of a datalist control. the datasource field type is money. well, when i databind the money field to the label.text it show a precision of 4. what's the best way to make that a precision of 2? thanks, rodchar...more >>

Request.QueryString and "&" in Folder Name
Posted by EoRaptor013 at 5/8/2006 9:55:32 AM
Not sure where to ask this question, but... I'm using a TreeView component to enable browsing file folders in a specific directory (for test purposes /Program Files/). Some users use an ampersand ("&") in both folder and file names. This has caused me some real grief! I'm not in a position to te...more >>

Request.QueryString and "&" in Folder Name
Posted by EoRaptor013 at 5/8/2006 9:50:36 AM
Not sure where to ask this question, but... I'm using a TreeView component to enable browsing file folders in a specific directory (for test purposes /Program Files/). Some users use an ampersand ("&") in both folder and file names. This has caused me some real grief! I'm not in a position to te...more >>

ASP.NET 2.0 - Publish Web Site Error
Posted by sainik_giri NO[at]SPAM yahoo.com at 5/8/2006 9:50:29 AM
Hi I created a web site in my local machine and it works cool, even when i debug. But when i try to publish it to another virtual directory, i get this wierd error : The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the ...more >>

Parse Error
Posted by Moojjoo at 5/8/2006 9:36:03 AM
I am working on a Web application and when I try to add a Web Form with zero code on it and just type hello world I get the following: 1. The Virtual Web is setup as an application 2. All other pages work fine, just when I add new pages? 3. Rebooted, resetiis, and I searched the Web over for...more >>

How to re-create dynamically added controls without having duplicates?
Posted by keithb at 5/8/2006 9:31:14 AM
I have found that I must re-create dynamically added controls on every postback in order to find and access them programatically. The controls I am working with are inside a GridView control. When the edit button is clicked, a postback occurs and the control are re-created. This causes an addi...more >>

Easy graphing.
Posted by UJ at 5/8/2006 8:54:09 AM
What's an easy way to draw a simple line graph? Crystal? Or is there some easier way. TIA - Jeff. ...more >>

Build Fails without ERRORS
Posted by Michael at 5/8/2006 8:18:02 AM
Hi Everyone, I'm wondering if anyone else has had this happen to them. I have been working on a project and had compiled it several times today, but now when I try and compile the project (vs2005) I get a message that the Build Failed, but when I look in the Error listing. There are no errors...more >>

When does the httpRuntime maxRequestLength setting kick in?
Posted by Andy Stephens at 5/8/2006 7:38:02 AM
Hi all I'm developing a site where visitors can upload images (using the html file input control). As most webhosting companies set a monthly bandwidth limit I want to try and limit the size of uploads. I thought about using the <httpRuntime> "maxRequestLength" setting, which throws an e...more >>

AspCompat mysitcally stops working? (There is no MTX Object Context)
Posted by jsgough NO[at]SPAM gmail.com at 5/8/2006 7:28:58 AM
Hello, I was writing some code using ASP.NET 2.0 that consumed a COM library via interop on Friday and everything was working fine until about thirty minutes before I left for the day (isn't it always that way?). Then, I started getting the message: There is no MTS object context (Exception...more >>

xmlhttp requests not returning until long-running process is compl
Posted by peterlan at 5/8/2006 7:03:02 AM
Hello, I have an issue with a long-running import process in our asp.net app (1.1). After the user initiates an import, we're trying to make periodic xmlhttp requests to update a progress bar. In development (running the webserver on localhost) this works fine. When we move the code to our bu...more >>

Add Controls to GridView at runtime
Posted by mangomadman at 5/8/2006 6:42:50 AM
Has anyone solved the problem with adding Controls dynamically to a GridView at runtime? I encounter the problem that GridView doesn't save these Controls on post back, which makes them useless. ...more >>

Displaying a string var in the .aspx page
Posted by mazdotnet at 5/8/2006 6:39:25 AM
Hi, I have the following code in the code-behind file public string section; section = Request["section"].ToString() and I like to display it in my .aspx page (included .ascx) but it's not working. I tried <a href="default.aspx?section=<#=section#>"> is it possible to just place Re...more >>

Can I change my code depending on the build type?
Posted by musosdev at 5/8/2006 5:41:02 AM
I've got a function that needs to work slightly differently on the development server from the production server, but of course I don't want to be changing code just before compiling a release version!? I'm thinking I could use some #if #else #endif type statements to change certain things,...more >>

ASP 2.0 WebPartZone LayoutOrientation and Access
Posted by Heath Howard at 5/8/2006 5:32:23 AM
I have two questions for which I have yet to figure out an answer: 1. I have a page with three webpartzones, one zone on each row of a three-row table. I have the layoutorientation property set to "horizontal" so that the webparts will be added side by side. Is there any way to have the we...more >>

page layout changes after response.write
Posted by Filip De Backer at 5/8/2006 5:21:01 AM
Hi everyone, string script = ""; script += "<script language='javascript'>"; script += "window.open('showdoc.aspx');"; script += "</script>"; Response.Write(script); After the execution of this code, the layout of my aspx page changes: the font gets bigger, the datagrid (font, grid) gets ...more >>

How to read file file from client as stream
Posted by ad at 5/8/2006 5:00:56 AM
We usually use FileUpload web control to get a file from client. But the file must be save in the server's HD before we can read. How can we get a file from clinet, an save it as stream in memory not in HD? ...more >>

FileUpload problems
Posted by Knoxy at 5/8/2006 4:43:17 AM
Hey all, I hope someone can help me on this one as it's driving me nuts. Basically i have the asp:fileupload control embedded on my page but, hasfile 'always' returns false. I have tried using the enctype="multipart/form-data" on my form but that doesn't make any difference. I have this wo...more >>

Printing from IE
Posted by musosdev at 5/8/2006 4:34:03 AM
Hi peeps We've just created a new system for generating documents from our Intranet that saves them as xml files. TO view them, we've just added a new aspx page that loads the xml file into a frame, and there's another frame with print close buttons. All works well, and we can print the doc...more >>

'Could not load" the file problem on the production server ??
Posted by savvy at 5/8/2006 4:08:55 AM
I'm using "Visual Studio 2005 Professional". I'm half way through in my project development. I've created a New Website in the Visual Studio 2005 and developing my project over there. When i wanted to test my current project on the main production server its giving an error saying "Could not loa...more >>

StateServer and Serialization
Posted by Coco at 5/8/2006 2:23:01 AM
Hi, I am currently migration my session state from InProcess to StateServer. I notice that the object that i want to put in the session must be serializable. What about the objects like DataTable and Hashtable, how can i keep than into the session, i don't think they are serializable. What ...more >>

dynamically changing the position of a placeholder
Posted by nemesis.saurabh NO[at]SPAM gmail.com at 5/8/2006 1:02:51 AM
hi, can we dynamically change the position of MCMS placeholder on the web page.. Problem is i have 6 placeholders on my template and for a particular posting i need to fill only 4 of them. can i position them according to the code. and how to check whether a placeholder is empty through codeb...more >>

Treeview updates not showing on rebind but fxml file is updated
Posted by K B at 5/8/2006 12:24:48 AM
Hi, Very strange problem. I have an asp.net 2.0 treeview and populating it from an xml file. All works great, except when I update a node and rebind the control. I can see the updated node in the xml file, but when it loads on the page, it is the old version. I've stepped through page load and...more >>

do something every day...
Posted by Bruno Alexandre at 5/8/2006 12:21:39 AM
How can we manage in ASP.NET (using a hosted website - so there is nothing I can do in the server) do perform a task every day at 11pm ? in VB.NET we have the timer and if the application is running we can every 5 minutes see if the clock is right then execute the function, but how about in...more >>


DevelopmentNow Blog