all groups > asp.net > january 2005 > threads for thursday january 27
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
DropDownList always returning the first item
Posted by Siamak Zahedi at 1/27/2005 11:33:20 PM
Hi,
weird problem I'm having cant seem to figure out what is going on.
I have a dropdownlist that gets populated from db and a button that causes
a post back
when I assign the value of the dropdownlist to a string var it always
returns the first item regardless of what was selected
code... more >>
Encoding problem
Posted by May at 1/27/2005 11:31:12 PM
Hi all !
I run a ASP.NET page in Japanese Operation System (Windows XP Pro).
My Page is saved with the "shift_jis" encoding.
And my global settings (from Web.config) is as below.
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
When I add a Label and set a Japanese Text ... more >>
Passing values between web pages which are in different Web Sites
Posted by Shankar Ayyachamy at 1/27/2005 11:07:58 PM
Hi,
I want to pass information from one page, which is in a site to a page
which is in a different site.
Can I pass an xml file between sites
Thanx
Shankar
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Data inserting twice to DB
Posted by Patrick Olurotimi Ige at 1/27/2005 10:47:56 PM
Can anybody tell me what i'm doing wrong?
The data is inserting 2 records at a time!!!
Thanks
Dim conn As SqlConnection
Dim cmdcommand As SqlCommand
Dim param As SqlParameter
Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
... more >>
Inverting a Regular Expression in Validator
Posted by spalding at 1/27/2005 8:44:37 PM
Hi
Does anyone know how to invert a regex in the
regularexpressionvalidator.
Example;
RegularExpresionValidator val = new RegularExpressionValidator();
val.ID = "val";
val.ValidationExpression = ".*.exe";
Now how do I get the validator to fail on the above expression? I have
looke... more >>
# of pooled connections seem too high
Posted by Bob at 1/27/2005 8:02:04 PM
We have a production web site that's data intensive (save user input to DB
and query for displaying) with the ASP.NET app part on one W2K server and
SQL 2000 DB on another W2K server. I have set up performance logs to log #
of pooled database connections on the web server every 60 seconds (.NET ... more >>
Size of requests FOR pages
Posted by MattC at 1/27/2005 7:26:52 PM
I used a trace tool (YATT) to see the size of my pages coming down the
network. The page sizes were ok coming in at about 3K per page, but I
noticed the bytes out column was 20K. Some of my users are dialup and so to
send 20K to get a 3K page is obsured.
Does anyone know any other good tr... more >>
Secure sites... and the theory of relativity
Posted by Ron Weldy at 1/27/2005 7:08:13 PM
In the past, I have always handled secure sections of websites using IIS.
You put the files you want to transfer data securely in a folder and you
indicate that in IIS. If you really need to force the url, then I have also
encountered code that picks up the current domain or server and then
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Building ASP.NET sites without Visual Studio?
Posted by Roy at 1/27/2005 7:04:47 PM
Is it even possible? I mean, realistically possible?
I've found info on how to get .aspx and .vb pages to talk to each other
without using VS, but I can't find a single way to get a .ascx user
control page to talk to other pages. Anyone have any info or links on
this matter? PLEASE chime in wi... more >>
Why has my validation stopped working? [1/1]
Posted by Alan Silver at 1/27/2005 7:02:39 PM
This is a MIME message
--=_Turnpike_LKNZH0QPrT+BNyNh=
Content-Type: text/plain;charset=us-ascii;format=flowed
Hello,
I have been playing with some of the code in ASP.NET Unleashed, to try
and understand what's going on. I am getting on pretty well, but have
struck a problem. I was look... more >>
Uploading files
Posted by Charles A. Lackman at 1/27/2005 6:31:55 PM
Hello,
I have a web site that allow visitors to upload files to my server using
HTMLInputFile.
Is there a way to make a file dialogbox appear during the upload like the
one that appears when you download a file??
Thanks
Chuck
... more >>
aspx variable replacement - runat=server
Posted by testemail NO[at]SPAM skunkbox.com at 1/27/2005 6:24:51 PM
Hello
How do I perform a variable replacement in ASP.NET when I am using the
runat=server clause to generate a table - it was simple in ASP
With ASP :
----------
<HTML>
....
<BODY>
....
<TABLE...>
<TR>
<TD colspan="<%=NumberOfCols%>">...<TD>
....
<TR>
....
<TABLE>
....
</BODY>
... more >>
Some questions on configsections
Posted by Andrea Moro at 1/27/2005 5:53:02 PM
In web.config file I do as follow:
<configsections>
<sectiongroup name="Database">
<section name="Access" type="....
Ok problem is there in type. According to the help is only needed
the class' name of the class that will access to the section, and class
must inherits from Ic... more >>
Connecting to a remote sql server
Posted by Frank Schumacher at 1/27/2005 5:32:29 PM
Hi NG,
I try to connect to a remote MS-SQL-Server 2000 from an ASP.NET
application. Here's how I do it:
private void ConnectToDatabase(string host, string dataBaseName, string
userID, string password)
{
string connectionString;
connectionString = "Initial Catalog=" + dataBaseName + ... more >>
Need some advice about file extension of the include file
Posted by Joe at 1/27/2005 4:31:02 PM
Hi,
I haven’t mastered the asp.net yet to be able to use asp.net 2.0 master
pages. So I am planning to create pages with .aspx extension and once I am
confident, I will rewrite them using master pages. The purpose of this
exercise is that I will be able to keep the filenames same.
A... more >>
help finding an item in a datagrid
Posted by Chris at 1/27/2005 4:21:02 PM
Using:
DataGrid1_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid1.ItemCommand
is there a way to find a specific item in the datagrid. I'm using the
CommandEvent to do some stuff. When I try to use syntax like this:
e.It... more >>
Repeater.ItemTemplate =?
Posted by Shimon Sim at 1/27/2005 4:18:31 PM
Can I dynamically create ItemTemplate for Repeater control?
I want to do something like this in code
repeater.ItemTemplete=...something that will display in repeater.
I don't know what I can assign and if it at all possible.
Thanks,
Shimon.
... more >>
!! DOWNLOAD THE MOST POPULAR 2005's CRACKED SOFTWARE(CAD/CAE/CAM/EDA/GIS/PCB/FEA/CNC/
Posted by CrackSoft at 1/27/2005 4:05:26 PM
Our Team provide CRACKED engineering and technical software at this
topics:
=> Civil and Structural
=> Survey , GIS , Rock , Soil and Water
=> Architectural
=> CAD-CAM
=> FEA , CFD and CAE
=> Electrical , Electronic , Control and Power
=> Chemical
=> Industrial and Control Project
=> HVAC ... more >>
What's the difference/advantages between code behind and code inside?
Posted by Alan Silver at 1/27/2005 3:15:25 PM
Hello,
Newbie here, so please forgive what is probably a basic question ...
I see a lot of discussion about "code behind", which if I have
understood correctly, means that the script code goes in a separate file
from the HTML. Apart from the obvious advantage if you have a separate
desig... more >>
Please help with Dataset Problem
Posted by Justin at 1/27/2005 2:57:03 PM
I am trying to do a simple update of a single row with the dataset below but
I keep getting this error:
"System.NullReferenceException: Object reference not set to an instance of
an object."
Here is the code:
Me.sqlDataAdapter1.Fill(DataSet1, "Queue")
Dim QueueRow As ... more >>
Certain controls aren't accessable at runtime in a custom control
Posted by Eric Sabine at 1/27/2005 2:53:00 PM
I've created a custom control (ascx) which contains a tree view, a drop
down list, and a listbox. The custom control is included in a web form
and at runtime, won't compile (I get the "inaccessible due to its
protection level" error) because the NodePopulate event of the treeview
is set to priv... more >>
.NET Framework Disk Space Requirement
Posted by A P at 1/27/2005 2:46:03 PM
Hi,
I am loosing disk space and wanting to install .Net Framework on my W2KSP4
Server. I only have 400MB available, is this enough for me to install .Net
Framework?
Me
... more >>
Web forms in vb.net
Posted by Blake at 1/27/2005 2:41:03 PM
I created a web application in VB.net 2003 pro. The program works fine on my
machine, but when I try to put it on the server, i have to take out the
handles clause and I can't get half of the code to work. The server has ASP
server extentions and the aspnet_regiis -c is regestered. What am I d... more >>
This Dataset is going to be the death of me!!! Please Help
Posted by Justin at 1/27/2005 2:23:07 PM
I am trying to update a database table through this dataset. The error is
ambigous: "System.NullReferenceException: Object reference not set to an
instance of an object." I have tried replacing the variable "month" with a
string and I tried replacing "ProductList.ToString()" with a string but ... more >>
Session - Screen Switches for no apparent reason.
Posted by tcallahan NO[at]SPAM coh.org at 1/27/2005 2:08:58 PM
I'm not sure what to think of this. In the appliacation, upon postback,
users screens will get mixed up. Meaning... Perhaps on my screen im working
with a particular set of data. I click a button to cause a post back, then
all of the sudden someone elses data comes up. If I hit the refresh ... more >>
Any reason why Page_Load would be ignored?
Posted by Jim Bancroft at 1/27/2005 2:08:23 PM
Inexplicably one of my aspx pages is ignoring the Page_Load handler. The
page worked fine this morning, but then I added a couple of "using"
directives and uncommented a method call about halfway down, and suddenly I
can't get Page_Load to run no matter what.
I've rebuilt the web project... more >>
Multiple DLL references in web application.
Posted by Mahesh D. Rane at 1/27/2005 2:03:03 PM
Make 5 Modules in Business Object Layer ( This will make one common dll for
all the modules in Business Object layer)
Make 5 Modules in Data Access Layer ( This will make one common dll for all
the modules in Data Access layer)
After that what i will do is add the reference of Facade layer ,... more >>
Loading a listbox from a Dropdownlist
Posted by gv at 1/27/2005 1:56:29 PM
Ok,
Hi all, new to asp.net. Simple question
with web forms
I have a Dropdownlist and a listbox, I want to click on and item in the
dropdownlist and show items in listbox. that simple
I have this: I have two items in Dropdownlist. The Reportlist doesn't show
the items ?
I tried to ... more >>
Please advice me (:
Posted by Moore at 1/27/2005 1:39:40 PM
Hi all,
I am trying to create HTML file and print it automatically, which was
possible with the below code...but somehow, it is printing with all
<HTML> tags...could somebody tell me , how to print the HTML file
without , all those HTML tags...??
Please help me...(:
- Moore
======
Di... more >>
File or assembly name ... or one of its dependencies, was not found
Posted by Fabian at 1/27/2005 1:34:46 PM
Hi,
is anybody here, which can do something with this Exception-Message?
File or assembly name 'p4swpjgh, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null', or one of its dependencies, was not found.
I work with asp.net 2.0 beta
-Fabian
... more >>
HTTP 403.1 Forbidden: Execute Access Forbidden
Posted by David Hunt at 1/27/2005 1:05:54 PM
I'm confused.
On my development box (XP Pro/SP2), I manually created a new Web application
(under the default Web site) and got everything working great (this was a
few weeks ago). Today I manually removed that Web site (via IIS Manger as
well as the underlying NTFS folder structure), and t... more >>
Getting 404 error upon postback of my aspx page
Posted by johngilmer NO[at]SPAM yahoo.com at 1/27/2005 12:33:16 PM
I have a login page and it appears just fine (login.aspx). There are a
couple of links on the page which use javascript to bring up modal
dialogs of other aspx pages, and they work fine. But if I cause
login.aspx to postback (there is a dropdown and a button which both
cause a postback), it does... more >>
how can I tell if dropdownlist is really being cached?
Posted by Hazz at 1/27/2005 12:14:03 PM
<%@ Page language="c#" Codebehind="cachecontrol.aspx.cs"
AutoEventWireup="false" Inherits="blah" %>
<%@ OutputCache duration="20" VaryByParam="ddlCountries"%>
is at the top of my .aspx page.
the dropdownlist ddlCountries is used to select a country after which a
submit button posts the fo... more >>
Cannot turn off debug in web.config - confusing message
Posted by Bazza Formez at 1/27/2005 12:01:02 PM
Hi,
Unlike some people I have read about in this news group, I am having trouble
turning off debug.... but the error message seems to indicate the opposite.
When I set debug="false" in web.config, and then start the application, I
get the following (contrary) error message in Visual Studi... more >>
Code Behind vs not
Posted by tshad at 1/27/2005 11:50:31 AM
I am just trying to decide whether to split my code and uses code behind. I
did it with one of my pages and found it was quite a bit of trouble.
I know that most people (and books and articles) like it because you can
split the code from the design. That is logical. But if you are the only... more >>
How to use a dynamic text link as a post-back trigger?
Posted by darrel at 1/27/2005 11:28:59 AM
I have a form that has a 'sub-form' in it that updates a separate table.
I can easily add records to this table from within this page. To delete,
though, I've been redirecting to a different 'delete' page where it asks for
confirmation before deleting. This works, but the problem is that I loos... more >>
ISAPI filter or http module
Posted by Guoqi Zheng at 1/27/2005 11:10:28 AM
I know I can use http module in my asp.net project to rewrite url. However
that is only true for .aspx page, there are many other static page in my
application such as .htm. .asp, etc.
My question is:
1. Is it possible to map all those request (.gif, .jpg, .swf, .asp, .htm,
whatever) to my ht... more >>
how to change FormView programmatically
Posted by Random at 1/27/2005 10:54:16 AM
In the ASP.NET 2.0 beta, the FormView control has the ItemTemplate and
InsertItemTemplate areas (and others). All the documentation I've found
says the way to toggle between the views is to use a control with the
appropriate CommandName. But, I want to decide this when the page loads,
base... more >>
Intermittent "Specified cast is not valid" Exception
Posted by Fabian at 1/27/2005 10:49:24 AM
Hi,
I work with asp.net 2.0 and I have a intermittent error, only happens a few
times a day.
In the page I evaluate a Query String and then I get data form a database.
The code snipped:
try
{
queryId = int.Parse(Request.QueryString["id"].ToString());
...
}
catch (Exception exc)
{... more >>
parameter passing asp.net vb
Posted by benbarnes007 NO[at]SPAM hotmail.com at 1/27/2005 10:44:15 AM
hi,
I'm a relative newbie to .net but have been an asp developer for a few
years. I'm starting the slow and somehwat painful process of learning
how to do everything I used to do in asp in .net.
i'm using visual studio and am simply trying to do the following:
Pass a value into a stored p... more >>
How Do I Print Table Cell Colours?
Posted by Amirallia at 1/27/2005 10:35:23 AM
Hello,
If I want to print a page with a table with cells colored in differents
colors, assuming default settings in browser, when I view the page, all
the colours disappear. I know that one of the default settings in my
browser is 'don't print out the background colour' which is fine
beca... more >>
problem with SessionState
Posted by Craig G at 1/27/2005 10:20:26 AM
i have the code in the Page_load event of a toolbar (usercontrol)
If Not Page.IsPostBack Then
If Session("SecurityInfo") Is Nothing Then
Response.Redirect("Default.aspx")
End If
lblUserName.Text =3D Session.Item("SecurityInfo").UserFullName
lblUserRole.Text =3D Session.Item("SecurityInfo... more >>
ActiveX, plug-in...whatever
Posted by Rob T at 1/27/2005 10:14:31 AM
The other day I posted a question about using ActiveX in my project.....
obviously, that's not the best solution. But I found this great article on
what the author calls rich-client which does EXACTLY what I'm looking for.
Being able to show a windows form in an IE window!
http://msdn.micro... more >>
Using C++ Classes in ASP.NET
Posted by jwk at 1/27/2005 9:55:01 AM
I've been given a C++ class library project which I need to use from my
asp.net vb.net project. I have tried building the C++ class library it but it
only creates a series of .obj files which I can't reference from the asp.net
project. How do I get the C++ class library to compile to a dll (I'... more >>
How to pass display property using a variable....
Posted by Benjamin Smith at 1/27/2005 9:40:00 AM
I am controlling the display status of a table row using the following code.
<TR id="CCRow" style="DISPLAY:none">
Instead of hard coding "none" above, I would like to change that value using
a hidden input control. How to do that?
I am getting the error in the following case.
<TR id="... more >>
Format Question
Posted by pmclinn at 1/27/2005 9:33:28 AM
I have a textbox named "mydate" and I want to add an "onblur" event to
it that will format the text in this format:
dd-MMM-yy
the data entry people use this format in the text box:
dd/mm/yy
d/mm/yy....
I'm having a heck of a time trying to get this to work. Any help would
be apprecia... more >>
ConfigurationSettings can't be seen from a code behind class?
Posted by Andrew Fisher at 1/27/2005 8:52:07 AM
Hi all,
I have set up some config options in the web.config file and have
successfully used them in my test pages. When I came to abstract my
code from the design - by using code behind files, all of a sudden I am
told I can't use the ConfigurationSettings object because it isn't
referenced a... more >>
Can't get application obj to work in a code behind class
Posted by Andrew Fisher at 1/27/2005 8:49:06 AM
Hi there.
I am finally moving over to ASP.NET as the company I work for is
updating certain systems, ,so forgive me if this quesiton has been
answered before [I can't seem to find an answer].
I am using C# for this.
As a test I have built a class that sets up a wrapper around the
SmtpMai... more >>
Session[]
Posted by Just D. at 1/27/2005 8:48:05 AM
Do we have any access to the Session[] object from a different Session? The
idea is to save Session[] of a current user and then if he logs in again
then return the Session back. It's not a problem to store, there is only one
complicated object in this Session[], but to get it on SessionStart ... more >>
Return status on a page that will disappear
Posted by Gary at 1/27/2005 8:41:06 AM
I am trying to do something fairly simple. A user loads that is accessing a
database. This page generates a report. Now the report can take a while to
run (several minutes), so I would like to reply with something on the web
page that says the request is being processed, and then have that ... more >>
Multiple Validators printing multiple messages
Posted by tshad at 1/27/2005 8:31:01 AM
Sorry,
My last post got messed up.
I have a password box that I want to validate for required as well as for
validity. So I have the following:
***********************************************
<td align="right">Password</td>
<td><asp:textbox id="txtPassword" TextMode="Pa... more >>
Mail size limitation of end user(attachment)
Posted by Lelle at 1/27/2005 8:19:23 AM
Sorry for crossposting - sent to wrong group first
hello ! does anyone have more information regarding this issue?
http://www.systemwebmail.com/faq/2.3.aspx
a.. Attachment Size Limit? [ Reply ]
I am using SMTP Mail Service running under IIS on win2k server to send
word/excel/pdf/et... more >>
question about checking for null in query results
Posted by Kurt Schroeder at 1/27/2005 8:03:07 AM
I have a query result set that returns some fields with null length what is
the easiest way to chek for this. This is what i'm trying but it generated a
runtime error:
If (dtrSlb("slbDesc1").IsdbNull()) Then
Else
txtDescription.Text = dtrSlb("slbDesc2")
En... more >>
changing ImageButton image url at runtime
Posted by blarfoc NO[at]SPAM yahoo.com at 1/27/2005 6:56:00 AM
I am using the ImageButton to represent tabs on my webform. I have 5
tabs. Each tab can have 2 images. A clicked imaagge and a unclicked
image. When I click on a image that is not clicked I want to change
the image url. I am using the command argument of the ImageButton to
hold the name of ... more >>
Why, why, why???
Posted by Tim::.. at 1/27/2005 6:03:03 AM
Hi...
Can someone please tell me why my querystring isn't returning anything!
I have a called viewpage.aspx that contains a datagrid with the following
linkcolumn
<asp:hyperlinkcolumn DataNavigateUrlField="pageid"
DataNavigateUrlFormatString="editor.aspx?id={0}" Text="<img border=0
sr... more >>
Updateable query!
Posted by bol at 1/27/2005 6:00:38 AM
I am trying to get our extranet site working, i.e. login page. It seemed
to work on my site and our internal intranet server but it's not working
on the main webserver which our out of house staff use to log in.
I keep on getting this message -
Microsoft JET database engine error '80004005'
... more >>
Active Directory Login Page DN Format?
Posted by Christopher at 1/27/2005 5:37:01 AM
We are using forms authentication in our web app and typically query our LDAP
Servers by binding to the user node in the LDAP Tree.
We usually see the following DN used as the DN for each user..
http://serverip:389/cn=login,dc=company,dc=org
*where login is their actual windows login
I... more >>
State-server suddenly stops responding
Posted by =?iso-8859-1?q?Nils Hedstr=f6m at 1/27/2005 5:08:00 AM
Today my stateserver (running at the same computer at the web-server) suddenly
stopped responding (after 10 days working perfectly).
I did not see any entry in the eventlog indicating that the service stopped
responding.
This is the entry in web.config
---
<sessionState mode="StateServe... more >>
public static fields in DLL
Posted by Mrs. Conni Drejer at 1/27/2005 5:01:04 AM
Please help anyone: I have made a DLL (for DBCommunication) in which I have
defined some public static variables/fields in a public class. This because I
want these variables to be shared in all methods in the total application.
Both web- and windowsapplications and other DLL's are using this ... more >>
Reference to non-shared member???
Posted by Tim::.. at 1/27/2005 1:59:04 AM
Can someone please tell me why I get the following error in my code and how I
fix it!
Error:
Reference to a non-shared member requires an object reference.
I keep getting this error on
objParam1.Value = User.Identity.Name
Thanks
Code..
Public Shared Function GetOfficeName() As St... more >>
datagird width = 100%
Posted by Logan at 1/27/2005 1:35:33 AM
i've added a data grid to an aspx form, & i've noticed that the width of the
grid is fixed.
I want to be able to set the width to fit the entire width of the browser.
Such as done in classic HTML with the table width = 100%
Can this be achieved for a data grid? if so how?
... more >>
Stupid .cs question
Posted by Ron Weldy at 1/27/2005 1:17:23 AM
I read that you don't need .cs files to deploy but I suppose if you are
trying to reconstruct someone's work, you will need these files. Is that
correct?
... more >>
Reassign value to private
Posted by Tim::.. at 1/27/2005 1:09:02 AM
Hi Can some one please tell me how I re assign a value to a private variable
with a querystring!
I want to do something like this!
Private rowID As Integer = request.querystring(id)
However this doesn't work!
Would really appritiate anyhelp!
Thanks
... Current Code ..
Private r... more >>
singleton
Posted by Fabio R. at 1/27/2005 1:02:40 AM
Probably a newbie questions...
If I have a singleton class which read and write to a database, what happens
if 2 or more clients call the same methods at the same time?
If one method is:
public DataSet GetData(string sql_query){
some database operations...
return _dataset;
}
and client ... more >>
avoid a page going back to site after logging out
Posted by nvv via DotNetMonster.com at 1/27/2005 12:36:22 AM
Hi,
I am working on a web site which authenticates an user using forms. And once they logout, I observed that, for any reason if they click on "BACK" button of the browser, the user is being taken back to the site instead taking them to "login" page. I used formsAuthentication signout method and a... more >>
|