all groups > asp.net > september 2005 > threads for tuesday september 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
Adding Emoticons to ASP.NET Chat application that uses Remote Scripting
Posted by JM at 9/20/2005 10:26:19 PM
Hi,
I made an ASP.NET chat application using remote scripting, so that the
entire page does not refresh when new messages arrive. The client-side
has a timer that accepts new messages every 5 seconds. All it does is
concatenate the new message to the existing chat message string. Now I
want t... more >>
Datareader, dataset, else?
Posted by Patreek at 9/20/2005 10:12:40 PM
Hi,
I'm writing my first real asp.net app at my job, and I'd like opinions
please. In my classic ASP apps that I've written, I'd often have separate
files for retreiving data and returning the data to other pages that would
call it. I'd return the data as arrays so that I wouldn't have to... more >>
Class-Level Variables in Web Form
Posted by Landley at 9/20/2005 9:44:33 PM
Hi All,
I have declared some class-level variables in a web user control. When a
button is clicked, one of these variables is set to a specific value. The
page then does a postback and the value that I previously stored in the
variable has gone.
Is there a way to keep hold of the values o... more >>
TextBox1.text = "test";
Posted by ae at 9/20/2005 9:17:10 PM
basic question. in my .aspx page onclick="login" and also have:
<%@ import Namespace = "login" %> on my webpage
when i add a class called "login" and set a control such as: Button1.Text =
"test";
i get 'TextBox1' does not exist in the current context. i declared it public.... more >>
"warning: page expired" error message
Posted by Loane Sharp at 9/20/2005 9:04:42 PM
Hi there
Sometimes, when I hit the <Back> button in the browser, instead of going to
the previous .aspx page I get an error screen and "Warning: Page Expired".
(This is a "regular" error page rather than generated by the .NET compiler.)
How can I change the settings so that the page never exp... more >>
Forms collection in ASP.NET
Posted by Roshawn Dawson at 9/20/2005 9:00:29 PM
Hi,
This may seem like a trivial question, but I haven't been able to get this to work. Here goes...
I have an .aspx page that is rendered using an xml file and an xsl file. The xsl file renders an
html form and a number of controls on the page, in addition to transforming the xml file. (I... more >>
BUG? OR NOT A BUG?
Posted by John at 9/20/2005 8:29:08 PM
Hi all,
This is a Javascript issue for me but it is (I feel, think, expect) brought
on as a result of ASP.NET and in particular VS2005.
My app uses a GridView and I bind some labels and textboxes to the grid and
render to user.
The first column which is not bindable is simply an image. ... more >>
CheckboxList
Posted by Buddy Ackerman at 9/20/2005 8:27:26 PM
Is there any way to make the listitem rows of a CheckboxList alternate the background color like you can with a repeater?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataGrid not updating
Posted by Sachin at 9/20/2005 8:09:17 PM
Hi All,
I had a simple ASP.NET application with five web forms.
Each web form had one Repeater contorl, with Add, Modify, and Delete
functionality.
It was working fine without any issues.
However, for the purpose of paging funcationliaty I chageed all Repeater to
DataGrid and any assoc... more >>
Request.Form
Posted by barry at 9/20/2005 7:59:55 PM
This is for dot net 1.1 vb.net
I am trying to use Request.Form("Fig4a") in the code behind to show a hidden
field
I have defined the hidden field in HTML as <input type="hidden" id="Fig4a">
I am setting the hidden field in javascript with the following
document.getElementById("Fig4a").v... more >>
Tearing Hair Out !
Posted by Mr Newbie at 9/20/2005 7:36:49 PM
I have a simple datagrid with three columns in it ID, LastName, FirstName.
I have Edit/Update columns enabled and in the update event I have the
following code. The problem is that the LastName and FirstName text boxes
return the unmodified values ( ones before I edit and updated them ). I kn... more >>
Saving the db state for bug reproduction and tests
Posted by George Homorozeanu at 9/20/2005 6:49:06 PM
We are developing a .net database driven application. The application is
already quite complex and uses at time aprox. 150 data tables stored in the
MSSQL 2000 database server. Our application has multiple modules. Some
customers already use some modules while we currently developing more
mo... more >>
PostBack behaviour in IE vs. FF
Posted by Ferret Face at 9/20/2005 6:20:44 PM
Is there a term for an individual who is half way between a Newby and a =
Novice?
Anyway, getting down to business...
I am trying to develop an on-line application form for my company's =
website. In it I have a number of 'Yes/No' or 'Select This Option' type =
questions where if an op... more >>
input type="radio" ASP.net bug
Posted by David Cameron at 9/20/2005 5:47:02 PM
I noticed
that using an HTMLInputRadioButton and specifying a value to be an empty
string (""), this is overridden by ASP.Net which set the value of the
control to be the same as the ID of the control.
See the code below
* Page.aspx:
<%@ Page language="c#" Codebehind="Test.aspx.cs" AutoEve... more >>
Windows Forms In Internet Explorer
Posted by John Smith at 9/20/2005 5:10:12 PM
Hi folks,
I'm embedding a Windows Forms User Control into an aspx web page. I've
created the class library in C# and added the user control to it.
If the control just has simple Windows Forms Controls (like TextBoxes or
Buttons), it works fine. IE treats it wonderfully
If I do something... more >>
htmlInputFile
Posted by Charles A. Lackman at 9/20/2005 4:31:38 PM
Hello,
I have 4 computers that have Windows XP Pro on them with all of the updates
from Microsoft. All the computers are able to utilize the htmlInputFile
except for one. It does not matter what web site I go to, If it has an
htmlinputFile on the page the Browse button is shrunk up and yo... more >>
ERROR - no error information available
Posted by Ricardo Magalhães at 9/20/2005 4:15:14 PM
Hi,
I using this code, to connect with a paradox file with ASP.NET. The first
time its connect ok, but others times occurs the error:
"ERROR - no error information available"
I close all connection, and this error yet occurs.
Someone knows why this ?
Thanks,
Ricardo
Connection ... more >>
Getting ASPX code to run when .asp is requested
Posted by chuck rudolph at 9/20/2005 3:35:02 PM
Folks, I know this sounds odd, but I have a client that has some middleware
that is making a http post to "pagename.asp". I sure to don't want to have to
write asp code, so is there some way to get IIS (w2k3 server) to shuttle this
request over to an aspx page?
I have tried the following an... more >>
Path Too Long Exception being thrown before HTTPHandler gets request
Posted by Seth at 9/20/2005 3:17:40 PM
Ok, here is my setup. I have a fully functioning HTTP Handler
implemented. The handler is supposed to handle every single request
that comes in to a particular virtual directory. Thus, in IIS, I have a
mapping of .* to the aspnet_isapi.dll. And my web.config has an entry
thusly:
<ad... more >>
Viewstate Disappearance
Posted by Will Lastname at 9/20/2005 3:07:44 PM
The application I'm working on is writing to 2 different tables. The
first table is the ProjectName, ID (AutoNumber), and the Date/Time
added as a timestamp. The next table, writes all the components of that
project, ItemName, Creator, etc... One of the fields in this table is
ProjID and ID (Au... more >>
Pass a Web Address and return a File System Address
Posted by Angel at 9/20/2005 1:10:02 PM
Is there a function that one can pass a web address and return a Windows File
System Address. In other words, I specify an image at being at the following
http address:
/myCommon/images/sample.jpg
I want it to return where that file is actually located on the pc:
C:\inetpub\wwwroot\asp_... more >>
how do I get a page's meta tag contents?
Posted by PJ6 at 9/20/2005 12:09:15 PM
Can't find anywhere in the docs that mentions a way to programmatically get
a page's meta tag collection. Reflection finds nothing in attributes. Can't
find anything in a page instance, either. Are they not accessible?
Paul
... more >>
Expression does not produce a value: Session error?
Posted by antonyliu2002 NO[at]SPAM yahoo.com at 9/20/2005 11:44:02 AM
I have the following simple code to test if my session is working:
<Script Runat="Server">
Sub LinkButtonGenInfo_Click(s As Object, e As EventArgs)
If txtFirstName.Text <> Nothing Then
Session("firstName")=txtFirstName.Text
End If
If txtFirstName.Text <> Nothing Then
... more >>
Toggle text
Posted by Jon at 9/20/2005 11:31:53 AM
I'm looking for a way to toggle text without using client scripting.
One way to go is by the visibility property and a click event, but this
does a postback and returns to the top of the page. Is there a way
around this?
Jon Cosby
... more >>
upload image with small size
Posted by Kevin at 9/20/2005 10:59:24 AM
for uploading image, I can use System.Web.UI.WebControls.HtmlInputFile
libary in codebehind.
but if resolution size is too big, I want to resize the picture to 800X600
and then do upload(save image). how can I do that?
what library do I need to use?
... more >>
Datasource parameters
Posted by Not Me at 9/20/2005 10:58:37 AM
Hi,
I'm a little confused with working with parameters for a datasource -
specifically when it comes to naming them.
For example
<asp:parameter Name="surname" type="String" />
this parameter "surname" matches with the @surname parameter of the
stored procedure used in the datasource.... more >>
Retrieving Image information
Posted by Angel at 9/20/2005 10:56:08 AM
Is there anyway that I can obtain information about an image file such as a
..jpg before I display it onto a screen. In other words, I would like to
obtain the image size so I can dynamically place it on the screen. I like to
set the width and height values according to what the size of the im... more >>
Page_Load event gets called twice
Posted by Dave Hagerich at 9/20/2005 10:55:21 AM
I currently have an aspx page that contains a datagrid object and every time
the page goes through its lifecycle the Page_Load event gets called twice.
I've checked my code and I'm not manually calling it anywhere so the server
must be doing it. Can anybody tell me why? and is it possible to sto... more >>
add a link to a column in dataset
Posted by Kevin at 9/20/2005 10:28:08 AM
hi all,
I created a dataset and binded it to datagrid, it displays okay. But
now I need to add a link to a column name has_picture, if has_picture=1 then
link shows
else if has_picture=0 then link doesn't show. Basically I don't know how to
implement such a logic. I am assuming I ne... more >>
Need advice on Asp.Net Hosting. Thank You Very Much.
Posted by Shapper at 9/20/2005 10:27:10 AM
Hello,
Currently I am hosting my client's web sites in individual accounts on
DiscountAsp.Net.
I am looking for a VPS solution where I can manage and have all my
client's accounts. I need one with Asp.Net 1.1 and if possible Asp.Net
Beta 2.
I know MaximumAsp but it's too expensive.
... more >>
Exporting Datagrid to Excel
Posted by Stephen Noronha at 9/20/2005 10:01:09 AM
Hi,
I found an very interesting article on converting Datagrids to Excel. I
apologize that I forgot the name of the author/article but it was very
helpful.
Problem:
it converts only the current page on the Datgrid to Excel and if there are
other pages it does not.
does anyone have an ar... more >>
Event handling in modal dialogs
Posted by wendy at 9/20/2005 9:43:46 AM
I have got a problem while using the modal dialogs. In my code I need
to open a modal dialog from the parent page and I need to enter some
values in the dialog and save it. It takes the values properly and also
does the validation of the values but it doesn't hit the event handler
of the button ... more >>
Suggestion please..
Posted by vinay at 9/20/2005 9:39:50 AM
I have a scenario, need your suggestion..
Our clients are already using the forms authentication where we check the
User/Pwd from SQL svr Database. We also have some SETTINGS for the user saved
in the database(helps us to restrict the user access some things) .
We wanted to implement AD au... more >>
redirecting from a vb class
Posted by MattB at 9/20/2005 9:39:28 AM
I have what I hope is a simple problem. My ASP.net (1.1) application has
a vb class and I want to redirect from code in that class.
I figured out that plain old Response.Redirect() doesn't work from the
class like it does from codebehind by doing the following:
Dim Response As System.We... more >>
Custom Paging in GridView
Posted by Oleg Ogurok at 9/20/2005 9:19:54 AM
Hi there,
I've noticed that ASP.NET 2.0 GridView control doesn't have
AllowCustomPaging and VirtualRecordCount.
In 1.1, I used DataGrid and a SQL stored procedure that would return only
the right records based on page number and page size passed to it. Thus
instead of retrieving all 100k r... more >>
Strange Validator Behavior Problem and Question
Posted by needin4mation NO[at]SPAM gmail.com at 9/20/2005 9:17:52 AM
I added this to my javascript:
if (chkActive.checked==true)
{
ValidatorEnable(frval_DdlInactive, false);
ValidatorEnable(val_datIntacive,false);
}
If my checkbox is true I want to turn off a couple of validators. It
works fine and the page submits and updates my databa... more >>
HELP..! ASP.NET 2.0 MasterPage and menu Question..
Posted by Fuehner at 9/20/2005 9:16:15 AM
I have a masterpage define that contains a asp:menu control. My menu control
has items that do not have a NavigateUrl assigned which causes them to
postback on the current page...
Now the issue is that when they postback the MasterPage is rendered last and
the MenuItemClick event on the me... more >>
Postback on a button query
Posted by Tim at 9/20/2005 9:07:47 AM
Hi All,
I have a form that I dynamically build putting various text boxes and lables
on it based on a SQL query. When a user clicks the submit button, the form
clears it's self and is left with the static form (ie. gets rid of all the
dynamic stuff, and therfore clearing all the text boxes... more >>
Custom Validator Class Question
Posted by needin4mation NO[at]SPAM gmail.com at 9/20/2005 8:27:50 AM
Hi, consider this:
public class Conditional : Page
{
public HtmlInputCheckBox chkActive;
public RequiredFieldValidator frval_DdlInactive;
public override void Validate()
{
// Only check ship address if not same as billing
bool enableInactiveBy = chkActive.Checked ? false:true;
f... more >>
Passing variables between projects?
Posted by Roy at 9/20/2005 8:19:12 AM
Hey all,
Is it possible to pass session variables between pages in separate
projects?
For example:
inetpub\thisproject\blah.aspx
has a session variable and response.redirects the user to
inetpub\anotherproject\test.aspx
When I try to access the session variable after the redirection, i... more >>
VS.NET Options
Posted by Will Lastname at 9/20/2005 8:04:48 AM
Is there a way to change a setting in Visual Studio to prevent VS.NET
from automatically indenting the hell out of the HTML-generated code?
I understand a little bit of indentation but I mean, come on.
It's even more of a piss-off when I manually indent/tab code and VS
re-indents it.
... more >>
Form authentication problem?
Posted by Daniel at 9/20/2005 7:21:08 AM
Hi All,
i have location problem when using form authentication.
When the user visit the login.aspx page, the url location will adds on
"?Returnurl=%....%web.config" string after the login.aspx url.
How to display the original url "www.xxx.com/login.aspx" instead of
"www.xxx.com/login.aspx... more >>
Panel renders as table in Firefox
Posted by Mike at 9/20/2005 6:33:01 AM
I am having a problem with panels rendering as tables in Firefox. They render
as div tags in IE which would work in in Friefox but for some reason it is
being switched to tables. Does anyone know how I can make then render the
same way in both borwsers?... more >>
Serving up .CAB, .HTA, etc.
Posted by Brad Quinn at 9/20/2005 6:21:22 AM
Can somebody tell me the correct place to post this? I'm using the MSDN web
interface to post and I can find the ISA server newsgroup. This may be due
to a coffee deficiency.
I have a new web server (2003 web edition) in a new datacenter. It refuses
to serve up .CAB, .HTA and (I'm assumi... more >>
to use or not to use membership (in asp.net 2.0?)
Posted by Steve at 9/20/2005 5:52:37 AM
I really want to have my own user database table, customized in my own
way, with custom relationships to other tables?
1. Should I in that case forget all about the new membership features
in asp.net 2.0, and just write my own code?
2. Would I also be forfeiting the new personlization featur... more >>
Problem in getting value from textbox & radiobuttonlist to a valua
Posted by velu at 9/20/2005 5:42:05 AM
Problem in getting value from textbox & radiobuttonlist to a valuable inside
a datagid.
I want to insert a record into a table thru datagrid. Here is the code (see
below)
Private Sub DataGrid1_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventAr... more >>
Will SQL Server2005 work only with VS.NET 2005
Posted by ashi at 9/20/2005 5:21:30 AM
Is SQL Server 2005 bound with VS.NET 2005? Or is it like yukon can be
used with VS.Net 2003 also?
Also, does VS.NET 2003 mean .NET 1.1 and VS.NET 2005 mean .NET 2.0?
... more >>
Is SQL Server 2005 Express is the only choice to work with Login controls?
Posted by George Wei at 9/20/2005 4:46:20 AM
Dear all,
I try to use the Login control newly provided in VWD 2005 Express. It is
said in the online help that it must have SQL Server 2005 Express installed
to save the credential infomation. For SQL Server 2005 Express is still in
beta and it provides little management tools, it's diffic... more >>
PDF and ASP.NET
Posted by Logician at 9/20/2005 4:36:34 AM
Objective
I want to generate PDF documents from an ASP.NET system (C#), is there
a module for this?
Current
Currently, I write XML objects and then use FO on a PC to get the PDF.
My server does not allow FO to work directly.
I saw some software for sale, but as a whole package, I reall... more >>
keep a list of whos logged in to which pc
Posted by dhnriverside at 9/20/2005 4:11:04 AM
Hi guys
I'm trying to create an updated list of which of my AD users are logged onto
each computer - there's about 29 computers and we use hotdesking!
I'm using Windows Integrated Authentication, so I know who the user is, and
I obviously know the Workstation name they are on.
My theory... more >>
a kind of digital signature for a record in a table ....
Posted by Xavier at 9/20/2005 3:56:04 AM
hello,
i have a kind of workflow like:
enter data in a form
aprove data by person 1
aprove data by person 2
data are saved in a sqldatabase
What is the best way to check if data in the table was modifyed after the
aprove of person 2 was made.
I mean to be sure that not somebody ha... more >>
Deploy asp.net enterprise library application
Posted by bjhogan NO[at]SPAM gmail.com at 9/20/2005 3:28:16 AM
Hi,
I have built an c# asp.net application on my laptop, it uses the
Enterprise Library blocks -
Data Access Application Block,
Configuration Application Block.
I now want to deploy my application on a server. It does not have the
Enterprise Library installed.
I have the following fi... more >>
Using two OleDbDataReaders at the same time
Posted by Nathan Sokalski at 9/20/2005 1:31:52 AM
I have two OleDbDataReaders that I need to use at the same time. One of the
DataReadersis used inside a While loop. My code is as follows:
While eventreader.Read()
Response.Write(ControlChars.NewLine &
CStr(eventreader("eventdate")).PadRight(20) &
CStr(eventreader("eventname")).PadRight(... more >>
Why Web Programming is so Challenging and Different
Posted by Frankie at 9/20/2005 12:35:21 AM
I have been hired to go to a former client of mine and train their staff
programmers on ASP.NET. These guys have only Mainframe, MS Access, SQL
Server, and VB6 desktop application development experience (with absolutely
no HTML or Web application experience).
Before jumping into any code I ... more >>
Downloading fails (pdf) on OPEN button, not via save as...
Posted by Edwin Knoppert at 9/20/2005 12:00:00 AM
I have a problem with downloading a PDF by using the response object.
A part of it:
..Response.Clear()
..Response.ContentType = sFileType
..Response.AppendHeader("Content-Disposition", "attachment; filename=" &
sFileNameOut)
..Response.AppendHeader("Content-Length", fs.Length.ToString)
..... more >>
Try / Catch
Posted by Shapper at 9/20/2005 12:00:00 AM
Hello,
I am sending an e-mail and I need to call a function the following way:
1. Display("OK") if Email was SENT
2. Display("Error") if Email was NOT SENT
I have this code block:
Try
SmtpMail.Send(email)
Catch ex As Exception
Display("Error")
End Try
My problem is where to p... more >>
saving HTML file from aspx
Posted by David at 9/20/2005 12:00:00 AM
hi...
i have webform *.aspx file, wich do some bd requests and generates (how it
should) html file to show on client pc..
now...
i want my web solution, this web form is part of this solution, to somehow
save this html-generated-by-aspx to a file on server computer, without
showing aspx t... more >>
Could we use .htm to redirect
Posted by ad at 9/20/2005 12:00:00 AM
Hi,
The default document of IIS Virtual directory is Default.htm(not
Default.aspx)
Coud we use Default.htm to redirect to another page (like redirect to
Default.aspx)?
... more >>
Why it is required VS.NET apart from .NET Framework
Posted by vighnesh at 9/20/2005 12:00:00 AM
Hi All
I am dealing a project in ASP.NET which uploads office documents and convert
them as PDF files,to accomplish this convertion
I have used a third party component named "easy PDF SDK".Every thing went
fine on local machine(Which has VS.NET 2003)
But when it comes to deployment on the r... more >>
Save HTML to Stream
Posted by Ayoa at 9/20/2005 12:00:00 AM
Given a set of URLs, how can i save the HTML of a web page into a
MemoryStream / TextStream?
This is because i want to generate a single web page from the content of 2
or 3 dynamically generated pages.
Thanks for your time.
... more >>
session variable
Posted by dave at 9/20/2005 12:00:00 AM
Hi all
I'm newbie to asp.net and building simple pages using vb.net.
I have got three pages default.aspx (which is login page), index.aspx =
and logout.aspx.
In logout.aspx i have put following code...
Session.Clear()
Session.RemoveAll()
Session.Abandon()
Response.Redirect("default.a... more >>
Reference Current Session!
Posted by Adam Knight at 9/20/2005 12:00:00 AM
I am trying to gain a reference of the current session object associated
with a user.
On a previous post the following code was provided to help with that.
Session = CType(System.Web.UI.Page) System.Web.HttpContext.Current.Handler
It doesn't look write, at least one parameter may be missi... more >>
.htm ¥i§_°õ¦æ«·s¾É¦Vªº¥\¯à
Posted by ad at 9/20/2005 12:00:00 AM
Hi,
¤@¯ëªºIIS¥Ø¿ý¤ºªº¹w³]¤å¥ó¬°Default.htm (¤£¬ODefault.aspx)
½Ð°Ý³oÓDefault.htm¥i§_°õ¦æ¦Û°Ê¾É¦Vªº¥\¯à
¨Ò¦p¤@ÂsÄý³oÓDefault.htm ®É, ¦Û°Ê¾É¦VHome.aspx
... more >>
about url rewriting
Posted by ugurceng at 9/20/2005 12:00:00 AM
Hello,
Any one has a sample code about url rewriting with vb.net ?
thnaks...
... more >>
Login Application
Posted by NG at 9/20/2005 12:00:00 AM
Hi All
I am making a suite of independent web applications on a single IIS server /
multiple IIS servers. However, I want the user to login (using an
independent login web application on any one of the IIS servers). After the
user logs in, I want that his login session to be retained even if... more >>
|