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 2004 > threads for tuesday february 24

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

content expiration?
Posted by Daenil of GL at 2/24/2004 11:23:44 PM
Ok, I am looking for how you make a webpage expire immediately so when you hit refresh, you receive new data. In old ASP, you would just do <% Response.Expires = 60 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Respons...more >>


Sample needed
Posted by John at 2/24/2004 10:55:40 PM
Hi Is there a simple asp.net site with MS Access backend that I can use as a learning example? Thanks Regards ...more >>

dynamically load a HTML page (or a Word document),
Posted by KnotKnormal at 2/24/2004 10:21:05 PM
I would like to dynamically load a HTML page (or a Word document), which is embedded in a table when the user clicks on a hyperlink to go from HTML page one to HTML page two. For example, I would like the secretary at a school to update a Word document concerning homework assignments. This Word do...more >>

modify pdf files
Posted by DalH at 2/24/2004 9:38:28 PM
I'm searching for a dll that I can include in my project that edits text in a pdf file. This is what I would like to do: I have a pdf that contains the text 'varFirstname' in the correct font and the pdf is already in the correct size. The .NET project needs to change the 'varFirstname' with ...more >>

Dynamically generating image buttons with text
Posted by CGuy at 2/24/2004 8:15:54 PM
Hi Gurus, I have a rather unique requirements in my ASP.NET application - I need to create image buttons on the fly while rendering a page. The scenario is like this - the user can enter some text (max 10 chars) in a page and when he saves the information, the next page should displa...more >>

Set columns in dataGrid
Posted by Mark Goldin at 2/24/2004 7:51:17 PM
I have this code: //Perform search xslt.Transform(new XPathDocument(Server.MapPath("TIPTREECAT.xml")), xslArg, sw, null); StringReader sreader = new System.IO.StringReader("<root>" + sw.ToString() + "</root>"); this.dataSet.ReadXml(sreader); this.DataGrid.DataSource = dataSet; this...more >>

