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 tuesday february 1

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

DataFormatString Help
Posted by Simon Harris at 2/1/2005 11:13:27 PM
I have a datagrid which is populated from an Excel file via an OLEDB connection. The data format in the Excel file for column A is text. The data is either a single number - e.g. 1 or a number followed by a letter - e.g. 7D The cells that contain a number followed by a letter never get ...more >>


asp.net auto redirect after 5 seconds
Posted by Asha at 2/1/2005 10:07:01 PM
hello, how can i redirect the user to another page using code behing.. the reason being is that i want to redirect them to different site based on the user login... i try to avoid client scriprt.. only code behing.. how can this be done?...more >>

What's the use of having HTTPModules ?
Posted by msnews.microsoft.com at 2/1/2005 9:59:49 PM
Hi... I'm learning about HTTPModules, so please allow me a beginner's question. I read that "you gain low-level access to the HTTPRequests and responses processed by the ASP.NET framework". But... I'm confused, because in this example they use "AuthenticateRequest" and "EndRequest"... (the...more >>

SmartNavigation ?
Posted by WJ at 2/1/2005 9:35:14 PM
I have a web site with 2 pages under W2k3 box (IIS-6). 1. From WebForm1.Aspx.Button1Click, I issued Response.Redirect("WebForm2.Aspx",true) - This works fine. 2. From WebForm2.Aspx.Button1Click, I issued Response.Redirect("WebForm1.Aspx",true) - This gave me a 404 page not found. The abov...more >>

I am not hurting anyone ... am I ? (page redirects).
Posted by craigkenisston NO[at]SPAM hotmail.com at 2/1/2005 9:01:10 PM
Hi, I recently read a lot about a topic called page hijacking. It seems that you can steal page rank from search engines while doing a redirect. I reminded I had a code in some pages, where someone clicks a link on my site, I first go to a page to save the link, then I have a redirect to t...more >>

Assembly errors!!
Posted by Patrick Olurotimi Ige at 2/1/2005 9:00:08 PM
Does anybody knows how to fix this errors:- Any ideas..workarounds?? Warning: The dependency 'Votations.NSurvey.BE, Version=1.7.0.0, Culture=neutral, PublicKeyToken=e324ddfd33c58bf2' in project 'NSurvey_WebAdmin' cannot be copied to the run directory because it would overwrite the reference '...more >>

Using thread to partially load a page
Posted by Evan at 2/1/2005 8:49:06 PM
I have an aspx page that can take a minute or so to load because it loads images from a database. I want to open a window and show a "Please Wait" message page at the start and close it when the page is ready to load with Response.Write. I have opened a thread to do it but it doesn't work. ...more >>

drop down lists
Posted by Sandy at 2/1/2005 7:51:03 PM
Hello - How do I get a drop down list to drop down instead of up? Is there any way to make the text centered in the list? Also, I now have a drop down list that was created using a Sql Select Statement and it fills the ddl. Is there any way of using a stored procedure instead of just...more >>



HTTP handlers WEB.CONFIG syntax, please !
Posted by msnews.microsoft.com at 2/1/2005 7:35:06 PM
Hello. I have this code in a project named ProductsHandler: First, a class called ProductsHandler.vb (this particular code is not important in this question, because the class is correct - it implements both IHttpHandler.ProcessRequest and IHttpHandler.IsReusable). Anyway, here it is: ----...more >>

