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 friday may 12

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

Base Page
Posted by Patxi at 5/12/2006 10:49:26 PM
Hi, I've created a class inheriting System.Web.UI.Page, and all this stuff I was doing worked until now... I want to setup some 'global' meta values, doing this: I tested in my class contructor... HtmlLink link = new HtmlLink(); link.Attributes.Add("type", "text/css"); link.Attribute...more >>


Base Page
Posted by Patxi at 5/12/2006 10:06:17 PM
Hi, I've created a class inheriting System.Web.UI.Page, and all this stuff I was doing worked until now... I want to setup some 'global' meta values, doing this: HtmlLink link = new HtmlLink(); link.Attributes.Add("type", "text/css"); link.Attributes.Add("rel", "stylesheet"); link.Attr...more >>

Parser Error Message
Posted by Jim Duffie at 5/12/2006 9:41:38 PM
Hi, can anyone give me a clue why I am getting the following error, Thanks, Jim Parser Error Message: Could not load type System.Web.UI.WebControls.Menu from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. ...more >>

public variable or friend?
Posted by D. at 5/12/2006 8:24:21 PM
Hi, i come from classic asp and i'm a little confused with variable declaration in VB. I read: "A Public variable is accessible from any place within the module it was declared or other applications which refer to the application where it was declared". What does mean 'application'? Is tha...more >>

CSS for TextBox only
Posted by Alex Maghen at 5/12/2006 6:53:01 PM
I'd like to set the CSS style for all TextBox controls but only for the TextBox controls (not all the "input" types). I'm confused about how to do this. How do I specify in CSS the style I want for TextBoxes but NOT for things like CheckBoxes, etc.? Alex...more >>

Trans from ASP to ASP.NET 2.0 via 1.0
Posted by Anthony Bollinger at 5/12/2006 6:01:28 PM
I find myself in an interesting dilemma. I know both VB6 and ASP. Also, I have to take a bunch of ASP pages into ASP.NET 2.0, so I bought three good books for 2.0. Here is the real clincher--the present state of the project is in ASP.NET 1.0. (I didn't write the original version, I have ju...more >>

Booking calender....
Posted by Ravindra at 5/12/2006 4:58:13 PM
Hi all, i want to book an appointment for a particular customer. Can anyone help in this. regards ravindra ...more >>

Making a database connection global
Posted by Terry Jolly at 5/12/2006 4:02:10 PM
Web Solution Goal: Have a global database connection Why: (There will be 30+ tables, represented by 30+ classes) I only want to reference the database connection once. I put the connection string in the web.config. I created a class with a static database connection and the class opens and...more >>



cookie result too long
Posted by D. at 5/12/2006 3:51:13 PM
Hi, I defined some cookies in order to pass values between pages in my application. The problem is that when i request them with: cookie = Request.Cookies("mycookie") x = cookie.Value (suppose the value = 'yes') Response.Write(x) i get: 'mycookie=yes' instead of just 'yes'. Any way to...more >>

urlMapping e form submission
Posted by Andrea at 5/12/2006 2:46:30 PM
Why in a form submission cotext the urlMapping doesn't work? Is there any solution? Thanks Andrea ...more >>

Functions executing on Page Load?
Posted by cider123 NO[at]SPAM hotmail.com at 5/12/2006 2:42:49 PM
Here's a quick snapshot of the top few lines of the aspx page: <%@ Page Language="C#" MasterPageFile="~/Master1.master" AutoEventWireup="true" CodeFile="TestPage.aspx.cs" Inherits="TestPage" Title="Test Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="cpMain" Runat="Server"> <script...more >>

Simple question: Retrieve form elements name in content placeholder
Posted by Kees de Winter at 5/12/2006 2:27:56 PM
Hi, If I have a TextBox place inside a content placeholder then at runtime the TextBox's name changes to ctl00_ContentPlaceHolder1_tbCity. What is the best way to get the value of the TextBox server-side without 'guessing' the name in the produced HTML? Page.Request("??") Thanks -- Kees...more >>

how to expose a variable with global.asax?
Posted by D. at 5/12/2006 2:26:15 PM
Hi, I need to expose a variable to every aspx file of the applicationroot. I tried with global.asax like this: <%@ Application Language="VB" %> <script runat="server"> public a as string Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) a="ok" End Sub </script> Whe...more >>

