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 2007 > threads for tuesday april 3

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

Itemdatabound and edititemtemplate
Posted by srini.venkatesan NO[at]SPAM gmail.com at 4/3/2007 10:24:33 PM
I am trying to access a control from edititemtemplate in itemdatabound event, but I get a run time null reference exception. Class file : In Datagrid_update I am able to access with no issues. DataGridItem item = DataGrid2.Items[DataGrid2.EditItemIndex]; string test= ((TextBox) item.Cells[2]....more >>

Varying table-size
Posted by Zeba at 4/3/2007 8:48:07 PM
Hi, I have a set of 10 rows. I want to display the row structure only when it contains data. The setting of values is .done in my code-behind. I tried setting the attribute visible="false" for my <tr> so that I can make the rows disappear altogether ( and set it to visible="true" from the cod...more >>

DataGrid Edit Problem - No value access?
Posted by _MC_ at 4/3/2007 7:39:55 PM
Hi, I'm unable to access values in my Datagrid. Datagrid thinks it hase only 1 Cell. So here it is: The Datagrid is binded in PageLoad, AutoGenerateColumns is false, Columns are added on PageLoad like this: BoundColumn Bound_Column = new BoundColumn(); Bound_Column.Data...more >>

Data-driven Templated Controls (GridView)
Posted by Mark Olbert at 4/3/2007 7:23:48 PM
I'm running into a well-described issue in the ASPNET model that I haven't found a good work around for. I have a GridView to which I dynamically add data-bound TemplateFields at run-time. The specific fields that are added depend on the state of the application. The contents of these fields ...more >>

Sporadic error:" Object reference not set to an instance of an object."
Posted by Michel Couche at 4/3/2007 6:20:04 PM
Hello, I have an ASP.Net application that uses the Wizard control to build a = newsletter. There are three steps in the wizard. The customer's specific design data are loaded from a database in step 1 = of the wizard and saved into a session variable. In step 2, when the user clicks on a...more >>

problem setting a new membershipProvider in web.config
Posted by Jeff at 4/3/2007 6:00:29 PM
ASP.NET 2.0 These settings below (see PROBLEM SETTINGS) are causing my webproject to NOT connect with ASPNETDB.MDF. In this webproject have I created 3 users. I can see 3 users in the "ASP.NET Configuration window". But after I have added the settings (see PROBLEM SETTINGS) below to my web....more >>

MasterPage Content
Posted by jimmyjoe at 4/3/2007 5:41:04 PM
Hello, I have content that fits into a contentplaceholder on the MasterPage. I need to create a pop-up window from the content page. Whenever I use window.open it opens the content in the contentplace holder and not a pop-up window. Any ideas? Thanks..... ...more >>

Add body onload attribute from UserControl?
Posted by John Kotuby at 4/3/2007 5:17:51 PM
Hi all, My application consists of a MasterPage which is used for all WebForms. I then create UserControls to populate the content area for the different WebForms. In one complicated UserControl I have a number of Javscript functions. Everything on the page works fine, until I try to add...more >>



Help needed with time
Posted by Brian Gallagher at 4/3/2007 5:06:35 PM
I have an aspnet application which I only want part of to be avaliable between the hours of 9am and 5:30pm but I dont know where to start. Help needed! ...more >>

modeless dialog box in master/content form
Posted by BillE at 4/3/2007 3:15:52 PM
Is there a trick so I can use a modeless dialog box in a master/content webform? I can display the modeless dialog, but it vanishes when a new content page is loaded. I need it to stay visible while the content pages are navigated.; I was able to do this using framesets by putting the j...more >>

PublicKeyToken, How is it calculated??
Posted by Jeff at 4/3/2007 3:12:29 PM
ASP.NET 2.0 I'm about to add a membership provider to my web.config. I came across a tutorial on internet telling how to do it. This tutorial shows an example on how to do it. part of the example: PublicKeyToken=b03f5f7f11d50a3a I assume I cannot use PublicKeyToken=b03f5f7f11d50a3a in my ...more >>

CSS of tag, within a Repeater ItemTemplate
Posted by JJ at 4/3/2007 2:36:42 PM
I'm sure this is quite simple, but clearly not for me today: How do you set the CSS Style of a tag in a repeater Item Template? e.g. I have this repeater: <asp:Repeater runat="server" ID="rpt_SubCategoryList" OnItemCreated="rpt_SubCategoryList_ItemCreated"> <HeaderTemplate> ...more >>

How to get "condition" from objects set in a cell?
Posted by Todd Jaspers at 4/3/2007 2:16:04 PM
Ok, long story short, I've done this: TableRow tmRow = new TableRow(); tblCreditCards.Rows.Add(tmRow); int a = 0; while (a < 3) { TableCell tmCell = new TableCell(); tmRow.Cells.Add(tmCell); CheckBox chk = new Chec...more >>

customErrors question
Posted by Popman at 4/3/2007 1:36:49 PM
Hi there, I put the following to the web.config file to handle the "File not found" exception: <customErrors defaultRedirect="http://www.mydomain.com/" mode="RemoteOnly" > <error statusCode="404" redirect="http://www.mydomian.com/" /> </customErrors> It w...more >>

What to consider when using SqlDatASource programmatically?
Posted by Vili at 4/3/2007 12:22:37 PM
Hi all I would like to get some ideas and opinions of my solution for dataconnection on asp.net 2.0 I have created a class which encapsulates the sqldatasource usage. With my class one can set select-, insert-, update- and deletecommand with and without parameters and also get output para...more >>

reference to controls in template item
Posted by Dariusz Tomon at 4/3/2007 12:22:13 PM
Hello, The situation is like follow: I've got GridView1 correlated with DetailsView1 (it's normal scenario). In DetailView1 I've got CRUD operations enabled. For create and edit opeartion I've 2 ItemTemplates. One of them is DropDownList2 (with AutoPostBack enabled) and 2-nd one is GridV...more >>

Best way to add xml configuration file to webservice
Posted by Allan Ebdrup at 4/3/2007 12:04:51 PM
I have a webservice in ASP.Net 2.0, I need to store and load a xml configuration file in relation to one of the web methods in my webservice. What's the best place to store and the best way to load my xml configuration file? I can't integrate the settings in web.config, it has to be a seperate...more >>

Change Cursor Style before and after AJAX Request
Posted by nikki.farrah NO[at]SPAM gmail.com at 4/3/2007 12:03:25 PM
Hi all, this is my first time posting so any help is appreciated! I am doing a simple AJAX request to our server, and I would like the cursor style changed to 'wait' when the user clicks a button which calls the function below. After the request is complete, I would like the style changed back...more >>

ClientScriptManager - How to Register?
Posted by JimHeavey at 4/3/2007 11:46:00 AM
I have a web page which is using a "Master Page". I am wanting to use some existing functionality which allows for the look up of an email address. This functionality is contain within a "form". It looks like the following: <form NAME="EMAILADDR" METHOD="post" Action="http://SomeLocation...more >>

Creating variables in a loop!
Posted by Todd Jaspers at 4/3/2007 11:34:05 AM
Hey guys, Is there ANY way to accomplish this: (see below)? Basically, I want to have a loop (a < 3 is just for testing purposes, it will be an underermined amount). In this loop, I want to be able to create a new cell each time. In this cell, I want the variable name to change. Is th...more >>

Url Rewriting - some advice/help please!
Posted by chanko at 4/3/2007 11:14:41 AM
hi all! ok i'll try and keep this clean and simple i have a web app where users can log in and manage a mini site (ie galleries, files, news....) and i have a web app which is the site where all that info they can manage is displayed to the public the way i'm handling it right now, is ...more >>

Creating a control at runtime and rendering it to a string
Posted by pcloches NO[at]SPAM gmail.com at 4/3/2007 11:11:47 AM
I'm attempting to create a control at runtime and render the contents of it into a string. However when I do this, the RenderControl() ends up not writing anything. The page_load of the control IS being executed. Default.aspx.cs: public string render_test() { ControlCollection ...more >>

web form designer generated code
Posted by JJ at 4/3/2007 11:09:21 AM
i convernted my asp.net 1.1 application to 2.0 web project application. I noticed that the "Web form designer generated code" is still part of the page. Is it safe to remove those section? Also I have a menu that is binding to the xmldatasource. I need a onClick event to be raised so tha...more >>

GridView / Sql Server 2005 / Paging
Posted by sloan at 4/3/2007 10:53:33 AM
What's a good "go to" article on GridView with Paging.. and options with Sql Server 2005. (2000 does not necessarily need to be supported). I've googled, but am getting too many hits to wade thru. Thanks.......... ...more >>

Is this possible...?
Posted by musosdev at 4/3/2007 9:54:06 AM
Hi guys, I'm wondering if the following idea might be possible in asp.net, perhaps with an HTTPModule or something? Any ideas/pointers would be useful... Let's say that I have a directory full of downloads, and I want to show a license agreement before each download begins. I could have a ...more >>

Under what conditions would Application variables go away?
Posted by Michael Bray at 4/3/2007 9:08:21 AM
I have an application that has a webservice, and the web service is utilizing Application variables to store login tokens for clients. However, the application variable seems to be disappearing on occasion, and I think it is because the application is somehow timing out and restarting. C...more >>

Session variable value resets
Posted by aamirghanchi NO[at]SPAM gmail.com at 4/3/2007 9:03:19 AM
Hi, I need to know if anyone else came across this. The Session variable value I set in a sortCommand event handler of a datagrid does not hold on till the next sortcommand event handler and reverts back to its original value, the one I had set it before in the previous trip sortcommand event ha...more >>

asynchronous callback component
Posted by CLEAR-RCIC at 4/3/2007 8:02:06 AM
We have an asp.net application that will also use MSMQ. When a client makes a request, we want to check several databases and put each response in MSMQ. We don't want the client to wait for all responses to come back. We were wondering if there is some component that will sit on the client ...more >>

The ItemArray
Posted by rodchar at 4/3/2007 7:46:02 AM
hey all, I'm trying to get to an Item of a DataRow.ItemArray. I can specify the index value and retrieve the item i need but it says you can get to the item using the ColumnName (string) as well. When I try to specify the column string it doesn't retrieve it. Could it be because my GridView...more >>

Adding references to dlls in an ASP.net site
Posted by waldo at 4/3/2007 7:04:41 AM
Hi there, I'm trying to create an ASP site in Visual Studio 2005 that needs to include some dlls that I have already written. The problem is that when I add a reference to a certain dll, i get "The specified module could not be found (Exception from HRESULT: 0x8007007E)" when i try to build. ...more >>

DataBinding
Posted by JimHeavey at 4/3/2007 6:38:04 AM
I am wanting to make the text value of one control the text value of another control and I want to do this in the HTML code rather in the code behind. I have tried the following: <asp:TextBox ID="txtACF2ID" runat="server" MaxLength="8" Text="<% =txtACFIIID.Text %>"></asp:TextBox> <asp:T...more >>

Alternative to patindex in Sql with ASP.net
Posted by Daniel at 4/3/2007 5:06:02 AM
Can someone please tell me if there is an alternative to patindex in ASP.net. The reason why i need it is because, i want to create a textbox to let users enter lots of words and the words will be divided by a comma. I'm also going to provide a button and when the button is pressed, i want th...more >>

gridview inside datagrid doen't raise RowCommand event
Posted by patrickdrd at 4/3/2007 3:58:00 AM
Hi all! I have a gridview inside a datagrid (nested) for which (gridview) the rowcommand is not raised in order to delete a row from the grid! I also tried OnRowCommand="method", didn't work either! Does anyone know how can I make this work? Thanks in advance! ...more >>

Download files with ina web service and use it furthur
Posted by apondu at 4/3/2007 3:41:51 AM
Hi, I am new to web services and i am facing a problem. I am interested in downloading some file from internet and use it for furthur processing For eg. i have a file at a the following URL and i want to download that file in the web service which i am coding and use it for f...more >>

Download files with ina web service and use it furthur
Posted by apondu at 4/3/2007 3:41:49 AM
Hi, I am new to web services and i am facing a problem. I am interested in downloading some file from internet and use it for furthur processing For eg. i have a file at a the following URL and i want to download that file in the web service which i am coding and use it for f...more >>

Oracle Data Provider for .NET
Posted by simone.naso at 4/3/2007 1:43:18 AM
Hello to everybody, I hope this group is the correct one for posting my problem. If I've posted in the wrong place, could you please redirect me to the correct group? Thank you in advance for that ;) My problem: I need to call an oracle function from a .NET application passing an XmlType...more >>

Google API
Posted by holycoding NO[at]SPAM gmail.com at 4/3/2007 1:34:29 AM
Hi Sorry to put the question here in this group, but i have need to develop an application using google api, wanted to know if you anyone out there used the google api, if so can i have a discussion on it..please Thanks in advance Desi Citizen. ...more >>

database trouble!
Posted by Jeff at 4/3/2007 12:44:16 AM
ASP.NET 2.0 I've created 3 users in my webproject. Today I added this to the web.config of my webproject: <membership defaultProvider="SqlProvider"> <providers> <add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStri...more >>

getting value of server control
Posted by bushi at 4/3/2007 12:21:09 AM
hi! i'm getting the data form the database by using datalist control,and have assigned the value to hidden field control in aspx file,now i want to get the value of hidden field in my aspx.cs file,for some manipulations.how i can get it? ...more >>

any reason why this code example wont work?
Posted by Milsnips at 4/3/2007 12:00:00 AM
Hi there, i have 2 pages: default.aspx and getTime.aspx 1. getTime.aspx has one line: "response.write(datetime.now())" 2. default.aspx has the following html code: "<script type="text/javascript" src="getdate.aspx"></script>" When i run it it does nothing except return me a javascript e...more >>

blank files hitting runtime error.
Posted by Eric Layman at 4/3/2007 12:00:00 AM
Hi, We have a remote webhost here that runs dotnet. Interestingly, it is not able to parse any aspx files It will show a run time error even if the aspx file is blank or doesnt even exist. I played around with web.config but nothing happens. RUNTIME ERROR Description: An application...more >>

databinding - datatextfield questions
Posted by Eric Layman at 4/3/2007 12:00:00 AM
Hi I am attempting to bind data to a dropdownlist. Currently the below code will bind a persons last name just find using the datatextfield. What I would like to do though, is also be able to bind there First Name as well into that datatextfield, so that when the drop down list is displayed...more >>


DevelopmentNow Blog