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 > june 2005 > threads for wednesday june 22

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

SQL Server does not exist
Posted by Satya at 6/22/2005 11:39:01 PM
Hi all, I am getting the "SQL Server does not exist or access denied" error when i am trying access the SQL Server from a web page. SQL Server is installed in other system. Connection string is "Data Source=CTSINCALSFAW;Initial Catalog=SSGRelo; UID=user; PWD=password;". However i am able t...more >>


Forms authentication: need help urgently !!!
Posted by fredda054 NO[at]SPAM hotmail.com at 6/22/2005 11:08:04 PM
Hi everybody ! I'm working on a asp.net app and have been doing fine until I now try to secure it using Forms authentication. I'm still pretty new to .net and very new to "forms authentication" but I understand it's a pretty neat thing ! Here's my problem: In my solution I have a main proj...more >>

Problem reseting CheckBoxList when not checked.
Posted by Patrick.O.Ige at 6/22/2005 9:34:01 PM
I have CheckboxList Databinded below and that works fine and i can get the selected values after PostBack. But what i have noticed is that when you select a checkbox i.e lets say 3 of them and later unselect them the last one u unselect remains printed out on the screen. How can i reset Chec...more >>

Webservices and "pass through" security
Posted by Tom at 6/22/2005 9:31:38 PM
Hi, I am currently on a project where one site needs to send the user credentials to another site, through web services. Scenario: * "User 1" will authenticate to "Site A" using NTLM ("Site A" provides front-end presentation of data) * "Site A" will request confidential information abo...more >>

What's the simplest way to do URL rewriting?
Posted by Alan Silver at 6/22/2005 9:12:22 PM
Hello, I would like to be able to use an URL like ... http://www.whatever.com/order/123 and have it translated into ... http://www.whatever.com/orders.aspx?orderid=123 I have searched for articles on URL rewriting and found loads. The trouble is, they're all so busy being clever tel...more >>

asp.net 2005 question re: "reference to a non-shared member requires an object reference"
Posted by ce at 6/22/2005 8:46:20 PM
I've got a class "A" which has a shared (static) method "Test". In an asp.net page i can use it like so: <td><%=A.Test()%></td> and all is fine, but if instead of a page it's an ascx (control) then i get the following error in the same scenario: "reference to a non-shared member require...more >>

