all groups > asp.net > march 2007 > threads for tuesday march 20
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 / Update
Posted by Just Me at 3/20/2007 8:39:14 PM
Im struggling a bit with the update function.
I have bound a table with lets say 5 records ( 4 columns ) to the gridview ,
this displays jsut fine. I have added edit/cancel/update buttons in a
column which duly fire the relevent events, I have handled the edit and
canel events OK, but Im h... more >>
How can I run the Unit Tests using nUnit
Posted by NW Technicals at 3/20/2007 6:28:10 PM
I have a web application which is developed as a layered projects.
To test this project(s) I have written Unit Tests to cover the
DataAccessLayer etc.,
DAL access the ConnectionString etc., from the Web.config
How do I make this web.config available at the runtime for nUnit based unit
t... more >>
Button stops firing click event when JavaScript file is embeded after upgrade to IE7
Posted by Sunny at 3/20/2007 6:26:45 PM
Hi,
I have an application using IE6 before and now we have upgraded to
IE7. After upgrading, I have been having issues with button click
event when embedded JavaScript file into the page. Removing the
embeded java scrip file makes my button fire the click event again.
Does anyone has the sa... more >>
Iterate through DataTable (row number)
Posted by sck10 at 3/20/2007 5:08:49 PM
Hello,
When iterating through a datatable, how do you get the row that you are on?
I would like to replace "i" with the row number.
Thanks,
sck10
int i = 0;
string strBarName = string.Empty;
foreach(DataRow drSearch in dtSearch.Rows)
{
drRow = dtSearch.Rows[i]... more >>
Can not open the database; VS.net 2002/Framework 1.0/IIS 5.1
Posted by Jeffrey at 3/20/2007 4:57:00 PM
After running DataGrid control and Binding control with an Access database
successfully, I tried to run a Windows application on another Access
database. This WinForm did show up; however, the first record was missing
and all the database buttons didn't work.
Later on I tried to run a We... more >>
Redirect by POST method to another applications
Posted by gustav at 3/20/2007 4:49:27 PM
Hey there, I have this problem:
I´m migrating an ASP site to ASP.NET 1.1, and I find myself stuck because of
this Form that has some inputs to access an Extranet...
When the user submits, the values of the text inputs pass by POST method to
a webform in another application (and another serve... more >>
Reduce HTML file size
Posted by C Mann at 3/20/2007 3:53:58 PM
How can I reduce the size of the HTML output produced by Visual Studio 2005
ASP.NET controls.
I have some pages that are 500 - 750kb.
I thought that viewstate would be to blame but the worst of it is code like
this.
<a class="ctl00_ContentPlaceHolder1_tabSubject__ctl0_tvSubject_0
ct... more >>
Is it possiable to create an access rule for a file?
Posted by Beaker at 3/20/2007 3:52:00 PM
I vaguely recall that ASP.NET 1.1 had a way to specify specific pages and
associate required roles to access those pages.. Is there something similar
to that in ASP.NET 2.0? IE, I would like to say that all pages are open,
except x.aspx, y.aspx, and z.aspx. These pages require roles, a,b,c.. L... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Graphics...
Posted by Marcos Galaviz at 3/20/2007 3:38:38 PM
How can i make graphics in .NET in a easy way?, can you givme a little of
help with this topic?
Thanks... and have a nice day ...
... more >>
IUSR_servername default regional settings change
Posted by Scott at 3/20/2007 3:25:38 PM
Server was installed with US regional settings
I changed to UK
Iuser_servername when first run picked up US regional settings and i cant
change (cant/wont login as this user)
Anyone know how to change Iuser_servername regional settings ?
..net 2
aspx
iis6
2003 standarrd
Cheers
Sc... more >>
problem deployement ASP.NET2 Application used Virtual path provid
Posted by Ibrahim at 3/20/2007 2:28:10 PM
I have probelm to deploy ASP.net2 Application
implement in this Application the Virtual path provider techinque
what I have done :
1- built the web Application with Asp.net2 as File system Application
2- Implement the Virtual path provider (Virtual path , virtual Directory ,
Virtual Fi... more >>
Executing thread in correct context
Posted by ryan1234 NO[at]SPAM gmail.com at 3/20/2007 2:12:51 PM
My ultimate goal is to get something like "ping.exe" to re-direct it's
standardOutput in real time to an .aspx page.
I've been able to get this behavior to work just fine in a regular
console application. I execute the process and the output is re-
directed to a windows textbox.
Below is t... more >>
storing sql statements and reusing in asp.net
Posted by Simone at 3/20/2007 1:18:28 PM
Hello
I am pretty new to asp.net :)
I have a program that loops through a few sql statements and performs
inserts.
The problem is the sql statements are different for every upcoming new
study we do but the program is pretty much the same.
I need an efficient way to store new statements a... more >>
Asp.net 2.0 session state confusion
Posted by dchinn NO[at]SPAM nwlink.com at 3/20/2007 1:06:27 PM
I have a freshly installed test machine, both 1.1 and 2.0 frameworks
installed, and sql server 2005.
The application was ported from 1.1 -> 2.0.
I ran aspnet_regsql wizard with defaults, which creates an aspnetdb in
sql. The application runs in an IIS vroot that was set up (call it
"foo"),... more >>
Asp.net 2.0 session state confusion
Posted by dchinn NO[at]SPAM nwlink.com at 3/20/2007 1:05:17 PM
I have a freshly installed test machine, both 1.1 and 2.0 frameworks
installed, and sql server 2005.
The application was ported from 1.1 -> 2.0.
I ran aspnet_regsql wizard with defaults, which creates an aspnetdb in
sql. The application runs in an IIS vroot that was set up (call it
"foo"),... more >>
Moving membership info to another server
Posted by David Lozzi at 3/20/2007 12:59:35 PM
Howdy,
I'm new to the membership class in ASP.Net 2.0. I have a SQL 2005 database
setup with the aspnetdb for the membership class and it works great. I just
moved my database to another SQL server and the user accounts didnt carry
over, and I'm guessing its because they are stored in the a... more >>
How would you do this: sorting/querying an XML file...
Posted by darrel at 3/20/2007 12:55:41 PM
We have a home grown web site. We store page information, including a
time-stamp as to when it was last updated in a database table.
We also store the site architecture (navigation) in an XML file.
We want to create RSS feeds that show the most recent page updates for a
particular node of ... more >>
Create web page dynamic layout
Posted by Sam at 3/20/2007 12:53:13 PM
I have been assigned to build an web application that allows admin staffs to
configure the looks and feels of various parts of a loan application. For
instance, one can set some parameters in a configuration file so that
various blocks of templates appear on the web page the way they want.
S... more >>
Gridview Row_updating
Posted by Hawk at 3/20/2007 12:40:00 PM
Hello,
I have posted a similar question before with no response so I will try again
with new code.
I have a gridview that has code in the row_updating handler that checks to
see if a field has duplicate data in a database. If so the e.cancel is
called if not the update takes place.
Wh... more >>
GridView Paging Problem
Posted by Matt MacDonald at 3/20/2007 12:07:58 PM
Hi all,
I have a gridview on a webform that uses paging. When I have the paging
type set to numeric, everything works fine. When I change it to previous
and next buttons, I keep getting a data error that it's trying to use a
connection that was left open. I'm using .net typed datasets to... more >>
The language behind www.microsoft.com
Posted by georgi.ivanov NO[at]SPAM gmail.com at 3/20/2007 11:35:25 AM
The index http://www.microsoft.com/en/us/default.aspx has .aspx
extension, but it does not look like ASP.NET webpage. It does not have
__VIEWSTATE, it doesn't have <form> in the body... Just tones of
JavaScript.
Anyone any idea what is the language behind it?
... more >>
How to install a font dynamically
Posted by Lamy at 3/20/2007 11:25:03 AM
Please help,
I need to upload a font file from the website (with admin privilages) and
install it on the web server.
Is there a way of doing that or an example?
Kindest Regards
Lamine
... more >>
dealing with null and datetime
Posted by GaryDean at 3/20/2007 10:36:18 AM
Is there any good way in which to deal with null datetimes. For instance, I
can't seem to find anything that will pass a null value in a datetime
parameter to another method. Convert.dbnull will not work for instance.
Getting nulls back and forth between C# and SQL Server is always
proble... more >>
File Cannot Be Found
Posted by NullQwerty NO[at]SPAM gmail.com at 3/20/2007 10:31:26 AM
I've got some strange activity occuring.
We have a development server which mirrors our production server.
I have an Active-X .Net dll that sits in a Web Site Folder and is used
by an aspx page. All of the sudden the ActiveX component stopped
working on the development server but still work... more >>
Looping through XmlNodeList
Posted by Raul at 3/20/2007 10:19:45 AM
Hi,
I have the following code, which picks up 43 different nodes from my
XML document
XmlNodeList amortNodes = amortDoc.SelectNodes("//
TValueAmortizationSchedule/AmortizationLine");
each node looks like this:
<AmortizationLineType>8</AmortizationLineType>
<Date>09/01/2006</Date>
<Lo... more >>
IDE Questions
Posted by Tarun Mistry at 3/20/2007 10:16:04 AM
Hi everyone,
I am new to VS 2005 and have a few questions im hoping you guys can answer
to get me on my way.
1) I have created an asp.net website and it all works in my local
environment. Excellent. I can publish this website to my host, however I
need to manually change the Web.config o... more >>
ASP.Net ways of streaming pdf / word docs?
Posted by Jim Bancroft at 3/20/2007 9:53:33 AM
Hi everyone,
We've have files we'd like to store in a SQL Server blob or text column and
make available online for our clients. Instead of linking to a document
sitting on a file server, we figure it'll be easier to manage the document
store this way.
Could someone point me to a tutoria... more >>
DataGrid ItemDataBound Performance Lag
Posted by _MC_ at 3/20/2007 9:51:04 AM
Hi,
recently I had to set some Columns in our Datagrid invisible. As we
use an dynamic Datagrid Binding, the only possible method is in
ItemDataBound Event:
protected void DataGrid1_ItemDataBound(object sender,
DataGridItemEventArgs e)
{
for(int i=1; i <= 3; i++)
e.I... more >>
Web Based Printing
Posted by Andrew Robinson at 3/20/2007 9:34:35 AM
I have a web site that needs to print or fax a series of office (word and
excel) and/or PDF documents. Does anyone know of a service / api that will
allow me to print or fax these as a group? i.e. one fax or continuous
printed document.
-Andy
... more >>
Can you restart a ASP.NET application in the Application_Start eve
Posted by masmith at 3/20/2007 9:10:08 AM
Can you restart an ASP.NET application in the Application_Start event when an
error occurs so the next request for the application will fire the
Application_Start event again?
This would allow the application to recover without intervention if the
problem is a database server is temporarily... more >>
GridView column width
Posted by Mike Parris at 3/20/2007 8:40:27 AM
I am trying to set the width of one of the columns of an asp.net 2.0 Gridview
control.
I am using a line -
MyGridview.Columns[2].ItemStyle.Width = Unit.Percentage(40);
The problem is that there are no columns in the gridview so this line "blows
up".
I am binding the gridview to data in... more >>
reporting using SQL Server security
Posted by BillE at 3/20/2007 8:37:06 AM
I am developing locally processed reports with VB2005, displayed in a report
viewer on a web form.
Unfortunately my environment does not permit integrated security.
How can I supply the username and password to the report at run time when
the web form opens?
I tried populating a datas... more >>
While objdr.read() problem
Posted by Problematic coder at 3/20/2007 8:36:44 AM
Dim objdr As Data.OracleClient.OracleDataReader = Nothing
Dim objcnn As Data.OracleClient.OracleConnection = Nothing
Dim objcom As Data.OracleClient.OracleCommand
objcom = New
Data.OracleClient.OracleCommand(BuildSQL("Notes", id), objcnn)
objdr = objcom.ExecuteRea... more >>
General misunderstanding of page events
Posted by AC at 3/20/2007 8:26:42 AM
I've got a page which, when it initially loads (i.e. IsPostBack ==
false), loads all my application's users into one list and all the
roles into another. If it is a postback, it loads details of the
selected user into a bunch of literals, textboxes, etc. So far, so
good.
Generally, it goes ... more >>
calendar SelectionChanged
Posted by NH at 3/20/2007 8:13:05 AM
I have a basic calendar and a SelectionChanged event (asp.net 2.0).
How can I handle it when a user chooses the same date again, in this case
the SelectionChanged event is not fired because, well, the date selected
hasnt changed.
Is there a calendar.clearSelection type method on the calend... more >>
Cookies duplicating themselves
Posted by Darren.Ratcliffe NO[at]SPAM gmail.com at 3/20/2007 7:30:26 AM
Hi everyone
I'm using v 2.0 of the framework with C# and am developing a web
application.
I am finding that my cookie names are duplicating themselves over and
over again, for example when I write out all the cookie keys and
values, I am getting the following:
CookieA: Apple
CookieB: Ba... more >>
How we define runat="server"
Posted by gunjan.mait NO[at]SPAM gmail.com at 3/20/2007 6:19:52 AM
hi,
i wanted to know the exact use of runat="server" which is being used
is ASP.NET
why we every time need to use it, even when i want to do the work at
client side? How to do simple processings like displaying some message
at client side only without hitting server?
what is the use of oncli... more >>
Date Formats (C#)
Posted by C at 3/20/2007 5:48:25 AM
Hi,
I have a date in a string as say "20/3/2007"
I want to format this as "Mar-07"
This seems to be not that straightforward in C#
In VB6 I could do this easily.
How can I format this to be "MMM - YY" ?
... more >>
IPv6 / ASP.NET 1.1 / XP SP 2
Posted by Dimitrios Toulakis at 3/20/2007 4:57:00 AM
Hi all,
struggling with my web project and ASP.NET 1.1.
Situtation:
The network infrastructure changed to IPv6 and now I cannot open any web
project with the VS IDE on my local machine.
Found some information about this problem at
http://support.microsoft.com/kb/818262. I also did a reins... more >>
Unable to validate data after idle
Posted by Solje at 3/20/2007 4:32:02 AM
Im developing an ASP.NET application used for maintinance purpose and
it may be idle for some ours. The application crash with the error
shown below when the user click on some contol in the appliaction.
This crash occurs on every clients at same time, event for the client
at the local server. I... more >>
Exporting HTML table to Excel
Posted by schmidte at 3/20/2007 3:01:05 AM
Hi
How can I Export an HTML Table to excel?
My goal is a button, and when the user clicks this button a popup appears
asking the user to 'open' or 'save' the generated Excel file.
Actually I'm exporting by rendering my table to an htmlwriter and sending
this to excel. This is working near... more >>
'Place code in separate file' option not available in web application project.
Posted by Lee at 3/20/2007 2:09:42 AM
Hi,
I've converted my VS2003 project to a VS2005 web application project.
The reason is to support AJAX. I want to create a new form and am
following a microsoft tutorial. The problem is that the tutorial
states to check the ''Place code in separate file' checkbox when
creating the new form... more >>
How to get a list of only the files on an ftp server
Posted by Bill at 3/20/2007 1:33:11 AM
I want to get a list of the files in an FTP folder. I have seen the example
of MSDN using the FtpWebRequest, and it's fairly trivial to execute an NLIST
command, but the trouble is that this includes directories too. I can
specify a pattern like *.* in the uri to exclude directories, but thi... more >>
Redirect to an authenticated site .....
Posted by giodo at 3/20/2007 1:00:03 AM
Hi ALL
When we try to get an access to a secure content in a IIS with "Basic
Authentication" IE shows a dialog box to set user ID and pass. After
correct authentication IE (all browsers) adds a special HTTPHeader
for each request:
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
where Q... more >>
Tool to move inline code to code behind?
Posted by nospam NO[at]SPAM nospam.sss at 3/20/2007 12:48:54 AM
I have tens of aspx files which contain server side code. I need to move
the code to code behind files. Is there a tool that can automate this?
John Dalberg... more >>
TreeView checkboxes AutoPostBack with AJAX
Posted by Dmitry Perets at 3/20/2007 12:20:42 AM
Hello,
There is a known problem with TreeView checkboxes in ASP.NET: they
can't do AutoPostBack. So I've solved this problem like this:
<script language="javascript" type="text/javascript">
function postbackOnCheck()
{
var o = window.event.srcElement;
if (o.tagName == 'INPUT' && ... more >>
|