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 > february 2005 > threads for saturday february 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

DES Crypto not working ???
Posted by Alex Nitulescu at 2/12/2005 11:47:12 PM
Hi. I have the following simple code, and yet.... I enter for instance "Encryption" and I get back ">ZH(5f^0" Web.Config: --------------------------------------------------------------------- <appSettings> <add key="DESKey" value="MAMMAMIA"></add> <add key="DESIV" value="PAP...more >>


Dynamically Inserting an ID to Each Row
Posted by sling blade at 2/12/2005 11:35:44 PM
I am creating a table using a datalist and I want to add an ID to the html tag <tr> of each row created (eg <tr id="1">). I have a JavaScript function which will change the back color of each row based on its ID. I have tried using the OnItemCreated event to add an ID to the row. Here is the c...more >>

<asp:checkboxlist>
Posted by Simon Cheng at 2/12/2005 11:20:22 PM
Hi, For the following form: <form runat="server"> <asp:checkboxlist id="list" runat="server"> <asp:listitem runat="server" value="Cash" /> <asp:listitem runat="server" value="Check" /> </asp:checkboxlist><br/> </form> I get the the attach...more >>

Variables?!?
Posted by ChrisN at 2/12/2005 10:46:15 PM
Hi All, I don't understand why this is happing. If anyone knows this please fill me in. I've simplified my question for the sake of simplicity that's why my example sounds cheezy. 1. I have a VB.Net page with the following items: -Textbox for Author -Button for Okay -A few other obj...more >>

Resume a session
Posted by RC at 2/12/2005 10:34:01 PM
hi, I now got a session ID. I want to try to resume a session by closing the current browser and open a new one. Then pass the session ID in URL query string on new browser to resume the session that is running at the closed browser. Is it possible to resume a session like that? Any sampl...more >>

Problem with the portal demo from Whidby
Posted by Wernfried Schwenkner at 2/12/2005 9:15:02 PM
I have compiled the portal sample comming whit whidby. While running it ftom the IDE it works, all buttons on the start page are shown. When I deploy the portal with the Menu "WebSite/Publish", the login, download and create new account button isn't shown. A compare of the html source code ...more >>

What's the difference between web service and web application?
Posted by KC Eric at 2/12/2005 8:33:15 PM
Hi all, in VS.net 2003, in the New Project page, I saw ASP.Net Web Service and ASP.Net Web Application. What's their difference? When should I use which one? Thanks! KC ...more >>

Hosting, GAC and casching
Posted by Martin Knott at 2/12/2005 8:30:57 PM
I'm nearly at the stage of deploying a web app and I'm looking for a host. Most packages give stats relating to bandwidth and number of email accounts and so on, but for an ASP.NET host I've seen nothing about whether they allow you access to the GAC, or whether they have any particular poli...more >>



general architect question
Posted by Chris at 2/12/2005 7:29:06 PM
In the database design I'm using a soft delete (a column flaged as IsDeleted) instead of a hard delete, what should you do if the item is deleted in one table yet you go a create a dropdownlist with a list of items and record you bring up has that soft deleted item so you try to "set" the sele...more >>

How to force a reload of cached user control?
Posted by Edward Chung at 2/12/2005 7:19:43 PM
I create a user control that is used as a page header for all application's pages. The user control contains a HyperLink control named accountHyperlink whose text can either set to "Account/Logon" or "Account/Logout" depending on whether the user is logged on. I want to cache this user con...more >>

How do I install my .NET ASP app on Windows 2003?
Posted by David Thielen at 2/12/2005 5:31:03 PM
Hi; Is there a url to a page that explains how I should install my ASP .NET app on to Windows 2003? -- thanks - dave...more >>

?? dropdownlist in datagrid, not defaulting to current value ??? THANK YOU
Posted by jason NO[at]SPAM cyberpine.com at 2/12/2005 5:06:15 PM
Pardon my ignorance on this. The below code works, except, when I edit a record and update the two drop downs take the first entry in the dropdownlist if not selected. I'd also like the dropdown to show the current value in edit mode. I'm sure this is a common question. I've reviewed several rel...more >>

