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 > april 2006 > threads for thursday april 6

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

image instead of text with HyperLinkField control
Posted by J055 at 4/6/2006 11:57:39 PM
Hi There doesn't appear to be a ImageUrl property for the HyperLinkField item. You can set an image in the header but not the field row. Or am I missing something? Is there an easy way round this or do I need to create my own solution with a TemplateItemField or create a custom control? ...more >>


How to create Web Setup Project without coding source files
Posted by Rabbit at 4/6/2006 11:42:07 PM
I like the feature of "Publish Web Site", because it can deploy a compiled version of my web solution. But currently I need to deploy Crystal report onto IIS with only .Net 2.0, so I'm trying to create a web setup project to include crystal report merge assemblies files. The problem I'm hav...more >>

sending email form data
Posted by socal at 4/6/2006 11:31:01 PM
I'm a PHP programmer, but was asked to look at a problem with a mail form using ASP (which I have never used before). I was able to figure out from Googling that the error message had to do with Microsoft no longer using CDONTS and now I can actually get it to send it to my address. But, I'm hav...more >>

ObjectDataSource - problem inserting empty field into stored proce
Posted by Dabbler at 4/6/2006 11:11:01 PM
I'm using an ObjectDataSource with a stored procedure and am getting the following error when trying to update (ExecuteNonQuery): System.Data.SqlClient.SqlException: Procedure or Function 'UpdateRegistrant' expects parameter '@EMail', which was not supplied. The field value was null in th...more >>

Render report in PDF
Posted by David Lozzi at 4/6/2006 11:10:33 PM
Howdy, I have some ASP.Net reports created (datagrids) and now we need to get them to PDFs. I don't want to create Crystal Reports for these because thats twice the work. How can I change an existing page into a PDF? Its more than just Response.ContentType = "application/pdf" There's ...more >>

Valid web address
Posted by aroraamit81 NO[at]SPAM gmail.com at 4/6/2006 10:11:08 PM
Is there any way by which I can validate fora valid web address............... Regards, Amit Arora ...more >>

Opinions on asp.net e-commerce software
Posted by BigDave at 4/6/2006 8:46:12 PM
Hi all, I'm looking for opinions and recommendations on an ASP.NET e-commerce software. As a long-time ASP.NET developer, I'm looking to provide e-commerce solutions to businesses, and thus am looking for the most feature-rich, bug-free, and extendable package out there. Packages that I'...more >>

Please give me Parameter Examples in ASP.net 2
Posted by Phillip Vong at 4/6/2006 8:43:47 PM
Please some one help me. I'm trying to learn something very very simple and I just have to see how it's done. If you're using VS2005 or VWD, please create this very simple asp.net page for me and just past the whole source code so I can see how it's done. This is all i want to do. DB = S...more >>



How to Refresh the parent page while the child page is closed
Posted by muthu at 4/6/2006 8:26:47 PM
Hi guys, Iam using vb.net as the code behind for my web application.In one of the page iam opening a popupwindow from the parent page.In that popup iam entering some value and submitting.After that if close that pop up window,the grid view in my parent page should be refreshed.How ca...more >>

VS 2003 to VS 2005
Posted by rizwan_mk NO[at]SPAM hotmail.com at 4/6/2006 7:49:54 PM
HI all, I migrated my webapplication from VS 2003 to VS 2005. and i am running on win xp Professional sp2. After migrating. i am getting the following error . "The type initializer for 'System.Web.Compilation.CompilationLock' threw an exception." the error is shown in the following line ...more >>

How to initialize textbox value in FormView in InsertItemMode?
Posted by yuchang at 4/6/2006 6:40:02 PM
Hi, I want to insert some value into textbox automaticly in FormView InsertItemMode. This value may be a session value or to click a button to insert it. I try to replace <%# bind("blah")%> description by (String)Session.contains["blah"]. This method is work when showing on the screen...more >>

