all groups > asp.net > august 2006 > threads for friday august 18
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
error: can't find control 'mylabel'
Posted by Ben at 8/18/2006 10:31:20 PM
Hi,
In the code-behind, i can refer to the dropdownlist defined in the aspx file
with this (e.g.)
dropdownlist1.sekectedvalue = ...
but why can i not refer to the label defined in the TemplateField in the
same aspx file like below?
This gives the error: "can't find control 'mylabel' ":
... more >>
custom validation
Posted by Slim at 8/18/2006 9:58:44 PM
I cant seem to get my custom validation to work. can anyone spot where i
have gone wrong
control
<asp:CustomValidator ID="checkHandicap" runat="server"
ControlToValidate="startHandicap" ErrorMessage="Handicap out of range"
OnServerValidate="checkHandicap_ServerValidate" ></asp:CustomValida... more >>
DSN ConnectionString?
Posted by Arpan at 8/18/2006 9:25:56 PM
I created a System DSN named "NETData" for a SQL Server 2005 Express
database. Now to make use of this System DSN to access records in the
DB table, this is how I framed the ConnectionString:
Dim sqlConn As SqlConnection
sqlConn = New SqlConnection("DSN=NETData")
But the following error g... more >>
Seeking Advice!
Posted by Tom at 8/18/2006 9:16:02 PM
This is my first .Net project so please forgive the stupid questions. I'm
developing an application in ASP.Net 2.x (VB) and I am not sure how to
continue. In my mind the application works somewhat like a shopping cart...
I have a “Report†table and a “ReportItem†table. A user is a... more >>
HELP : URGENT : How to get the list of printers on the web server?
Posted by gnusmsa at 8/18/2006 4:49:11 PM
ASP.NET 2.0 (C#) application
Using Windows authentication and impersonation
Windows Server 2003 (IIS6)
Server is a member server on a domain
Logged into server as a domain user that is in the local Administrators
group on the server
Workstation is on the same domain
Logged into the workstatio... more >>
Add new row in datagrid through javascript
Posted by Neeraj at 8/18/2006 4:38:45 PM
Hi Everybody
Can any body give me a java script code for add new row in datagrid.
Actually in my web page I have on datagrid with multiple rows and 3
columns.
The first column is template column which contains the check box and
other columns are data columns which contains the text.
I want... more >>
Hiding URL on Status Bar
Posted by RCHutch at 8/18/2006 3:05:02 PM
I would like to prevent the URL from appearing on the status bar when a user
holds the mouse down on top of it. I am already using:
oncontextmenu="window.status=''; return false"
....and similar for onclick, onmousedown, onmouseover, onmousemove,
oncontextmenu
on the BODY and it almos... more >>
Application_BeginRequest and the Page object
Posted by Mark Rae at 8/18/2006 2:58:48 PM
Hi,
Is it possible to have programmatic access to the Page object in
Application_BeginRequest, or is it too early in the lifecycle...?
E.g. to be able to change a page's MasterPage dynamically, something like:
protected void Application_BeginRequest(Object sender, EventArgs e)
{
if ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Why no ASP.net wikis?
Posted by darrel at 8/18/2006 1:56:04 PM
I've sort of ranted about this before regarding blogs.
There seems to be a massive gap in the market for .net based 'web 2.0' apps.
We'd like to have an internal WIKI set up for documentation, but I can't
find any that are both .net based, and still being developed/updated.
Of course, the... more >>
Extend the page directive attributes with your own?
Posted by Dave at 8/18/2006 1:32:01 PM
I want to accomplish something similiar in Scott's blog entry
http://weblogs.asp.net/scottgu/archive/2005/08/02/421405.aspx
but I'm using 1.1 and not sure if there is a way to mimic this or set flags
at the .aspx level to be read by the code behind.
Thanks.... more >>
ASP.NET
Posted by haibhoang NO[at]SPAM gmail.com at 8/18/2006 1:11:26 PM
Hello,
I have a Visual Studio 2005 installed but it's unable to detect any
errors
when I compile the solution. It works fine for other project types
except
the web project. So basically I can only find out error during runtime
and not compile time. This is really inconvenient for me.
A... more >>
Proper postback when Enter Key is pressed
Posted by Jim in Arizona at 8/18/2006 1:01:38 PM
I have a simple vb aspx page with a single text control and button
control. The user puts a date in the text field and pressed the button
and a gridview is filled with data. If I put in a date and just hit
enter, it looks like the page is posting back but nothing happens. I
don't know how to... more >>
Textbox1.Text wont display Value
Posted by dbfrey NO[at]SPAM gmail.com at 8/18/2006 12:46:26 PM
This is the oddest thing I've ever seen.
We have an aspx page with some user controls, one is a main, another is
a status, which has an edit button.
on the main control, we have some dropdowns and textboxes. When the
edit button is clicked, it will reload the page and the event is picked
u... more >>
Firebird connection pools never close connections idle for a long time
Posted by Gen at 8/18/2006 12:44:14 PM
Hello there,
I am developing a web application using Firebird.NET provider ver 1.7
Connection pooling is being used to better the application's performance.
The problem is that the pool never closes its connections, even if they are
being idle for a long time.
Is there some way to make the... more >>
Want a development version of a live web application
Posted by scottingim NO[at]SPAM hotmail.com at 8/18/2006 12:34:06 PM
I have an ASP.NET web application, Bids. This application goes live on
Monday. I would like to set up a development version, BidTest, on the
same server. I have a website set up and can browse to it. I would
like to make my changes on BidTest, test them to make sure they work,
then publish t... more >>
Protecting my CSS using a location tag in web.config
Posted by GD at 8/18/2006 12:20:08 PM
I'd like to prevent users from downloading my CSS file. I thought about
putting a web.config file inside my CSS directory as follows:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</c... more >>
how to disable html field on client, and see that change on server
Posted by sonic at 8/18/2006 12:19:56 PM
I realize that if a field is disabled, its value will not be posted to
server.
i realize that .Enabled = false, produces disabled="disabled" markup
i still don't see a good way to disable a field using javascript and
than check for that on the server.
if i render a regular textbox
<asp:T... more >>
Long Delay in initial load of ASPX pages
Posted by Alex Maghen at 8/18/2006 12:04:01 PM
I've just moved to a new hosting company which provides me a "Virtual
Dedicated Server" running Windows Server 2003/ASP.NET 2.0.
My site is not pre-compiled and, at least for now, I'd prefer that it stay
that way. I have ASPX pages with .CS code-behinds and I have a bunch of .CS
class file... more >>
redirection
Posted by lam at 8/18/2006 11:38:13 AM
I'm wondering if there is an easy way to implement a redirection.
For example: http://test.com/redirect would redirect to
http://test.com/redirect.aspx
In the past, I have to implement redirect as a virtual directory under
test.com and have redirect logic to redirect.aspx. But this seems l... more >>
Catching the error in global.asax file
Posted by Groove at 8/18/2006 11:24:11 AM
Hey guys - I'm sure this is a commonly asked question but here goes.
I'm trying to catch the error in my global.asax file and redirect to a error
page which will email me the actual error upon page load. Everything seems
to work OK except catch the actual error. It detects the error when I ... more >>
Ajax
Posted by Eriston Danilo at 8/18/2006 10:45:02 AM
Prezados,
Gostaria de saber se alguém já teve o seguinte problema e se conseguiu
resolver.
Tenho uma web app que usa AJAX, local funciona normalmente, mas no server de
produção (intranet) não funciona, pois os usuários passam por um PROXY SERVER
que tbm está na mesma rede, DESATIV... more >>
Issue with using arraylist elements as InsertParameters
Posted by VB Programmer at 8/18/2006 10:34:09 AM
I have an array list that is filled with ProductId's. I wanted to traverse
thru the arraylist and use these product as parameters in a SqlDataSource.
It seems to always stay on the 1st element in the arraylist. Any ideas why?
Here's part of the code... (al=arraylist, sds=sqldatasource)
... more >>
displaying exception message from custom exception
Posted by bdgreen NO[at]SPAM pacbell.net at 8/18/2006 9:59:55 AM
Hi,
I made a custom exception, derived from ApplicationException. If the
exception is thrown, the erroring web page shows the line of code where
I throw exception, and doesn't display the exception message. Do I
need to catch my custom exception, and rethrow it as another type of
exception ... more >>
Specialized Web Control
Posted by clint1028 at 8/18/2006 9:20:22 AM
Specialized Web Control
I am an ASP.Net programmer that up to this point has dealt mostly with
pure data and not a lot of graphic type programming. I need some
advice from all of you .net guru's out there. Here is my situation.
I have a web page that needs the ability to have an x / y grid... more >>
Problem with page redirect in Live Environment
Posted by robin9876 NO[at]SPAM hotmail.com at 8/18/2006 9:03:50 AM
On an asp.net v1.1 page after saving form information I have a page
redirect using
response.redirect("aDifferentPage.aspx")
This works correctly in development environment connecting from a
different pc.
The same code accessed from the same client pc accessing the live
environment is showing... more >>
Nullable object types
Posted by Nemisis at 8/18/2006 8:46:07 AM
Hi everyone, i have been stressing over this for the past hour or so,
and just cannot figure it out, sorry if i am being stupid, but it is a
friday! lol
I have the following
Private _ID as nullable (Of integer)
Public Property ID()
Get
Return _ID
End Get
... more >>
Saving a file in a specific Directory
Posted by Chicagoboy27 at 8/18/2006 8:44:42 AM
All I am trying to specify a location for the file to be saved in.
currently I have a process that get the location of the file and then
prompts the user to save it in a directory. I am wondering if it is
possible to specify that directory on their system. Our clients would
have this directory o... more >>
Printing
Posted by Jeremy Chapman at 8/18/2006 8:40:19 AM
We've got a web application that is viewed on various PDAs as well as on
desktop machines. We're trying to come up with a good printing solution.
The report is fairly simple. We've thought of generating a PDF, or just
printing a generated HTML page. The issue around PDF is that every client... more >>
Running Process as Current Authenticated User
Posted by GoneRural at 8/18/2006 8:23:39 AM
Hello, I am trying to figure out how can I run a process under the
authenticated user's credentials without having to prompt for a
username and password? Is there anyway to allow for pass thru
authentication? I am tying to use the ProcessStartInfo class and I
obviously can get the current user... more >>
Generics and user controls
Posted by mark.norgate NO[at]SPAM gmail.com at 8/18/2006 8:10:06 AM
I've run into a few problems trying to use generics for user controls
(classes derived from UserControl). I'm using the Web Application model
rather than the Web Site model.
The first problem I'm having is that the partial class signature in my
projectDetails.ascx.cs file looks like this:
... more >>
Security Exception Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Posted by wenning NO[at]SPAM kvsa.nl at 8/18/2006 7:54:40 AM
Hello,
I am struggling with a website on a W2K3 server which has the actual
content on a NAS server (also W2K3 based). The servers doesn't run in a
domain and arent intended to.
I did make the web space on the W2K3 IIS Server and pointed it to the
NAS server via an UNC path (no virtual dire... more >>
Monthly Calendar Control
Posted by newsgroups.jd NO[at]SPAM gmail.com at 8/18/2006 7:37:40 AM
Anyone know where I can find a calendar control that just shows the
months, not the days.
Something like
<< Jan 2006 >>
left and right arrows would up or down the month, year and then
clicking on the month could redirect.
JD
... more >>
hyperlinks in gridview
Posted by CSharpguy at 8/18/2006 7:13:27 AM
In my gridview i need to add hyper links but add them as such
headers - - -- ---------------------------------------------
-------------------------------------------------------------
link1 BMW 2005 25,000
link2
---------------------------------------... more >>
Output parameters for dynamic SQL
Posted by Nemisis at 8/18/2006 5:45:22 AM
Hi everyone,
I am saving a record to SQL and want to return the ID of the record
added as an output parameter, can you do this in dynamic SQL, without
the use of a stored procedure??
i.e.
comm = new sqlcommand
comm.commandtext = "Insert (name) values (@name); select @id =
SCOPE_IDENTITY... more >>
Please, help, I am a newbie here
Posted by datingservices NO[at]SPAM fuckshemale-dot-net.no-spam.invalid at 8/18/2006 5:22:24 AM
Where is a form to attach my jpeg file?
______________
Dating catalog Matc
Make
---------------------------------
http://community.ihostasp.ne
ASP.NET Developer Community... more >>
FULL URL from VIRTUAL path
Posted by tommaso.gastaldi NO[at]SPAM uniroma1.it at 8/18/2006 4:42:53 AM
Hi friends
I was in the need to find a sort of "definitive" :) solution to
transform a
virtual path such as "~/MyDir/MyFile into a full web address. In
particular I needed
it * within web services *.
I would like to be informed that the framework provides a function to
do that, but for no... more >>
Dataset using MySql renders "Parser Error"
Posted by filip.norrgard NO[at]SPAM gmail.com at 8/18/2006 3:51:31 AM
Hi All!
I've been developing an ASP.Net 2.0 web application using the Visual
Studio 2005 tools. Currently datagrids on a page are filled with data
from a dataset (a .xsd file in the "project") that, in turn, gets the
data from MySql server.
Locally testing it on my PC (Windows XP SP2, FYI) ... more >>
2 codebehind files and ..
Posted by pintu at 8/18/2006 3:33:25 AM
Hi..
Can I hav 2 codebehind files(x.aspx.cs ) and one x.aspx pages..Any body
plz give me idea on this..
Thanks
... more >>
how to call an asp page from an email
Posted by srinivas at 8/18/2006 2:40:27 AM
Hi All,
We are sending an html email from asp page.In the email we
appended an image tag and the "src" attribute points an asp page in our
server.Here when ever user read the email this image tag will fire our
asp page.It is working fine if we open the mail in web browsers.It is
fai... more >>
Steve Orrs Dropdown calendar
Posted by Flodpanter at 8/18/2006 1:16:03 AM
Ive read and used the dropdown calendar found at
http://steveorr.net/articles/DropDownCalendar.aspx
It works just fine except when it drops down over other wiondowed controls
such as a drop down list. Since the calendar is a socalled non-windowed
control it will never be able to position o... more >>
noscript adding dynamic meta tag
Posted by Dst at 8/18/2006 1:12:33 AM
<head runat="server">
<noscript>
<meta http-equiv='refresh' content='0;url=Unsupported.htm'/>
</noscript>
</head>
If i add this to my webform, it redirects to Unsupported.htm if
javascript is disabled.
But i'm trying to make a utility class that will add this code
serve... more >>
how to determine the physical path of a page
Posted by Vaclav Jedlicka at 8/18/2006 12:00:00 AM
Hello,
I created a web app using Visual Web Developer 2005 Express Edition. The
project is called "mytest".
When I view a page in the browser, its URL looks like
http://localhost:3415/myTest/SomePage.aspx
I need top determine the physical path of the page. I call
string ls_path = Ht... more >>
radiobutton list
Posted by Vikas Kumar at 8/18/2006 12:00:00 AM
Hi Guys,
Can I hav image with radiobuttonlist control instead of text....?
Pls help me in this concern...
... more >>
|