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 > august 2006 > threads for tuesday august 29

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

Gridview HyperLink disappears with Norton Ad Blocking On
Posted by willip at 8/29/2006 11:25:01 PM
I have a Gridview control with a Databound Hyperlink. e.g.: <asp:HyperLinkField HeaderText="MyTitle" DataNavigateUrlFields="MyID" DataNavigateUrlFormatString="~/ShowMe.aspx?MyID={0}" DataTextField="MyTitle" SortExpression="MyTitle"> With Norton Ad Blocking turned...more >>


the DataBound event of FormView
Posted by Jeff at 8/29/2006 10:40:34 PM
hey asp.net 2.0 I want to programmatically populate (with data from the database) a label control in a FormView on a webpage. Is it a good idea to put my logic inside the DataBound event of the FormView? any other suggestions? Jeff ...more >>

ATLAS update panel
Posted by Nate at 8/29/2006 10:16:01 PM
I am using an atlas UpdatePanel on an asp.net page and it was working well. I then visited the same page with a querystring value attached to the end of the page url and the updates no longer work. When I click the links that should trigger a postback nothing happens. I looked for a place...more >>

How to reference EventArgs e?
Posted by clintonG at 8/29/2006 9:57:58 PM
When I use e. in an event handler all Intellisense wants to show me is: // Event handler protected void BuildNewFileButton_Click(Object sender, EventArgs e) { // can only 'see" these properties of e e. [Equals | GetHashCode | GetType | ToString ] // can only 'see" these propertie...more >>

[CACHE] Remove an Item on exiting application
Posted by teo at 8/29/2006 9:31:12 PM
I have an object stored in the Page.Cache. (its name is the SessionId number). I'd like to remove it from the Cache when the user close or abandons 'mySite.aspx' page (when he closes the browser, when he jumps to another site, if the connection is broken, if an Error occur and the user is i...more >>

Displaying a null decimal value as a string
Posted by Microsoft News Group at 8/29/2006 8:57:29 PM
I am trying to make a column which is decimal format, convert nulls to a certain string such as "No Max". This is for a price range, and if they do not put a value in, a null value is put in place, but displays "No Max", but if it is not null, then it would display the decimal value in place....more >>

SQL Authentication problem
Posted by nlayzer NO[at]SPAM gmail.com at 8/29/2006 8:13:51 PM
Failed: System.Data.SqlClient.SqlException: Login failed for user '(null)'Reason: Not associated with a trusted SQL Server connection. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarni...more >>

weird Crystal Reports exception
Posted by Tim_Mac at 8/29/2006 8:13:07 PM
hi, i am encountering a sporadic exception using crystal reports that is causing me grief, I can't 'handle' it... my code is loading a typed report, and loading a DataSet to it. unfortunately crystal reports customer support is very poor and their 'case management' tool refuses to function. ...more >>



UserControl values lost on PostBack
Posted by Paul at 8/29/2006 6:42:34 PM
Hi all, I have a very simple user control that contains 3 drop downs. Whenever there's a postback the values of these drop downs are lost. I've tried enabling viewstate everywhere without success. Could anyone shed any light on what's going wrong? Thanks, Paul Asx: <%@ Control Lang...more >>

Dynamically generate form from XML & XSD?
Posted by Scott Zabolotzky at 8/29/2006 6:09:21 PM
I'm sure somebody has to have done this already but I can't find any good references. If I have an XML file with an associated XSD what is the best way to dynamically generate a web form with proper controls for the various elements in the XML file? I found an article that describes how to...more >>