Simeple Reg Exp Not working
Posted by MSDN at 4/6/2006 5:55:36 PM
Hello, Does anyone what RegExp to use for the following. 3-digits followed by "-" or " " then Followed by 6 or 7 digits then followed by any number of spaces. 111 111111 111-111111 222-123456"" space at the end okay 231 1345678 I just can not figure out the end spaces... Than...more >>

How to cast object to primitive array?
Posted by antonyliu2002 NO[at]SPAM yahoo.com at 4/6/2006 5:50:05 PM
For my web application, I store a primitive array of strings to session. Dim arrLastNames(10) As String blah blah Session("AllLastNames") = arrLastNames Now, when I retrieve this session item with the session key "AllLastNames", how do I cast it back to an array of primitive Strings? ...more >>

Quick Parameterized SQL question (inserting text)
Posted by darrel at 4/6/2006 5:36:42 PM
I'm using parameterized sql for my Db updates and typically use something like this: objCommand.Parameters.Add("@pageID", System.Data.OleDb.OleDbType.numeric).Value = 24 However, I now need to add a string to a 'text' field in MsSQL. There isn't a System.data.oledbtype.text option. Is...more >>

FormView
Posted by Andre at 4/6/2006 3:46:12 PM
Hi, I try to change some value in the databind of my formview, but can't find a way to dot it. In Asp.net 1.1 i was using someting like this : Public Sub item_bound(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) If e.Item....more >>

ViewState Issues
Posted by Robert Bravery at 4/6/2006 3:46:10 PM
Hi I have a form with sever data controls (No controls are embedded, all are placed directly on the form): The first control is a DataView, following that are 3 Grid Views. On subsequent calls to the page, the Dataview recalls it's state, or redraws data appropriatly, but the remaining grid...more >>

Q: Numbers in stack trace?
Posted by Usenet User at 4/6/2006 3:16:53 PM
Here is an example of an exception stack trace in ASP.NET: Comp.Alt.FileSearch.Default.cmdFind_Click(Object sender, EventArgs e) +1337 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String even...more >>

Check Permissions to access a file/folder
Posted by krammai at 4/6/2006 3:09:01 PM
Does ASP.NET 2.0 provide an easy way to programatically determine if a user has permissions to access a particular file or folder? If yes, code snippets would be greatly appreciated....more >>

Getting Title of a HTML Page
Posted by Lalit Bhatia at 4/6/2006 3:00:17 PM
I have created a page that contain a link of another page. I want to get the title of that page. Is there any way to get title of that page? -- Regards, Lalit Bhatia ...more >>

Locking XML/Corruption problems
Posted by darrel at 4/6/2006 2:57:08 PM
Followup to a previous related topic now that I have a few more details. We've been having issues with part of our home-grown CMS. Whenever a page is edited, and saved, we do a recursive call to the DB and then spit out an XML file to build the site map, which is then published to the site...more >>

How to get value of QueryString inside QueryString
Posted by Mehdi at 4/6/2006 2:37:59 PM
Hi, I get the following URL on page load: http://www.server1.com?RedirectUrl=http://www.server2.com?id=777 So QueryString["RedirectUrl"] will return (after cleaning up via URL Encode/decode) : "http://www.server2.com?id=777" However I am interested to get the value of "777" without us...more >>

Update value in datagrid
Posted by esperanza at 4/6/2006 2:16:16 PM
Hello ASPX expert !! Here is my problem. I have a datagrid binded to a dataview. I edit the datagrid and change the value of my textBoxes from my datagrid. When I click to update the data, What I read is the old values (txtProduitVIPNo) Any Idea?? thanks in advance !! Esper...more >>

Regular Expression Question
Posted by Ramesh at 4/6/2006 2:00:02 PM
I have a reguar expression syntax that works fine when used in a RegularExpressionValidation control. If I use the exact same regular expression using System.Text.RegularExpressions.Regex to validate, it doesn't catch all invalid formats. This is for validating a single line text with mult...more >>