Problem: Request time out
Posted by Ammar at 2/12/2005 4:40:47 PM
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length is more that 1249 bytes, then the progress bar of the browser will move too slow and then displayi...more >>

WebDav IHttpHandler
Posted by Brian Pearson at 2/12/2005 3:59:03 PM
Does anyone know of an ASP.NET solution for handling WebDav requests? I want to be able to trap WebDav requests in an ASP.NET module (so that I can do some custom authentication), then call into an HttpHandler so that the request can be processed. It seems to be that once the request is di...more >>

Page_Load vs Button_Click
Posted by David Thielen at 2/12/2005 3:07:01 PM
Hi; The examples I have seen all use "if (IsPostBack) { ... }" to handle an action when the user presses the submit button. However, it seems to me a more object oriented approach is to use a callback event attached to a button. Is there a good reason to use one over the other? -- ...more >>

When/how redirect to a different ASP .NET page
Posted by David Thielen at 2/12/2005 2:29:01 PM
Hi; The ASP .NET book I have only talks about putting everything in a single aspx and aspx.cs file. However, it seems to me you want to redirect to a different page/class for each logical page. Which brings up 2 questions: 1) When the user presses submit, is best practice to immediately re...more >>

How to display a pdf document (not a file)?
Posted by David Thielen at 2/12/2005 2:21:04 PM
Hi; I have a case where after the user clicks the submit button, I need to display a pdf document. I have the pdf file in memory, it is not on disk so I can't redirect to a file. How can I return the document the browser wants as a type application/pdf and feed it the file image as the d...more >>

HyperLinkColumn
Posted by barranr at 2/12/2005 1:11:59 PM
Hi, is it possible to have 2 hyperlinks in a single HyperLinkColumn, one to edit and one to run a filter thanks ...more >>

asp.net error message
Posted by Aaron at 2/12/2005 12:47:45 PM
how can i configure asp.net so that whenever an error occurs it would show a blank page, not the default error message. Thanks. ...more >>

CS0006: Metadata file "../bin/WebApplication1.dll" could not be found
Posted by John Doe at 2/12/2005 12:38:01 PM
Hi, I've got the following error when building my ASP.NET application called WebApplication1: Preparing resources... Updating references... Performing main compilation... error CS0006: Metadata file 'c:\inetpub\wwwroot\WebApplication1\bin\WebApplication1.dll' could not be found Build...more >>

Connecting to Web site with Win Forms Application
Posted by Otis Mukinfus at 2/12/2005 12:28:25 PM
I need to connect to a web site like this: http://www.somewebsite/bin/xml?username=xxxx;password=yyyy and then process the returned XML stream in a Win Forms Application. Can any one point me to the namespace or help item in VS.NET that would be used to do this? Otis Mukinfus http://ww...more >>

Page Level and Applicatoin Level Custom Errors
Posted by rranveer NO[at]SPAM gmail.com at 2/12/2005 11:51:09 AM
I've been searching for ways to perform custom error handling in an asp ..net web application and have found two ways of doing it: Page Level and Application Level. What I'm curious about is, which one to use? As I'm somewhat new to asp .net, I'm unsure if both Page Level and Applicatoin Leve...more >>

ListBox question
Posted by Rob at 2/12/2005 11:17:51 AM
I have a listbox which is populated by a dataset: 'initiate the DataSet and all the rest here my sql statement is this: SELECT company_id, name, description FROM companies ds = DataControl.GetDataSet(sql) lstCompanies.DataSource = ds lstCompanies.DataTextField = "name" lstCompanies.DataVa...more >>

Determine if record exists
Posted by Opie at 2/12/2005 11:08:54 AM
What would be a more efficient way for me to determine if a record in an SQL DB table exists? Right now, I have a try/catch like this: try { if(checkcom.ExecuteScalar().ToString()==tbBillNumber.Text) { .... } } catch { ... } Is there any way I can do ...more >>

