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 > may 2005 > threads for thursday may 19

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 31

How to check for duplicate key violation?
Posted by EC at 5/19/2005 10:50:22 PM
I get an SqlException caused by trying to insert a duplicate key into a table. The user needs to be informed and asked to supply a new input. I check the SqlException object and see these two properties: ex.Number = 2627 ex.Message = "Violation of UNIQUE KEY constraint ..." So is it safe...more >>


Firefox Compatibility with dynamically added labels?
Posted by BJ at 5/19/2005 10:10:02 PM
Hi, I add label and text box fields dynamically in code using C# and ASP.NET. I set the width of the label using: Label label = new Label(); label.Width = 20; label.Text = "Test"; panel.Controls.Add(label); This works fine with IE where the width is correct, but the widths of the lab...more >>

dynamic web controls
Posted by Seelan at 5/19/2005 9:24:00 PM
Hey Guys, Im trying to make a DYNAMIC web application. 1st page should have a drop down menu with 2 options.(this can be done). When the 1st option is selected it should build a website with a couple of web controls (dDlist preferred) in proper positions. Can some one please guide me throug...more >>

how to fix this error of access denied ?
Posted by TJS at 5/19/2005 7:32:53 PM
Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\myapp\hash.web" is denied ...more >>

Web.Config and Authentication
Posted by Shapper at 5/19/2005 7:02:58 PM
Hello, I am creating a web site with a Content Management System. The web site doesn't have any restricted area. The CMS has a login page and all pages in it need the user to be authenticated. I am following this tutorial in MSDN: http://support.microsoft.com/kb/308157/EN-US/ I am ha...more >>

How do I add a search facility to my ASP.NET web site?
Posted by Alan Silver at 5/19/2005 6:09:26 PM
Hello, I am in the planning stages of a new ASP.NET web site, and would like to know if it's possible to add a search facility to it. The site will be a mixture of static pages and ones generated from database queries. Ideally I would like something that will search the pages generated by ...more >>

retain anchor and linkbutton text appearance after it is clicked
Posted by Steve Richter at 5/19/2005 6:07:18 PM
how do I cause and anchor or link button to not change its text color once the link has been clicked? thanks, -Steve ...more >>

About Session Object
Posted by roland at 5/19/2005 5:07:15 PM
When is the session object created and by which class,httpruntime or httpapplication or sessionstateModule? Thanks ...more >>



Formatting and browser compatibility
Posted by Paul Mason at 5/19/2005 5:06:27 PM
Hi folks, I just need some advice about books/where to look about this subject. I've got a number of happily running .NET apps that are doing the business and have some good formatting, as long as the user is using IE. Non of these applications are doing anything particularly special, j...more >>

Does IIS support ASP.NET 2.0 beta 2?
Posted by David Dean at 5/19/2005 5:04:43 PM
I can run my ASP.NET 2.0 beta 2 application on a development workstation, but how do I host it on my Windows 2000 Server? Do I need 2.0 beta 2 framework? -David ...more >>

HTTP Binary Get
Posted by Da Rabit at 5/19/2005 5:04:16 PM
Hi All I need to download a gif file from a url,t he file is binary written, so all i need to do is get the file and save it from a URL. ( Used to use the old http object in VB to do this) anyone know how to do this with the .NET Framework ? ...more >>

How to retrieve form field value if form is EncType=multipart/form-data Form?
Posted by Li Zhang at 5/19/2005 4:45:51 PM
I know I can use controlName.Value to retrieve the form fields value if I am in that page. But if I am out of the page, for example I am in a HttpModule, I want to retrieve a hidden filed value, Is that possible? if so how? Thanks!...more >>

controlling a downloaded filename
Posted by Bob Weiner at 5/19/2005 4:32:25 PM
Can I control the name of a file downloaded if that file name isn't in a request header? I have a data grid that contains a list of excel files by date. In each row there is a ButtonColumn pointed at a handler containing the code: case "Download": Response.ContentType = "Ap...more >>