POST & GET Behaviour
Posted by Krishna at 2/24/2004 7:46:07 PM
I created a sample aspx page with a server side Button Control. OnClick event of Button streams an excel file to the client via the following code.. response.Buffer =true response.Charset = "" response.ContentType = "application/vnd.ms-excel"; response.AppendHeader("Content-Disposition", "attac...more >>

Differences between running a site using SSL or not
Posted by NWx at 2/24/2004 7:40:20 PM
Hi, I design a site in ASP.NET, without SSL. But the final version I want to run with SSL. Is there any difference regarding designing application for running with and without SSL, beside installing the server certificate and changind URL from http to https? Regards ...more >>



Handling shared classes in multiple sessions
Posted by Don at 2/24/2004 7:30:05 PM
I'm asking this for a friend of mine, so forgive me if I'm getting some of the terminology wrong (I don't have any experience with ASP.NET). I've got an ASP application that has some classes that have shared members. How do I set it up so that each individual session uses a different "copy" of...more >>

QueryString
Posted by Mark Goldin at 2/24/2004 7:06:26 PM
How can I pull data on the server from QueryString? In classic ASP I do Request.QueryString("valuename"). What about doing something like this in ASP.NET? Thanks ...more >>

Anout ViewState
Posted by Benny at 2/24/2004 6:49:00 PM
Hello Experts, Currently I writing a web application using visual studio .net with C#. In the customer information page, which store customer information like name, phone, address... etc. The transfer rate usage is about 2MBs every time I insert a new customer record, which is much larger th...more >>

A question on Connection Pooling when using sockets
Posted by Vinod at 2/24/2004 6:46:20 PM
All, .NET Web Service needs to talk to third party software through TCP/IP sockets. Do we have any .Net Framework in place which can do a TCP/IP Socket connection? Any thoughts on how to do a connection pooling when using sockets? ...more >>

error when connecting to database question in asp.net
Posted by dk at 2/24/2004 6:21:14 PM
this is the DSN connection string in web.confi <add key="DSN" value="server=localhost;database=userDB;Integrated Security=SSPI" / any idea regarding what is causing this following error message when the connection object trys to open tia d Server Error in '/FormsAuth' Application ---------...more >>

please someone help me ...
Posted by Alessandro Rinaldi at 2/24/2004 6:18:53 PM
Hi all, what's wrong in this ? I added a simple Control with viewstate (ie : label, or my User control... ) dynamically in the controls collection of a TD cell created dynamically too, i lose the viewstate. not in the postback but just at the First time the page running ! Sincerly the td ce...more >>

Password Fields and Postbacks
Posted by dwa at 2/24/2004 5:03:12 PM
All, We're trying to determine how to deal with password fields losing their state on a post back. We've got a form that implements post backs to carry out server side processing. As a result of the post back, passwords entered by the user lose their values and the user gets an error messag...more >>

Password Fields
Posted by dwa at 2/24/2004 5:01:06 PM
All, We're trying to determine how to deal with password fields losing their state on a post back. We've got a form that implements post backs to carry out server side processing. As a result of the post back, passwords entered by the user lose their values and the user gets an error mess...more >>

Principal.IIdentity
Posted by Mark at 2/24/2004 4:49:22 PM
We'd like to capture the windows account of the current web user. In our code-behinds, this is cake using: System.Security.Principal.IIdentity ii = User.Identity; Reponse.Write("User: " + ii.Name); However, we have a global error hander in the Global.asax Application_Error event ...more >>

Using MS Index Server with asp.net
Posted by Wayne at 2/24/2004 4:05:54 PM
Is there anybody that has a link to an article for me about how to use = MS index server with ASP.NET? Or any sample code or something? Thanks, Wayne...more >>

How to config VS.NET to recognize other file extensions as aspx?
Posted by Bob at 2/24/2004 3:59:01 PM
I noticed that some of the Microsoft site pages have the extension name of mspx. It's easy to config IIS to map a particular extension name to the ASP.NET dll for production purpose. However I can't figure out how to config VS.NET to recognize my own file extension name e.g. *.bob, as ASPX pages...more >>

ping?
Posted by Lasse Edsvik at 2/24/2004 3:52:40 PM
Hello I was wondering if there is a way to ping an ip using C#? real thing, no xmlhttp-thingy TIA /Lasse ...more >>

Controls end with extra space/line-break ????
Posted by michael at 2/24/2004 3:49:51 PM
On my ASP.NET pages, it seems that _after_ any web or user control - an extra (small) line break or space is inserted automatically right after the Control. This is unwanted since it messes up vertical alignment preventing me of having things "touch" each other. I have tried surrounding the co...more >>

Why do CONTROLS end with an EXTRA line-break/space????
Posted by michael at 2/24/2004 3:34:43 PM
On my ASP.NET pages, it seems that _after_ any web or user control - an extra (small) line break or space is inserted automatically right after the Control. This is unwanted since it messes up vertical alignment preventing me of having things "touch" each other. I have tried surrounding the co...more >>

RequiredFieldValidator doesn't show error message and missing __postback function
Posted by John Sutter at 2/24/2004 3:23:19 PM
I have a webpage which has a few asp:textbox's and an asp:button. I also have a few RequiredFieldValidators for these text boxes. When I click on the button while the textboxes are empty, I don't see any error messages from the validators. I noticed the __doPostBack function is also missing al...more >>

Windows 2003 and ASPNET user
Posted by Harry Simpson at 2/24/2004 2:59:24 PM
On a Win 2k box, I can give ASPNET user permission to read, write on a folder and everything's fine. On a Windows 2003 Server box, if ASPNET user has the same permissions, i cannot write until i give the Users group write permissions as well as ASPNET user. What's going on here? Seems like t...more >>

submit form + post data without reloading the page in ASP.NET?
Posted by usenet_daughter NO[at]SPAM yahoo.com at 2/24/2004 2:54:29 PM
How do you get a ASP.NET page to return nothing, so the page posting form data to it doesn't reload? I have tried all combinations of the following: Response.SuppressContent = True Response.BufferOutput = True Response.Cache.SetNoStore() [code to save reque...more >>

asp.net hosting outside of IIS, provide specific webservice instance?
Posted by EP at 2/24/2004 2:49:25 PM
I'd like to host web services outside of IIS, which is working fine. Is there a way to make IIS use a particular instance of a webservice object instead of creating a new one when it loads the asmx? ...more >>

Active Directory Query
Posted by Arvind P Rangan at 2/24/2004 2:43:57 PM
Hi, How do u interpret a Active Directory Structure into code format. Like i have a ADS Structrue like this main.domain.com + AB + UB + AC All my information are in AC How do u interpret this in code format. we normally type LDAP:\\domain\ou=ab\ou=ub\ou=ac, dc=ma...more >>

Where to put global variables
Posted by Andrea Williams at 2/24/2004 1:50:32 PM
Where is the best place to put global variables. In traditional ASP I used to put all of them into an include file and include it in every page. Will the Global.aspx.cs do that same thing? Thanks in Advance! Andrea ...more >>

How to store a structure in ViewState
Posted by george d lake at 2/24/2004 1:36:32 PM
Hi, I have a structure that I need to save between pages. Can not use sessions. I would love to use ViewState, but, I get this error! The type 'TicketSystemV2.ucTicketList+OrderBy' must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be put in viewstate. ...more >>

OnBubbleEvent without RaiseBubbleEvent
Posted by jhcorey NO[at]SPAM yahoo.com at 2/24/2004 1:23:02 PM
I have a page that has a button and there is also a usercontrol on the page which has an OK and Cancel button. I'm looking at ways to trigger an event on the parent page when the child control's OK button is clicked, so I tried adding RaiseBubbleEvent, and added the following to the code of ...more >>

Refresh event
Posted by Jason at 2/24/2004 1:19:50 PM
Hi Just a simple question: how do i find out (on server side) whether the page was refreshed by the user? i.e. if they user pressed the refresh button in the browser OR he pressed F5... Thanks Jason ...more >>

"Logon failed" for Crystal Report
Posted by kskarun NO[at]SPAM hotmail.com at 2/24/2004 1:00:13 PM
Hi, I am using the Crystal Enterprise .NET assemblies to generate and display a crystal report in a webform. This report connects to an SQL server (running locally) using a specific username and password. I use the InfoStore object to query for the report from the CE server (also running loca...more >>

Localhost not responding
Posted by AC at 2/24/2004 12:57:44 PM
Running IIS on my WinXP Pro SP1 machine. Haven't installed anything new = lately, but suddenly overnight, IIS has stop responding. At first I = thought it was Visual Studio.NET 2003 because it would hang when it = tried to load web projects, but after trying to navigate to the = http://localho...more >>

download files from a server?
Posted by DaveF at 2/24/2004 12:55:38 PM
I am trying to figure out the best way to download images from a server that is password protected. This needs to be set up as a service? Can anyone point me in the right direction? Dave ...more >>

Domain objects... how to maintain them after a submit action.
Posted by Alisson Vale at 2/24/2004 12:51:08 PM
Hello, An interesting feature on ASP.NET is to maintain the values for webcontrols after a submit action on the webform. Could I do that also with domain objects? Let´s see the context: My webform uses a domain object that has all the data to persist it on the database. However, every time...more >>

Unescaping ASP vbscript escaped string
Posted by vkessler NO[at]SPAM peachtree.com at 2/24/2004 12:47:31 PM
We are trying write a new ASP.NET page to work with an existing stateless ASP application. The ASP application creates a cookie and of course stores the cookie values as escaped strings (using the vbscript escape function). I am have a terrible time 'unescaping' that string with C# under ASP.N...more >>

Detect Country C#
Posted by Antoni Massó Mola at 2/24/2004 12:45:54 PM
Hi, I need to detect from which Country (City would be great) the user is connecting. Is there any free script for doing this in C#? Thanks ...more >>

Web server cluster related problem
Posted by Helge Kalnes at 2/24/2004 12:45:19 PM
We are running an ASP.NET application on a cluster of 3 web-servers, using the Network Load Balancing feature of Application Center. We have synchronized the machineKey in machine.config on the 3 web-servers, so we can utilize a random algorithm for server selection for requests. The application...more >>

need some help
Posted by Mike at 2/24/2004 12:31:13 PM
Can someone look at this and let me know whats wrong and why it is not working: when I use this same exact code against the PUBS db it works great, when i go against my database it does not return data on the selected item selected in the drop down. thx String selectCmd = "SELECT dbo.Task.emai...more >>

Timeout expired
Posted by Mike at 2/24/2004 12:26:08 PM
I recently deployed a new ASP.NET application. Since initial deployment we are consistantly having timeout issues. The browser clocks for several minutes and then this message is displayed: "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have ...more >>

validation controls not working, on 2003 server
Posted by Jason Shohet at 2/24/2004 11:36:01 AM
They are working fine on our w2k servers. On the remote site -- using 2003 server -- the controls don't occur until after the action is taken. We are doing a catch, so that we don't give the user an ugly error screen -- and we notice that the validators display an error messgage there. I want ...more >>

upgrades to ASP.NET application - Please help
Posted by dotNET Developer at 2/24/2004 11:32:28 AM
We have an ASP.NET (.NET 1.1) InterNet application. We have many number of customers who constantly access the site 24x7. Whenever we upgrade (hot fixes, enhancements) the site one of the requirements is we should not bring the site down. But once we copy the webcode (aspx, dlls) to the webserver...more >>

DataBinding with Array contents
Posted by D. Shane Fowlkes at 2/24/2004 11:28:55 AM
This should be easy but I'm having a little trouble connecting the logical dots. I have a function which simply returns the 12 month names. Whoopie. I'm trying to store that data into an ArrayList and this arraylist is created when a function is called. After calling the function, I'm trying ...more >>

aspnet_regiis -i wont do the trick :(
Posted by Lasse Edsvik at 2/24/2004 11:04:39 AM
Hello Im trying to run a simple asp.net page and it wont execute......... i run aspnet_regiis -i and it runs successfully..... but my pages wont execute.... what's wrong?? /Lasse ...more >>

Master pages, templates, inheritance
Posted by John Holmes at 2/24/2004 10:59:40 AM
With ASP we have setup a pretty good method for maintaining a consistent look and feel with minimal effort. The method has it's pros and cons, but the maintenance is minimal. The method consists of utilizing a single default.asp page to call any page on the site passing query parameters with the...more >>

all pooled connections were in use
Posted by dotNET Developer at 2/24/2004 10:54:54 AM
If this forum is the wrong place to discuss this issue please point me to the right forum... We have an ASP.NET application (InterNet app) originally written in .NET 1.0 running for about 2 years. Recently we installed .NET 1.1 and upgraded the app to 1.1. During the deployment we also install...more >>

Add onClink on the fly
Posted by Rudy Ko at 2/24/2004 10:45:42 AM
All, I have a DataList control on my page. Within that DataList, I have a Linkbutton. I want to add a OnClick client side script event during ItemCreated or ItemDataBound event. Can you help? Thanks, Rudy ...more >>

ASP.NET command line compiler?
Posted by michael at 2/24/2004 10:44:35 AM
How can I compile my VS.NET ASP.NET project from the command line? ...more >>

default form button
Posted by Jason at 2/24/2004 10:11:40 AM
I know this is going to be a stupid question, but I'm in a crunch and don't have time to research it as much as I'd like. How do you tell the web form which button is the default button. So if a user fills out the form and hits enter instead of clicking the submit button, the correct button get...more >>

vb programmer-Creating c# solution & project-I don't get squigllies or code formatting
Posted by TS at 2/24/2004 9:47:21 AM
I am creating a custom control and so I have a c# solution, and added a c# web control library project. I don't get any squigglies until after I build, then when I fix, they don't go away until after I build. The editor also doesn't reformat the code to keep things lined up, even though that opti...more >>

Activate ASP.NET periodically
Posted by Steve at 2/24/2004 9:41:09 AM
Hi When ASP.NET site has been idle for a period of time, the workerprcess, caching, recycling have involved to make it taking 30-40 seconds to load the intial page. I have tried unchecking "Shutdown worker process..." and unchecking "Recycle worker processes..." but it still does not change anythi...more >>

IIdentity casting problem
Posted by Craig Buchanan at 2/24/2004 9:21:25 AM
I have an object, named SiteIdentity, that implements IIdentity. I have added additional properties to this class, Email for instance. I am using forms authentication. In the code behind class for a webform, I try to cast from the HttpContext identity object to my SiteIdentity object, but I ...more >>

Regular Expression
Posted by brian at 2/24/2004 9:03:00 AM
I am trying to write a reqular expression to validate the following: Needs to be 6 numbers First number between 1-4 Second number between 1-8 4-6 Numbers any number ^[1-4]|[1-8]/d{1}/d{1}/d{1}/d{1}$ I tested the following on http://www.regexlib.com and the expression works fine. But...more >>

Getting SelectedIndexChanged to fire again
Posted by ]-[aTc]-[ at 2/24/2004 8:58:10 AM
How do I fire a private void myTabStrip_SelectedIndexChange(object sender, System.EventArgs e) to fire again? I have a post back to my if statment and i have this ... if(Request["contactID"] != null) { divContact.Attributes["class"] = "ShowContact"; myTabStrip.SelectedIndex = 1; ...more >>

using cookie in asp page in asp.net page
Posted by mahsa at 2/24/2004 8:56:05 AM
hi I have some asppage that have cookie and i want to use in in asp.net do you have any idea?...more >>

display images without having them on the disk?
Posted by Yoramo at 2/24/2004 8:54:05 AM
Hello is it possible to display images on a ASPX without having them on the disk of the server ? I have images in a DB and whould like to display them on a web page. writing them to disk seems very costly. is it posible to create them in memory and some how give them to the client to dis...more >>

load different ascx files
Posted by michael at 2/24/2004 8:46:08 AM
is it possible to include a ascx file in another ascx file in the codebehind? for example something like <asp:panel pnl src="test.ascx"></asp:panel i want to control in the codebehind which ascx file is loaded but i don't want to use frames ...more >>

Alternative to MS WebControls ?
Posted by Lord Brett Sinclair at 2/24/2004 8:46:04 AM
Hello everybody I was looking into installing the IEWebControls. Unfortunately, I have .Net Framework 1.1 Version 1.1.4322 with a MS dev Env. of 7.1.3088 It appears that the IEWebControls are only compatible with machines running builds of the .NET Framework (1.0.3705.0) and Visual Studio® .NE...more >>

RadioButtonList and Selected
Posted by Jay at 2/24/2004 8:21:05 AM
I have a radiobuttonlist like so <asp:RadioButtonList id=radType RepeatDirection="Horizontal" cellpadding="10" cellspacing="0" runat="server"><asp:ListItem value="Something1"><font face="arial,helvetica" size="2">Something 1</font></asp:ListItem><asp:ListItem value="Something2"><font face="arial,h...more >>

Custom Validator
Posted by brian at 2/24/2004 7:33:28 AM
I am trying to implement a custom validator Client Side. I have the server side code working fine. I place the below script below the body tag outside the <form> tag. My if statement actually contains about 5 conditions. The bigest thing is I want to dynamically configure the error mes...more >>

.NET Assemblies
Posted by C at 2/24/2004 6:36:06 AM
Hi, I am relatively new to .NET My backrgound is VB6, ASP and COM. I understand that COM is scaleable through MTS etc. In .NET when I create say a web project and create an Assembly that is used by this web project how is this assembly made scaleable? Thanks, C....more >>

Why would the library-activated serviced components put more load on db?
Posted by Stan at 2/24/2004 6:16:05 AM
I wasn't sure what would be the best ng to post it. We have ASP.NET app that uses serviced component to perform all database writes and updates (there are separate components sitting on the web server to do reads) Initially, serviced components and ASP.NET app were on two separated machines and ...more >>

Help...Replicating IE HTTP protocol to communicate with ASP.NET
Posted by timasmith NO[at]SPAM hotmail.com at 2/24/2004 6:08:35 AM
Hi, We have an ASP.NET web application which is suffering performance problems. Since setting up robot scripting interacting with the browser would take a while I hoped I could open a two-way socket with IIS and replicate the HTTP session information e.g. starting out with POST /192.168.1....more >>

DataList Issues
Posted by Ian O'Rourke at 2/24/2004 3:41:05 AM
I'm a bit confused by the datalist. I can put an item in the datalist in editmode by the following dtlBooks.EditItemIndex = e.Item.ItemInde BindBooks( This works great, the problem is when I bind the books if less or more books get returned the ItemIndex points to a different book - so the user...more >>

Automatic notification
Posted by Majid at 2/24/2004 3:26:05 AM
H I'd like to notify all active sessions of websit about maintenance tasks at a time How can do this?...more >>

is there an object oriented design model asp.net?
Posted by scottrm at 2/24/2004 3:16:04 AM
Is anyone aware of any book/website/tutorial that has a decent object oriented design model for an asp.net e-commerce site (or even a generic e-commerce site). The ibuyspy.com sample site does not contain anything like a UML model and does not seem to be a very good object oriented design anyway, I ...more >>

Regular Expression Validator and RequiredFieldValidator ???
Posted by indexnode NO[at]SPAM yahoo.com at 2/24/2004 1:50:03 AM
I have the following problem. I am using the follwing Regular Expression validator(REV) with validator expressions ^[0-9]{1,2}$ ^[a-zA-Z0-9]{3,20}$ The idea of the first exp is 1 or 2 digits the idea of second expression is username between 3 and 20 chars When the user enters characters oth...more >>

Help: Keeping .ASPX pages PURE using C# Codebehind
Posted by Adrian at 2/24/2004 1:41:00 AM
Hi All, I am a big fan of the Codebehind model. I would like to continue to keep my .ASPX pages FREE of any 'LOGIC' and keep it PURE 'HTML'. I would like to know how many of you handle the following situation. (In pseudo code to illustrate my point) <html> <body> if (condition) { ...more >>

HTTP Headers
Posted by abc at 2/24/2004 12:26:07 AM
Whenever i create any page in asp dot net in browser i am able to view only http headers. i can't see any of my controls . what's the problem....more >>


DevelopmentNow Blog