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 > july 2007 > threads for friday july 27

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

EventViewer using
Posted by pelegk1 at 7/27/2007 11:50:01 PM
i have 2 questions : 1)i tried to use this code : Public Sub Write2EventViewer(ByVal errorMessage As String) Dim strSource As String = "MyWebSite" 'name of the source Dim strLogType As String = "Application" 'type of the log 'Application Dim strMachine As String = "." ...more >>


checkboxlist - determine checkbox that caused control to fire
Posted by param NO[at]SPAM community.nospam at 7/27/2007 8:09:49 PM
Hi all, I have a CheckBoxList control which has about 10 items. I have set autopostback=true and also set an eventhandler for OnSelectedIndexChanged. The problem is I want to identify which checkbox item caused the event to fire to perform some routines based upon the value of that individu...more >>

Programmatically changing text in a BoundColumn in a DataGrid?
Posted by Jen at 7/27/2007 7:12:04 PM
I have a BoundColumn that displays a numeric value. I want to override the number if it is zero and display a string instead. What's the easiest way to do that? Thanks in advance. ...more >>

EventLogWebEventProvider
Posted by Max2006 at 7/27/2007 6:41:49 PM
Hi, Can I have EventLogWebEventProvider published event log entries as error with red icon? (it publishes them as warning with yellow icons by default) I also like EventLogWebEventProvider to publish entries to a separated category node within event viewer's left hand side group tree. (I...more >>

cookies don't work for pages with UpdatePanel
Posted by John Grandy at 7/27/2007 4:35:38 PM
Is anyone finding that cookies added to the Response.Cookies collection within pages which contain an UpdatePanel do not exist in the Request.Cookies collection when the page is posted back ? These should be complete page postbacks not partial postbacks, because the postback in question is ...more >>

What's Faster...Repeater or HTML Table
Posted by NullQwerty at 7/27/2007 4:03:02 PM
Hey folks, I've got a DataGrid that has gotten a little out of control and really slow because of its complexity (bunch of Template Columns too). For performance reasons, I'm looking to change this. I don't care about development time or even maintainability...at this point I need to go fo...more >>

ASP.NET Validation Problem
Posted by Kuldeep at 7/27/2007 3:57:25 PM
Framework: Visual Studio 2005 Technology: ASP.NET 2.0 Language: C#.NET 2.0 Hi All, We have developed a Web Application on Visual Studio 2005 (ASP.NET 2.0) and deployed it on the Client's Server. [The Client's Server had ASP.NET 1.1 all these days. This is the first application which wil...more >>

Nested user control causes build errors due to missing reference
Posted by Sebastian Paul at 7/27/2007 3:20:31 PM
Hi, I have a user control (EventStructureSelector) used in another user control (ResultsMenu). The class EventStructureSelector defines a public type (ModeType), that is used for one of its properties (Mode). The class ResultsMenu sets the property of the nested control during the PageLoad ...more >>



closing web page that initiated a download?
Posted by ChrisA at 7/27/2007 2:42:00 PM
Two questions: 1. I have several asp.net pages that initiate a file download, via Response.WriteFile(). This works fine, except that it leaves the original page up. These pages are generally launched in new windows, so I'd prefer that they go away by themselves. Can anyone suggest a ...more >>

cookies not persisting
Posted by John Grandy at 7/27/2007 2:06:25 PM
I'm not finding cookies I create to persist. I don't see any corresponding file in C:\Documents and Settings\jgrandy\Local Settings\Temporary Internet Files and the cookie is not present in the Request.Cookies collection on postback. Here is how I am creating the cookie : HttpCookie co...more >>

<input type="hidden" name="strInputElements" value="Name">
Posted by mark NO[at]SPAM bilawchuk.com at 7/27/2007 1:48:26 PM
Forgive me if this seems like a stupid question but I need help... I'm trying to do a simple online form that emails me the results from a few fields. Here is the code: <form action="http://cm1web1/WebSurveyComponents/script/ processform.asp" method="post"> <!-- Mandatory "hidden" obje...more >>

Disabling buttons in ASP.net 1.1
Posted by hplayer03 at 7/27/2007 1:21:50 PM
I'm having major issues disabling a submit button after a form has been filled out. Nothing I've tried so far has helped. I've put if(!Page.IsPostBack) { Session["JustSubmitted"]=false; } else if((bool)Session["JustSubmitted"]==true) { contiuneCode(); } in the page_load public...more >>

Line spacing for ListItems
Posted by Nathan Sokalski at 7/27/2007 1:17:55 PM
I have a BulletedList in my ASP.NET application, and I want the ListItems to have 1 blank line between them. However, Visual Studio will not let me nest tags in the ListItems, and the ListItem does not seem to support the style attribute either. Does anybody have any ideas? Thanks. -- Natha...more >>

Best practices for validating business rules
Posted by hardieca NO[at]SPAM hotmail.com at 7/27/2007 11:03:01 AM
Hi, I'd like to know if anyone knows of any resources detailing the best practices of validating rules in the business tier and providing helpful error messages to users in the UI tier. All the information I have come across seems to revolve around using validation controls on the webpages th...more >>

How to make entire navigation menu item selectable
Posted by Homer at 7/27/2007 10:26:24 AM
Hi, I used a template for my first Web application. I made a few changes to the layer thru its css file. The problem that has been vexing me is the vertical spacing for each navigation menu item. If I do not set the verticalpadding property, the items are rendered too close to one another....more >>

ASP.NET 2.0 Role provider question
Posted by Derrick at 7/27/2007 10:13:17 AM
Morning, I am using the built in asp.net role/user/membership, etc. Have that all working. We have some internal users, and a bunch of external users. Is there any way to remove roles at run time, per request, based on the ip of the request? What I want to do is remove all the "admin"...more >>