Client Side Callbacks for ASP.NET 1.x
Posted by Lucas Tam at 2/1/2005 6:00:25 PM
Hi all, I remember someone posted a link to a javascript callback package that worked in ASP, Perl, PHP, etc... does anyone have a similar package for ASP.NET 1.x? I want to implement some client side callbacks before ASP.NET 2.0 is available. Thanks! -- Lucas Tam (REMOVEnntp@roge...more >>

testing sendmail
Posted by G Dean Blake at 2/1/2005 5:53:15 PM
I am a developer that uses EarthLink as an ISP. I have to write some sendMail functions but my ISP does not allow me to send smtp mail (probably most don't). Is there a way to test this out in my environment? Thanks, G ...more >>

Authenticating a user by secure login
Posted by H at 2/1/2005 5:48:19 PM
I have designed a C# application that will populate a database with customer information and email a randomly generated password to them. I would like them to have the ability to update their details on a form via secure login. I'm looking for a web tutorial or book recommendation that can explai...more >>

ASP.NET frameworks; just like DotNetNuke and Rainbow?
Posted by Sasha at 2/1/2005 5:09:58 PM
Hi, Can anyone recommend an ASP.NET framework for quick web site development? Something along the lines of DotNetNuke and Rainbow? PHP world seems to have a lot of frameworks like that, but in ASP.NET universe I could not find anything besides DNN and Rainbow. Any info is appreciated. ...more >>

Autodownload File
Posted by Mustafa Rabie at 2/1/2005 5:06:04 PM
Hi All, I want to add autodownload like all the one in Downloads.com. When u click download now link it redirects you to a page that the file downloads the application after the page is loaded. how can i do that? thanks mustafa ...more >>

Can you get a mouse over to work in a datagrid cell
Posted by Craig G at 2/1/2005 5:04:29 PM
reason i ask is i have a column (Notes) which can have upto 500 characters in it. so its too big to display the whole field in the grid. so what i have done is placed a button in the template column which when clicked displays the full content of the field in a label below the grid. but what i...more >>

Question abt WebForm.
Posted by Wong CS at 2/1/2005 4:36:41 PM
Dear all, i hav a question.. i hav a dropdown list, with Apple, Banana, and Other value in it. What i wanna do is, when Other is selected, then 1 lable and 1 textbox occured to let user to key in the Other value.... how can i achieve it..?? thanks and pls advice. cheers, CS ...more >>

Accessing a remote DB via wp_aspnet.exe
Posted by Ray Stevens at 2/1/2005 3:43:51 PM
Because this worker process using the local ASPNET userid, it is unable to access Sql Server databases on a remote server. I believe the solution is to use a domain id and apply it to both... but am not sure how to do this with wp_aspnet.exe. Anyone have a solution for this. ...more >>

Help ASP.NET app suddenly stopped working
Posted by Mike at 2/1/2005 3:25:06 PM
I have an application that was developed in VB.NET. Its been in production since October without any problems and that was the last time anyone touched any of the code. Today I got a call from a user saying that on one of the pages, a button click does not cause any action where previously it ...more >>

onTextChanged not firing
Posted by kbrandl NO[at]SPAM gmail.com at 2/1/2005 3:18:38 PM
On my page, there is a textbox at the top that contains a date -- and a fully-editable datagrid below (each row in the datagrid contains an editable textbox, along with some other controls). The date textbox is defined as: <asp:TextBox EnableViewState="True" ID="HoursWorkedDate_TextBox" Run...more >>

Web service
Posted by Goober at 2/1/2005 3:15:18 PM
I am wanting to display the following: http://www.nraila.org/Services/LegislativeUpdates.asmx?WSDL in a datagrid on a website. Any good place to start in figuring out how to do this? I've found some RSS stuff on the web, but it doesnt allow you to adjust the content like loading it int...more >>

Dropdown list within a datagrid
Posted by gn NO[at]SPAM dana.ucc.nau.edu at 2/1/2005 2:39:26 PM
Hi have a dropdown list within a datagrid, based on what is selected in the list I want to populate another dropdownlist, the code to populate the dropdownlists is not the problem, my problem is getting the code behind to recognise that something has been selected. I have tried using the selec...more >>

Please Help - WEB Application
Posted by Chuck Insight at 2/1/2005 2:24:27 PM
Hi Everyone, I have a VB script (.aspx) project that needs to produce nine unique, randomly generated numbers that uses all nine of the numbers. I will greatly appreciate either a recommendation of where to look on the web for my answer, or your direct response. Thanks a 1,000,000 for your ...more >>

Validator Trickiness
Posted by riversmithco NO[at]SPAM hotmail.com at 2/1/2005 1:53:50 PM
Hi all, I have a simple form with 3 validator controls on it. How can I keep validation from firing when the user hits the enter key on their keyboard? Right now I have two buttons, one shows up conditionally and should cause validation, the other has CausesValidation = False, but the v...more >>

get value by index and not column name...
Posted by Mike at 2/1/2005 1:41:06 PM
When using a repeater control I want to get the database value by index instead of using the column name. How can I do this? My current repeater code looks like this: <asp:repeater id="rprtroplinks" runat="server"> <HeaderTemplate> </HeaderTemplate> <ItemTemplate> <A href="<%# DataBinder.Ev...more >>

Sharing custom control between projects
Posted by Michael at 2/1/2005 1:36:32 PM
Hi all.. I have a solution containing 5 projects, one of which is a custom control. In one of the projects, I dragged the .ascx file from the custom control project and dropped it onto a form. I've also referenced the custom control project. Everything looks good, I can see properties and even...more >>

Can i use STYLESHEETS to set styles for ASP.NET controls??
Posted by Logan at 2/1/2005 1:18:39 PM
Can the subject be done, or is setting of styles via styles sheets limited only to classic html controls? Quite obviously i am new to asp.net. thank you all. ...more >>

asp.net dropdown control
Posted by venky at 2/1/2005 1:05:28 PM
hi, i have <asp:dropdownlist> control in my form. I want to write a client side script when the selected index changed. any code or ideas how to do it? venky ...more >>

DataView.sort does not work thru LinkButton
Posted by nish at 2/1/2005 12:53:37 PM
Hi, I have been working on Sorting within a Datagrid that is created programmatically, so everything is created in the code-behind. I have a Template Column that consists of a Header Template. The Header Template consists of LinkButtons, so when triggered it will fire an event calling the ...more >>

Causing IE to display in full screen mode.
Posted by Bredahl jensen at 2/1/2005 12:47:43 PM
Hello, Is there a way to cause internet explorer to display data in full screen mode. The F11 keys does som of the job. But the tool bar remain. Any idea? Many thanks JB ...more >>

ViewState - urgent help needed!
Posted by Random at 2/1/2005 12:23:17 PM
The way I've built my page is to take the user through a multi-form process, only rendering those controls that are needed for each section. The ViewState is working the way I want it to, remembering items across the process, back and forth. But when the user finally opts to complete the s...more >>

Expected parameter error
Posted by Andy G at 2/1/2005 12:19:50 PM
I am getting an error when I try to call my stored procedure. Exception adding account. Procedure 'stpCFSPH_CM_RGST_USER' expects parameter '@USER_DESCR', which was not supplied. I have a radio button list w/ two items, Student w/ a value of 2 and PrivUser w/ a value of 3. What I do on the c...more >>

Design Time vs Run Time DataGrid
Posted by rkbnair at 2/1/2005 11:35:03 AM
Is it possible to define the <ItemTemplate> and <EditItemTemplate> in DataGrid programitically at run-time? The sample definition is as follows: //=============================================== <asp:TemplateColumn HeaderText="TestColumnLabel"> <ItemTemplate> <asp:Label runat="server" ...more >>

ASP.Net application not seeing database?
Posted by POL8985 at 2/1/2005 11:22:14 AM
The application is built using ASP.Net in VS.Net 2003 and uses a SQL server database. About three times a day, the ASP.Net application fail to see the database, yet it will throw no errors. This results in users not being able to log in (they receive invalid user/password messages generated ...more >>

Linking to another website - graphics & changing programatically
Posted by Goober at 2/1/2005 10:49:42 AM
I had the following code in the HTML piece of my default.aspx page: <TD><IMG alt="ProductGroup1" id="img1" runat="server" height="100" width="200"></TD> <TD><IMG alt="ProductGroup2" id="img2" runat="server" height="100" width="200"></TD> <TD><IMG alt="ProductGroup3" id="img3" runat="server"...more >>

How do you split a string in JavaScript
Posted by Craig G at 2/1/2005 10:49:20 AM
i have the little jscript which i use for returning a value from a popupModal. but i want to extend this so that i cant split the string into different values in future the string will return a concatenated value, eg BT56FD%ClaraPark, with % being the dividing marker. but not being compentent...more >>

mouseOver effect
Posted by ACaunter at 2/1/2005 10:43:04 AM
Hi there, I have an ASP.NET page with 4 imagebuttons on the left and 1 big image in the middle.. i need to get a mouseover effect which changes the big middle picture everytime the mouse rolls over one of the 4 imagebuttons ( 4 different pics).. how can i do this??? -- AdamPC@hotmail....more >>

Datagrid and formatting problems
Posted by tshad at 2/1/2005 10:42:22 AM
I have been trying to figure out what the Datagrid is doing to create its formatting. I found that some of my Datagrids have a 3D type of border and sometime it has a straight line. I finally found that it comes down to whether there is a "rules=all" attribute (which gives me just a thin b...more >>

debugging SPs in VS.NET
Posted by G Dean Blake at 2/1/2005 10:27:47 AM
I have followed examples in a couple of books but am still unable to step into Stored Procedures in VS.NET. I enable sql debugging in the project properties, open the sp in server explorer and highlight a line where I want to start stepping through, then I select a line in my VB code such a...more >>

DataBinder conditions
Posted by Aleko Petkov at 2/1/2005 10:22:01 AM
Hi, I want to display different content in a DataGrid row, depending on the value returned by a DataBinder. I am trying to write something like this: <ItemTemplate> <% if( DataBinder.Eval(Container.DataItem, "UserID") > 0 ) { %> <asp:Hyperlink ... /> <% } else { %> ...more >>

listbox
Posted by Roger at 2/1/2005 10:19:46 AM
Hi, Is it possible to assign to 2 columns from a datatable to the datatextfield of a listbox? Roger ...more >>

Initializing and terminating a dll in ASP.NET
Posted by Hiren Patel at 2/1/2005 10:13:51 AM
Hi there, I have a third party dll that I need to initialize and terminate once and only once per application. By application I mean a physical exe and not the HTTP application. This is fine when I am creating a windows application as I can use the static void main function to do the in...more >>

Inluding a file in ASP+
Posted by Andrew Price at 2/1/2005 9:52:34 AM
Hi I am very new to ASP+, i have a background in Coldfusion and ASP. Anyway what i want to do is include a file set by a varianle so apologies for the phsedo like code.... <% dim myFileName myFileName = 'pageToInclude.aspx' %> <html> <body> ... .... <% include myFileName %> </b...more >>

Crystal Reports 'Logon failed' problem
Posted by Milan Todorovic at 2/1/2005 9:41:04 AM
Hello, I need help. I have experience in ASP.NET programming, but this is my first dealing with Crystal Reports. I'm trying to make the most basic report purely for testing purposes: connect to the remote SQL DB and create a report on one of the tables. Every time I do it, I get the Logon F...more >>

GetDirectories UNC path - Acces Denied
Posted by frederik at 2/1/2005 9:18:29 AM
Hi The website have to show subdirectories on a network drive. I use the following code: string[] directories; directories=Directory.GetDirectories(_Path); .... The _Path contains an url like \\server\directory\subdirectory\ Impersonate is set to true When i try the code from the l...more >>

VS.Net install crashes on start
Posted by Andrew Clancy at 2/1/2005 9:03:27 AM
Hi, I've got a small prob with my Visual Studio setup - seems to happen in both Visual Studio & VS.Net. The inital setup screen comes up, but when I choose the 1st option (Install Visual Studio in the case of VS.Net, Install Prerequisites for Visual Studio) a dialog titled 'Installshield' c...more >>

browser time zone
Posted by Philip at 2/1/2005 9:03:01 AM
I am executing a asp.net server based transaction and I need to determine the time zone of the client browser making such http request. Is there any such time zone info in the http request that is usually recommended to solve this problem ? Thanks -- Philip...more >>

Custom validator doesnt show error message but shows server error
Posted by pmud at 2/1/2005 8:39:08 AM
Hi, I am using a compare validator in asp.net application(c# code). This Custom validator is used for comparing a value enterd by the user against the primary key in the SQL database. IF the VALUE ENTERED BY THE USER EXISTS IN THE DB , then THE ERROR MESSAGE OF THE COMPARE VALIDATOR SHOULD ...more >>

Trying to reference a DLL (located in the GAC) from a JIT compiled page using codebehind.
Posted by Jason Kendall at 2/1/2005 7:58:26 AM
I've got a simple report that I'm building. This is just a single web page. It uses a custom DLL that I've built as an interface to my database. When I use th page within an ASP.Net project, in Visual Studio, I can set a reference to my DLL, Import the namespace, and everything works perfectl...more >>

Outlook and ASP.Net
Posted by Mike Moore at 2/1/2005 7:11:07 AM
Our uses don't want to login to another application just to notate their leave schedules. Most of our users are already familiar with Outlook and like it. They don't want an office calendar, so we are building an application to display all types of leave. So..... Is there any way to code t...more >>

Pmt function in C#
Posted by Justin Martin at 2/1/2005 6:57:47 AM
Hi, I'm trying to make use of the PMT function that is available for VB in my C# project. I've included the Visual Basic.NET Runtime in my references, added the using clause, but I still get the following error: The name Pmt does not exist in the class... What am I missing? thanks ...more >>

Program edit while application runs
Posted by rkbnair at 2/1/2005 6:31:18 AM
In Visual Interdev, the source code can be edited (both clientside and server side) while the application is running. And the changes will still be reflected in the application without the need for restarting. Is it possible in Visual .net development environment?...more >>

Advantage of DataValueField
Posted by Sunil Sabir at 2/1/2005 6:21:07 AM
Dear All, I am actually a bit confused about DataValueField. I know what is the use of DataTextField.But dont know anything about DataValue Field.Is it necessary to use DataValue field whenever we bind any Dropdownbox or listBox.What if we dont use DataValue field at all and stic...more >>

Strange HTML button postback
Posted by Miro at 2/1/2005 5:55:13 AM
I have a webform with lots of <asp:...controls but I need couple of buttons that doesn't cause an automatic postback. I use javascript to handle these buttons. I tried two approaches with different results: <IMG onmouseup="src='Bitmaps/Controls/measure_over.bmp';" onmousedown="src='Bitmaps/...more >>

New user
Posted by Vishal at 2/1/2005 5:32:51 AM
Hello All i m new reader of this group Vishal ...more >>

Get the row that an object is contained in
Posted by mwhalen at 2/1/2005 5:21:08 AM
Hello all, I have a datagrid that I dynamically add rows to (through binding to a datatable). Each row has a textbox that a user can enter a value into and a couple of other columns with values. I have the textbox autopostback set to true so that I can capture the text changed event. ...more >>

linkbutton not raising event.
Posted by prashant khandalkar via DotNetMonster.com at 2/1/2005 4:38:44 AM
Hello everyone. I am using asp:linkbutton in my web page. But when i click on the linkbutton it is not firing the click event please help me. It's urget my email address is pkhandalkar@gmail.com. -- Message posted via http://www.dotnetmonster.com...more >>

From excel file into MS SQL server
Posted by no one at 2/1/2005 3:25:33 AM
I need to find a way to upload an Excel file into an MS SQL database using a web control front end. I have my ASP.Net control (using C#) uploading a file to a directory, but the server people now tell me that I cannot have a writeable area for the web and have a DTS see it as this is too much o...more >>

How to end a session when the user closes the browser?
Posted by news.microsoft.com at 2/1/2005 3:24:06 AM
Hi everyone, I need some help (may be in the form of some sample code) for the subject question. I have an ASP.NET/C# application. I need to do quite a few tasks when the session ends. I don't want to depend on the session timeout factor since it may end too soon or it may hang around ...more >>

Server control on non-compiled .aspx page
Posted by Gordo at 2/1/2005 3:15:27 AM
Hi, I have written a number of server controls to build the company's intranet from data held in an Oracle database. Everything works well for the various navigation pages. However, the content pages are in the main converted .htm pages with no code behind. The issue I have is that I wish t...more >>

Pop up index.aspx
Posted by xzzy at 2/1/2005 12:12:32 AM
How can I popup the index.aspx page for a folder and have it be a window that does not have either an address dropdown, toolbar or menus? In other words, a page similar to what a javascript Response.Write("<html> . .. would create The purpose of the page is to accept a person's name, addres...more >>


DevelopmentNow Blog