listbox/dataset question
Posted by Chris at 2/12/2005 9:53:01 AM
I'm trying to add an extra row (option) above the list that I create via a dataset. I've tried adding a datatable to add a row but can't seem to get it to work. I'd rather keep it as a dataset. Code: ddrmaapprovby = listbox Dim dstEmployees As DataSet Dim dadEmployees As SqlDataAdapter ...more >>

Viewstate
Posted by Steven Licciardi at 2/12/2005 9:04:08 AM
I have an aspx page with nothing in it but one literal, which I populate with straight forward html (the html consists of about 25 tables with approx. 30 rows each and two columns with text in each cell). When I click to view the aspx page it takes longer than I would have thought for me to ...more >>

Set TextBox Background Color
Posted by Wayne Wengert at 2/12/2005 8:56:46 AM
I am treying the change the background color of textboxes that have invalid data. I am trying the code shown below but when I run it, I get an exception? Any thoughts on why this doesn't work? Wayne ================================= Dim normColor As Color = System.Drawing.Color.White ...more >>

Takes forever to create a new project
Posted by David Thielen at 2/12/2005 8:25:02 AM
Hi; On my home computer (work computer is fine), when I create a new ASP .NET project, it takes minutes (no exageration) for it to create the project. It is paused forever on a dialog that says something like connectiong to localhost/project. And when I start the debugger, it takes about...more >>

WebControls Download - can't find
Posted by Sandy at 2/12/2005 8:13:02 AM
I can't find the download for "Internet Explorer WebControls Download." I have searched throughout the MS site and on every link I have come to with the above description when I click, I am taken to: http://msdn.microsoft.com/404/default.aspx Any ideas on how I can get these ...more >>

User Control and Controls IDs problem
Posted by Raed Sawalha at 2/12/2005 4:17:01 AM
I have a user control with name FoldersManager in the user control i have a datagrid to view items retrieved from XML file in ItemDataBound i did if(e.Item.ItemType == ListItemType.Header) { e.Item.Cells[0].Text = "<input onclick='refresh(this);' type=checkbox id=allmsg>"; } when I ...more >>

access your desktop application via browser
Posted by adacal at 2/12/2005 3:37:03 AM
suppose I've an application running on my desktop computer running windows xp pro. I would like to access this application over Internet wherever I'm via standart web browser. My aim infact is just carrying the interface of an application over Internet without using RDP protocol which requires...more >>

CPRT (Client Perceived Response Time)
Posted by Bidyadhar Patra at 2/12/2005 3:09:01 AM
Hai, Could any body help me out in finding out the Client Perceived Response Time for an ASP.Net application. CPRT is measuring the time it takes for a page to load from browser click to browser click. This takes into account network latency incurred by routing, firewalls and proxies....more >>

Current namespace /class
Posted by Islam Elkhayat at 2/12/2005 2:50:35 AM
How can i get my current Namespace & current class in my webform... I tried alot but i get ASP.myformname_aspx... Is there a way to get Current Namespace, class?? ...more >>

Clearing Page's Control
Posted by Ali at 2/12/2005 2:23:03 AM
I used to clear my page's control in Visual Studio 2003 using code like this: Dim c As Control For Each c In Page.Controls(1).Controls If TypeOf c Is TextBox Then CType(c, TextBox).Text = Nothing End If If TypeOf c Is DropDownList ...more >>

FormsAuthentication.RedirectFromLoginPage question
Posted by Alex Nitulescu at 2/12/2005 2:13:43 AM
Hi. I have two questions, please: a) If I go DIRECTLY to Login, there's no Request.Params("ReturnURL"), and therefore RedirectFromLogin won't work, because it will try to go to a page named "Default", which in my case does not exist. Short of creating a "mandatory" Default page, what can I ...more >>

File Upload Error
Posted by Ali at 2/12/2005 1:59:02 AM
I am facing some problem. I uploaded some different files (jpg, bmp, doc, pdf) into SQL Database using ASP.NET and VB.NET and I tried to download them again. all files worked properly unless the pdf files. The download goes fine but when I try to open them, I receive an error declaring that th...more >>


DevelopmentNow Blog