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 2004 > threads for friday november 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 29 30

Is LoadControl (virtualPath) is caching controls in a single request. If so, can i disable it.
Posted by Umut Tezduyar at 11/12/2004 10:50:43 PM
It seems, it is caching it. The following code is an example for it. How can avoid from this. override void OnLoad (sender and eventargs) { Control control = this.LoadControl (path); this.Controls.Add (control); // I change the content of the html of the control. TextReade...more >>

Validate form
Posted by Rajani at 11/12/2004 10:44:01 PM
Hello, I am learning asp.net and i have experience in asp. I am using VS.NET for developing dotNET pages. Its login form. I placed two asp:textbox s for userid and password. and one button(html server control) and one asp:label How to vallidate whether the user has entered userid and pa...more >>

Urgent Help Need: Error creating control on ASP TreeView
Posted by Jie at 11/12/2004 10:29:46 PM
Hi All, My tree view (Microsoft.Web.UI.WebControls.dll) has been running well till I got this error in design mode The following is the detail message: Resource file name: Microsoft.Web.UI.WebControls.Design.resources assebly: Microsoft.Web.UI.WebControls, version 1.0.2.227, culture=netural, ...more >>

Browser ?
Posted by WJ at 11/12/2004 9:57:57 PM
How do I check if the client enable his/her Java Script ? TIA John ...more >>

What is the code behind property for the @Page element's ValidateRequest
Posted by Umut Tezduyar at 11/12/2004 9:38:41 PM
I couln't find the code begind property on the Page object that represents the "ValidateRequest" attribute on the @Page element. There must be some property that the PageParser knows what to do when when parsing ValidateRequest. I couldn't find any information about this. Besides, it seem...more >>

RSS Feed.....
Posted by Nelson at 11/12/2004 9:05:10 PM
How to consume RSS feeds. Is it possible to write such an application using ASP.Net or Vb.Net? Nelson ...more >>

Need Help With Datagrid Template Column and Drop Down List Box
Posted by Benign Vanilla at 11/12/2004 8:43:14 PM
I am a .NET newbie, and need some help. I have a datagrid that is bound to a table. That works. I also have a template column in the grid for updating a status value for each row. This is defined as: <asp:TemplateColumn HeaderText="New Order Status"> <ItemTemplate> ...more >>

Reading an resource XML file...
Posted by news.bellatlantic.net at 11/12/2004 7:29:53 PM
I created a class that populates a bunch of its properties from an XML file on the file system. I'm planning on using the class on a bunch of sites all working off the same XML file. In testing the idea, it looks like if two users open a page that accesses the file one user will be locked out of ...more >>



Creating a new event log
Posted by Robin at 11/12/2004 7:13:47 PM
On a Windows 2003 server how do you create a new event log that can be written to from an Asp.Net page? ...more >>

Adding a Event log
Posted by Robin at 11/12/2004 7:12:49 PM
In an Asp.Net (VB) page, how do you add an event log entry with all the information that an application log entry has? ...more >>

Where do we b!tch about ASP.NET 2.0?
Posted by clintonG at 11/12/2004 6:54:06 PM
The more I am learning about 2.0 the more I see what appears to be garbage. This is evident when trying to use any of the new controls. Especially the Wizard Control which has me really upset. The templates are garbage and apparently can not be modified. I'd like to learn how wrong I am becaus...more >>

RAM Memory or virual memory
Posted by Julián Sanz García at 11/12/2004 6:31:38 PM
Hi!!, How can i use Ram memory or virtual memory to crear a file??? The idea is to create a file in a temporaly space, something like RAM memory or virtual memory. Thanks ...more >>

going psycho with microsoft generic error message...
Posted by ricolee99 NO[at]SPAM hotmail.com at 11/12/2004 5:55:54 PM
Hi there, I deployed an application in which i use third party api's in a web service. Everything compiles and works just fine on my local machine and server A. When I take the exact same web service and deploy it to server B, I start getting an error message when I try to browse the webse...more >>

multiline message boxes and ENTER keys.....
Posted by Antonio Lopez Arredondo at 11/12/2004 5:36:52 PM
hi all !!!!! I have an ASP.NET app that has a multiline textbox and a BUTTON. the problem I have is that whenever I press ENTER in the multiline textbox, the button event is raised and the code behind executed. so the question is: what should I do in order to obtain the desired behavior (...more >>

Passing exception to another page?
Posted by Donal McWeeney at 11/12/2004 5:31:51 PM
Hi, Whats the best way to pass an exception object and some string params from one aspx page to another. I cant use the Session or Application objects? Is it possible to use the Context.Items collection? Thanks Donal ...more >>

Namespace alias using inline code?
Posted by Jon Maz at 11/12/2004 5:06:48 PM
Hi, Simple one. The C# code behind for a .aspx page can have a 'namespace alias', as here: using AdsBusiness = Wrox.WebModules.AdsManager.Business; Question: can you do this with inline code too, and if so, what's the syntax? Thanks, JON ...more >>

Generate xls file and save on client computer
Posted by kids_pro at 11/12/2004 4:45:54 PM
Hi there, In yahoo I can export my address book to a csv file and save it to my desktop by click on the File field browse button and click Export it will export and save the result to the file on my desktop. I wonder if this senario can be done in ASP.NET? How? Regards, kids ...more >>

regex
Posted by Francesco at 11/12/2004 4:36:26 PM
Hi to all, someone of you has a regular expression for image file in Asp.NET C# ? Thanks Francesco ...more >>

Server Side Code..
Posted by Nelson at 11/12/2004 4:34:40 PM
How to decide to use WebControls.Button or HtmlControls.HtmlInputButton controls in a web application. When I am getting the clicked event handler for both of them on the server side. Thanks, Nelson ...more >>

Doubt : ASP.NET problem
Posted by ASP newbie at 11/12/2004 4:30:57 PM
I cannot run my asp.net application in w2k server. But the program works fine under w2k professional. Can anyone tell me is there any difference in the settings? Many thanks. ...more >>

Unknown Error Exception with GridView
Posted by sck10 at 11/12/2004 4:28:54 PM
Hello, I have a page that has a GridView that I have been using for a while. I have not made any changes to it. As of today, I am getting the following error: [SqlException (0x80131904): Unknown ProviderError Locating Server/Instance Specified ] I have tried creating a new connection...more >>

populate listbox using Javascript
Posted by RA at 11/12/2004 4:16:48 PM
I tried following : document.getElementById("lsTest").Items.Add(new ListItem("Test")) This gives following error message: 'document.getElementById(...).Items' is null or not an object Also tried: document.getElementById("lsTest").Add(new ListItem("Test")) Result - Error Message: 'listitem...more >>

Binding GridView with code-behind
Posted by sck10 at 11/12/2004 4:08:58 PM
Hello, I have a GridView that is using the following to connect to a SQL Server 2000 stored procedure: <asp:SqlDataSource ID="dsWebDocList" SelectCommand="sp_web_WebDocument" ConnectionString="<%$ ConnectionStrings:cnnSQL_Connect %>" Runat="server"> <SelectParameters> <asp:Parameter T...more >>

How do I call a C++(.NET) DLL from an ASP.NET Page?
Posted by Hoss at 11/12/2004 3:47:20 PM
Hi I am an ASP.NET newbie and I have a VB.NET application I am trying to write in ASP.NET . The problem is that the application calls a DLL written using VC++.NET . How do I call this DLL from the ASP.NET page? I'd appreciate any help, as I am stuck for time. Thanks ...more >>

Invalid property size within Parameters
Posted by Andy G at 11/12/2004 3:35:25 PM
I've been getting this error all day. Could someone please look at my stored procedure and the code. I have a form that grabs and email address the user types in, calls a stored procedure with an input parameter and an output parameter, compared the email to a table and matches an ID in another...more >>

Database Connection
Posted by John Smith at 11/12/2004 3:29:29 PM
How do I connect to a FoxPro 7 database? ...more >>

Date question
Posted by tshad at 11/12/2004 3:16:40 PM
How can I get a date to display as Mar 15 or Mar 15 04? I can't seem to find these in the list of choices for formatting dates? Thanks, Tom ...more >>

Can you help (editable datagrids)
Posted by Craig G at 11/12/2004 3:12:03 PM
Hi, ive been using the following link :- http://www.dotnetjohn.com/articles.aspx?articleid=21 but i noticed in the code that it only brought back the top 10 records. when i removed this and brought back all records and added paging via the property builder i got the following error *****...more >>

Cannot create new Web applications
Posted by spam NO[at]SPAM bienvenu.net at 11/12/2004 3:05:56 PM
I cannot create new Web applications in Visual Studio .NET 2003. I get this error message: "Visual Studio .NET cannot create or open the application. The likeliest problem is that required components are not installed on the local Web server. Run Visual Studio .NET setup and add the Web Develop...more >>

Where do we b!tch about ASP.NET 2.0?
Posted by clintonG at 11/12/2004 2:58:23 PM
The more I am learning about 2.0 the more I see what appears to be garbage. This is evident when trying to use any of the new controls. Especially the Wizard Control which has me really upset. The templates are garbage and apparently can not be modified. I'd like to learn how wrong I am becaus...more >>

Error while trying to run project
Posted by Kris Desmadryl at 11/12/2004 2:49:18 PM
Hi all, I create a new asp project, with just one button on the startup form but when I run I always get a messagebox with the error : "Error while trying to run project." No more information. I'm using visual studio 2003, xp prof with service pack 2. Also old asp projects I created doesn ...more >>

static constructors not always running when debugging ASP.NET sites.
Posted by Peter Rilling at 11/12/2004 2:44:11 PM
Here is a weird behavior that I would not have expected in VS.NET during debugging. Maybe someone has some insight as to why this is happening. 1) I have a VS.NET web project. This contains a class with a static constructor. 2) The static constructor loads custom information from the web.c...more >>