Permissions wizard
Posted by AAJ at 5/12/2006 2:15:16 PM
Hi all on my local IIS (Windows XP) I can Website -> Right click -> All Tasks -> Permissions Wizard And select my settings from the secure web site template. On my test server Windows Server 2003, I cand find this option. Would anyone be able to tell me how to install this template or ...more >>

Binding objects ?
Posted by Jarod at 5/12/2006 1:45:02 PM
Hey I have class Budget that has property Company. This property is of type Company ( another class ). I want to use objectDataSource and I override ToString in company. But to edit this I have DropDownList of Company objects, and there is problem how to set it object back ? I could copy pr...more >>

XSLT and trusted files
Posted by super todd at 5/12/2006 1:31:40 PM
Here is the deal. We have an ASP.NET page which does an XSLT transform. Both the XSL and the XML come off a unc path on another server. All annonymous accaess has been permissioned accordingly. In addition aspnet_setreg.exe has been downloaded and been run to give the applications the approp...more >>

PostBackURL, Server.Transfer, and PreviousPage
Posted by michael.neel NO[at]SPAM gmail.com at 5/12/2006 1:26:32 PM
Here is the setup: I have an SQL driven sitemap provider - when the user clicks on a database generated link - /Site/DBPages/Article1.aspx - a handler does a Server.Transfer - Server.Transfer("/Site/Template.aspx", true) - to a template page which displays the database related content. The T...more >>

Dialog
Posted by Mark at 5/12/2006 1:15:29 PM
I need to create an ASP.NET dialog form and then have it pop up in the users browser from the main form when the user clicks a image button. I then need to acquire the dialog results in the main form for processing. Do you know any examples of how to do this? ...more >>

Column sorting not working in GridView
Posted by Thirsty Traveler at 5/12/2006 1:02:01 PM
I have a web page with a few textboxes used for filtering a read-only result set to a GridView. I am unable to get the ObjectDataSource binding to work as desired insofar as it returns a resultset on page load prior to the filter requests for the query, so I am doing a dynamic binding to the ...more >>

shopping cart binding to datagrid
Posted by mazdotnet at 5/12/2006 12:53:01 PM
Hi, I'm wondering if there is a way to bind to datagrid or a gridview the items in an arraylist. These items all have vars such as price, qty..etc? (besides putting in a datagrid or datatable first). ex. ArrayList alShoppingCart = shoppingCart.GetCurrentItems; alShoppingCart contains an ar...more >>

Call stack not displaying line numbers
Posted by Mantorok at 5/12/2006 12:47:21 PM
Hi all When my asp.net site errors the event logs contain the call-stack, but unfortunately there are no line numbers beside the method names. Any ideas? Thanks Kev ...more >>

ASP 2.0: How to access Master Page from Web User Control on Page?
Posted by ivanpais NO[at]SPAM gmail.com at 5/12/2006 12:43:24 PM
Hi, I have a Web User Control, Lets say "Foo.ascx", that contains a button "btnFoo". I have a Master Page "Bar.master", that has a label "lblBar". This label is exposed by a public property BarLabelText. I now have a contentpage "FooBar.aspx", where "Bar.master" is the master page and in...more >>

Questions about storing state and web farms
Posted by newjazzharmony NO[at]SPAM hotmail.com at 5/12/2006 12:35:45 PM
All, I'd appreciate it if someone could answer these questions for me. This scenario applies to an ASP dot net application that is deployed in a web farm. 1) Does the application live in a separate app domain on each webserver in the farm? 2) Does each webserver's version of the applic...more >>

aspx rookie
Posted by Dst at 5/12/2006 11:48:28 AM
Hi i'm trying to make a very simple web site using visual studio 2005. I'm completely noob at this so i need some pointers to get me started. As i understand frames should not be used in asp.net ? But what are the alternatives ? My main page is very simple, it is created using a table and ...more >>

Returning Output Parameters using a TableAdapter
Posted by Richard at 5/12/2006 11:35:02 AM
I have a typed dataset in asp.net 2.0, that returns 2 output parameters. Unfortunately I have not been able to capture these values: Private Sub GetValues() Dim ta As New dsValuesTableAdapters.MyValuesTableAdapter Dim dt As New dsValues.MyValuesDataTable Dim value1 ...more >>

Newbie question about session
Posted by momo at 5/12/2006 11:20:18 AM
Hi Guys! I have a site that allows users to log in and out based and uses session to access every page. My problem is when a user logout and click the back button in the browser it allows them to go back and view the content that they were in before but can not make any new request to the serv...more >>