is server-side html controls a new technology?
Posted by dee at 5/19/2005 4:14:43 PM
Hi, I was wondering if server side html controls were used prior to dotnet? Thanks Dee ...more >>

System.Net.WebException: The request failed with the error message:Object moved to here
Posted by Skeptical at 5/19/2005 3:58:56 PM
Greetings, This question is related to Microsoft Reporting Services Web service. I tried asking it in RS groups but no one seems to be knowledgeable enough to answer, so I wanted to try my chances here. Thanks... I am trying to get the code below to work with no success, I googled the iss...more >>

application variable in pure code file?
Posted by josh harmon at 5/19/2005 3:57:12 PM
I've got the following simple line of code in a codefile in an asp.net application. The codefile has a lot of common routines I use in several applications. When I try to use a application variable it throws, "Object reference not set to an instance of an object" errors. Can you not use appli...more >>

Clear all fields on a screen
Posted by tshad at 5/19/2005 3:56:29 PM
Is there a way to tell a screen on Postback to clear all the objects (or put them back to their defaults on Postback)? At the moment, I am just going through and setting them manually before reading new records. Thanks, Tom ...more >>

Asp:DropDownList and Firefox Issues
Posted by Shapper at 5/19/2005 3:55:03 PM
Hello, I have na Asp:DropDownList 2 things are not working in Firefox: CSS and Width. It works fine in Internet Explorer. How to solve this? Thanks, Miguel ...more >>

Asp:DropDownList. How to fill items on page_load?
Posted by Shapper at 5/19/2005 3:13:51 PM
Hello, How can I fill the items of a DropDownList on Page_Load? Thanks, Miguel ...more >>

Asp:DropDownList simple question. Need help.
Posted by Shapper at 5/19/2005 3:11:07 PM
Hello, I have a function in my aspx.vb file which changes culture: Function Change_Culture(newCulture As String) .... When a drop down list item is selected I want automatically to call the function Change_Culture(Item.Value that was choose in the dropdownlist). Can someone help me ou...more >>

Datalist Dynamic Template Loading Problem
Posted by mbailey at 5/19/2005 2:33:10 PM
Hello- I am failry new to asp.net but have been coding in general for a while. I have a datalist whos templates are built on the fly. In the Page_Init sub, based on a certain value, certain external controls are assigned as the ItemTemplate and the EditTemplate. 1)If I only assign these tem...more >>

Formatting output fron Helper Function in Template? Syntax?
Posted by D. Shane Fowlkes at 5/19/2005 2:31:29 PM
Hey guys. I have a Repeater and a Template. One of the dataitems calls a helper function. The dataitem sends the record ID to the function and the function runs a complex query and returns a calculation which is a dollar amount. The ID is a "construction project" and the helper function goe...more >>

Need help with file deletion script
Posted by Joe at 5/19/2005 2:02:06 PM
Hi, I have written a webpage that allows a user to delete files in asp.net with I am having a small problem. To access this page a user has to login via login.aspx page. After successful login, user is directed to a page called view.aspx which shows the user the files in a directory an...more >>

Formatting fields on DataGrid
Posted by Gary Paris at 5/19/2005 1:58:10 PM
I have a datagrid on my web form and I have populated it with the following code: Dim strConn As String Dim strSQL As String strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Test\MyDatabase.MDB;" strSQL = "Select client, newstarttime, newendtime, ccode fro...more >>

why browser cache setting affects program behavior? Fix?
Posted by junlia at 5/19/2005 1:58:03 PM
Hi All, I am working on a project that acts as a bridge. It does some checking with post xml data, and then redirects the request to an appropriate page. However, we find that depends on the browser cache setting (and OS), the program behaves differently. This is how it should work: ...more >>

