all groups > asp.net > january 2005 > threads for friday january 28
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
View State issue with dynamically added controls-Plz help :-)
Posted by Chad at 1/28/2005 10:54:51 PM
I have a problem that I am desperate to understand.=20
It involves dynamically adding controls to a Table control that is built =
as a result of performing a database query.
I am not looking to avoid the problem by avoiding the table control or =
resorting to databound controls that better m... more >>
Add a confirm box to a LinkButton in datagrid
Posted by Danny Ni at 1/28/2005 10:27:33 PM
Hi,
I have a LinkButton inside a datagrid, when this LinkButton is clicked, the
program deleete a record in database. I would like to add a confirmation on
client side. I know I can do Attributes.Add("onclick",...) to Buttons not in
datagrid. But how do I do it for LinkButton in datagrid?
T... more >>
How to enforce "&"inside my queryString?
Posted by Mehdi at 1/28/2005 10:04:26 PM
Hi,
I need to pass an URL via a hidden value as follow:
<input type="hidden" id="Test" runat="Server">
and on Page_Load I assign a value to this hidden input as follow:
Test.Value = "http://www.myserver.com?id=123&name=HomerSimpson";
However when I view the page source "&" is replac... more >>
Sending mail from my development machine using SmtpMail class
Posted by Bazza Formez at 1/28/2005 8:14:55 PM
Hi,
This question undoubtedly shows a great lack of knowledge on my part, but
here goes.
I am developing my first ASp.NET app, and in one part, I need to send an
email.
It seems that I can do this via the SmtpMail class....
The question is : Can I test this from my development machin... more >>
Process.Start is causes application to hang
Posted by Jesse Cates via DotNetMonster.com at 1/28/2005 7:56:54 PM
I am trying to launch a command-line program that came with a program called Live Stats. This command-line program is used to automate configuration of Live Stats. In order to test this, I am just calling the program with no arguments, which just returns some "how to use" text, and requires no use... more >>
Error when creating project in Visual Studio .NET 2003
Posted by Nathan Sokalski at 1/28/2005 6:29:20 PM
When creating a New Project in Visual Studio .NET 2003 I receive the =
following error:
I have IIS installed along with Frontpage Server Extensions, and =
Microsoft .NET Framework 1.1 Configuration, Microsoft .NET Framework 1.1 =
Wizards, Microsoft .NET Framework Configuration, Microsoft .... more >>
Creating menus
Posted by Sandy at 1/28/2005 6:19:01 PM
How do you create menu items with submenus? An example of what I'm referring
to are the microsoft menus to the left of this page with the arrows that show
additional topics.
--
Sandy... more >>
How do i position a user control - ascx control.
Posted by John Blair at 1/28/2005 5:59:52 PM
Hi,
I am trying to create a generic page footer control. But whenever i include
it in a page it always appears at the top of the page - how do i go about
positioning it at the footer - the control is a simple table. code below:
Thanks!
<TABLE WIDTH="100%" BGCOLOR="#dbeaf5" BORDER="0" CEL... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Does a StringBuilder effect Viewstate variable size?
Posted by darrel at 1/28/2005 5:15:49 PM
I have a page that hits a database, and then builds a table on the
codebehind size using a string builder.
It's a hefty, complex table. As such, it's a bit large...however, I was a
bit shocked to find that it was a 1.2mb HTML file. I was even more surprised
to find the well over half of the pa... more >>
Click Once For LinkButton Not Working
Posted by xenophon at 1/28/2005 5:09:59 PM
I am trying to add "click once" functionality to my ASP.NET page. I
have this attribute in my form tag:
onsubmit="return SubmitCheck()"
And I have the below in my <head> tag, but for some reason the click
never gets intercepted. What am I doing wrong?
<script language=... more >>
Datagrid: Enabled VS. Visible?
Posted by Scott Reynolds at 1/28/2005 3:12:35 PM
Hi!
Could anybody explain me the difference between Enabled and Visible propery
of DataGrid?
Thanks!
Scott
... more >>
How to roll back transactions in Try Catch loops?
Posted by jenniferhu46 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/28/2005 2:57:32 PM
Hi experts,
I want to rollback the insert/update in my SQL Server database
tables if there's any errors, and I use trans.Rollback(). However,
whenever error generates, the rollback doesn't work at all, and it
throws this server error:
Object reference not set to an instance of an objec... more >>
Running ASP.NET 2.0 app on IIS on XP from VS.NET 2005 B1
Posted by bcox at 1/28/2005 2:15:02 PM
Hello VS 2005 World...
I am making my way through VS 2005 Beta 1 and I'm having a problem getting
ASP.NET project to start in IIS running on an XP development machine.
I build a sample project in VS 2005 and it runs fine through the debugger.
Then I try using the new Publish Web Site feature... more >>
How to: Arbitrary sort order?
Posted by David at 1/28/2005 2:11:03 PM
Hello all,
I have a page that uses an asp:DataGrid tag that is populated by a
System.Data.DataSet object. Data is sorted by an "sort_value" field on the
data.
Until now, this page is just for the display of data. Data entry is handled
via a separate system.
What is the best ".ne... more >>
Simple UserControl Question: why won't this work?
Posted by Roy at 1/28/2005 2:07:07 PM
I have a datagrid, within that datagrid I have <columns> tag and within
that I have the below TemplateColumn which calls to another datagrid
(essentially and embedded datagrid within another datagrid).
Unfortunately, I get this error with "newtier2" being the name of my
..ascx page...
"Litera... more >>
Urgent: Need some advice on Connection
Posted by Mike L. at 1/28/2005 2:03:27 PM
Hi,
Pls, beware that I'm new to this :)
I've developed several web appl, either with ASP or ASP.NET. All using SQL
server as the back end.
In my development environment, I have a single server running Win2K, which
serves as Web Server and SQL server as well.
And, since my hosting (producti... more >>
Problema con archivos dbx
Posted by Jose Joaquin de Haro at 1/28/2005 2:01:15 PM
En una máquina con Windows XP Profesional (SP2) me ha ocurrido que en
Outlook Express, han desaparecido todos los correos electrónicos de las
bandejas, he ido a la carpeta de almacen y he observado que Outlook Express
ha creado otros archivos (Bandeja de Entrada (1).dbx, Elementos Enviados
(... more >>
Global subroutines
Posted by fd123456 NO[at]SPAM hotmail.com at 1/28/2005 1:51:58 PM
Hi tshad, sorry for not coming back to you earlier.
When I meant to add a method to Global.asax, I actually meant to add
it to the code-behind file. If you click on "Global.asax" in the file
explorer, then on the F7 key, you can edit this code-behind; that's
the one that includes the Applicati... more >>
Running ASP.NET 2.0 application on IIS on XP from VS 2005
Posted by news.microsoft.com at 1/28/2005 1:44:58 PM
Hello VS 2005 World...
I am making my way through VS 2005 Beta 1 and I'm having a problem getting
ASP.NET project to start in IIS running on an XP development machine.
I build a sample project in VS 2005 and it runs fine through the debugger.
Then I try using the new Publish Web Site feature... more >>
Having ASPNET member of Administrators
Posted by Jeff Robichaud at 1/28/2005 1:44:20 PM
Are there any security issues having the ASPNET user account member of
Administrators ? Is it a good practice ?
... more >>
custom errors...
Posted by bill yeager at 1/28/2005 1:31:12 PM
Could someone please tell me what the status code is for a
session timeout?
I want to redirect the user to a specific page informing
them that their session has timed out and they need to log
back in again.
I want to set up a custom error in the web.config file
based on this error, b... more >>
Viewstate and LoadControl
Posted by Anonymous at 1/28/2005 1:00:03 PM
Hello,
I am loading a datagrig, which has a placeholder in it
dynamically with a usercontrol. The usercontrol is
actually another datagrid. Once loaded it looks like a
nested grid. Each row in the main grid contains a button
which expands the nested grid for that row on the server-
si... more >>
php md5 encode
Posted by daniel at 1/28/2005 12:08:24 PM
the result of php language is below:
md5('don123494/1/24') = 5074456da7a19c2438cdf0e23728aca2
how can i get the same result as above in md5 of .net language
... more >>
Class allready exists error
Posted by Miro at 1/28/2005 12:03:01 PM
Hi!
I create a picturebox in my aspx-site (just to get the graphics object),
cause I want to draw a map and save it as a JPG using the Bitmap class.
Occasionally I get this error that confuses me:
Class allready exists
System.ComponentModel.Win32Exception
the code-line that causes this... more >>
How to achiev these two things.... ...
Posted by Benjamin Smith at 1/28/2005 11:34:35 AM
Copy and paste this code in the HTML section of the page
1. Why I am using hidden varaible here?
Currently user can click on hide/show link. If the application is in display
mode (I mean the hidden data is displayed) and if the user clicks the
button, the post back happens and the user selec... more >>
Problems with Global.asax
Posted by Craig G at 1/28/2005 11:34:20 AM
we have a project which is kept in SourceSafe
but when "Get Latest Version" on a fresh development machine and try and run
the project i get the following error
Parser Error
Description: An Error occured during parsing of a resource required to
service this request. Please review the foll... more >>
Receive HTTPS Post
Posted by Amoril at 1/28/2005 11:27:08 AM
I am currently developing an app that will post an XML file (1 to
100MB+ in size) to an outside vendor application via HTTPS Post (doing
this in a vb.net windows app). The vendor will then at some later date
post an updated return XML file to my webserver (asp.net). The primary
problem I'm havin... more >>
Modal pop-ups in ASP.
Posted by keiran at 1/28/2005 11:21:09 AM
Can anyone help me with this problem, i am using javascript to open a popup
in an ASP.net project. Trouble is i need to set the text of the title bar on
the popup as at the minute the text is just the name of the form with 'web
dialog' appended to the end of it.
... more >>
<EditItemTemplate>
Posted by rkbnair at 1/28/2005 11:19:04 AM
I have defined <ItemTemplate>XXXX</ItemTemplate> and
<EditItemTemplate>XXXX</EditItemTemplate> in an asp page.
How can I make the EditItemTemplate item visible (I mean through the program)... more >>
Passing data to usercontrol (URGENT)
Posted by Anonymous at 1/28/2005 11:13:24 AM
Hello,
I am loading a usercontrol with the LoadControl method
and need to pass some data to the property of that
control. How can I do that?
THanks... more >>
Session timeout not working
Posted by hn at 1/28/2005 11:13:03 AM
I tried to set session timeout =1 minute as seen below in my Web.config but
it didn't work. I also tried to set the timeout in IIS as well and still the
application doesn't time out after 1 minute. Please show me how to set the
timeout setting. Thanks.
<sessionState
mode="Stat... more >>
Question again...
Posted by Utada P.W. SIU at 1/28/2005 11:03:42 AM
Dear All,
What is the different between WebControl and HtmlControl except some object
existed in webcontrol but not htmlcontrol
say, the different between webcontrol button object and htmlcontrol button
object?
thanks
... more >>
Web Parts
Posted by Fahad Anwar at 1/28/2005 11:01:06 AM
Hello All,
I want to know that what is web part in ASP.Net2.0 , actually i
want an overview of web parts.
Can any body help me out.
Regards,
Syed Fahad Anwar.
sfanwar_2k@yahoo.com.
... more >>
Question about DataBinder.Eval method
Posted by Pierre Shirvan at 1/28/2005 10:59:02 AM
I have a form with a DataList control with a label control and a text control
in the ItemTemplate section. I can display the data in the text contol using
the DataBinder.Eval method and I also want to display the Field or the Column
title in the Label control.
How can I retrieve the column... more >>
Can't edit dynamically created textbox
Posted by mwhalen at 1/28/2005 10:55:02 AM
Hi All,
I've dynmaically created a textbox, but I can't edit it. When I click on
it, the cursor flashes for a second, but then goes away and I can't enter any
text or do anything with the value in the box.
Here's the code I've used to create the control. It's within a datagrid
that is ... more >>
Help: root path reference
Posted by hb at 1/28/2005 10:41:48 AM
Hi,
Recently I read some articles about the root path reference in ASP.Net
application.
One recommended way is to use "~" at the beginning of the path with server
control.
for example:
<img runat="server" src="~/images/logo1.jpg">
Those articles also say that such method works with virtu... more >>
Response.WriteFile help please
Posted by Scott C. Reynolds at 1/28/2005 10:39:33 AM
I want to serve a PDF right to a web page (cannot link browser directly
to PDF file). Stumbled across Response.WriteFile this morning. On my
machine (XP Pro) this worked fine:
private void Page_Load(object sender, System.EventArgs e)
{
string filePath = "c:\\somepath\\some.pdf";
... more >>
How To Display Formatted Text with ASP.NET ?
Posted by kbolster20 NO[at]SPAM yahoo.com at 1/28/2005 10:28:32 AM
Hello,
I think there must be an obvious solution to this problem:
I have a file that I want to read into a web page when the page is
loaded. The file will contain formatted text (bold, italics, colored
text etc). The file will most likely be in in HTML format but that can
be changed if nece... more >>
How does the session timeout work?
Posted by Lars Netzel at 1/28/2005 10:14:34 AM
There's a setting in the IIS where I have set Enabled Session Timeout to 20
minutes
Then there's a setting in the WebConfig file..
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"... more >>
question about asp:RadioButtonList
Posted by Utada P.W. SIU at 1/28/2005 10:08:16 AM
<asp:RadioButtonList></asp:RadioButtonList>
only allow create a vertical radion button list
how can I use it to create a horizatial radio button list?
thanks~
... more >>
IPTC informations
Posted by Lionel at 1/28/2005 10:07:45 AM
Hi,
I need to read the IPTC *keywords* tag from a jpeg file.
I can read all the EXIF tags with this little part of code:
string MyFile = "c:\afile.jpeg"
Image MyImage = Image.FromFile(myFile);
System.Text.ASCIIEncoding Value = new System.Text.ASCIIEncoding();
MessageBox.Show(Value.GetStrin... more >>
Crystal Reports DLL on Web Server
Posted by chuckdfoster at 1/28/2005 9:53:13 AM
I am having a problem with moving my web app that uses Crystal Reports to
our web server. I do not have administrative rights to the web server.
When my site gets moved from my local machine to the web server, we recieve
an error about the CrystalDecisions.CrystalReports.Engine,
CrystalDecision... more >>
Image.Height, how to set this property
Posted by Kurt Schroeder at 1/28/2005 9:53:05 AM
I'm trying to set the height of an <asp:Image and i can seem to do it in my
code
I try Image1.Height = 150 (or "150px") VS.net says the type can not be
converted to System.Web.UI.WebControls.Unit .
I guess my real question is how to I create a value of type
System.Web.UI.WebControls.Unit?
... more >>
HttpModules in different threads
Posted by Craig Neuwirt at 1/28/2005 9:51:35 AM
I have 2 HttpModules in my app. I use CallContext to set some thread
specific info. Recently, I ran into a problem in which it appeared that the
2 HttpModules were executed in multiple threads. Is this possible in the
HTTP Pipeline. I realize that using CallContext is not recommended, but is
... more >>
DateTime not nullable problem
Posted by Kevin Yu at 1/28/2005 9:29:48 AM
hi all
since the DateTime can't be assign null, the min value is set to 1901 or
something, if in a application design, the date field can be null, so in
between the UI and the DB, the business logic has to take care of the
conversion?? e.g when inserting DateTime.minvalue into db, (especial... more >>
Problem printing a table
Posted by Amirallia at 1/28/2005 9:29:23 AM
Hello!
I have a wecontrol table in a page, this table has a number of variable
rows depending of the choice of the user.
But when the table has a large number of rows, the printing of the page
requires 2 pages . The first page is ok, but in the second page of the
printing I have no ligne... more >>
Server Transfer To Windows Forms Authenticated Application
Posted by Ryan at 1/28/2005 9:25:05 AM
Hello,
I am having a really strange issue, I have folder containing an ASP.NET
application. (The folder's name is Web) The root directory of the whole
site I have an Index.aspx page that contains:
<%
Server.Transfer("Web\Default.aspx")
%>
The web config file in the Web directory ... more >>
Setting up Shared routines in Global.asax
Posted by tshad at 1/28/2005 9:09:30 AM
I am trying to set up some shared functions in my Global.asax file and can't
seem to get it to work.
In my Global.asax:
Public Class myUtils
inherits System.Web.HttpApplication
public shared function tom() as string
tom = "This is the shared sub"
end function
end class
In m... more >>
Culture settings?
Posted by Lars Netzel at 1/28/2005 8:57:19 AM
Somone told me that you should always take care of Culture settings in the
application by setting a Culture ISO thing on some Thread that ASP is runing
on.. so that decimals and thousand separators and stuff won't be chaos in
for different countries.
How do I set these things and can someon... more >>
setting a default password in a textbox
Posted by corey s. at 1/28/2005 7:37:16 AM
My system allows a user to change their email address and password.
When the user goes to the "Update Profile" page the email address can
be populated but the Password/ConfirmPassword fields can not be
popluated.
I understand the secuirty concerns for .NET not allowing to preload a
value in t... more >>
Event log Application Error w3wp.exe
Posted by John Rebocho at 1/28/2005 7:13:19 AM
I am getting the following error in my event viewer logs.
"Faulting application w3wp.exe, version 6.0.3790.0, faulting module
unkown, version 0.0.0.0, fault address 0x00000000."
Can anyone tell me what this error is and/or if it critical.
Thanx...
*** Sent via Developersdex http://www.... more >>
Inverting a Regular Expression in Validator
Posted by spalding at 1/28/2005 6:28:25 AM
One issue I've had is successfully searching for regular expression
documentation outlining the approach to inverting the test (ie.
returning true in the case that the expression is not found). Searching
google using keywords such as "invert", "not equal" or even "invalid
file extension" along with... more >>
Format Column
Posted by rkbnair at 1/28/2005 6:05:02 AM
In a DataGrid, how can I format a numeric field of a databound field to
999.999?
... more >>
Session.Add method - what if called multiple times with the same k
Posted by Martin at 1/28/2005 5:05:01 AM
I wonder what is happening if you subsequently use the session.add method
with the same key, but different values.
e.g. if I do;
session.add("MyVar", "a")
session.add("MyVar", "b")
then; session("MyVar").tostring will return "b"
Is the value you are adding ("b") simply replacing the old... more >>
Save As window
Posted by Jim Reynolds at 1/28/2005 5:03:01 AM
Hi,
Can anyone tell me how to display the "Save As" window to save a document on
the client?
Jim... more >>
Setting Radio Buttons In A DataList
Posted by pierre.basson NO[at]SPAM psitek.com at 1/28/2005 4:35:18 AM
Hi,
I have a DataList that contains an image and 3 radio buttons. The radio
buttons are used to change the status of the image i.e. Approved,
Suspended and Deleted. When the form loads, I want to set the Radio
button to the image's current status. Does anyone know how I can do
this?
Than... more >>
webclasses in iplanet
Posted by Arunachalam.S at 1/28/2005 4:11:06 AM
Hi all,
I am migrating couple of IIS application to Sun one (iplanet) server. I
have created the webclass (WebclassRuntime) using VB in my applications. The
applications are not getting deployed on Sun One. Could you please confirm
whether iplanet is supporting webclass or not? I am gett... more >>
Converting from asp to asp.net / security
Posted by Dave at 1/28/2005 2:01:04 AM
Hi, Im considering converting a legacy application from asp to aspx (vb) -
just for the purpose of learning (Im new at .net, but experienced at
vbscript)
What I need to get my head around, is page security.
Currently this app has a database login which sets session values for
username etc
... more >>
Directory and files names in temporary asp.net directory
Posted by Bas Hendriks at 1/28/2005 1:27:02 AM
Has anyone any idea how asp.net find it's files back after compiling them to
the temporary asp.net directory?
I found on numerous webpages that the directorynames are chosen random but
cannot find how asp.net find's it's compiled files when asking for the same
webpage which was complied befor... more >>
This should be easy, but...
Posted by Mark Sandfox at 1/28/2005 1:00:44 AM
I have a simple framed site with a Banner, Contents, & Main frames. The
contents page is an .aspx page that queries an MS Access database and dumps
its results into varios Dropdownlists and 1 Listbox. The users would select
from the list then click a button and the Table of Contents is updat... more >>
|