Simple Cache Question
Posted by Mike at 7/27/2007 9:48:01 AM
Hi. When using the Cache.Insert method to place an item in cache, how do I specify that the item should be saved on the browser and not the server? By default it is saving it on the server. Thanks...more >>

ValidationSummary ForeColor Prop
Posted by Uriah Piddle at 7/27/2007 9:22:58 AM
Hi Gang, I can't make my ValidationSummary render in red. I set the ForeColor prop to red inline and it renders black. If I set the Font-underline prop to 'True', it renders with a RED underline so I know that the inline props are not being ignored and that the ForeColor prop is being recog...more >>

Check box
Posted by JJ297 at 7/27/2007 9:13:26 AM
Hello can someone assist me... I've added two check boxes to my page <asp:CheckBox ID="ChkYes" runat="server" Text="Yes" /><br /> <asp:CheckBox ID="ChkNo" runat="server" Text="No" / I have a stored procedure set up to enter in the Yes or No answer. How do I set that up on the code beh...more >>

Response.Writefile problems on 2003 server
Posted by Gav at 7/27/2007 8:06:02 AM
Hi all, I'm trying to force downloads from my page specifically for some powerpoint and jpeg files. using the following code: Response.ContentType= "APPLICATION/OCTET-STREAM"; string disHeader= "Attachment; Filename=\"" + sFileName + "\""; Response.AppendHeader("Content-Disposition", disHe...more >>

Using Web Browser COM control in C#
Posted by johnguilbert NO[at]SPAM cwgsy.net at 7/27/2007 7:40:15 AM
HI, Really apreciated if someone could help. I am trying to automate a number of clicks etc for a web site that has been developed. However, this site has a number of frames in it. The frame id = "header"contains a login I need to auto-populate. However the syntax I am trying is not correct...more >>

Crystal Report problem
Posted by Jim at 7/27/2007 6:41:27 AM
I have a Crystal Report which displays correctly in both the development and test environments, but in production it starts printing about half way down the page. I have dozens of other reports but only this one in particular has this problem. Any ideas? TIA, Jim ...more >>

Writing String Data into an Iframe from codebehind ASP.net
Posted by Vidds at 7/27/2007 6:06:00 AM
Hi All, Could anyone help me in resolving this issue? I have an Iframe on my aspx page and I want to insert a String value into that through the code behind.I dont want to use the src attribute of the Iframe. Thanks in advance. Regards, Vidds...more >>

ASP.Net Role based access
Posted by Vikas Manghani at 7/27/2007 6:04:03 AM
Hi I have an intranet application which would be accessed by a small group of users. I want to create a Windows group called 'MyAppUsers' and add all these user accounts into that group. Next I want to enable access to the application for this group and deny access to all other users. I have...more >>

VWD Express 2005 asp.net server vs IIS
Posted by at 7/27/2007 5:33:43 AM
I am using Visual Web Developer Express 2005 to create some simple web applications on a local network. I would like IIS to fire instead of asp.net development server so I can acheive the following: Web application on PC 192.168.2.4 Want to access from PC 192.168.2.5 via internet explorer ...more >>

errors while connecting to Sql server with DSN connect
Posted by Swagener at 7/27/2007 3:40:25 AM
The aim is to get it working on this machine so I can port everything to a Enterprise Version but can't get around this error for the last two days. Any help is much appreciated, as I am not getting any further with this. Internet Explorer Error: HTTP 500.100 - Internal Server Error - ASP err...more >>

1.1: Setting ImageUrl of ImageButton does not work
Posted by DC at 7/27/2007 2:37:43 AM
Hi, why does this not work: <asp:ImageButton id="myButt" runat="server" OnCommand="myButt_kick" ImageUrl="<% =GetMyButtUrl() %>" </asp:ImageButton> ( I get src="<% =GetMyButtUrl() %>" in the resulting HTML) while this (in a DataGrid) works perfectly: <ItemTemplate> <asp:Ima...more >>

how to convert "~/xxx" to AbsoluteUri ?
Posted by jiatiejun at 7/27/2007 12:00:00 AM
I want to convert a path from ~/xxx/xxx.gif to 'http://xxxxxxx/xxx/xxx.gif' how to convert it? thanks btw: the convert function allow 1. '~/xxx/xxx.gif' 2. 'xxx/xxx.gif' 3. '/xxx/xxx.gif' 4. 'http://xxxxxxx/xxx/xxx.gif' to 'http://xxxxxxx/xxx/xxx.gif' fotmat...more >>

ie6 response.flush problem
Posted by rocco.padovani NO[at]SPAM gmail.com at 7/27/2007 12:00:00 AM
Hello, I have a problem with a response.flush code only with some versions of IE6. This is my code: private void Page_Load(object sender, System.EventArgs e) { Response.Cache.SetExpires( DateTime.Now ); Response.CacheControl = "NO-CACHE"; Response.AddHeader( "PRAGMA", "NO-CACHE"...more >>

Flush problem with IE6
Posted by rocco.padovani NO[at]SPAM gmail.com at 7/27/2007 12:00:00 AM
Hello, I have a problem with a Response.Flush code only with some versions of IE6. This is my code: private void Page_Load(object sender, System.EventArgs e) { Response.Cache.SetExpires( DateTime.Now ); Respons...more >>

search engines
Posted by Jassim Rahma at 7/27/2007 12:00:00 AM
i have just uploaded my website and wanted to know one thing plz.. what's the best way to make sure my website will appear corretlly on search engines? ...more >>

how to set div block's height in firefox using javascript
Posted by chenhong at 7/27/2007 12:00:00 AM
I try to set myDivObject.style.height. It won't work. any suggestion TIA ...more >>


DevelopmentNow Blog