all groups > asp.net > july 2005 > threads for tuesday july 26
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
Question in C# and Assembly
Posted by Silent Ocean at 7/26/2005 11:05:22 PM
Hi All
I have following questions regarding C# Assembly and Threading.
Let me know the precise answer or lead me to the proper materials.
1. Is memory leakeage possible in .Net Manager Code ?
2. Is memory leakage possible in .Net Unmanaged Code ?
3. How can I find the what % of memory i... more >>
What's the usual way to setup input textbox width (and be cross-browser) ?
Posted by craigkenisston NO[at]SPAM hotmail.com at 7/26/2005 10:31:41 PM
I'm creating a form with asp.net.
I have my inputs like this :
<label for="USER_COMPANY">Company Name:</label>
<asp:textbox id="USER_COMPANY" runat="server" cssclass="inputBox"
style="width:250px"></asp:textbox><br >
This worked great until I used the designer and it took ride of the
"styl... more >>
componet or code to anaylze IIS weblog
Posted by JD at 7/26/2005 10:10:26 PM
Does anyone know of any component out in the market that will allow you
analyze IIS weblogs, I have been asked to develop a tool for a client that
will do this for them, and the one that came to mind was webtrends. However,
they don't want to buy this software....I don't know of any component ... more >>
How to effectively use custom error page for debugging
Posted by Tom Conlon at 7/26/2005 9:51:14 PM
I have a classic problem, "asp.net app works fine on my PC with local IIS"
but when i deploy to my [commercial, on internet] web host (where i am a
customer, not an admin), it doesn't work. So, boo-hoo, can't use VS
debugging on server, and error details are not given by asp.net on its
standard... more >>
Dynamic Title
Posted by niju at 7/26/2005 9:36:42 PM
Hi there,
I am dynamically populating title for my web page. Here is the code
<title id="titleLabel" runat="server"></title>
Code behind
-----------
titleLabel.InnerText = myArrayList[1].ToString();
However, after compiling the page few times runat="server" disappears
and my page doesn't... more >>
Really urgent : Programmatically deleting Datagrid rows
Posted by John at 7/26/2005 7:23:44 PM
Hi all,
I searched everywhere today but to no avail - I need to programmatically
remove rows (DataGridItems) from a datagrid. Unfortunately,I can't have a
delete button/control of any kind but must do it in the ItemDataBound event.
Surely there must be a way to do this.
Any help regardi... more >>
Help! Sending Emails From asp.net Application
Posted by Joey at 7/26/2005 6:32:17 PM
I am currently developing a C# asp.net application where users are
required to register. The application then generates a simple, plain
text email and sends it to the new user.
I have been trying to use the MailMessage and SmtpMail classes from the
System.Web.Mail namespace (built in to .net) ... more >>
Time format - changes when on Internet
Posted by Sandy at 7/26/2005 6:07:03 PM
Hello -
I have a datagrid with one column formatted for time as follows:
<%# DataBinder.Eval(Container.DataItem, "ReplyDT", "{0:t}")%>
It works fine on my machine, but when I put it up on the Internet, the time
changes to military time; e.g. 19:36 instead of 7:36 PM. Is there a better
wa... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Using the browser back arrow
Posted by Denise at 7/26/2005 5:53:02 PM
In my application, I am setting cookies used for other pages based on the
current row selected. But when the user presses the 'back' button, the
pageload event does not get called and the record they are viewing does not
match the cookie and can lead to data entry errors. Is there a way to
... more >>
String Problem
Posted by Bahman at 7/26/2005 5:11:03 PM
Hello!
I have two questions.
-I don't seem to be able to set string length in c#. It seems to be a
variable.
-when I am composing the body of an email in code, there is a "!" in the
string. I am assuming it has to do with the string length, hence I did this:
StringBuilder Body = new ... more >>
animated gif in iframe doesn't animate first time frame is displayed for long running process
Posted by TS at 7/26/2005 5:09:24 PM
I have a page that executes a method that takes a long time and i have an
iframe that displays an progress bar animated gif while the page is running.
The first time you hit it, it doesn't animate. The second time you try, it
starts animating. I can be on my aspx page and onload have the iframe
... more >>
.PDF Convertor
Posted by Chris at 7/26/2005 4:47:02 PM
Hi,
I am trying to create a web page that will allow my office users upload a
word, excel, text file and will be converted to a .pfd file. Where can I find
info and components on this?
Thanks... more >>
Source Safe doesn't store Image and HTML??
Posted by Zean Smith at 7/26/2005 4:14:12 PM
I am using Visual Source Safe 6.0d, and I created a project then added it to
Source Safe using Visual Studio 2003 by right-clicking on the project.
When I login to Source Safe, I only see the .cs .aspx files, but not HTML or
JPG files, how do I include them in Source Safe? the reason is, JP... more >>
Repeater Control / DataGrid / Row[] help
Posted by Ryan Ternier at 7/26/2005 3:45:57 PM
I'm having the issue is when I re-bind my repeater to show the changes
done to it from the code behind.
I'm binding this repeater from a DataTable that is stored in the
ViewState for now. It might change later, but that's where I'm gettting
it from.
I have an Image Button that allows use... more >>
Populate a label with text from a drop down list box
Posted by Mardy at 7/26/2005 3:29:02 PM
I know this is probably real easy but I can't figure it out.
I'm trying to grab the text that appears in a drop down list server control
and place it in a label server control on the same page. I can get the
selected value, that's easy. But I want the text.
Thanks
... more >>
More passing parameters to dynamically loaded user controls
Posted by voro.cibus NO[at]SPAM gmail.com at 7/26/2005 3:03:34 PM
I have been reading up on this all day, and I can't find the answer (or
more likely, don't understand the answers I have found) to my problem.
I have a table that stores the name of my ascx page. My main page can
be called on to load any of the pages referenced in my table.
Therefore, I have ... more >>
Setting up buttons on the fly.
Posted by tshad at 7/26/2005 2:37:07 PM
I am trying to find the best way to set up RadioButtons, CheckBoxes, and
textboxes on the fly.
What I am doing is putting on a page questions and answers that the user has
defined in his file. The answers can be RadioButtons, CheckBoxes or a
TextBox. It can only one type. For example, yo... more >>
Double Encoding Spanish
Posted by Chris Welch at 7/26/2005 2:35:49 PM
I'm having a problem with double encoding on my page which is localized
in both English and Spanish.
I try to set Image1.AlternateText = "BÚSCAR", and when the page
displays the alt attribute, it is double-encoded as
"B&Uacute;SCAR". So I try to run the string through
HttpUtility.H... more >>
Finding nonsecure items in secure page
Posted by marc.gibian NO[at]SPAM gmail.com at 7/26/2005 2:01:15 PM
I am modifying an existing ASP.NET application to make it SSL
compatible. I have already searched the codebase and eliminated all
hardcoded "http" instances, replacing them with a method call that
returns the appropriate ("http" or "https") value in a given context. I
have also modified all ifra... more >>
Install 1.1 over 2.0 beta?
Posted by troy at 7/26/2005 1:58:05 PM
Does anyone know if it is possible to reinstall .NET 1.1 over top of 2 beta?
I'm stuck in a bit of an emergency situation where I can't afford the
downtime to rebuild my dev PC which has 2.0 beta on it. I need to do some
fixes to code for 1.1.
Any help or suggestions greatly appreciated.
... more >>
Response.Redirect not working
Posted by Niggy at 7/26/2005 1:29:05 PM
I get an error - any help appreciated.
System.Threading.ThreadAbortException: Thread was being aborted. at
System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object stateInfo) at
System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url,
Boolean en... more >>
Loosing session variables in redirect
Posted by Aaric at 7/26/2005 1:22:01 PM
I am developing my web apps on a Win XP Pro SP2 laptop and then uploading
them to a Windows Server 2003. My current project involves using session
state variables to keep track of user after they have logged in. The
login.aspx page contains the following code:
if(sAuthorized != "-1" && sAu... more >>
Inline data
Posted by tshad at 7/26/2005 1:15:10 PM
Is there a way to put inline data in a label?
For example, I would normally do something like this to put a name that I
have in my session variables in my asp:label:
Name.Text = Session("FullName")
....
<asp:Label ID ID="Name" runat="Server">
Can I get around the extra code by just do... more >>
Dataset Conversion From 1.1 to 2.0
Posted by mdex NO[at]SPAM online.nospam at 7/26/2005 1:11:56 PM
Has anyone seen this?
We are porting a web application from .NET 1.1 to 2.0 beta, and receiving
errors "The type <dataset> already contains a definition for <event
handler>" Looks like the error is happening in a temporary cs file. The
dataset was moved to the App_Code folder upon conversion t... more >>
Menu ascx - use database? Best practice?
Posted by Sandy at 7/26/2005 1:00:07 PM
Hello -
I have a book that illustrates pulling menu items from a Sql Server table
into an ascx via a stored procedure. Is this something that is done in the
real world?
I do like the effect when viewing it in the source code, however, because it
doesn't show the complete path to the fil... more >>
Is this bad asp.net design for populating a form?
Posted by needin4mation NO[at]SPAM gmail.com at 7/26/2005 12:48:28 PM
I have a database with values. I retrieve the data from that database.
I want to display that data from the database on the webpage.
Is it incorrect to take that data and assign it manually like:
(assuming I have textboxes named like this)
txtLastName.Text = MyDataReader.Item("MyDatab... more >>
ASP.NET: How to conditionally display content based on login/authentication?
Posted by kenfine NO[at]SPAM u.washington.edu at 7/26/2005 11:20:45 AM
One thing I did a lot of in Classic ASP involved showing page elements
conditionally based on whether a user was logged in or not. Logged in users
or "superusers" would get more content and/or more controls if my pages
detected their login. Non-logged in users would also get some page content ... more >>
How to create a large file with ASP.Net
Posted by Stefan Wrobel at 7/26/2005 11:16:10 AM
I'm trying to develop a webapp for an intranet application (meaning that
bandwidth isn't an issue) that creates a large file, which takes a while.
Basically the app runs about 8 stored procedures, dumps all of the output
into a file, and does a Response.Redirect to that file. This worked wel... more >>
Async method raised in web page doesn't refresh page
Posted by TS at 7/26/2005 10:32:02 AM
Im in a web page and call an asynchronous method in business class. the call
back method is in the web page.
When page processes, it runs thru code begins invoking the method then the
page unloads. When the callback method is raised, only the method in the web
page is run and the page never re... more >>
Session.Clear ?
Posted by tshad at 7/26/2005 10:31:57 AM
When I log of I do:
HttpContext.Current.Session.Clear()
FormsAuthentication.SignOut()
The problem is that it clears the variables that I set up in my
Session_Start function in my Global.asax file. One of the variables I set
up is:
Session("Start") = DateTime.Now.ToString
This... more >>
How to Copy WebApp to another development computer
Posted by Sebastien at 7/26/2005 10:29:40 AM
Hello,
How can I configure IIS manually to allow me to develop an existing aspnet ?
I tried manually creating the virtual directory and setting the local path to my source path but VS can't find the .csproj file of my project even though it is sitting in my source path??
I tried to create a... more >>
Changing domain name in HTTPModule
Posted by nsyforce NO[at]SPAM aol.com at 7/26/2005 10:29:30 AM
Can you change the domain name in an HTTPModule? I have seen examples
of changing the relative url in an HTTP Module, such as the following:
protected void AuthenticateRequest(object sender, EventArgs e)
{
HttpApplication app = (HttpApplication) sender;
HttpContext objContext = (HttpContex... more >>
how to refer to a registered assembly located in GAC
Posted by Support at 7/26/2005 8:59:16 AM
Hello:
I registered Webvalidator.dll in the web server's GAC
I am developing an asp.net web application that want to make use of the
webvalidator.dll
in vb.net - how do I refer to it ?
Thanks
... more >>
AJAX.Net
Posted by NH at 7/26/2005 8:46:06 AM
Hi,
I have been toying around with this for a day now. Has anyone else tried it?
Two questions:
1: How do you pass a paramater to the server side event, e.g. if you wanted
to pass a selected value from a dropdownlist to the server side event? I cant
see a way of doing it. I have ended up ... more >>
Public Event Undefined Value
Posted by Antonio at 7/26/2005 8:23:28 AM
Hi, I have a simple user control with a public event that's raised by a
datagrid selectindexchanged event.
public event EventHandler UserAccountChosen;
private void dgUserSearch_SelectedIndexChanged(object sender,
System.EventArgs e)
{
if(UserAccountChosen != null) // here!!
{
... more >>
Cookie not set fast enough
Posted by Denise at 7/26/2005 8:00:03 AM
I have an application that sets a cookie through a class. I set it in a push
button event on a postback. When the page reloads, a user control checks the
value of that cookie to display name information. The problem is - the
cookie is not being set fast enough for the user control to find i... more >>
How to get the currently executing page handler?
Posted by Stefan at 7/26/2005 7:58:38 AM
Hello,
for the implementation of a http module I have to get to the currently
executing page handler (to query some specific page properties via
reflection). I was looking at
HttpContext.Current.Handler
which worked ok initially, but when for example I have two pages
WebForm1.asp... more >>
Help with Custom Validation
Posted by Mattyw at 7/26/2005 7:47:25 AM
Hi,
I'm relatively new to Web Forms, I have been using Required Field
Validators and Regular Expression Validators on a Web Form I am
developing and everything works as expected using Visual Studio.NET
2003 and VB code behind.
I have a radio button and textbox, and basically i need the text... more >>
File Upload too large error.
Posted by Paul at 7/26/2005 7:05:02 AM
Hi there,
When adding a "File Field" HTML control to an aspx page to facilitate file
uploading, the following occurs:
1. You select a file that is larger than the allowed size limit.
2. Once the user selected the too large file, the page is redirected to a
"page not found" error page.
3.... more >>
Failure to create event handler
Posted by Richard W at 7/26/2005 6:58:01 AM
I have a very simple web page (ASP.NET) that I am trying to build. On the
web page is a checkbox that enables or disables other controls based upon the
checked status. However, .NET fails to create the event handler for the
CheckedChanged event.
In addition, even if I manually create th... more >>
Large No. SQL Parameters
Posted by Tim::.. at 7/26/2005 4:17:01 AM
Can someone tell me a better way or give me a link that shows a better way to
create large numbers of SQL parameters...
Example... A better way to write this code!
<code>
Sub UploadData(ByVal sender As Object, ByVal e As EventArgs)
Dim MyConn As New
SqlConnection(Configur... more >>
How Links Camera With ASP.Net
Posted by Meto kaid at 7/26/2005 2:50:03 AM
I am begining in asp.net and i need to know how link camera with asp.net ... more >>
How to send an e-mail from asp .net using exchange server?
Posted by fahadoman at 7/26/2005 1:51:08 AM
Dear All,
I want to send an e-mail using exchange server 2003? Is that possiable in
..Net? If so, how can i do it?
Many thanks,... more >>
Another way???
Posted by Tim::.. at 7/26/2005 1:06:02 AM
Could someone please tell me a nother way I could achieve the following...
I'm having problems because of a component within mya ASP.NET page due to
the ViewState set in the component!
I currently have a text editor ("editor.aspx")
and two different content mangement pages showing the page... more >>
ASP.NET session Variables
Posted by T Ralya at 7/26/2005 12:08:03 AM
I save a session variable on page 1 and link to page 2. When page 2 loads,
the session variable is null. Can anyone help?
I'm using Visual Studio 2003 (VB)
Session settings in web.config
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424... more >>
newbie ASP won't work
Posted by Jacky Luk at 7/26/2005 12:00:00 AM
Hi,
I have just installed IIS on my XP SP2 machine.
This code (dreamweaver) doesn't work
<%@ LANGUAGE="VBSCRIPT"" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=bi... more >>
passing variable from child to parent - possible ?
Posted by mark at 7/26/2005 12:00:00 AM
I have a main form, and i have another form i need to call on a button
press,
then id like the result of the child form to pass data back to the parent -
without losing any data previously entered
on the parent - is this possible ? ( my main parent window is starting to
get quite cluttered)
... more >>
HTML Server Controls!
Posted by Adam Knight at 7/26/2005 12:00:00 AM
Hi All,
I am finding in VS that i can't access properties of HTML Server Controls
from within my code behind file.
Can anyone tell me is this normal?
How do i reference HTML Server Controls from within my code behind file?
Cheers,
Adam
... more >>
ASP.NET 2003 to 2005 Differences/Changes
Posted by Ken Webster at 7/26/2005 12:00:00 AM
Does anyone have (or know of) a list of changes/improvements/new
functionality in the 2005 VS version over the 2003 version? I'm hoping for
something without all the marketing hype and extraneous blather..
Thanks...
... more >>
How to get a particular selected row ID from a grid view ..?
Posted by Maheshkumar.R at 7/26/2005 12:00:00 AM
Hi groups,
How to get a particular selected row ID from a grid view control where i =
have placed imagebutton.=20
On click event how i can get the ROW ID ?
[ Vb.NEt/ASp.net]
thankz
--=20
M=E4h=E9sh Kum=E4r. R=20... more >>
How to send mail from the web page??
Posted by Mitendrasinh at 7/26/2005 12:00:00 AM
Hello frined how can i send the mail from web page ??
... more >>
|