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 > november 2007 > threads for wednesday november 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

how to use contentPlace holders in a table that isn't in a master page
Posted by Sunfire at 11/7/2007 11:37:05 PM
Hi... I have to put some html code inside a table that is on a aspx page that isn't a master page. How do you use contentPlace holders to do that? ...more >>

Vista + IIS 7 + Webapps not starting - blank screen
Posted by Jurjen de Groot at 11/7/2007 11:30:10 PM
I've got VS2005 running on Vista. In my WebApp I have configured it to run using IIS and have let VS2005 create the virtual directory I have installed II6 Management compatibility software as per instruction found on Scott Gu's blog. I'm starting VS2005 as 'Administrator' When pressing F5, a...more >>

Moving asp.net site to another host...
Posted by gar598@gmail.com at 11/7/2007 10:12:02 PM
I don't have much experience moving these types of site, but we're changing sites, and I've been asked to move the site to a new server. It's your typical setup Windows server, ASP.Net 2.0., a few SQL databases. Is there an easy/best way to go about this? Any insight would be most appreciated. ...more >>

When are User Roles Initialized?
Posted by Jonathan Wood at 11/7/2007 9:58:07 PM
I've set up ASP.NET membership. I can get the role(s) of the current user by calling Roles.GetRolesForUser(). It seems like it would be a good idea to store some role-specific calculations in the Session object so that I don't need to re-perform these calculations for each page. Quest...more >>

Help with Starting New Web Application
Posted by Stephen Barrett at 11/7/2007 9:34:07 PM
Hi, I have a friend that I am trying to help get started into asp.net development at my company. He was assigned a task to build a data entry / reporting web application and only has about 10 days to do it. The database will contain only 3 main tables to enter data and about 4 or 5 refe...more >>

Authentication windows users
Posted by Jeff at 11/7/2007 9:26:40 PM
Hey ASP.NET 2.0 I'm developing a portal which will be used by the management team at my work. We all have Windows as OS and we all use IE... So I thought about using <authentication mode="Windows" /> but I'm not sure how to give access to this portal for a specific group. We use Active...more >>

make full Screen onLoad
Posted by faraz at 11/7/2007 9:04:37 PM
I want to make my login page fullscreen as when user types in the URL in the browser. the browser changes to fullscreen (like window.open(theURL, '', 'fullscreen=yes, scrollbars=no')) and opens my login page. ?// how is this possible? ...more >>

ClientScriptManager.RegisterForEventValidation trouble
Posted by Zac at 11/7/2007 8:51:01 PM
Hello! Maybe someone out there can point me int he correct direction for a fix to a problem I'm having. I've setup a user control with two list boxes. One starts with a full list of items, the other one completely empty. I've setup a client-side javascript function that allows the user to mov...more >>



Multiple cookies created
Posted by Robert Slaney at 11/7/2007 8:42:00 PM
Hi all. I have a scenario where it appears that multiple cookies are created. We are using ASP.NET 2.0, and one of our pages reads a cookie and display the value to the web page, using client side JS. This is accomplished by parsing the document.cookie property. Here is the scenario. We...more >>

Embedding <OBJECT> in ASP.NET
Posted by Barrie Wilson at 11/7/2007 7:30:57 PM
anyone have any idea why I might be having an impossible time embedding a YouTube <object> in an .ASPX file: <object width="425" height="355"> <param name="movie" value="http://www.youtube.com/v/zAfQwDizpRo&rel=1"></param> <param name="wmode" value="transparent"></param> <embed s...more >>

nested drop down
Posted by Me LK at 11/7/2007 6:49:27 PM
I have a set of drop downs nested in a datagrid. Each drop down is a size or color for an item. Each row of the grid has a button which leads to a cart. When a user selects something from the first row or nested drop downs the page refreshes, the correct item is selected in the list and the an...more >>

What is DetailsView,FormView,DataList,Repeater?
Posted by Paulo at 11/7/2007 5:53:32 PM
What is DetailsView, FormView, DataList, Repeater components? Any differences? VS 2005 asp.net C# ...more >>