File Move & Delete?
Posted by Arpan at 8/29/2006 6:07:40 PM
A Form has a FileUpload, 2 Buttons & a TextBox web server controls. Using the FileUpload control, I want to give users the provision to move & delete files that DO NOT exist in C:\Inetpub\wwwroot (i.e. the root directory). This is the code: <script runat="server"> Sub MoveFile(ByVal obj A...more >>

Form.DefaultButton behaves incorrectly
Posted by Tim_Mac at 8/29/2006 5:39:04 PM
this is a re-post of an earlier message. i'm posting it under my MSDN alias for a better chance of reply :) when you press return in a multiline textbox, you expect to insert a newline. However, if you set the Form.DefaultButton property, whatever javascript code is employed by Asp.Net to...more >>

Inherit Base Page Class
Posted by tshad at 8/29/2006 5:35:07 PM
I have a Base Page Class that I built am just starting to use. In my aspx page I have: <%@ Page Language="VB" trace="true" ContentType="text/html" ResponseEncoding="iso-8859-1" Inherits="MyFunctions.Page" %> I also have a dll that I call in my Page_load as: Sub Page_Load(s as Object, ...more >>

registering user controls in web.config, causes error if used in same directory...
Posted by Tim_Mac at 8/29/2006 5:27:00 PM
Hi, i have this in my web.config: <pages validateRequest="false" > <controls> <add tagPrefix="uc1" src="/Whatever.ascx" tagName="Whatever"/> i have this in Login.aspx: <uc1:Whatever id="Blah" runat="server"> I get this error message: Cannot use the user control '/Whatever.ascx...more >>

Postback question
Posted by Kevin Blount at 8/29/2006 5:26:28 PM
I'm trying to create a mutli-form page on my website, but having trouble with the PostBack stuff. And yes, I'm new to C# - my background of 8yrs is original ASP, and I'm getting easily confused now... which is most aggravating My sample test code is below... The idea is that the page can...more >>

Asp 1.1 dynamically loaded user control
Posted by jason at 8/29/2006 5:10:33 PM
Hi, I have a web page template that dynamically loading user controls (header, content, footer ..etc) based on user's selections. I wonder if it will impact the scalability and performance of the app. Any ideas or suggestions? Thanks. ...more >>

System.Net.Mail
Posted by AbraAbraCadabra at 8/29/2006 4:12:39 PM
This is some code for VB that is supposed to work in ASP. How come it doesn't seem to work in ASP? It is supposed to send mail to an SMTP server that requires a username and password. 'create the mail message 'Dim mail As New MailMessage() 'set the addresses 'mail.From = New MailAddr...more >>

fetch data from output parameter of a store procedure
Posted by c676228 at 8/29/2006 3:58:01 PM
Hi everyone, I wrote a store procedure that fetch one row data in the database based on the parameter value I entered. After I created the store procedure, the store procedure code looks like this: ALTER proc getProductCommScale @product As varchar(30), @TISCommRate As Decimal(5,2) OUTPUT, ...more >>

[ASP.NET] How to add javascript between two specific tag?
Posted by tranky at 8/29/2006 3:14:59 PM
Hi asp.net programmers,i've a question for you! How to add javascript between two specific tag? ( for example div tag ) This javascript i must add in the page is a control, and i must insert it beetween two div tag. If use this.Page.ClientScript.RegisterClientScriptBlock, the control is...more >>

WebResource CryptographicException
Posted by Brad at 8/29/2006 3:08:12 PM
Our .Net 2 web apps recently started getting CryptographicExceptions from WebResource.axd, and these almost always seem to be when the client is a web crawler...most notably googlebot (but a few times it is a client browser such as IE). I'm curious if anyone has some insight as to why this...more >>

Opening Folder on Server
Posted by Jl_G_0 at 8/29/2006 3:01:18 PM
Hey all. Got a weird problem here. I need to open a folder that is on a server. The asp.net page and the IIS are on the same server. But i Cant access it from nowhere but locally. Simply because the link directs to eg. E:\Files\Stuff ... and when any computer tries to access it, it searches ...more >>

Calendar problem!
Posted by Loading name... at 8/29/2006 2:14:13 PM
Hey asp.net 2.0 I have a FormView on my webpage. This FormView's datasource is a SqlDataSource object. This SqlDataSource returns 1 datetime field. So I've added a Calendar control to the FormView, and made this Calender control's SelectedDate: SelectedDate='<%# Bind('helloDate') %>' ...more >>

to load or not to load
Posted by rodchar at 8/29/2006 1:52:01 PM
hey all, i have an employee master table that i've broken up into many tables using normalization and what made logical sense (i.e. Education table, Equipment table, military history table, etc. i think there may be about 8 tables). What i was wondering was when a user selects an employee t...more >>

gridview controls and modal windows.
Posted by V.Campanile at 8/29/2006 1:49:02 PM
Is it possible to use a Gridview object in a page that is called via the window.showModalDialog method ? If i try to call the Form modally it give me an error every time when I try to select an item in the grid or if I try to change the page that the grid is currently displaying. ...more >>

IsPostBack problem...
Posted by VMI at 8/29/2006 12:18:02 PM
For some strange reason, when I click on a RadCombobox to open it, it automatically reloads the page but also runs the code within the !IsPostBack if/then statement. It's doing postback, but also reloading the entire page. Is there any way to avoid this? I've tried setting the different proper...more >>

Validators
Posted by Carlos A. at 8/29/2006 12:12:19 PM
Hello all I'm using validators for e-mail, date, etc. How can I use a validator to specify the number of characters in a Texbox? I need that the TextBox only accepts 10 chars. Thanks in advanced. ...more >>

Comparing thick and thin clients
Posted by Mike at 8/29/2006 11:25:59 AM
Hi everyone, I need to supply some documentation and comparison between a = Windows-based (thick) client and a Web-based (thin) client. I know that = it really depends on the situation and requirements, but I was wondering = whether there are documents that do a generic comparison between th...more >>

HttpHandler and current directory
Posted by letibal NO[at]SPAM gmail.com at 8/29/2006 10:49:23 AM
Hello, I have created an asynchronous HttpHandler by implementing IHttpAsyncHandler. In its static constructor, I need to retrieve the location of its dll (i.e. C:\C:\Inetpub\wwwroot\myApp\) Is there any function I could use to do this ? Note : at this stage, I do not have access to any Http...more >>

Help! located assembly's manifest definition...
Posted by cowznofsky at 8/29/2006 10:49:15 AM
does not match the assembly reference. That's the error I get when trying to compile any of my projects. I'm in VS2005. I think it has something to do with the .NET version. I had recently tried some projects I had downloaded. Now nothing works. ...more >>

App only runs in debug mode
Posted by Little Gazer at 8/29/2006 10:43:02 AM
I can only get our application to work in debug mode. I have compiled in release mode and I have changed the the web.config's compilation tag to debug="false", but I experience lots of problems with the application in this mode. If I include the pdb files and set debug="true", the application ...more >>

RegularExpression for validation
Posted by Phillip Vong at 8/29/2006 9:56:40 AM
I do not know how to write regularexpressions. I was wondering if someone could show me how to write one for my validation that will not allow more than 250 characters. Thanks Phil ...more >>

sqldatasource and gridview problem
Posted by nate at 8/29/2006 9:29:02 AM
I am getting this error. System.Data.SqlClient.SqlException: Must declare the variable '@InventoryID'. At first I left the parameter declaration in the aspx page and then I tried moving it to the codebehind as well. Still errored. Codebehind snip---------------- public partial class Admi...more >>

publish web site
Posted by Tom at 8/29/2006 9:20:01 AM
Ok, my 2005 asp.ne 2.0 web site is ready to publish to my test server. When I did publish web site it copied it over but I couldn't access the site on the test server, I got an Runtime Error. So how can I copy/publish my asp.net 2.0 site to my test server? Is there a way to get one DLL like ...more >>

remove "ReturnUrl=" from url
Posted by Chicagoboy27 at 8/29/2006 9:02:08 AM
All I am trying to find a solution for removing the ?returnUrl if a user is not authenticated. I want to be redirect an unauthenticated user to the login.aspx less the returnUrl. Once they log in I specifically want them to go to the default.aspx page and not the "ReturnUrl=" page. currently m...more >>

Search my web site?
Posted by Rob R. Ainscough at 8/29/2006 8:44:49 AM
Can someone point me in the right direction on how to implement a "Search" feature on my .NET 2.0 framework based web site? Thanks, Rob. ...more >>

Only first character of text inserting into DB
Posted by bmayer NO[at]SPAM mnepilepsy.net at 8/29/2006 7:24:05 AM
I am using a SqlDataSource to put data into a database from three TextBoxes. The problem is that only the first character from the TextBoxes is being inserted into the database. The code: <InsertParameters> <asp:ControlParameter ControlID="TextBox2" Name="Text1" Type="String...more >>

atlas
Posted by Tom at 8/29/2006 5:52:02 AM
can someone point me to an example of a web form using atlas/ajax to popluate a gridview withouth using a sqlobjectdatasource, typed dataset, etc?...more >>

DataTable.Select problem in ASP.NET 2.0
Posted by Aryan at 8/29/2006 5:50:00 AM
Hi, I am having problem with DataTable.Select() method. I am using ASP.NET 2.0. I have DataSet which reads data from XML file using DataSet.ReadXML(). Now this dataset has various datatable, created by XML file. I am taking one of the datatable from this dataset and want to filter on that d...more >>

gridview doesn't show data at first page load
Posted by tarscher NO[at]SPAM gmail.com at 8/29/2006 5:12:56 AM
Hi all, I have a gridview populated with data coming from a dataset (created via the wizard). The data shown in the gridview is dependent on the the choice of a control (dropdown with autopostback enabled). When I load the page for the first time I the gridview is empty. When I select somethi...more >>

attractive menu's using sitemap
Posted by mocsoft at 8/29/2006 3:06:05 AM
Does anyone know how to use the sitemap file to generate attractive menus other than those specified in Visual Web Developer (menu, treeview). The menu control seems to always group the menu items together in one top node, theres bound to be a way around this surely?? Any help much appreciat...more >>

How to logout the user after CompleteWizardStep in CreateUserWizard
Posted by staeri NO[at]SPAM gmail.com at 8/29/2006 3:05:28 AM
Hello! It looks like the newly registered user is logged in after the CompleteWizardStep in CreateUserWizard is finished. I would like to logout the user when that step appears. How can I do that? Regards, S ...more >>

EnableViewState
Posted by Sudha Pune at 8/29/2006 2:10:58 AM
Hi Techies A small(silly) doubt, EnableViewStateis to maintain the viewstate across the server round trips, but even if i set EnableViewStateto false still it is maintaining the values after posting back.... why... Just i tried with a textbox and i set EnableViewState = false and i have a b...more >>

get last inserted ID with
Posted by tarscher NO[at]SPAM gmail.com at 8/29/2006 1:02:16 AM
Hi all, I have a database layer (DataSet) I use to attach my controls to. The dataset is generated via the wizard. I want to know how I can get the las inserted id I did with one of the queries I defined in that databaselayer. I know of both @@IDENTITY and scope_identity() but I can't get the...more >>

How to break a large web project in parts
Posted by Rolf Welskes at 8/29/2006 12:56:40 AM
Hello, I have a large web which has PartA, PartB, PartC and MainPart. MainPart WebPage01 ... WebPage_n PartA .... PartB WebPageB01 ... WebPageB_m PartC ... So I would like to do the following: (I work with VS2005, WebProjects, not Visual Designer). I have one WebProject...more >>

Fail to use oledbparameter
Posted by Agnes at 8/29/2006 12:00:00 AM
Dim ocmdElem As New OleDbCommand() With ocmdElem .Parameters.Add(New OleDbParameter("@cocode", OleDbType.VarChar, 10, "TEST")) .CommandText = "select loginid from coinfo where code =@cocode " .Connection = New OleDbC...more >>

Problem with GridView
Posted by Loading name... at 8/29/2006 12:00:00 AM
Hey asp.net 2.0 I have a GridView on my webpage. This GridView's datasource is a SqlDataSource. The SqlDataSource returns 3 columns. Here is my problem: My GridView consist of 3 columns (id column + 2 text columns). I want to hide the id column, and change the formating of the text col...more >>

oledbparameter
Posted by Agnes at 8/29/2006 12:00:00 AM
..Parameters.Add(New OleDbParameter("@cocode", OleDbType.VarChar, 10, UserName)) (A).CommandText = "select 'loginid' from 'coinfo' where 'loginid' = ? " (B).CommandText = "select loginid from coinfo where loginid = @cocode " When statment(B) executed, "missing operand" occurs. However, when ...more >>

Problem changing password
Posted by John at 8/29/2006 12:00:00 AM
Hi I am trying to set a new password using the following code; Dim u As MembershipUser = Membership.GetUser(UserName) Dim OldPassword As String OldPassword = u.GetPassword If u.ChangePassword(OldPassword, Password) Then ChangePassword = True end if The problem is that it gives me t...more >>


DevelopmentNow Blog