Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > december 2004

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

DataFormatString
Posted by Kenny at 12/31/2004 11:05:41 PM
Hi, <asp:BoundColumn DataField="LongDescription" DataFormatString=... Is it possible to use DataFormatString to truncate the Description display in Datagrid? Or any suggestion?? It is a problem when the Description too long and affect the UI of the page. Thanks, Kenny ...more >>


Setting a Default Width and Height in WebCustomControl?
Posted by Lars Netzel at 12/31/2004 5:55:11 PM
How do I set default values to the "default" properties, like Width, height, Visible, Backcolor... in a WebCustomControl that I'm developing? Best Regards/ Lars ...more >>

Add icon to my ServerControl?
Posted by Lars Netzel at 12/31/2004 5:36:48 PM
How do I add an Icon to be compiled with my WebCustomControl I just built. I want to have my own Icon when adding it to the toolbox. Going into the properties in the project itself and then the Build header... the icon seltor field is disabled.. why? /Lars ...more >>

How to edit a Microsoft SQL database online?
Posted by Miguel Dias Moura at 12/31/2004 3:04:44 PM
Hello, On a web site I manage I have a Microsoft SQL database. As administrator I would like to easily edit, access, delete, add any record in the database tables while the database is on the server where I host my web site. Is there any software to do this? Something like Enterprise...more >>

How to call parameterized stored procedure to return result set?
Posted by Lacka at 12/31/2004 3:01:29 PM
Hi, If I have a stored procedure in my database, that has two parameters (say @a nvarchar(50) and @b int), and returns the result of a SELECT statement (returns a result set), how can I set up the parameters, how can I call it, and how can I iterate through the rows of the returned resultse...more >>

Is "Whidbey" going to de-skill developers ?
Posted by Fresh_Air_Rider NO[at]SPAM Hotmail.com at 12/31/2004 2:15:27 PM
Hi I understand that ASP.net 2.0 (Whidbey) is going to reduce coding by 70%. Surely this is going to de-skill or dumb down the developers task and open up the task to less qualified and trained staff. Tell me if I'm wrong....more >>

Why uses dabase connection always ASPNET user?
Posted by Lacka at 12/31/2004 2:12:30 PM
Hi, My connection string is "server='(local)'; trusted_connection=true; database=Lexiko; user id=lexiko; pwd=lexiko" but at the line "dataAdapter.Fill(dataSet)" I get the error: Login failed for user 'LSW2KP\ASPNET' until I create this user for the database. Why do my application want ...more >>

Converting RGB to Hex?
Posted by Lars Netzel at 12/31/2004 12:16:10 PM
Hello! I'm creating a servercontrol where you can set a Color property in the design view. This is going into a STYLE attribut in the rendered HTML code and I need to convert it to a HEX value... how do I do this? The only thing I can find is the Color.ToArgb and that is not working for ...more >>



form field auto numbering with unique value
Posted by Chris at 12/31/2004 9:53:01 AM
Before I started to create table, etc to track unique form field record number assigments I thought I'd check to see if there is now a better way to do this in .NET. I have a parent form (table) and children form (table). Relationship equals one to many. I'd like to auto number the fields a...more >>

how to restore scrolling position of divs after postback without using smart navigation (--> mozilla compatible)
Posted by Ralf Müller at 12/31/2004 9:44:48 AM
any help appreciated greetings, ralf ...more >>

a serious problem in adding value to a child form!!!!
Posted by Vadivel Kumar at 12/31/2004 6:11:07 AM
Hi, Iam facing a problem in adding a value to a list box which is located in parent window thru a child window. I made the listbox as HTML control and the following is the code i have written in the child window to add a value in it. When i clicked the submit button of child window it t...more >>

Submitting IFrame in asp.net
Posted by Naim at 12/31/2004 4:01:04 AM
hi I have this situation where I need to do some server side execution without posting the page. I used to do this in asp using IFrame, but it's not working in asp.net. I had a form and iframe element in the web page as follow: <form id=MainForm ....> this is the form that the user se...more >>

Images not displaying in designer
Posted by TXIce at 12/31/2004 3:23:15 AM
Not sure if this is the right group...but I'm going to try here anyways. I have a problem that is driving me absolutely crazy. I'm starting a new ASP.Net web application and I'm trying to add an image web control. No matter what I do...when I point the imageurl to the picture I want to displa...more >>