Cross Post Pages from Code Behind File
Posted by CSINVA at 11/7/2007 5:37:42 PM
Trying to figure out how to do a cross post page within the code behind file. I need to do some calculations before I send a string value to another pages. Here is an example of the concept I would like to achieve. Lets start with 2 pages, page1.aspx has the text boxes and page2 is where I ...more >>

VS2005 not showing events window in property pane for any web controls
Posted by Sunfire at 11/7/2007 5:13:20 PM
I have an interesting problem. I wanted to see the events available for a control. Yesterday it was a button, today it is a TreeView. When I right click the treeview and go to properties, There is no events button in the toolbar... Any idea how to get it back? ...more >>

How to show user a customed access denied page when windows authentication is used.
Posted by zlf at 11/7/2007 4:50:37 PM
Hello my website has role based access, and user without specific role assigned cannot access specific page in website. When the user try to access a page who has not been granted to access, the web site should redirect the user to an access denied page. Instead, now they are taken to the ...more >>

reader inside a reader
Posted by Guilherme Grillo at 11/7/2007 4:41:32 PM
Friends, Can I execute a Reader inside a Reader? Example: while (readerPerguntas.Read()) { // Puxa as Informações da Tabela de Perguntas string pergunta = (string)readerPerguntas["Pergunta"]; string dboPerguntaResposta = (string)readerPerguntas["Resposta"]; // Cria um Label c...more >>

visual studio 2005
Posted by c676228 at 11/7/2007 4:39:02 PM
Hi all, I must be out of my mind. I used visual studio .net 2003 before and I installed 2005 a while back, but seldom to use it. Recently I was required to start to learn C# asp.net. So I tried to open a web application project in 2005. but I cannot find any asp.net web application or asp.n...more >>

What is using?
Posted by Paulo at 11/7/2007 4:24:06 PM
using (OleDbConnection connection = new OleDbConnection(ConfigurationManager.ConnectionStrings["Access"].ConnectionString)) { using (OleDbCommand command = new OleDbCommand(strSQL, connection)) { command.CommandType = CommandType.Text; command.Parameters.Add(new OleDbPar...more >>

SqlDataSource WHERE clause
Posted by Steven Edison at 11/7/2007 4:21:39 PM
I'm sure this will be a simple one... I have a SqlDataSource that I need a WHERE clause on it ONLY when the querystring contains "ProjectID", otherwise I don't need it. If you come to the page with: .aspx?ProjectID=1039 the DataView will only populate with 1039 projects, otherwise, you ge...more >>

FileUpload1 Access problem
Posted by Rafael tejera at 11/7/2007 3:57:18 PM
I'm having problem with a upload file My server is a Microsoft Windows 2003. IIS 6 FileUpload1.PostedFile.SaveAs(InputPath + "\\" + filename); Access to the path 'C:\Inetpub\vhosts\domain\httpdocs\Contents\Member\Default\400ea89b-1.avi' is denied. I had gave access to aspnet and ...more >>

making a online poll system
Posted by Sunfire at 11/7/2007 3:43:26 PM
Does anybody know how to create an online poll generator? or be able to put me to a place that can help me out? ...more >>

Decimal problem
Posted by Jeff at 11/7/2007 2:09:37 PM
hey ASP.NET 2.0 I'm created a webpage which displays money information. I mean it displays amount of money like this: 23 32,6 456 1,5 The variable holding the amount is of DataType Double As you see from the numbers above, some numbers have decimal and some don't.. I would like t...more >>

what's different between asp application and web site
Posted by william at 11/7/2007 1:32:02 PM
Hi, I posted this in wrong group, so just re-post here. There are two ways to create web-based application or web service, from VS start page, click on File and New, two options you can choose, one is Projects which leads you to create ASP.NET Web Application or ASP.NET Web Service Applica...more >>

Cookies on different servers
Posted by MRW at 11/7/2007 12:57:46 PM
Hello! I've put together a project on my local server which is running perfectly. When I uploaded the code to my server, while it continues to work perfectly for my computer, on any other computer I get an error: -- Object reference not set to an instance of an object. Description: An ...more >>

Response.StatusCode problem
Posted by SushiSean at 11/7/2007 12:56:01 PM
Hello. I need use http header StatusCode as response. For example my page have name check.aspx and I get request like this check.aspx?idcustomer=1395 I use this idcustomer param to check if this customer exist in my database and if exist show page (http StatusCode == 200), but if customer wi...more >>

Voting online, how to
Posted by LVP at 11/7/2007 12:52:36 PM
How to make sure that one person votes only once or make it difficult enough. cookie, IP, Browser Info What is the max amount of info I can get on the client' Need ways? ...more >>

Calendar & time problem
Posted by Jeff at 11/7/2007 12:15:13 PM
Hey ASP.NET 2.0 I've got 2 Calendars on a webpage I'm developing. These Calendards are named "calFrom" and "calTo".. The user will choose from and to date and then perform some operation based on the chosen dates. The problem is that the time is set to 00:00:00 both Calendar.SelectedDat...more >>

Get Data from SQL
Posted by Guilherme Grillo at 11/7/2007 12:09:26 PM
Friends, How can I get a Information of a sql database table to use in code? Example: I have a table in SQL with columns (ID and Name). How can I get the information Name from the database and put in a variable to use for others queries or functions? My system works with C#. Other p...more >>

Question about VS 2005 and Creating Web Site
Posted by Lloyd Sheen at 11/7/2007 11:50:14 AM
When I use VS 2005 Pro I have the following happen: 1: File / New Project I get two "installed" templates ASP.NET web application and ASP.NET web service 2: File / New Web Site I get five "installed" templates APS.NET web site, ASP.NET web service, personal web site,...more >>

Datatypes: HTTPCookie and Strings
Posted by Paul at 11/7/2007 11:39:01 AM
Does anyone know if it is possible to change the datatype of a string into an HTTPCookie? I tried CType and it would not let me do it....more >>

vs2008 deploy to localhost
Posted by rodchar at 11/7/2007 11:38:02 AM
hey all, i created a basic web app in vs2008 and deployed it to my localhost. when i tried to browse the site, i get the iis message "page cannot be displayed." any iideas? thanks, rodchar...more >>

1 Gridview. Dropdown A is column from database, Dropdown B is column from database, Data in A and B must be from same row.
Posted by anonymoushamster@gmail.com at 11/7/2007 11:22:13 AM
Dropdown A is column from database Dropdown B is column from database Data in A and B must be from same row. If user click an item from A, then B is updated to display its data from relevant row. Any ideas how I approach this? ...more >>

AntiXss Using Internet Access?
Posted by s.ferrise@gmail.com at 11/7/2007 11:06:36 AM
We are currently using the AntiXss library in many of our classes for multiple applications. However, we have found that for some reason, when a method is called on it, a request is generated over port 80 to 131.107.115.28. Our web servers do not have open access out to the internet, so I need...more >>

[SilverLight]Article by Laurence Moroney on MSDN magazine
Posted by Oriane at 11/7/2007 11:03:49 AM
Hi there, I would like to learn SilverLight and this article by Laurence Moroney seemed interesting: http://msdn.microsoft.com/msdnmag/issues/07/06/Silverlight/Default.aspx?loc=en. I've downloaded the code, however it doesn't compile as the "Error 1 Type '_Default' already defines a memb...more >>

Content backcolor question (I'm doing this wrong)
Posted by dgk at 11/7/2007 10:46:06 AM
I'd like to set the background color for a content region but the content placeholder doesn't have such a property, so I tried using a panel. The panel doesn't seem to grow as it should to hold all the controls and tables and such. I have to manually set the height which seems wrong. Any sugg...more >>

How to tell if a URL contains a file name?
Posted by Amil at 11/7/2007 10:43:13 AM
I am using httpwebrequest and httpwebresponse. URLs may or may not contain a file name: http://www.domain.com/default.aspx http://www.domain.com The second URL may return the content for default.aspx. Is there any method to figure out the file name returns when the second URL format is...more >>

Redirecting to a website using basic authentication
Posted by sureshpandi at 11/7/2007 10:40:02 AM
Hi I am in a web site A. I want to redirect to a web site B with basic authentication. HttpWebContext and WebRespose methods are downloading a site page as html and this is not helping me. I dont want to get the HTML , i want to redirect to the web site b with basic authentication. ...more >>

ASP page
Posted by Rob at 11/7/2007 10:09:21 AM
I must be doing something wrong... Using VS2005... Just started to play with web pages... I drop a label onto the page in Design mode, but I cannot drag it where I want to... Why ? Is there some property I must change ? ...more >>

Why is a button Click event also called when a textbox TextChanged event is called???
Posted by S_K at 11/7/2007 9:26:22 AM
This is a weird problem.. I have a page with a textbox and a button (along with a bunch of other stuff). Both the textbox and the button have their SEPERATE events defined for the textchanged and click events. When I change the text in the textbox the textchanged event is called as expected. B...more >>

Image adding border-width:0; when I do not specify the BorderWidth property
Posted by Nathan Sokalski at 11/7/2007 9:19:10 AM
I have an Image control that uses the CssClass property to access a stylesheet I am using. When I do not specify the BorderWidth property of the Image control, it adds border-width:0; without me specifying it. Because the style attribute overrides the class attribute in HTML (or in this case, ...more >>

I feel it makes sense NOT to use custom membership & role providers
Posted by alexandis@gmail.com at 11/7/2007 8:54:33 AM
We have tables of logins (users), that differs much from standard microsoft structure - we don't use control question/answer, date fields, etc. But instead we have several additional fields. I expanded membership class and it works for logging in, but going further - creating user - I must mak...more >>

Looping through the CookieContainer
Posted by Paul at 11/7/2007 8:04:04 AM
Does anyone know how to loop through the CookieContainer to see each individual cookie item? Or is the CookieContainer just one variable with all the cookies in it? TIA....more >>

HTML Code embedded within HTML Page as Text
Posted by Paul at 11/7/2007 7:41:04 AM
I know this is a somewhat rudimentary question but... I want to display HTML code on an HTML page but I want the code to display as text. In other words, I want the code not to be rendered as HTML on the HTML page, but rather have it rendered as simple text. This must be easy to do as I se...more >>

Sample Login page
Posted by rkbnair at 11/7/2007 7:31:00 AM
Where can I get a sample login page with all functionalities (such as checking the password in the database, create cookies, check security and so forth). Code in C# would be fine. It it is already available, I don't have to rebuild it from scratch. Thanks. -- test...more >>

Populating a checkboxlist
Posted by JJ297 at 11/7/2007 7:23:30 AM
I am able to populate the checkboxlist but need some assistance in coding my checkboxlist1_selectedIndexChanged code behind page. Here's my stored procedure CREATE Procedure GetClassID @titleid int AS SELECT classifications.[description], titleclassification.classificationid FROM c...more >>

Simple LinkButton
Posted by RN1 at 11/7/2007 4:17:56 AM
An ASPX page, named LinkButton.aspx, has a single LinkButton & nothing else. The code is very simple: <form runat="server"> <asp:LinkButton ID="lnk" PostBackUrl="Page1.aspx" Text="CLICK" runat="server"/> </form> When I run the above code in my local; (Intranet) IIS server, then when the L...more >>

Help with Select Case
Posted by CSINVA at 11/7/2007 1:55:38 AM
Can't seem to get this to work, maybe someone can put me in the correct direction. I was thinking that "lng = ddlWealth.SelectedItem.Text" would pass the item either "en" for english or "es" for spanish and then return the movie back on the screen "lblLang.Text = sMid", but all I get is the num...more >>

Multiple File upload
Posted by John Devlon at 11/7/2007 12:07:23 AM
Hi, Some people like to go on vacation during christmas time, others try to do something they never did before.... I would like to create a multiple file upload page, with some nice progress bars.... You can buy ceveral components on the web but wheres the fun in that ? Creating a page...more >>


DevelopmentNow Blog