q: read data from web service
Posted by JIM.H. at 5/12/2006 11:20:02 AM
Hello, A web service return me a xlm stream, how can I process it and put it to my table, can anyone give me a sample code? ...more >>

Proceess aspnet_wp.exe
Posted by MJ at 5/12/2006 11:05:01 AM
Why in my server the process aspnet_wp.exe is very high in the task manager when execute it. Pease, Help my. Chress ...more >>

OleDbConnection - cannot read Excel file
Posted by dmateer NO[at]SPAM answersingenesis.org at 5/12/2006 10:48:40 AM
I have the following code in an asp.net page: System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection(); cn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\myservername\ExcelTemp\Temp.xls;Extended Properties=Excel 8.0"; cn.Open(); cn.Close(); My I...more >>

drop downs in userControls
Posted by CSharpguy at 5/12/2006 10:26:02 AM
I have 3 drop downs that are populated from the databasem 4 of my web pages need to have this drop down, how can I trap the selection made in the drop down and popuate my grid on my form? ...more >>

Hyperlink column on ASP.NET Grid issue
Posted by GK at 5/12/2006 10:21:02 AM
I have an ASP.NET web application (version 1.1,VS 2003), running on Windows XP Professional, SP2. Many of the pages use ASP.NET Grid Control, with pagination. One of the columns of this Grid is a Template column (Link Button). Assume that there are more than one page of data displayed on the Gr...more >>

User Conrols(.ascx) - Relative Paths
Posted by C at 5/12/2006 10:11:03 AM
Hi, I have a User Control (.ascx) which has links to all the ASPX Pages that exist in my application. This User Control is used on all my ASPX's. I am havinga problem with the paths in my ASCX. If I click on a link from an ASPX page on the root of the project it works fine. If I c...more >>

How to Use GZIP API in ASP.net
Posted by Leyla at 5/12/2006 10:05:10 AM
Hi All, I have web page that will show the clients directory structure, and when the user slects a directory I need to zip that directory and upload the results to the file server. can someone point me to a book or to a web page on how to do the zipping. thanks ...more >>

web.config connection string for typed dataset in different assemb
Posted by TenDot at 5/12/2006 9:16:02 AM
I'm using a Object Data Source to provide data to an ASP control. The object dataset is a member of a separate assembly (project). All works well in test. When I deploy to production, I want to change the connection string to point to the production SQLServer. I don't see how to change the...more >>

How to bind to Profile with DataBinder.Eval()
Posted by Mitch Freed at 5/12/2006 8:56:27 AM
Is it possible to use the DataBinder.Eval(object, string) method to bind to the Profile? I want to pull a specific property value from the Profile ... can't get it to work: DataBinder.Eval(Profile, "UserName") Any help would be appreciated. ...more >>

Is there an easy way to stop screen flashing?
Posted by Thirsty Traveler at 5/12/2006 8:49:15 AM
Is there an easy way to stop the annoying screen flashing when doing a postback? begin 666 p.gif M1TE&.#EAL0`-`( `````_____R'Y! ``````+ ````"Q``T```+MC(^IR^T/ MHYRTV@6ROD?OGB5 ,V)&R:5D>+;FVZFHZL8!.L\B4^HTC:OQA@@?Q<C1C91% MVXTD_,EV2.>NF?(M3RRNENH(UC[/LJ?8/8."O2KVBF/UKD[R]M;URN<N\?KC MY...more >>