How to use DataFormatString?
Posted by Kenny at 12/31/2004 2:52:49 AM
Hi, Currently I am using the DataGrid Control. I am able to bind the data to the column with DataField="HistoryInfo" How am I going to format the data using DataFormatString so that it can be display as e.g. This data created by ... It will be better if i can call a function from DataFor...more >>

Looping over a DataGrid after postback; questions
Posted by Jim Bancroft at 12/30/2004 11:52:53 PM
This may be a no-brainer, but I'm sure I follow what's happening here... I have a DataGrid with one DropDownList per row. If I select a few DropDown items and postback my page, I can't loop through the DataGridItems unless I rebind my DataGrid. By "can't loop," I mean it's a mighty quick run ...more >>

C# compact framework: IO problem: app running on PDA can't find file.
Posted by Daniel Passwater via DotNetMonster.com at 12/30/2004 11:41:12 PM
I've checked the file directory, and it's right. I was putting a ".txt" on the end, but someone told me that .txt is added automatically. They said that it would cause a redundancy. (i.e filename.txt.txt) private void CheckForFile() { // Set directory path. string directory = "\\My D...more >>

Preserving the selected item between postbacks.
Posted by craigkenisston NO[at]SPAM hotmail.com at 12/30/2004 9:08:36 PM
Hi, I am programming a classical registration form using asp.net. I have the country list and a list of all states for each country in a database. I already have this working code in which if the user selects a country I populate a list with the states/provinces for that country, the dropd...more >>

How is this usually done?
Posted by Miguel Dias Moura at 12/30/2004 6:23:44 PM
Hi, When I subscribe a web site I usually receive an email to confirm my subscription. Only after I follow the link in the email my account gets activated. In general, how is this done? Can you give me an idea? (I am not asking for code. I just need to have an idea of how this is usua...more >>

Gzip compression and ASP.NET
Posted by Anders K. Jacobsen [DK] at 12/30/2004 5:59:46 PM
Hi Does anyone have experience using gZip compression on the IIS server with a ASP.NET application. How much can a page be compressed. As i see it it must have a huge impact on the total size. Eg. if i take a 400 kb (260 rows in a datagrid with viewstate) and saveit as txt file an compress ...more >>

Emulators for Blackberry PDA's to test mobile aspnet code
Posted by Chumley Walrus at 12/30/2004 5:04:23 PM
I want to use an emulator to test some mobilewebform stuff (via visual studio.net IDE) , but I can't find anything for the Blackberry 6210, or compatible . I would also need some resources on how to use emulators to test coding. Thanks in advance Chumley ...more >>

Forms auth and session question...
Posted by Jon at 12/30/2004 4:40:08 PM
If a session times out, but the forms auth is still logged in it's possible for users to go to pages on the site that need those session variables. I was under the impression that using forms auth would make it so I would not need to check if session vars were still around. I'm confused! ...more >>

User Control's/serverside-forms/IsPostBack/Viewstate?
Posted by MattGood at 12/30/2004 4:37:42 PM
Hi! I can't show a ascx-control in a correct manner when the ascx-control uses another ascx-control, the IsPostBack and ViewState's etc. don't seems to work, problably because there can only be one form that runs at server per page. When I have this first control as an aspx-page instead,...more >>

Regular Expressions........
Posted by Higgim Batham at 12/30/2004 4:37:10 PM
Is there any efficient way to get the data from the following string using the regular expressions? Dim strTestData as String = "CST123CENTST7872828TENFST1234FEN" In the case I am populating a variable with three values. Customer Id : CST123CED Where CST --->Customer ID STar...more >>

article on how to print an asp.net datagrid
Posted by niv at 12/30/2004 4:16:38 PM
Hi, Can someone point me to an article that shows how to print an asp.net datagrid in c# Thanks, niv...more >>

Refresh problem
Posted by haritha_govi NO[at]SPAM rediffmail-dot-com.no-spam.invalid at 12/30/2004 3:55:53 PM
Hi, I have a dropdown which displays the Products and Add button on my Asp.net web page. When the user selects a product from the dropdown and Clicks the add button it adds the selected product to the datagrid. The problem is when the user adds the product and clicks the refresh button on...more >>

Remoting and HttpModule
Posted by Kevin Burton at 12/30/2004 3:31:02 PM
I have an HttpModule that I want to communicate to a .NET remoting server. Normally I do something like: RemotingConfiguration.RegisterWellKnownClientType(typeof(RemotingObject), "tcp://localhost:9400/RemotingServer/visa.dps.ppc.RemotingObject.rem"); This does some "magic" so whenever I in...more >>

Forms Auth redirecting
Posted by Jon at 12/30/2004 3:13:37 PM
Is it possible to redirect the user to a specified page everytime, not the page they originally went to? For instance, the user goes to site.com/abc.aspx they aren't logged in, so they get directed to login.aspx if they authenticate, I do not want to send them back to abc.aspx, I always w...more >>

accessing the web user control's control from a web page and set a value from another web page
Posted by Reny J Joseph Thuthikattu at 12/30/2004 3:02:45 PM
Hi, I have added a web user control to my project and placed some common controls over there.In order to access the control from another web page i registered with it(aspx page) using register tag accessed it.Now i want to set a value to it in the Page_Init() code of my web page.How do i access ...more >>

consuming the noaa web service
Posted by MattB at 12/30/2004 2:58:36 PM
Hi. I'm trying to write a web form that will consumer the NOAA's web service. I keep getting a timeout from my .net stuff, but their demo seems to be getting live data, so I suspect I'm doing something wrong. Have any of you ever done this? I have a web reference to their wsdl (http://www....more >>

visual studio web application rookie questions
Posted by Bob Garbados at 12/30/2004 2:49:28 PM
I've been developing asp.net web apps for a year using Dreamweaver MX, and we finally purchased vs.net 03. I'm stumbling around trying to use the IDE and I have a few questions... maybe someone could point me to a good tutorial or book but I haven't found what I'm looking for yet. 1) When I ...more >>

onchange of a dropdown
Posted by DaveF at 12/30/2004 2:36:17 PM
I need to capture a selected value of the onchange dropdown and put it in a textbox??? -- Dave ...more >>

Page inheritance problem
Posted by Jon at 12/30/2004 1:52:22 PM
I have made the following class and want all my pages to inherit from it = instead of system.web.ui.page. this works fine, except that now in the = designer none of the controls have names and I get an error "Type = Abstract" when I do switch to designer mode... I can't use windows forms auth...more >>

asp:linkbutton - commandname behaviour
Posted by John Blair at 12/30/2004 1:49:02 PM
Hi, The OnSelectedIndexChanged event only seems to fire if commandname =3D = "select" if i change it to anything else if does not fire. Can anyone explain why this is the case given this name is meant to be = capable of being set to anything?=20 Thank you. <ASP:DataList id=3D"My...more >>

Weird Global.asax compilation error
Posted by Kikoz at 12/30/2004 1:48:35 PM
Hi all. Does anyone know what the following compilation error means? Line 1: //------------------------------------------------------------------------------ Line 2: // <autogenerated> Line 3: // This code was generated by a tool. Line 4: // Runtime Version: 1.1.4322.2032...more >>

Move a row in a datalist
Posted by tshad at 12/30/2004 12:58:40 PM
Is there a way to move a row in a Datalist up or down without having to re-read the data? I have a datalist which has embedded Datagrids in it. I want to allow the user to move a row up or down by just pushing a button and have the page post back with the row moved without actually re-read...more >>

Grid
Posted by Mikael Engdahl at 12/30/2004 12:17:22 PM
Hi, Is the a control in ASP.NET that would render as a table like the one below if bound to an array like {1,2,3,4,5,6,7,8,9}? +---+---+---+ | 1 | 2 | 3 | +---+---+---+ | 4 | 5 | 6 | +---+---+---+ | 7 | 8 | 9 | +---+---+---+ ...more >>

datagrid row problem
Posted by Bala at 12/30/2004 12:13:04 PM
Hi, i have sample page contain 2 textboxes,1 datagrid and 1 command button. when ever i click the command button the text box values should goes to datagrid new row. but its not working. can anyone please check the code. Thanks bala code: <%@ Import Namespace="System.Data" %> <%@ ...more >>

Getting parent page classname?
Posted by darrel at 12/30/2004 11:52:55 AM
I have this structure: mypage.aspx (class = mypage) myusercontro.ascx On the mypage.aspx I can declare a variable: animal = "monkey" I can read this from the UC by simply doing this: mypage.animal How can I do that if I don't know which parent page the UC is being loaded int...more >>

adding buttons to a datagrid
Posted by Phil Townsend at 12/30/2004 11:45:11 AM
I have a datagrid which is part of a web form. I need to place a button in each row to invoke a custom method (not an update, delete, cancel, etc.). I thought that a button in a datagrid item template raises the ItemCommand event. however, I can get no response from the button. The code is never...more >>

BeginInvoke
Posted by Brian Linden at 12/30/2004 11:34:11 AM
I have a page that I need to serve ASAP, but I also have some stats to take care of on the database side. The execution of the stats should not effect the delivery of the page.... Is there anything wrong with doing something like this: --------------------------------------------------------...more >>

Trying to find article about dynamic gifs for user registration
Posted by Jim Bancroft at 12/30/2004 11:20:21 AM
I saw an article (kicks self for not bookmarking) on the web about those sites that ask you to type in the text shown in a dynamically-generated gif or bitmap, to confirm your registration. It's to keep bots and webcrawling software from registering and using a website's services. I though...more >>

Cookie and FormsAuthenticationTicket Question...
Posted by Kiran B. at 12/30/2004 11:17:33 AM
New to .net... I am wondering if I have a user name as userone and this userone has sepcial sales id 201, how can i associate both userone and 201 in a cookie and access it later on. I can access user name using... Dim authTicket As FormsAuthenticationTicket = New FormsAuthenticationTicket(...more >>

Referring to a control on another page
Posted by Greg Smith at 12/30/2004 10:59:43 AM
What is the syntax to reference a control on another page? I have a class module that I would like to code to change parameters on a series of controls on a web page. There are to many to pass by reference. Is there a way to do something like pgMain.cmd1.enabled = true; pgMain.cmd...more >>

A question about validate
Posted by wolf at 12/30/2004 10:57:35 AM
There are three webcontrol on my asp.net form: a TextBox, a submit button and a RegularExpressionValidator. And I had set ControlToValidate property of the RegularExpressionValidator to the TextBox. But now, when I input a string in the textbox and press Enter key, the form was submit without cl...more >>

Which grid control to use
Posted by Random at 12/30/2004 10:40:34 AM
I'd like to have a control on my web form that can bring up an editable grid of items from my database, with a blank row for insertion of new records at the bottom. How can I accomplish this without a lot of custom coding? ...more >>

ASP.Net DataGrid Template column when inivisible
Posted by spidur1 at 12/30/2004 10:13:10 AM
I have a datagrid with template comlumns that have textboxes which are populated via the ItemDataBound command. However, when I set a column to be invisible, I can no longer retreive the value of that textbox even though the viewstate is enabled. I can still retrieve the value of a databound co...more >>

TextBox Validation
Posted by Mariame at 12/30/2004 10:04:20 AM
Hi Everyone I have a textbox that i created online in Form Load: "Dim TB1 as new TextBox" I want to validate that this textbox contains numbers only??? Is There is a way i can do it uing VisualBasic??? Thx in Adv ...more >>

Selecting Data
Posted by CCORDON at 12/30/2004 9:51:12 AM
Hi, I have 2 tables, One containing a list of Companies (ID, Name) Another Containing a list of companies a user has acces to (IdUser, IdCompany) The question is how can I load all the companies into a checkBoxList Control and only check the companies that the user currently has access to? ...more >>

global function without using object?
Posted by easyhenry NO[at]SPAM yahoo.com at 12/30/2004 9:48:46 AM
Hi guys, I want to write some global functions which can be called from different asp.net page. In Visual Basic, there is a global module which allow me to do that. In Visual Basic .net, I have to create a class file to host these functions. And every time when I need to call these functio...more >>

Obtain HttpContext.Current from seperate console app
Posted by Weston Weems at 12/30/2004 9:40:14 AM
first the problem: I'd like to be able to clear particular cache items from a consol application running on the same server as the asp.net website. My problem is that if I reference System.Web and then try System.Web.HttpContext.Current I always get null, which sort of makes sense. ANy...more >>


DevelopmentNow Blog