HTTPHandler
Posted by vibs at 5/19/2005 1:54:01 PM
I want to change the contents of a page using HTTPHandler. How can I get the content of the page in ProcessRequest? Thanks a lot!!...more >>

Question about HttpModule for file upload progress bar
Posted by Li Zhang at 5/19/2005 1:24:40 PM
Hi guys, I am trying to write a httpmodule to implement upload file progress bar. I searched web and got some sample code from code project (http://www.codeproject.com/aspnet/File_Upload_Progress_Bar.asp?df=100&forumid=155656#xx1079964xx) Here is the code I modified. The problem is: if I d...more >>

DIV width problem, 100%
Posted by kurt sune at 5/19/2005 1:21:27 PM
I have the following code in an ASPX- page: <DIV id="header" style="Z-INDEX: 102"></DIV> I render it using a CSS: #header { background: #0D3D91; position: absolute; top: 0px; left: 0px; right: 0px; width: 100%; height: 18px; overflow:hidden; } Problem: ...more >>

Can I use C# code in a VB project?
Posted by Diego F. at 5/19/2005 1:08:34 PM
Is it possible to use directly C# code into a VB project? If not, is there any tool to convert from C# to VB.NET? -- Regards, Diego F. ...more >>

tab control
Posted by Yoshitha at 5/19/2005 1:07:47 PM
I have to use the tab control in my webpage when i click on the particular tab it has to show the controls in that tab. is there any free tab control,if there please let me know. Plz help me out. thanx in dvance Yoshitha ...more >>

How do I disable Line Wrapping in TableCell?
Posted by Amelyan at 5/19/2005 12:59:24 PM
If I have spaces in my Text property of Label, and I add it to TableCell, it wraps at spaces. E.g. Label lb = new Label(); lb.Text = "Hello, World!" TableCell cell = new TableCell(); cell.Controls.Add(lb); The resulting TableCell html render will look like this _______ | Hello, | ...more >>

Finding the delete button in a datagrid
Posted by hansiman at 5/19/2005 12:39:57 PM
When I want to add a js confirm box to a delete button that is positioned in the last column in a datagrid row I do the following in the ItemDataBound event: Dim delBtn As LinkButton = e.Item.Cells(10).Controls(0) delBtn.Attributes("onclick") = "javascript:return confirm('you sure?');" If ...more >>

Add Times?
Posted by James Goodman at 5/19/2005 12:08:13 PM
I have modified the ASP.NET TimeTracker Starter Kit to include the ability for users to log working hours (Start Time, Finish Time, Lunch Duration). This is then presented to them in a grid & a TimeWorked column is calculated (in a UDF within the DB). I want to include a label in the footer...more >>

vbscript msgbox confirmation when user clicks Cancel button
Posted by Bucky at 5/19/2005 11:45:24 AM
I haven't found any vbscript code that can stop the form submission/postback after the msgbox. The problem is that asp:button is rendered as <input type="submit"> instead of <input type="button">. So instead of doing a "document.form(0).submit" upon "Yes", I need to stop the form submission upon...more >>

Web User Controls: A GIF in resx
Posted by kurt sune at 5/19/2005 11:41:56 AM
I have made an user control for a header for all web pages. Now I want to add an image in the header. What is the best way of embedding a GIF in the usercontrol? I donot want to distribute the image separately from the usercontrol. Put the gif in the resourcefile? Other options? /k ...more >>

Disabling postback repopulation of controls
Posted by Por Belmstedt at 5/19/2005 11:30:59 AM
How do I disable postback repopulation of non-viewstate controls, such as normal textboxes etc? (Surely there must be a more elegant solution than manually clearing them on page load...) ...more >>

Dropdown box limit
Posted by chuckdfoster at 5/19/2005 11:25:29 AM
Is there a limit to the number of rows that can be in an asp.net dropdown box? I know there is a limit in MS Access, but didn't know if it applied here. thanks, -- Chuck Foster Programmer Analyst Eclipsys Corporation - St. Vincent Health System ...more >>

Problem in event viewer
Posted by Jennyfer J Barco at 5/19/2005 11:21:23 AM
Hello, I have a project in .NET and I use a Crystal Viewer to show some reports. Everything showed fine, but now when I call the report it appears like very big that it doesn't fit in the screen. I have an option to generate a pdf file and when it opens the PDF the report is so big that only the...more >>

Q: datagrid to a file
Posted by JIM.H. at 5/19/2005 11:16:03 AM
Hello, I have my tabled displayed through a datagrid to users. Now I need to export this data to excel, xml, pdf once users click a button. How can I do this? Thanks, Jim. ...more >>

Drop Down List
Posted by Seelan at 5/19/2005 10:53:36 AM
Hello folks, I have a database table with CategoryID, Name and Description. I made 2 DropDown Lists one for Displaying Name and the other for Description. I want to add a web control, lets say a simple Datagrid that would display the CategoryID depending on the values selected from the 2 drop...more >>

get computer domain
Posted by guoqi zheng at 5/19/2005 10:40:46 AM
For some reason, I need to get the server domain, who can I obtain this? regards, Guoqi Zheng http://www.ureader.com...more >>

Shared Session Data
Posted by MS ASP.NET at 5/19/2005 10:40:18 AM
I'm using sql server session state and wrote a class to wrap current session. I need to know if what I am doing will result in users sharing session data. '---------------------------------- '------- Session Wrapper -------- '----------------------------------- Imports System.Web.SessionSta...more >>

Help Regarding Server Side Validation...
Posted by msnews.microsoft.com at 5/19/2005 10:37:14 AM
Hi All, I m facing a problem. As u know asp.net vallidators did not work in = non-microsoft browsers. So for that i m using Server Side Solution. But i don't understand how = can i show the validation summery with all messeges as they show on = client side in IE. Means that when we submit th...more >>

any one who can translate this vb.net to C# ?
Posted by Kylin at 5/19/2005 10:34:33 AM
Public Class test1 Inherits System.Web.UI.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Protected WithEvents Button1 As System.W...more >>

Dynamic data layer compilation
Posted by Alex at 5/19/2005 9:48:08 AM
I am working on a new project whereby we are going to generate the datalayer dynamically. Multiple customers will use the system and each customer will have their own unique datalayer for each of their dataobjects. In other words, one customer's datalayer for a PERSON object will be differen...more >>

proxy-script
Posted by Ellie at 5/19/2005 9:18:08 AM
Hi, I need to find out how to use a proxy-script to submit a form to one server, have it act as client and send the form to another server, which collects data, and then submits that data back to the original server in xml format. Any help would be appreciated. Thanks ...more >>

altering Request.Headers
Posted by Adam at 5/19/2005 8:58:01 AM
It seems you cannot through an httpmodule alter request.headers. Is there a way around this (sure.. it works fine in isapi of course). It doesn't seem to have been changed in asp.net 2.0 either. Any workaround? Thanks...more >>

wildcard mappings/httpmodule/asp.net 2.0/iis6
Posted by Adam at 5/19/2005 8:58:00 AM
Its my understanding that in asp.net 2.0 you can write an httpmodule that will acts as a wildcard handler and pass requests on to the proper engine, for instance, asp or perl for example, In the past I believe if it wasn't an aspx file, things didnt work right. Can anyone provide input if this...more >>

Server.MapPath() in non Page class
Posted by Steve at 5/19/2005 8:50:32 AM
I have a class that I need to use Server.MapPath(), when I try to compile, I get this error: The type or namespace name 'Server' could not be found (are you missing a using directive or an assembly reference?) Are there any static members I can access outside the Page class to get to MapPath?...more >>

Unable to set up emailReader
Posted by tshad at 5/19/2005 8:21:50 AM
I have a dataReader that was used a second time in the same routine and got the following error: Object must implement IConvertible. It worked fine just before. I did a stored procedure call just before, closed the connection, set up the new parameters for another stored procedure and got...more >>

test
Posted by Ravi Chand via .NET 247 at 5/19/2005 8:16:31 AM
(Type your message here) test -------------------------------- From: Ravi Chand ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>36fv6xyTBEK6xHm0+ecPtA==</Id>...more >>

Fine-grained access control
Posted by dw at 5/19/2005 8:13:37 AM
Hello. I've got my LDAP authentication working, and have authorization working to a great extent as well: I'm limiting who can access the site by using <allow users="smithj, harrisb, ...."> in the Web.config file. Is it possible to use this file to also determine who can write to a particul...more >>

aspnet_wp in 100% lockup (framework 1.1, not 1.0)
Posted by Damien at 5/19/2005 8:02:06 AM
Hi guys, I'm getting a bit of a wierd one with my ASP.NET application. I'm running under framework 1.1, which is a shame, because the following KB articles looked interesting initially: KB810280, and, KB321792 Essentially, the app is running along reasonably happily, and then suddenly a...more >>

Empty child database and masterID problem
Posted by Neo Geshel at 5/19/2005 6:24:00 AM
Greetings. I have a serious problem. I have multiple sets of tables, several of which are chained more than two tables deep. That is, I have a parent, a child, and a great-grandchild table. Currently, I am allowing the parent to be edited by itself. In order to get to a child table, a us...more >>

whats with everyone coding in VB.Net
Posted by garethdjames NO[at]SPAM gmail.com at 5/19/2005 6:20:46 AM
How come everyone in this group codes in VB.Net and not in C#? Please don't flame me ...more >>

Please I need help with a datagrid item on edit
Posted by louise raisbeck at 5/19/2005 6:02:01 AM
Hi, I have been on this for hours and just cannot work it out. I have a datagrid. I set the edititem index to a row to edit, that works. However if i want to put a value into this textbox it wont let me. I just cant find the control in the controlcollection for the cell. Is it because it ha...more >>

Problems understanding User Control???
Posted by Tim::.. at 5/19/2005 5:55:35 AM
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for some reason I keep getting the error: Exception Details: System.NullReferenceException: Object re...more >>

DataGrid Question
Posted by Ryan Smith at 5/19/2005 5:54:02 AM
I'm trying to use a datagrid to display data and that has been easy - what i'm trying to do is have a rows background color change to red if the first databound column is 0 for the item. I have entered an onitemcreated sub routine to handle the data item when its added to the grid but it hasn...more >>

how to force display of datagrid with empty datasource
Posted by carballosa at 5/19/2005 4:57:23 AM
Hi guys, I need to use a one row datagrid in my asp.net 1.1 application. The data source will contain 1 or 0 entries. When no rows of data are present I want to show an empty row in the datagrid (ie. with empty cells). Unfortunatly I get no datagrid shown instead. Any idea how I can force t...more >>

DataGrid Add Row Client Side
Posted by Jon at 5/19/2005 4:00:03 AM
Hello all, Is it possible to add a row to an ASP.net datagrid via clientside JavaScript? Thanks, Jon...more >>

Repeater - hyperlink
Posted by fredda054 NO[at]SPAM hotmail.com at 5/19/2005 2:37:23 AM
Hi everybody ! I need some advice about a repeater... I have a repeater on a website displaying a list of hyperlinks. The url's of these hyperlinks are all stored in a database. everything's working just fine except if the url field in the database table is 'null'. Is there an easy way to make ...more >>

Problem with User Control...
Posted by Tim::.. at 5/19/2005 1:16:04 AM
Can someone please tell me why when I refer to a Sub in my User Control I get the following error... Error:.. Reference to a non-shared member requires an object reference For some reason I can't find out why I am unable to refer to the following sub... Would be grateful for any help....more >>


DevelopmentNow Blog