Problem with an IMG from a Master Page
Posted by Alex Maghen at 5/12/2006 8:07:01 AM
This seems like it should be so simple but I really can't figure out what's going on: I have a simple MasterPage. On that page I want to place an Image (IMG or asp:Image, doesn't really matter to me). But for some reason, the image won't come up because the path (src) for that image in the ...more >>

How to retrieve data of a product which falls under two categories??
Posted by savvy at 5/12/2006 7:47:24 AM
I'm using MS SQL 2000. I developing a shopping cart where on the admin side when we are inserting or updating the products, there is a chance that a single product can fall into two categories therefore i'm giving the users a option of CheckBoxList control for the categories. The checkboxlist co...more >>

Can I associate a Submit button with the Enter key
Posted by Thirsty Traveler at 5/12/2006 7:33:02 AM
I am not a Web programmer, so this question will be rather basic. I am wondering how I go about associating a Submit button with the enter key so that I can avoid having to click on it after data fields are filled. begin 666 p.gif M1TE&.#EAL0`-`( `````_____R'Y! ``````+ ````"Q``T```+MC(...more >>

Save a file locally for ASP.net 2
Posted by Matt at 5/12/2006 7:20:02 AM
Hi, I would like to save a file locally (on the client computer) in an ASP.net application. It is like the server would return some data that the user can save to a file on his local PC. The ASP page has a text field to type in the file path directly and a "Browse..." button, that shall dis...more >>

Query String
Posted by TARUN at 5/12/2006 7:01:00 AM
Hello All I got stuck i one problem, I need toi Know how to clear the query string. I search in net and came to Know that there is one methos called Requst.QueryString.clear but this is use for read only collection. Can one suggest me the code for that ??? Thank you tarun sinha ...more >>

Application Level Error Handling Question
Posted by Corey B at 5/12/2006 6:56:59 AM
I have added code to my Application_Error sub in Global.ASAX so that whenever an error occurs in my ASP.NET application - it sends me an email with the error information. However the information that I am receiving doesn't have everything I would like. It doesn't give the exact line of code an...more >>

how to disable java script form vb code
Posted by lakshya at 5/12/2006 6:34:46 AM
how to disable java script form vb code which is written on masterpage ...more >>

Regarding Page_ClientValidate() function
Posted by Deepson Thomas at 5/12/2006 6:10:02 AM
Hi, How can we identify due to which validator control the Page_ClientValidate() method is returning false. why iam asking this coz in my page iam using lotz of regular expression validators and on the click of button if iam checking whatz the return value of Page_ClientValidate() fu...more >>

Dumb question about creating a solution
Posted by jhcorey NO[at]SPAM yahoo.com at 5/12/2006 6:02:36 AM
Alledgedly I have some experience, but somehow I'm drawing a blank on this. In VS2005 I would like to create a solution with two projects (one is a web site). I work with these all the time, but now I can't figure out how to do this. Right now, if I look at my .sln files in my folder, some h...more >>

Web.config and environment variables. Please help!
Posted by otto at 5/12/2006 4:45:01 AM
Hi, all: I would like to know one thing: Is it possible to access an environment variable (like PATH) from web.config file? Something like this: <appSettings> <add key="name" value="%Environment{PATH}\Shared"></add> </appSettings> or <add key="name" value="${PATH}\Shared"></add> or any...more >>

writing_£_sign_to_file
Posted by musosdev at 5/12/2006 4:34:01 AM
I'm having trouble writing £ (pound sign) to a file from my asp.net app. I've tried.. StreamWriter.WriteLine("£") - and - StreamWriter.WriteLine(Convert.ToChar(156).ToString()) but neither give me the £ sign - they give me weird characters! I think 156 is the char code for £ ..?! ...more >>

How to attach special events to a custom server control ?
Posted by harel.moshe NO[at]SPAM gmail.com at 5/12/2006 4:20:57 AM
Hey everybody, I'm looking for a way to attach non-void events to a server control i wrote. Relevant code parts: the control: mycontrol : WebControl { public delegate string myEventHandler(string s); public event myEventHandler OnClick; ... ... } the .aspx page portion: <%...more >>

Response.TransmitFile resets connection on small file
Posted by APA at 5/12/2006 1:05:11 AM
I am transmitting MP3s using the Response.TransmitFile method but the client gets an error saying the connection with the server was reset. The files are only 5MB in size. The odd part is that theuser has the ability to download all files in one zip file (which is obviously much larger) and th...more >>

Maximizing forms in ASP.Net
Posted by mac at 5/12/2006 12:00:00 AM
Hi everyone I need your help just want to know why my webforms doest maximize i paste the script on the onload event <head runat="server"> <title>Untitled Page</title> </head> <body onload="javascript: window.innerWidth = screen.width window.in...more >>

How to upload a text file into SQL Server via ASP.NET?
Posted by ABC at 5/12/2006 12:00:00 AM
Our environment has two servers, one is web and another is SQL Server. I want a upload page to upload file (which I done.). Then I call "Bulk Insert" command from ADO.NET, it cannot do that as SQL Server cannot access the file on Web Server. I made sure the SQL login user have Bulk-insert ...more >>

Newbie: have trouble adding events
Posted by Jeff at 5/12/2006 12:00:00 AM
OS: XP pro IDE VS .NET 2005 ASP.NET 2.0 Hey I have a form I want to add the PreInit event to..... my problem is that i don't know how to add the event to the form(asp.net page). In code view I can't select the Page class in the drop down list to the top left, I see only "index". And ...more >>


DevelopmentNow Blog