all groups > asp.net > may 2004 > threads for wednesday may 5
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
asp:CheckBox problem
Posted by Harry at 5/5/2004 11:31:44 PM
Dear All,
First of all, i have a database and i have to select the data in a table.
In the web form, i have a checkbox in each rows. So that the use can select
the row.
initally, i am thinking to use the dataset and databind the datagrid to show
the form.
but i've figured out that, the... more >>
About Sending a E-mail message ?
Posted by Daniel at 5/5/2004 11:31:01 PM
Before writing a code to send a mail using asp.net, what steps have to be taken
Like do some configuration ?
coz i'm new to .Net
your help will be appreciated.
Daniel.... more >>
Setting Textbox in DataGrid
Posted by Mervin Williams at 5/5/2004 11:22:38 PM
I am trying to set the text property of one of my labels in a data grid to
the value of a text box in the same datagrid.
Please help!
Mervin Williams
... more >>
Anybody know how ASP.Net handles incoming requests from the ISAPI extension?
Posted by Rick Strahl [MVP] at 5/5/2004 11:19:57 PM
Hi all,
I'm trying to put together some notes on how ASP.Net works for myself and a
presentation I'm doing. One thing I can't seem to figure out is what happens
at the entry point of an ASP.Net request. What is the transition from the
unmanaged ISAPI code (in IIS 6) that runs in the default Ap... more >>
repeater problem
Posted by suzy at 5/5/2004 11:19:53 PM
hello,
i have a dataset and repeater control. i can manage to display the items in
1 column by doing something like:
<headertemplate>
<table>
</headertemplate>
<itemtemplate>
<tr>
<td>[item goes here]</td>
</tr>
</itemtemplate>
<footertemplate>
</table>
<... more >>
insert message with overrides
Posted by TJS at 5/5/2004 10:00:57 PM
I want to insert a message with an override if a condition exists but the
overrides does not kick in.
How do I invoke the overrides to display a message from my class code?
============Overrides code================
Protected Overrides Sub Render(writer As HtmlTextWriter)
if Application... more >>
Operation must use an updateable query
Posted by dhiva at 5/5/2004 9:16:04 PM
hiye. i've went through some technical article from http://support.microsoft.com and i didnt find anything i could use
i;m using access as my db and asp.net 1.1 as my language. winxp pro.
evertime i want to insert something into the db, i get this error Operation must use an updateable query..
t... more >>
sending data from javascript to C#
Posted by siol at 5/5/2004 6:48:09 PM
Hy!
I have htmleditor (from the microsoft's samples page) embeded into my
asp.net page.
Editor generates some html code inside <div id="oDiv"></div> tags. And what
I would like to do is return oDiv.InnerHtml to my "codebehind" (C#) where I
would do additional tasks on it.
If I do postback th... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Draw html with loop?
Posted by Rob at 5/5/2004 6:35:23 PM
I am new to ASP.NET and am trying to convert an old ASP project to a C# web
application. I have a page with a very long form on. On part of the form
has a series of comboboxes that a populated with data from a database. In
my old ASP project I wrote the HTML doing something like this
<% for... more >>
Parsing URI
Posted by Tom_B at 5/5/2004 6:26:07 PM
Using VB.NET. Trying to parse the incoming URI for an HTTP request. Appears that supposed to use "GetQueryString", "GetRawUrl", etc. However, can find no examples of how this is to work. Can anyone provide a code fragment. Or, is this an incorrect approach. Thanks. ... more >>
Id of my control
Posted by simon at 5/5/2004 6:08:09 PM
I have my user control and inside that control I have textBox:
<asp:TextBox Runat=server AutoPostBack=True ID=txtListBox
onkeydown="filter()"></asp:TextBox>
<script language="vbscript">
sub filter
msgbox document.getElementById("txtListBox").value
end sub
</script>
The id... more >>
client side vs server side events for controls
Posted by mongphong28 NO[at]SPAM yahoo.com.au at 5/5/2004 6:06:35 PM
Hi,
I have a webform with various asp controls on it such as textboxes and
dropdownlists. I'm fairly new to asp.net coming from VB6 and am
wondering when it's best to use client side events and when it's best
to use server side events.
For example, if a textbox is to contain a date I want t... more >>
How publish Vs.net app to a web.
Posted by Woody Splawn at 5/5/2004 5:43:55 PM
Forgive my ignorance but how do you get your applicaiton written in VS from
your localhost to your actual web site? Is there a way of doing this from
within VS or do you have to use some sort of FTP application?
I'm supposing that when you create an applicaiton in VS you do it in
LocalHost fi... more >>
is possible running ASP.net on NT4 Platform?
Posted by ronaldo at 5/5/2004 5:23:04 PM
I wrote an ASP.net application in VB.net.
It works fine on my XP machine.
However, it cannot works in my NT4.0+IIS4 machine.
It works fine with ASP program .
I installed .net framework 1.1 on that machine.
When I browse the web site,I can read my VB.net code in my browser.
Can you tell me why?... more >>
calls and code behind / response.write confusion
Posted by etropic at 5/5/2004 5:21:13 PM
Im confused
I want an .aspx page to have a table with my data in it. At first I wrote FillTablew(); in my Page_Load even in the Code Behind file. I had it loop the db etc. and use Response.Write of a bunch of strings. This works great as long as all I want is the results of those Response.Writes
... more >>
Multithreading Async aspx best approach
Posted by milesm at 5/5/2004 4:19:54 PM
I've spent the last 3 hours reading various MSDN articles, other site
articles and news group postings and was wondering what the best approach to
my situation would be since I'm unable to come up with the best approach.
What's Needed........
1. Various background SQL inserts that don't interr... more >>
Creating a read receipt using the MailMessage class?
Posted by Wade Wegner at 5/5/2004 4:12:02 PM
Hello,
Using the MailMessage class (or any other ASP.NET SMTP classes), I would
like to programmatically request a read receipt. Is this possible?
I have found an article that talked about a ReadReceipt property for CDO
1.2.1, but I have not been able to find a ASP.NET or MailMessage articl... more >>
Form Spoof/editing <option> tag values
Posted by Raterus at 5/5/2004 4:09:23 PM
Hi there,
Should I be concerned with a malicious user spoofing a postback by =
changing the values for a control like the dropdownlist found in the =
rendered <option> tags. I would hope asp.net would bomb on them if the =
value they posted was never a listitem in the control.
Here's anoth... more >>
HttpStatusCode Enumerations...
Posted by clintonG at 5/5/2004 3:39:58 PM
The StatusCode is returned as an HttpWebResponse Member Name
such as OK, Moved, NotFound and so on.
Does anybody know how to get an actual HTTP return code?
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County... more >>
Cache in user control
Posted by simon at 5/5/2004 3:38:50 PM
If I use Cache.Insert method in my user control, I get error message.
If I use HttpContext.Current.Cache.Insert then I don't get error message,
but the cache is always nothing.
How can I use cache in my user control?
Thank you for your answer,
Simon
... more >>
Custom validation
Posted by Morten at 5/5/2004 3:28:54 PM
Hi!
I've been experimenting with server side custom validation and I can't make
it work.
I have a text box which I'd like to validate by sending the content to a web
service which will check it and return 0 or 1. I've added a custom validator
control in VS .Net 2003. The code looks like thi... more >>
maxlength on multiline textbox
Posted by hardcoded at 5/5/2004 3:15:03 PM
I have a textbox with TextMode set to MultiLine. I also have the MaxLength
set to 255. This maxlength value seems to get ignored as the user can enter
unlimited characters. Does the multiline textbox not support maxlength?
How can I make the work?
TIA
... more >>
Enable HTTP Keep Alives
Posted by Jim Heavey at 5/5/2004 2:36:05 PM
I am having a problem running the debugger on VS.Net 2003. In researching this issue, It have been suggested that I "Enable HTTP Keep Alives". Where exactly would I find this setting so that I can eliminate this as a possible reason that I am not able to run the debugger
Your assistance is great... more >>
odd problem with refresh
Posted by mark at 5/5/2004 2:25:09 PM
not sure how to put this into words - but here goes,
ive developed a webapp for use on the intranet - it uses frames - top left
and main
the app is working great for me and other admins, but for other users - any
form data
that is inputted - is only shown after refreshing the main frame - the d... more >>
Select statement on Dataset problems!! :-(
Posted by soulcode at 5/5/2004 2:17:46 PM
Hi Guys,
Yesterday i was playing around with some code where I would read an xml
file into a dataset...
'***********************************
Dim ds as dataset
ds.readxml("test.xml")
'***********************************
with the data in the dataset, i want to be able to select all rows... more >>
Estimating shipping costs in e-commerce site...
Posted by Charlie NO[at]SPAM CBFC at 5/5/2004 2:11:29 PM
Hi:
I'm working on an on line catalog. I'm far from this point, but just
thinking ahead. How do sites estimate the shipping charges?
Thanks,
Charlie
... more >>
Dynamic Images in C#
Posted by Martin Schmid at 5/5/2004 1:46:02 PM
I Have a C# asp app that returns an image to the browser (I'm using IE6) as
follows:
Response.ContentType="image/jpeg";
bmp.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Jpeg);
However, when I right click on the resulting image in the browser window to
"Save Picture As..." i... more >>
Multiple Click
Posted by Andre at 5/5/2004 1:44:30 PM
Hi,
Is there a way to prevent multiple click on a button ?
- Change button text to something like "Processing..." and Disable the
button or just disable de button and after that submit the form..
Thank you.
... more >>
dropdown list lost focus
Posted by starbuck at 5/5/2004 1:41:23 PM
Hi
In asp.net/vb.net is there a trigger for a dropdown list when focus moves to
next control.
I want other fields to be filled after a user selects a account reference
and tabs to the next field
Thanks in advance
---
Outgoing mail is certified Virus Free, so am I.
Checked by AVG ... more >>
Frontpage extensions folders
Posted by rbscheer NO[at]SPAM my-deja.com at 5/5/2004 1:29:30 PM
Hi.
Is there any article that talks about the purpose of each of the
Frontpage extensions folders (_vti_cnf, _vti_pvt, _vti_script, and
_vti_txt)? When I create a new ASP.NET application, these folders are
automatically created.
Thanks,
Robert Scheer... more >>
How to use Transactions?
Posted by Bijoy Naick at 5/5/2004 1:28:35 PM
I am having trouble implementing transactions.. Here's my code..
-----
Dim myConnection As OleDbConnection
Dim myCommand As OleDbCommand
Dim myReader As OleDbDataReader
Dim transaction As OleDbTransaction
myConnection = New OleDbConnection(connStr)
myConnection.Open()
transaction = m... more >>
Web.Config and Virtual Directory
Posted by Wm. Scott Miller at 5/5/2004 1:01:13 PM
We have a intranet site that allows one of our departments to search a set
of pdfs and then look at them. Only problem is that only they and us geeks
should be allowed to see the pdfs. We have it locked down except for when a
person directly types in the url to a pdf. Currently, the PDFs are i... more >>
creating .pdf files dynamically without 3rd party components
Posted by Manoj Paramu Das at 5/5/2004 12:58:42 PM
Hi,
Is there a way to save a page/some data(read variables) as a .pdf files
without using 3rd party components?
Any Sample code would be really helpful.
Thanks in Advance.
Regards
Manoj Das
... more >>
Search within a site
Posted by Manoj Paramu Das at 5/5/2004 12:55:41 PM
Hi,
During development I had a search within the website implemented thru
indexing service using its catalog. But now it turns out that the hosting
company doesn't use indexing service - Is there a easy way to implement
search within a website in ASP.NET and if possible some sample code
Thank... more >>
Size and concurrency limits on Jet 4.0 dB engine?
Posted by Charlie NO[at]SPAM CBFC at 5/5/2004 12:28:12 PM
Hi:
I have chosen to use Jet 4.0 db engine on an e-commerce site because client
wants to save on hosting costs and doesn't expect a lot of traffic. In the
past I have always used SQL Server and FoxPro without problems.
What are the size and concurrency limits on Jet dB engine? When is it ti... more >>
Failed to execute request because the App-Domain could not be created. Error: 0x8013150a
Posted by njagga NO[at]SPAM gwu.edu at 5/5/2004 12:18:47 PM
All,
I have VS.NET 2003 running on a Win2K machine with IIS. When I try to
create a new web project gives me a http 1.1/500 error and the event
log shows.
"Failed to execute request because the App-Domain could not be
created. Error: 0x8013150a"
I tried the aspnet_regiis -1 from the VS20... more >>
Changing hidden values
Posted by Jeremy Ames at 5/5/2004 12:01:20 PM
I have a form that contains two hidden values, among other controls. I =
was wondering, if I change these values in server script and immediately =
do a server.transfer, do these values get updated before the page is =
changed?
I want to say that because the values are changed but the page is ... more >>
lucasponzo@nospam.nospam
Posted by Lucas Ponzo at 5/5/2004 12:01:07 PM
How to eliminate the treeview that is built automacaly when I load a Crystal Report in a ASP.NET page ?
I tried to find some property in the report object but with no sucess
Tks
Lucas Ponzo
... more >>
data relations
Posted by Joe Van Meer at 5/5/2004 12:00:18 PM
Hi again,
When you fill a dataset with 3 seperate queries does asp .net automatically
put the tables into the datatables collection for you for later reference or
do I have to declare a new datatable for each table I plan on adding into my
datarelation?
Cheers, Joe
... more >>
Connection Woes :-(
Posted by lloydmonteiro NO[at]SPAM rediffmail.com at 5/5/2004 11:52:58 AM
i am trying to connect to SQL 7.0 using the following connection
string
myConnectString = "Initial Catalog=[SmartLan 2.0 ED];Data
Source=localhost;Integrated Security=SSPI;"
i always the get the following error message
Cannot open database requested in login '[SmartLan 2.0 ED]'. Login
fails... more >>
Trace overhead
Posted by Brett Robichaud at 5/5/2004 11:45:13 AM
Does anyone know what kind of overhead is caused by enabling tracing in an
ASP.NET 1.1 app?
On my production servers I'd like to leave it enabled so I can view
trace.axd to get a feel for the activity and problems on my site, I'd leave
pageOutput="false". But I'm wondering what kind of extra ... more >>
Javascript issue
Posted by Paul at 5/5/2004 11:31:19 AM
I needed a way to show the user of my page that something was happening, so
what I came up with was to change an image I already had on the page when
they clicked on the SUBMIT button.
document.getElementById("image2").src =
http://sta2wd08/emplinkage/pleasewait.bmp
This works pretty well a... more >>
Timeout on populating a datagrid
Posted by Paul at 5/5/2004 11:30:50 AM
I sometimes get a timeout error when populating my datagrid,
the code is
WizardConnection.Open()
UpdateCommand.CommandText = "EXECUTE sp_assign_user '" &
PhysOffice.SelectedValue & "', '" & Context.User.Identity.Name & "'"
UpdateCommand.ExecuteNonQuery()
WizardConnection.Close()
A... more >>
Non-scrolling section on my page
Posted by Paul at 5/5/2004 11:16:37 AM
Hi
I have a page broken into two sections, the first top section is selection
criteria for my datagrid. The second section is the actual datagrid. I
would like the selection criteria section to stay on the page at all times
when scrolling.
I know this can be done with frames, but I believ... more >>
Global's non static methods
Posted by A.M at 5/5/2004 11:08:56 AM
Hi,
Can Global object have non-static methods?
If answer is yes, then How can I access them in pages?
I have following property in Global.asax.cs, but when I try to use it in
pages, I receive error "An object reference is required for the nonstatic
field, method, or property CurrentDisplayN... more >>
Problem with Environment.MachineName
Posted by Ely at 5/5/2004 10:53:11 AM
When I call the Environment.Machinename to try to get the local machines
name, I get a "Object reference not set to an instance of an object" error.
This same code works fine on my local machine, it just started having
problems when i rolled it out to a production machine.
Thanks
... more >>
InputBox
Posted by André Almeida Maldonado at 5/5/2004 10:51:22 AM
Hy Guys, I need to use in my aspx page an InputBox.
How can I do it (I prefer don't using JavaScript)
Thank's...
... more >>
Putting a class in a Session
Posted by A.M at 5/5/2004 10:38:34 AM
Hi,
How can I store a class (including all it's members) in session object?
I already tried something like:
Session["Status"] = myClass;
but it stores the value of myClass.ToString in it!!
Thanks,
Alan
... more >>
newbie question: timeout
Posted by Dave Bartlett at 5/5/2004 10:20:53 AM
We have a site which requires a user to login. Often users want to login,
then do nothing on our site for a few hours, then use it again, eg. have the
browser minimised.
When they try to use the site after a period of inactivity, they see a
fairly ugly error message from the server.
How do I:... more >>
Sorting problem with datagrid with sveral thousands items!
Posted by bredal Jensen at 5/5/2004 10:17:49 AM
Hello,
I'am experiencing that Asp.net can not handle sorting of datagrid when the
number of items exceed a few thousands.
Is anyone aware of this problem?
The sorting works fine when the number of item in the datagrid gets lower.
I do not know the number limit between *Works* and "don't w... more >>
Seperating IIS from Application
Posted by Aaron Kornbluth at 5/5/2004 10:10:15 AM
Please forgive me if this question has been asked before.
Is there any way to have IIS running on one machine processing HTTP
requests - but have all requests routed to another machine for processing
(the App server).
The project I am coming from had iPlanet processing requests and passing
... more >>
aspnet_wp.exe (100%) cpu leak
Posted by lukv NO[at]SPAM libero.it at 5/5/2004 9:46:34 AM
Hi,
we have got a problem with asp.net and we don't know what to do
Usually aspnet_wp.exe under medium/high load uses a maximum of 40% cpu
power.
Suddently even when requests are not so high it starts using 100% cpu.
Pages are so served in many seconds each (instead of few cents),
process th... more >>
Date problems on a server
Posted by Jan Olof Jonsson at 5/5/2004 9:28:38 AM
Hello.
We hawe a problem with the Excel-program on a public webserver.
Excel is installated to convert/produce HTML - documents to a website on the
server when client users in a webinterface upload Excel-documents for
converting and publishing to the site.
It is on a Microsoft Windows Server 20... more >>
Does a Session timeout Generate an event?
Posted by David Laub at 5/5/2004 9:07:01 AM
Is it possible to know when an asp.net session has timed out? Is there some
sort of timer event?
Thanks
... more >>
IIS Warm Up Period
Posted by Arsen V. at 5/5/2004 8:58:34 AM
Hi,
We have a website with a very high volume of traffic. The pages are ASP.NET.
There are some configuration settings that get loaded by the Global.asx file
on Application Start event. The load time for those settings is about 3
seconds.
When the site is running on IIS5 everything is okay.... more >>
datagrid help
Posted by Mike at 5/5/2004 8:42:39 AM
Can anyone point me to a site or something on the datagrid?
I'm looking to do something with the datagrid and not sure how to code for
it.
I currently have a javascript grid that does everything I need but I can't
get that working in the asp.net world, so I figured if i can get the
datagrid to ... more >>
getting number of files
Posted by bj daniels at 5/5/2004 8:12:51 AM
I am trying to get the number of .jpg files in a given folder (to pick a
random one). The folder is referenced by a url - how can I do this. I have
tried the code below - but get an error that URLs are not accepted.
Dim files As String() = System.IO.Directory.GetFiles(dir, "*.jpg")
result = ... more >>
Application Level Thread In ASP.NET
Posted by Qingdong Z. at 5/5/2004 8:01:02 AM
I have ASP.NET application served as Live Web Video Viewer. The javascripts pull each frame(image) from IIS, and IIS pulls live image from Video Source through TCP channel. This works fine, but 1) It is slow because of two Pull Methods. 2) The IIS/Video Source have problem to support more than 10 us... more >>
hyperlinks as part of dropdownlist
Posted by Paul at 5/5/2004 7:51:03 AM
Just wondering if there is a way to set up hyperlinks in a drop down list, so each item in the dropdown list navigates to a different page.... more >>
Reference a user controls properties from another user control??
Posted by abjork at 5/5/2004 7:11:07 AM
I have a aspx page with two user controls. One of them holds some properties that I would like to set from the other user control. How do I do that
I keep getting "Object reference not set to an instance of an object." when I declare the first user control like this from within the second UC
P... more >>
Using Database Connection
Posted by Simon Harris at 5/5/2004 7:04:01 AM
Hi All,
I have this in an ASCX file:
<%@ Control Language="vb" %>
<%@import namespace="System.Data.OleDb"%>
<Script runat="Server">
Public Function GetConnection()
Dim Conn as OleDbConnection
Dim ConnStr as String
ConnStr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and
S... more >>
datagrid databound template column javascript problem
Posted by Naresh at 5/5/2004 6:16:01 AM
Hi All
Iam trying to validate date in a databound template textbox column ?To validate date i need to know the id and then which wud allow me to get value in the textbox to search for reg expression.But iam not able to get hold of ID.Any Suggestions are really appreciated
Regard
Nares
... more >>
Validators
Posted by Jim Heavey at 5/5/2004 5:18:01 AM
Hello I have a DataList control with a couple of text boxes and a couple of
RequiredField Validators and Regular Expression Validators, but they are
not doing anything.
When I blank out the value in the field, neither of the Required field
validators are posting an error. I set the "causes... more >>
Files missing from localization toolkit
Posted by crooksgj NO[at]SPAM hotmail.com at 5/5/2004 5:04:38 AM
Can anyone send me these files:
ApplicationCultures.txt
Applications.txt
ControlTypes.txt
CultureProperties.txt
DictionaryProperties.txt
Elements.txt
Properties.txt
When I installed the Localization Toolkit these files were missing and
I have no stored procs in my SQL Server 7... more >>
Application_Start not firing!
Posted by pauld NO[at]SPAM Telme.com at 5/5/2004 4:44:29 AM
I have an asp.net app on 3 webservers (all same platform). The apps
make extensive use of Application variables.
A problem is occuring on 1 app - I have itentified that application
variables are not been loaded on Application_Start. For example:
in global.asax:
protected void Application_Star... more >>
Updating database with changes
Posted by Geir Sanne at 5/5/2004 4:26:05 AM
hi!!
how am i supposed to update the db witht he changes the user make in webpage
am trying to make a simple page that have a grid bound to a table
the user can delete,add or update the grid
how do i get the changes into the database
after the page is loaded the dataset is gone so the da... more >>
Convert DataGrid to Excel
Posted by Patrick S. at 5/5/2004 1:11:02 AM
Hi,
I wrote a small function, thaht converts a DataGrid to Excel from a Web-Application (C#).
Running the function with 100-200 rows it just works fine.
Starting a "special" Report produces a DataDrid with about 13650 Rows. Now the conversion to Excel does not work.
Are there any known restricti... more >>
To develop for Whidbey or not
Posted by Paul at 5/5/2004 12:31:07 AM
I am about to start a new greenfield application. The big question is do I start on VS2005 CTP or not
I know the final release isn't until 2005 but a cursory glance makes it seem that ASP.NET in the CTP is quite 'close' and there are some great features there that will save me a whole load of time... more >>
|