does Session_End event fire when the worker process recycles?
Posted by srivalli c via DotNetMonster.com at 6/22/2005 8:46:06 PM
Hi, When asp.net worker process or application pool recycles, is it guaranteed that the Session_End event fires for all active sessions? [BTW, I'm using In- Proc session mode, Win2003 server and IIS6.0] Any help is greatly appreciated. Thanks in advance. Srivalli. -- Message pos...more >>

dynamic button creation with event handling?
Posted by Peter Vermilye at 6/22/2005 8:08:54 PM
How can I dynamically create buttons and wire them to an event handler? I have seen how I can add buttons to an event handler that are pre-created as part of the codebehind using AddHandler, but I can't use AddHandler with a button that is created locally, nor can I seem to create multiple butto...more >>



Dynamic table information?
Posted by Peter Vermilye at 6/22/2005 7:38:01 PM
I have an asp:table I am populating at pageload time. This works fine. On the same page I have an asp:dropdownlist which I also populate. These two controls are not related to one another (other than being on the same page....I use the dropdownlist to dynamically change the contents of a label...more >>

Web Access Failed creating new ASP.net Web App
Posted by Brandon at 6/22/2005 7:18:02 PM
I'm getting a Web Access Failed dialog when trying to create a new ASP.NET Web Application. VB.net 2003 on XPSP2 SBS 2003, IIS6 In IIS, I created a new site with a "testsite" host header specified to distinguish from the default site. I added a CNAME record, testsite.servername.local a...more >>

How do I format a number when databinding?
Posted by Alan Silver at 6/22/2005 7:10:20 PM
Hello, I have a repeater on a page, and one of the data items is a price. I would like to be able to format this to ensure it has two decimal places, but can't work out how to do it. Suppose the ItemTemplate contains... <li>&pound;<%#DataBinder.Eval(Container.DataItem, "priceeach")%> ...more >>

How to reference method in usercontrol
Posted by (dik NO[at]SPAM lul.com) at 6/22/2005 6:12:59 PM
Hi I want to call a method called test() on my user control type MyControl (see below). The question is how to reference this? I tried : (MyControl)(Panel1.FindControl("myusercontrol1")).test(); page: <asp:panel id="Panel1" runat="server"> <TABLE id="Table1" runat ="server"> <TR> ...more >>

Dropdown color
Posted by tshad at 6/22/2005 5:09:01 PM
Is there a way in asp.net to color individual items? I know I can set the color of the background and foreground, but what about an individual item in the drop down? Thanks, Tom ...more >>

Cannot open local machine store
Posted by Eric at 6/22/2005 2:36:28 PM
My ASP.Net application is attempting to run the following code: X509CertificateStore store = X509CertificateStore.LocalMachineStore(X509CertificateStore.MyStore); bool result = store.Open(); "result" is false, and the store is not open. What am I missing here? How can I open that s...more >>

Passing parameters to a page
Posted by UJ at 6/22/2005 2:24:26 PM
OK, here's a really REALLY dumb question but I can't remember how to do it - I need to pass a parameter as part address line (www.foo.com?fred=no). I can program it easily to call the page. Question is - how do I get at the variables (fred) on the other end? TIA - Jeffrey ...more >>

Absolute ReturnUrl in Asp.Net 1.1
Posted by mgutty at 6/22/2005 1:54:01 PM
I have two servers. A login server y other server, i'm using a "cookie shared" (both servers with the same machine key) my problem is: when not authenticate user to access server2 this user is redirect to server1 (login server) but with RELATIVE url of the server2 ("ReturnUrl" in url)...more >>

Reading portions of the web.config file
Posted by Jeremy Chapman at 6/22/2005 1:53:13 PM
Is there any way, from a web application to programatically access the httpHandlers section in the applications web.config file? Specifically I want find, at run time, the value of the path variable in the "<add vert=...." line. <httpHandlers> <add verb="POST,GET" path="test/*.ashx" type="...more >>

how are asp 3.0 and asp.net different/similar?
Posted by Steve Richter at 6/22/2005 1:45:34 PM
I am interviewing in a day or two for an asp 3.0 job. The headhunter also mentioned c++ MFC and COM. I can handle the mfc and com stuff, but the only asp I know is asp.net. Based on that, what do I already know and what dont I know about asp 3.0? also, how will COM objects be routinely use...more >>

uploading xml
Posted by John at 6/22/2005 1:39:01 PM
hey, i need to be able to take a file the user/other program sends me like www.genericaddress.com/xml/default.aspx?xmlFile="filepath" or some other similar way and upload it to my server, parse it and input it into a db all without any user input except the initial web request in the addres...more >>

issue with overriding ProcessCmdKey() in DataGrid
Posted by jibran at 6/22/2005 1:33:33 PM
Hello. I have wrapped the DataGrid control with my own class (SmartDataGrid) adding some necessary functionality. My current webform has 2 SmartDataGrids. The first is populated by selected information from a drop down box. The second datagrid is populated by viewing details from a row of ...more >>

Dynamic Controls in User Control; page/control lifecycle question
Posted by Frankie at 6/22/2005 1:17:51 PM
I have a user control into which I insert a bunch of controls dynamically. I have it all working just fine - Everything is there on Postback, etc. I load this user control into a hosting ASPX page at runtime during the Page_Load event procedure of the hosting ASPX page. Question: Would it ...more >>

soap timeout on big report
Posted by Antonio at 6/22/2005 12:30:52 PM
Hi, my web application connects to a web service. The web service runs a long running sql server stored procedure. The stored procedure takes 4 minutes. I get timeouts. In my web service connection string it has "connect timeout = 300" This is 5 minutes to wait for a connection handshake rig...more >>

Easy way to use bound combo with foreignkey id/value on webform?
Posted by Adjo at 6/22/2005 12:09:08 PM
Okay, I've seen all the examples of using comboboxes on webforms when using simple values. And in the issue-tracker starterkit there is a way to use comboboxes with id/value foreign keys in a smart (but hard!) way. I think every developer needs bound comboboxes to store foreign keyvalues while ...more >>

ignore this post
Posted by Roy at 6/22/2005 12:01:53 PM
my posts aren't showing up for this ng in particular. this is just a test. ...more >>

download text/plain file without .txt extension
Posted by Nate Hekman at 6/22/2005 11:31:14 AM
I have an aspx page that generates a file on the fly for a person to download. It sends these http headers: Content-Type: text/plain Content-Disposition: attachment; filename="myfile.lic" The file being downloaded is a license file and MUST be stored with that ..lic extension. ...more >>

Paging Datagrid - Prev / Next will not appear as links
Posted by Darren at 6/22/2005 11:13:37 AM
Dear Groups I've used paging with a datagrid in C# at least a hundred times, but for whatever reason, I cannot get the prev /next to appear as links. It is absolutely certain that the number of records exceed the page size. Code is as follows: <asp:datagrid id="grdStores" runat="server" ...more >>

Couple of easy questions
Posted by Sccr18 at 6/22/2005 11:12:03 AM
I just have a couple of easy questions: 1. In Asp.net using Vb is there a way to list all the possible characters without listing them all like Char() = "abc..."? 2. I was trying to set the focus to a text and was not able to by using txtEmp.setfocus(). I read somewhere that this may not be p...more >>

ASP.NET + Excel Download
Posted by George Homorozeanu at 6/22/2005 11:06:06 AM
We create an excel object with Excel/Office Interop Assembly and we want to offer this excel object as download without creating physically the file. The download window appears with "Save As.", "Open", etc Problem: The file we get as download is not the excel object we created. Inste...more >>

Page_Load call during POSTBACK
Posted by Olivier Matrot at 6/22/2005 10:43:00 AM
Hello, This has probably been asked several times, but It must be clarified for me. I would like to know why sometimes during a postback Page_Load is called after the function marked for postback. Here's the deal : From now on, I set CurrentThread.CurrentCulture only during PageLoad. so dat...more >>

Datagrid boundcolumn and edititemtemplate question
Posted by needin4mation NO[at]SPAM gmail.com at 6/22/2005 10:17:17 AM
Hi, I have a datagrid with boundcolumns for output. I have an edit button, can edit and update One of the textboxes is a paragraph. When the boundcolumn is displayed it looks fine, wraps, readable, etc. When I go into edit mode this becomes texbox much smaller than when displayed. It is ver...more >>

You’re Opinion on SQLDatasource Performance?
Posted by artificer at 6/22/2005 10:11:00 AM
I want to develop a web application that will manage the online registration and class schedule selection process for a small university in the Caribbean. The application should support around 50 simultaneous users to begin with and if the application becomes successful maybe it will grow up...more >>

ASPNET Account unable to access network
Posted by thinkfr33ly NO[at]SPAM gmail.com at 6/22/2005 10:05:34 AM
I've been developing on this machine for months and have created many ASP.NET applications that connect to various remote machines, mostly databases. All of a sudden, I am unable to connect to my SQL Server even though I have a valid connection string (no, I'm not using integrated security). ...more >>

DataGrid edit mode
Posted by JezB at 6/22/2005 9:50:56 AM
Anyone know if I can allow my DataGrid to be put into Edit mode so that all rows and all columns (or those that I choose) are editable? I know standard DataGrid facilities exist to edit one row at a time but I wondered if it's at least possible to allow full grid editing via javascript, html t...more >>

Network Service account over network
Posted by Jane Davis at 6/22/2005 9:39:19 AM
Hello I have a web server running ASP.Net and would like to be able to upload documents from a website on this server to a share on a seperate server (not in same domain or workgroup). Is this possible as it stands (what permissions would I need for the Share folder - I assume it uses the N...more >>

A formula field for datalists? Bad Idea?
Posted by Roy at 6/22/2005 9:38:22 AM
Ok, here's my problem and I'm a first year webbie, so you'll have to bear with me. I'm converting some Access reports over to a .NET website. It's your typical Access cluster$#@$ (pardon my French). The report is essentially a single row with 10 columns. Each column holds data mostly independent...more >>

OnItemCommand in DataList, how to manipulate controls in Selected Row
Posted by bdwgarth at 6/22/2005 9:34:22 AM
I am working with a DataList which consists of dynamically changing number of rows and static number of columns. There are twelve columns and each is a singe CheckBox representing a Yes or No value(checked or not checked). I have a 'Check All' button (using OnItemCommand) for each row that nee...more >>

adding new rows to datagrid
Posted by Asha at 6/22/2005 8:59:03 AM
grettings, i have been searching the web for articles on how to add new rows to datagrid... most of it does postback. do anyone here know of a good article which uses javascript to add new rows to a datagrid? would also appriciate if you could give me some nice articles on how to add new...more >>

Q: deploy my project
Posted by JIM.H. at 6/22/2005 8:52:04 AM
Hello, I used copy project and create a copy of my project with file required at run time to deploy my asp.net application to a DMZ web server. I copied the folder to Web sever and created a web site by pointing this new folder. I have web site name as MySite. How should I launch this in the ...more >>

Exception Error
Posted by JackO at 6/22/2005 8:35:23 AM
I am getting the following error: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 192: Line 193: Private Sub btnDeleteUser_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelet...more >>

Desing Question
Posted by Amir Ghezelbash at 6/22/2005 6:52:09 AM
Hey Guys, I have a question; it’s a design question, I am developing an application, where in this application users upload a database of emails in a CSV file format...now what I have done. When they are uploading the CSV file, I read the CSV file and return a Data Table representation of i...more >>

DataList column alignment?
Posted by Ben Fidge at 6/22/2005 6:34:03 AM
I'm using DataList to present tabular data but am often having problems with some rows column alignment being out of synch with the rest of the rows. My DataList looks similar to this...: <asp:datalist id="DataList1" runat="server"> <HeaderTemplate> <table border="0" cellpad...more >>

Calendar Control Question
Posted by Frank Bishop at 6/22/2005 5:14:07 AM
I have a user control that will open and close the calendar control when the user clicks on an anchor tag. Instead of having the user remember to close the calendar after they make a day selection, I would like the calendar to close itself after the day selection. I'm using the day selected to f...more >>

Http Handlers
Posted by kiki NO[at]SPAM dyky.co.uk at 6/22/2005 5:09:49 AM
Hello, I have just started on Http Handlers and i have a question to ask (which is so trivial but can find anything on web). How do i add an ashx and an ashx.cs file on a C# project?? Thank you ...more >>

How do I repeat html output in aspnet and c#?
Posted by Salvador at 6/22/2005 4:28:02 AM
Hi, Maybe is a simple question but I found difficult to find the answer. Context: I am creating a site where designers ONLY touch the ASPX page and I.S. touch the code behind. Task: I have a simple page that list a number of offers based on info from the system (no dabatase, no bound ...more >>

Replicate keypress in code asp.net
Posted by csgraham74 at 6/22/2005 4:05:06 AM
Hi guys, i have created a asp.net application and use an HTA to view the aplication. The only way that i know to exit the HTA screen is to press ALT & F4. What i want to do is to write a piece of code that replicates this key press. E.g. on an exit button this code is called and it exits...more >>

Block codes on ASP.NET
Posted by Salvador at 6/22/2005 3:49:03 AM
Hi, Simple question, on normal HTML tags I can do the following <% for (int i=0; i < Total; i++) {%> <tr> <td><%Response.Write (i); %></td> </tr> <%}%> How can I do the same with aspnet tags? it complains when I do this <% for (int i=0; i < Total; i++) {%> <asp:TableRow> <asp:Ta...more >>

ViewState vs Session
Posted by Vishwanathan Raman at 6/22/2005 1:47:06 AM
Hi I am aware of the technical differences.But would like to get it clarified.Given an oppurtunity is ViewState storage more efficient than Session based.I do not have a scenario where I need to share information across pages but have lots of information to cache for that page.Can you ple...more >>

uploading permissions / virtual directories - help!
Posted by dhnriverside at 6/22/2005 1:24:04 AM
Hi I've got a web app that I've installed on a client computer. Basically it's an intranet, and has a section where staff can upload media files for all to see, so theyre all in a conveinient place. Problem is, they want to store the media files on a diff directory, one that is OUTSIDE o...more >>

Append Data
Posted by Reggie at 6/22/2005 12:35:51 AM
Hi and TIA. I have an OleDB connection to an Access db which I connect to and place data from a table into a recordset. What I want to do is copy this recordset to an SQL table. I have no problem connecting to the SQL table but can't figure out how to pump the data from the recordset into t...more >>

UserControl with parameters
Posted by Kiyomi at 6/22/2005 12:00:00 AM
I have created a UserControl which takes two input parameters to run. I now would like to use this UserControl in aspx page in which the user can supply two parameters. How can I pass these parameters from aspx to the UserControl ? Thank you very much for your help. Kiyomi ...more >>

Forms Authentication
Posted by Serdar Kalayci at 6/22/2005 12:00:00 AM
Hi there, I have a website which utilizes forms authentication under domain name like www.mydomain.com... On some pages I have to redirect https://secure.mydomain.com for ssl issues. The secure site points the very same directory of the site. The problem is when I redirect to the secure sit...more >>

asp.net newbie question on url redirect to a file for downloads
Posted by news.microsoft.com at 6/22/2005 12:00:00 AM
All, i have created a page that allows information to be extracted from a database i am able to save this into a virtual folder no problems. what i want to do is then redirect through url to all the user to download this file. can somebody direct me in the direction of a good site :-) ...more >>

How do i add a cleint side button to a table?
Posted by Julia at 6/22/2005 12:00:00 AM
Hi, I have a table with 3 columns,the middle column should contains a button for each row when clicking the button I want to move the value from the 1st column to the third column without post back how exactly I add client side button to a row? Thanks in advance ...more >>

I want to make common connection string for database
Posted by Alex Smith at 6/22/2005 12:00:00 AM
Hi Friends I want to make common connection string for database. I can not use Web config file, so please give idea excluding web.config file. Thanks. Alex ...more >>

Will an ActiveX control serve this purpose?
Posted by Shawn at 6/22/2005 12:00:00 AM
Hi. I've never created an ActiveX control before, so I know little about what it is capable of and what its limitations are. My problem is this: I have to create a way to send multiple documents from the web server to a printer on the user's network. The way it works today the user has to manu...more >>

Working with Login controls in ASP .Net 2.0 Beta 2
Posted by Pavan Apuroop at 6/22/2005 12:00:00 AM
Hi All, I am using ASP .Net Beta 2 to develop web applications. In one of my web applications, i am using 'CreateUser' wizard to create users for my site. Earlier, when i was using Beta 1, i have stored all the user information in MS Access Database. Now, in Beta 2, the default stora...more >>

Forms Authentication Not Working
Posted by Matt at 6/22/2005 12:00:00 AM
I have something weird hapenning on my forms authentication, which to me seems to be straight out of the MS help files After the user logs in, they shoul dbe redirected to the resource they were trying to reach. But all that happens is that they are reirected back to the login page. From tr...more >>

Simple Date Problem
Posted by Chris Mahoney at 6/22/2005 12:00:00 AM
Hi I have a one-line web app which works on my test server but not on the remote server. The line of code is: Dim myDate As Date = "31/12/2005" This works here (New Zealand), but when I upload it to the server (USA), I get the following error: Cast from string "31/12/2005" to type 'Dat...more >>

How to get physical path
Posted by Yoshitha at 6/22/2005 12:00:00 AM
Hi I am developing an application in which am using the windows application template. In one of the form i'll place a text box control and a button control, if i entered the virtual directory name in this text box then it has to show me the output the physical path of the virtual directory i'...more >>

execute batch file containing dos commands using asp.net application.......
Posted by DB at 6/22/2005 12:00:00 AM
Hi All, I have to execute dos command containing batch file using asp.net application. Code for batch file execution is working properly when I tried it with console application but same code is not working with ASP.net application. Help will be useful......... Thanks n Regards, Deepak ...more >>

Client-side JavaScript cannot delete cookie written by ASP.NET
Posted by Henri at 6/22/2005 12:00:00 AM
Hi, My page saves user's login on user's computer using a cookie: Dim expires As Date = DateTime.Now.AddMonths(1) Dim cookie As New HttpCookie("login", loginValue) cookie.Expires = expires Response.Cookies.Add(cookie) On the same page, user can click on a button to remove this cookie ...more >>

Session is lost during error handling
Posted by Oscar Thornell at 6/22/2005 12:00:00 AM
Hi, I have an ASP.NET page that generates an Exception... The Exception is not caught in the executing method...so it propagates to..the Page_Error event handling method.. In that method the Exception is handled by the client exception policy...basically it logs the information coming from ...more >>

€ shows ?. Why?
Posted by Shapper at 6/22/2005 12:00:00 AM
Hello, In my database I have a text field. In my page the € character is replaced by ? every time it shows up. Why? How can I solve this? Thanks, Miguel ...more >>


DevelopmentNow Blog