Protected access modifier in Struct
Posted by Stephen at 4/6/2006 1:33:57 PM
Hi, Please do tell me why i cant have a protected access modifier in a struct? i get this error namespace StructExample { class Tester { static void Main(string[] args) { //instance of struct } } internal struct Location { protected Location(int xCoordinate, int y...more >>

Console application hangs when called from Process.Start
Posted by chad at 4/6/2006 1:29:39 PM
Hi, I am using Process.Start() to call a console application from ASP.NET page. When the code is executed, the Console application is opened. When it is done, it should have been terminated but it is not. I have placed WaitForExit(20000) to limit the execution time to 20 seconds and if it doe...more >>

One codebase, multiple configs?
Posted by Jon at 4/6/2006 1:11:10 PM
Is it possible to have a single site directory with all the aspx files and the bin directory, then have several other directories that hold customized images and web.config file for each customer? So, the directory stucture would be like: 1 - MainDir a - Bin 1a - site.dll b - in...more >>

Incorrect syntax near 'int'
Posted by David at 4/6/2006 12:34:36 PM
I am using VS2005 and .Net 2.0 with a DetailsView control tied to an SqlDataSource. I get the above error when I click the Update link button on the control. I cannot see where this "int" is anywhere in my UpdateCommand string. How can I debug this error? Thanks. David ...more >>

Unable to publish web site
Posted by Todd at 4/6/2006 12:03:02 PM
My web site compiles fine. Tihs was a VS 2003 working application that was converted to VS 2005. When I try to publish to a directory I get a "Data at the root level is invalid." error in the published version of web.config line 1. The contents does not reflect the real web.config. I am ab...more >>

Themes (confirmation question)
Posted by Bishop at 4/6/2006 12:00:19 PM
I just started looking into themes. I need to dynamically assign them and have been using the following code at the page level for a master page site: Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit Page.Theme = "myCoolTheme" ...more >>

Multicolumn tree view control
Posted by Adam Clauss at 4/6/2006 11:26:32 AM
I need to implement a multi-column tree control. If I remember correctly, MFC had such a class for Windows dialogs (Windows forms may have one as well, but I have not used it). Does such a control exist for ASP.NET (2.0). I'm currently attempting to create my own, using nested GridView's,...more >>

need Help on a Class livetime under ASP.NET
Posted by Bruno Alexandre at 4/6/2006 11:08:38 AM
Hi guys, I'm using a session to save an ArrayList, so I do not read Database everytime user reload the page or enter the site (the Data is consistent for all entire session time when the user is on the site). I'm using a Class called ProductBoxes and inside I have a public property of Obj...more >>

Login com permissões.
Posted by tarcisio at 4/6/2006 10:48:17 AM
Pessoal, novamente eu vou recorrer a ajuda do grupo, eu gostaria de fazer uma tela de login com permissões !, alguem ai conhece algum artigo na internet que mostra como fazer isso ?? -- Tarcísio Corte de Paula Assistência Técnica Wienerlab Labinbraz Com. Ltda 11 - 2162-0200 - Ramal 0...more >>

ThreadAbortException Question
Posted by Burak Gunay at 4/6/2006 10:37:29 AM
Hello, I have a piece of code where I am writing the contents of a datagrid to an excel report Dim tw As New StringWriter() Dim hw As New System.Web.UI.HtmlTextWriter(tw) Dim frm As HtmlForm = New HtmlForm() Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-dis...more >>

ASP.NET, Crystal Reports, SQL Server, and Windows Authentication?
Posted by Doug at 4/6/2006 9:57:59 AM
Simple question, hoping for a quick answer: Using Visual Studio .NET 2003 and Crystal Reports 10, is it possible to connect to a SQL Server 2000 database using Windows Authentication/Integrated Security? We have been unable to make it work. And I have read several posts suggesting that it c...more >>

server controls javascript
Posted by Alejandro Penate-Diaz at 4/6/2006 9:56:35 AM
is there any documentation for the javascript generated by the server controls? I need to make use of some of the treeview autogenerated javascript in order to implement an ajax based solution to populate nodes ondemand when the node's checkbox gets checked. Is this possible? Thanks, Ale...more >>

Unable to retrieve profile info
Posted by Ashley Bryant at 4/6/2006 9:54:01 AM
I'm just starting my first 2.0 site with the new membership features and am having some trouble with profiles. I have my providers set up and working fine and profile data is being written to the database. However, I can't retrieve any of the stored profile values on my site. I set up the p...more >>

Date format in datagrid
Posted by Derek Vincent at 4/6/2006 9:41:03 AM
What must I do to overcome a problem with my dates becoming formatted as "2/22/2525 12:00:00 AM" in the datagrid? I want to handle all dates as short string of format "2/22/2525." Otherwise when I run the update routine SQL (set start_date = "2/22/2525 12:00:00 AM") does not work while short ...more >>

Expand/Collapse Datagrid
Posted by sirfunusa at 4/6/2006 9:40:13 AM
Does anyone have sample code for an expanding parent/child datagrid. Like a treeview control with the "+/-" signs. ASP.NET 1.1 thanks Jeff ...more >>

Make one cell in gridview invisible?
Posted by Jo at 4/6/2006 9:24:37 AM
Hi all, I have a gridview displaying a dataset and some buttons. When a certain cell of this datasetrow is empty, I want a button in that row to be visible, otherwise no button should be shown in that row. I'm trying to make this work all day, but it's not going to work. I tried this in t...more >>

Populating List
Posted by Waran at 4/6/2006 9:12:01 AM
a combo box that starts off empty. The user can type int he combo box, and as he types, after the third letter has been typed, the page does a lookup against a database (SQL String) to our server, and populates the combo with matches, and the combo box drops down so they can see them. There wo...more >>

How does ConvertFromString work?
Posted by Sean Sampey at 4/6/2006 9:03:29 AM
I have two strings, strType and strValue. I am looking for a single, generic function to create an object of type strType with a value of strValue. I think I'm looking to use TypeConverter.ConvertFromString. Perhaps I'm wrong. Using ConvertFromString (or any other function that'd work), how ...more >>

custom base classes
Posted by matt.delvecchio NO[at]SPAM shell.com at 4/6/2006 8:10:50 AM
hello, i understand the usefulness of having custom base classes when it pertains to common methods or custom handling of events (say, overriding all pages OnError and sending out an email of the exception). my question perstains to custom properties of a base class. say i write a base cla...more >>

Nasty problem with the .net site ...
Posted by Koen Hoorelbeke at 4/6/2006 8:02:02 AM
Hi there, I'm about to commit suicide :) Since a couple of weeks I have a persistent problem with the performance of my sites (well, actually it's one particular site). For some reason the site is very unresponsive. What happens? Well, the site just becomes unresponsive after some time. It...more >>

Removing excess white space
Posted by clickon at 4/6/2006 8:01:02 AM
I am building up the validation expression for a RegularExpresionValidator control by retreiving some values from a database and looping through the DataTable to build and adding lots of | characters. Basically i want to build up a string along the lines of ^102|103|104|105$ where the number...more >>

Unbound fields not getting updated, written to DB VS.Net 2003
Posted by nowandever29 at 4/6/2006 7:32:02 AM
I've got an asp.net 1.0 web form, which has a ton of fields. I am NOT using data binding. I programmatically create a data adapter and load the values into a table, then populate the fields on load. When the user clicks save, I gather the data from the fields and generate an UPDATE command ...more >>

Authentication/Configuration/Web.Config Error?
Posted by Matt at 4/6/2006 7:08:09 AM
I am getting the following Error. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is a...more >>

Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
Posted by bazzer at 4/6/2006 5:46:24 AM
i have a webform which is connecting to a microsoft access database. the database contains info about dates and times of films showing in cinemas. im trying to get the times of a certain film from a certain cinema on a certain date. this is the sql in my data adapter: SELECT FilmDetails.ci...more >>

Slow compilation/building of VS 2005 Web Projects
Posted by Gawel at 4/6/2006 4:22:25 AM
Hajo, I have soulutin with 7 library projects and 2 web projects. When I change something in one of the libraries and hit F5 it takes literally 1-2 minutes to start an application. I've noticed - looking at output window - that huge time of building takes web site validation. The output is ...more >>

Binding data to a server control inside repeator control
Posted by muthu at 4/6/2006 2:48:37 AM
Hi guys, Iam using a repeator control in my page.In wich i have dropdown list as the last column.I have a label in the first column.Now i have binded a datable to the repeator in the page load event.And assigned vale to the label in html as <asp:Label ID="c_invAmt" Runat="serv...more >>

Help on HyperlInk column ????
Posted by serge calderara at 4/6/2006 1:36:01 AM
Dear all, I have the folloeing entry for a datagrid column : <asp:HyperLinkColumn Text="<img border=0 src=file.gif>" HeaderText="File" DataNavigateUrlField="DOC_LINK" DataNavigateUrlFormatString="{0}" Target="_blank"> </asp:HyperLinkColumn> My DOC_LOMK database field contai...more >>

FormView viewstate always gets lost - why?
Posted by Jurgen Appelo at 4/6/2006 1:21:02 AM
I asked this question earlier, but unfortunately the two replies I got did not solve the problem. Here it is again, but now with the code: After an Update my FormView always loses its viewstate values. The field values in the FormView are always overwritten by the results of the Update meth...more >>

question
Posted by joe at 4/6/2006 1:00:02 AM
how to test the input parameter of stored procedure whether is string or int...more >>

Is this a bad way to page a datalist?
Posted by needin4mation NO[at]SPAM gmail.com at 4/6/2006 12:44:11 AM
Is it a bad to page a datalist by using a dataadapter's fill method and adjusting the int startRecord (in one of the overloads) as needed? Example: myAdap.Fill(myDS, index, 15, "contacts"); and changing the variable "index" as I need to? It would be 0 first, then maybe 15 each time. ind...more >>

How can I detect which control was clicked?
Posted by needin4mation NO[at]SPAM gmail.com at 4/6/2006 12:39:18 AM
Hi, I have two links, one function. Both links are wired via the onclick to the same function. I want to test in the function which link was clicked and code accordingly. How? I have looked around on google groups and could not find it. Any help is appreciated. <td><asp:LinkBut...more >>

Use an object in the GAC
Posted by Andrea at 4/6/2006 12:00:00 AM
I installed an assembly into the GAC, now I need to use it into a dll, but I cannot simple reference it, since I'm developing in a local machine and maybe that on the hosting provider the GAC isn't in the same local directory and this teorically will broke the code. At least I think so, but I'...more >>

Session ASP3.0 / ASP.NET
Posted by Neven Klofutar at 4/6/2006 12:00:00 AM
Hi, Is there a way that I can write information into ASP 3.0 session, so that I can read it in ASP.NET application ? thanx, Neven ...more >>

How to automatic redirect if session timeout using ASP.NET 1.1?
Posted by ABC at 4/6/2006 12:00:00 AM
How to automatic redirect if session timeout using ASP.NET 1.1? ...more >>

trying to find the html id of a textbox in FooterTemplate at runtime
Posted by David C at 4/6/2006 12:00:00 AM
Here is my goal. I have a textbox in the FooterTemplate of a datagrid <FooterTemplate> <asp:TextBox ID="txtFooterTextBox" Runat="server"></asp:TextBox> </FooterTemplate> When the html is created, in my case, it creates an html tag like this. <input name="userLiabilities:dgFinancials:_ct...more >>

Session Management when launching "New" Window
Posted by Kevin Frey at 4/6/2006 12:00:00 AM
We have a web application that, for the purposes of reporting, launches a new window to display the contents of the report in (PDF format). This is implemented using a custom IHttpHandler implementation in our project. The report is launched by a standard hyperlink with a target="blank" to ...more >>

how to bind crystal report into reportviewer
Posted by Rabbit at 4/6/2006 12:00:00 AM
Dear all, This is my first time adding crystal report on my web project. I have added a crystal report(my_report.rpt) under my web project and I have searched Microsoft sample, saying i can use following code to bind my report Me.CrystalReportViewer1.ReportSource = new my_report.rpt In ...more >>


DevelopmentNow Blog