IE on attribute selectors
Posted by tshad at 11/12/2004 2:30:50 PM
I am trying to set my input text elements to look the same. I tried using the following: input { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; text-decoration: none; border: 1px solid #999999; } But it changed the buttons to rectangles instead of the nice cur...more >>

Cassini webserver and Viewstate
Posted by Jonas Nilsson at 11/12/2004 1:58:38 PM
I have a webapplication that runs with out any errors under MS IIS 5 / 6. But when I try to run it under MS Cassini web server i get this error if i have a big Viewstate ( A datagrid or a treecontrol with a lot of data ). ####################################################################...more >>

AddressOf Operator and IsPostback
Posted by RA at 11/12/2004 1:49:51 PM
btnAdd_Click does not get hit; if I have IsPostBack check in Page_load. If I don't have IsPostBack check; I am able to debug through btnAdd_Click. If I don't look for IsPostBack then it re-populates the table before doing anything; which I don't want. Following is the code. private sub page...more >>

Returning back to client from HttpModule
Posted by Robert Strickland at 11/12/2004 1:24:49 PM
How do I return back to my client if I find an error in my HttpModule during a BeginRequest event? I do not want my Page handler to service the request if the module gets an error. ...more >>

Create event handler for componenent that's created programaticall
Posted by mg at 11/12/2004 12:56:02 PM
The code below creates an ImageButton when a LinkButton is clicked. How can I create an event handler for this ImageButton which can't be seen in the Design pane? private void LinkButton1_Click(object sender, System.EventArgs e) { System.Web.UI.WebControls.ImageButton ImageButton1 = ne...more >>

Right Align Textbox/label
Posted by Wardeaux at 11/12/2004 12:42:08 PM
I need to right align the text in a textbox (or label) in my ASP.NET app... Any clues best way to accomplish this? MTIA wardeaux ...more >>

Detecting... Javascript...
Posted by Nelson at 11/12/2004 12:34:28 PM
How to detect Java script is enabled or not in a browser? Thanks, Nelson ...more >>

UrlRewriting - how + where to do the redirect calculations
Posted by Jon Maz at 11/12/2004 12:20:21 PM
Hi All, I'm doing UrlRewriting based on the model in Scott Mitchell's article "URL Rewriting in ASP.NET". http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/urlrewriting.asp. In this article the logic for rewriting URLs is contained in Regular Expressions in the we...more >>

Session State
Posted by Colin J Paterson at 11/12/2004 11:55:40 AM
Is it possible to store session state for each separate user in a separate process? We have a COM component that we want to use that is not thread safe and has to be isolated. We would like to store this in a separate process for each user. Thanks for any help ...more >>

HOWTO: Get Web Control Screen Coordinates
Posted by Dan Sikorsky at 11/12/2004 11:45:35 AM
How do you get the x,y pixel location of a textbox so that you can position the Web Date Control popup nearby the associated textbox that will contain the date selected by the Web Date Control? -- Thank you kindly, Dan Sikorsky BAB, BScE, MSC ...more >>

Managing SQLConnections
Posted by Bijoy Naick at 11/12/2004 11:37:45 AM
Hello, I am writing an application which uses SQL Server as the database.. Some questions... 1. Just want to confirm that using SQLConnection is the best way connect the db.. 2. The application will contain multiple pages.. Each page will have to connect to the db and perform some action...more >>

User control file path problems
Posted by Dave at 11/12/2004 11:31:49 AM
I've built a custom server control that reads an xml file and builds a left side navigation system. When I drop that server control into a user control that will hold the left side navigation for my site, I have to set a property to the file name of the xml file. The problem I'm having is tha...more >>

How to validate a URL
Posted by ALI-R at 11/12/2004 11:29:59 AM
How can I programmatically figure out the a URL that user has been entered is valid or not ,I mean wethere it exist or not???? thanks ...more >>

Multiple users - WebPage
Posted by RA at 11/12/2004 11:19:55 AM
If a web page is being used by multiple users. A user changes one item, which is saved in a dataset and also in database on SQL Server. Now other user tries to change the same item; then show him a message that this item has already been changed. How would I do that? ...more >>

how do you get the context path in the web app?
Posted by Flip at 11/12/2004 11:12:16 AM
I'm trying to reference images in my webapp. I'm coming from j2ee and I just write a small jsp scriplet that says to go grab the context path. How do I do that with C#? If it's done differently in C#/.NET, please set me straight (please be gentle :>). If my current setup is this +Reference...more >>

Converting to upper case..
Posted by Nelson at 11/12/2004 11:02:23 AM
In my web form, I am converting all lower case letters to upper case when the user types the characters in the edit boxes. I am achieving that by injecting client side script (onkeyup event) for each text box. However if the user types the characters so fast it may not work.. Also there are some...more >>

Encryption Question
Posted by J at 11/12/2004 11:00:03 AM
I heard there was an Application Block that makes it extremely easy to encrypt and decrypt, but I'm not able to find such a thing. The closest I found was the Configuration Management Application Block, and I can't figure out how it works for encryption. Any information will be most helpfu...more >>

Threading in asp.net issue - Thread stops
Posted by philippe_graca NO[at]SPAM hotmail.com at 11/12/2004 10:35:49 AM
Hi, I've a simple page with one button. In the OnClick event, I want to create a thread that will perform a long runninf task. Here is a sample code in the OnClick Thread t = new Thread(new ThreadStart(this.Import)); t.Priority = ThreadPriority.Lowest; t.Start(); Import Function ...more >>

Performance Q..
Posted by Nelson at 11/12/2004 10:35:28 AM
In one of the search window (zip code search) I am using ASP Text box to get the search text. Is it required to use the text box here, I can use html input text box and can pass this value for search at the server side when user clicks the search button. IS it a good design approach to avoid s...more >>

repeater dataBound
Posted by simon at 11/12/2004 10:16:13 AM
I have dataRepeater and I use its dataBound event: Private Sub rprPlists_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles rprPlists.ItemDataBound If (e.Item.ItemType = ListItemType.AlternatingItem Or e.Item.ItemType = ListItemType....more >>

validators not working on IE 5.2 (Mac)
Posted by dhnriverside at 11/12/2004 10:10:03 AM
Hi peeps I've used some validators on my form. All works fine on PCs, they popup a message and don't let you press the Submit button. However, they're not working quite right on a Mac I'm using to test. It's OS X 10.1, IE 5.2. Basically, they popup the message to say there's a validation ...more >>

setting tab order in web form
Posted by Paul at 11/12/2004 10:09:01 AM
Hi just wondering if anyone knows how to set the Tab order in a web form, this is the order that the controls get focus when the user hits the Tab key, thanks. -- Paul G Software engineer....more >>

Understanding the Dispose method and datasets?
Posted by Leon at 11/12/2004 9:56:49 AM
Are dataset automatically stored in memory? Does the dispose() method automatically dispose of the dataset in the code below? Do I have to dispose a dataset from memory or does the dataset dispose itself when not in use? I know I can use the clear method, but that just clear the data wi...more >>

Open a file which is not in my virtual path
Posted by Pierre at 11/12/2004 9:52:37 AM
Hi, Got this : X:\Project\MyWebApp --> mapped with http://localhost/MyWebApp X:\Project\MyWebAppConfig\MyWebAppConfig.udl (not mapped with IIS !) How can i read this file? thks for help ...more >>

anyone?? :o( buttons and arguments
Posted by louise raisbeck at 11/12/2004 9:39:01 AM
hi there, I am using c#, not quite sure how to get an argument into an event. protected void btnRedirect_Click (object sender, eventargs e) { go to url newpage?id=[id i passed] } i know sender is whatever control invoked this code (e.g. button) but not sure what the eventargs is for....more >>

I have an HTML page, is there a way to export to PDF?
Posted by Luis Esteban Valencia at 11/12/2004 9:29:01 AM
I have an HTML page, is there a way to export to PDF? without headers amd footers that IE Prints. -- LUIS ESTEBAN VALENCIA MICROSOFT DCE 2. MIEMBRO ACTIVO DE ALIANZADEV ...more >>

generate custom file for download
Posted by Paul at 11/12/2004 9:05:39 AM
I need a way of creating a custom file which can be downloaded by a user. The file needs to be customized pre user (ie serial number built in). Creating the file is no problem. The problem is how can several files be created at the same time (ie several users logged in to the web site at once...more >>

Putting ASPX functionality into a component
Posted by GaryB at 11/12/2004 8:58:41 AM
I have an ASPX page and a vb codebehind file that takes as input a passed web datagrid as input. My page has a CrystalReportsViewer on it. My page produces a PDF report of the DataGrid that was passed. I want to package this functionality into a component so that a programmer can simply d...more >>

Numeric Entry Only Tex Box
Posted by Mike Moore at 11/12/2004 8:54:45 AM
We would like to use a validator to valid that only numeric data is allowed in a text box. Is there a way to do this? If so, how?...more >>

Max Field Length
Posted by Mike Moore at 11/12/2004 8:39:28 AM
What is the best way in asp.net to check the max field length for a text or combo box field using a validator?...more >>

Simple Question
Posted by Manny Chohan at 11/12/2004 8:20:09 AM
Hi Guys, I have a trick situation. I have to let users type in multiple values in textarea seperated by ; . Now there is no limit on the number of values they can enter. How can i programatically split the string into array. eg. the string could be charlie;heather;paul;tim;jerry i want to sp...more >>

arguments in functions/buttons
Posted by louise raisbeck at 11/12/2004 8:03:06 AM
hi there, I am using c#, not quite sure how to get an argument into an event. protected void btnRedirect_Click (object sender, eventargs e) { go to url newpage?id=[id i passed] } i know sender is whatever control invoked this code (e.g. button) but not sure what the eventargs is for....more >>

Required Field Validator
Posted by Vi at 11/12/2004 8:03:05 AM
Hi, I have a TextControl and a RequiredFieldValidator attached to it. How can I disable the validator if the TextControl is disabled? Thank you....more >>

Using <Script> tags to calls a script from another server
Posted by cvillard NO[at]SPAM gmail.com at 11/12/2004 7:39:25 AM
I am using an asp.net page and I am trying to setup a customers website. The website uses a ssl certificate from verisign and the customer would like to use the seal. The new style from VeriSign is like this: <script src=https://seal.verisign.com/getseal?host_name=foobar.verisign-test.com&size...more >>

Convert Julian Date to VB.NET date
Posted by Raja at 11/12/2004 7:34:03 AM
Hi Anyone has any idea of how to convert Julian Date (eg. 12744057862..) to a VB.NET date time. Thanks in advance. ...more >>

format date
Posted by Mike at 11/12/2004 7:05:02 AM
I allow the use select a date from a calender control and I want to format the date. I have this: Session["date"] = Format("calender.selectedDate, "dd/yyyy"); and i'm getting an error on Format when i compile: the error is: The Name Format does not exist in class or namespace. what do ...more >>

Which is Quicker? Loop or filter a dataset....
Posted by Mark at 11/12/2004 6:40:00 AM
Hi - when working with datasets, is it quicker to loop through the dataset, comparing some column values with predetermined values, or should I apply a filter on the dataset to retrieve the values I want? (background - I'm populating an appointment calendar for consultants, and need to check a...more >>

classes
Posted by Bart at 11/12/2004 5:23:07 AM
I made a web-application, and i created several classes. Now i want to make a second web-application, which uses the same classes. How can i acchieve this ? Off course with copy - paste, but that would give problems, when i change something in the classes. The other project wouldn't be up-to-d...more >>

Shared, why not a 'Local Shared' (re: Session and ViewState dislike)
Posted by benjilloyd NO[at]SPAM hotmail.com at 11/12/2004 2:35:22 AM
..NET allows the use of Shared module-level vars to share a variable between connections to our web-based app. So why doesn't .NET allow us to have an implementation of a 'Local Shared' module-level variable that has its value maintained per connection. At the moment the only ways to achieve ...more >>

x
Posted by (lollypop3_14 NO[at]SPAM yahoo.com) at 11/12/2004 12:08:34 AM
x ********************************************************************** Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources......more >>


DevelopmentNow Blog