all groups > asp.net > june 2005 > threads for thursday june 16
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
How to do this? Need advice.
Posted by Shapper at 6/16/2005 10:36:45 PM
Hello,
I have a problem: Inside the Item Template of an ASP:Repeater I need to
display a link.
The link url value is given by:
<%# DataBinder.Eval(Container.DataItem, "link") %>
The link text changes according to the culture of my web site:
"pt-PT" - Lêr Mais
"en-GB" - Read More
....
... more >>
Passing Dynamic Values to a Stored Procedure with selectparameters
Posted by John Smith at 6/16/2005 10:32:55 PM
I have a stored procedure that expects a month and year. There are
times when I simply want to pass the current month and year (instead
of, say, a querystring value). How can I pass the current month and
year as the defaultText attribute value inside a <selectparameters>
tag?
Thank you!
... more >>
ViewState Problem
Posted by Kalyani at 6/16/2005 10:03:52 PM
Hi,
I have a page with one DropDownList and a Placeholder.This placeholder
wil contain either a textbox or a DropDownList depending upon the value in
previous DropDownList. Also there is a Submit button and on click of this
event values in thse controls are processed and selected value ... more >>
E-mail Broadcast Application
Posted by Frank Bishop at 6/16/2005 9:42:08 PM
I work for a membership organization and we would like to find some
sample code to build our own broadcast e-mail app for our members in
ASP.Net. We have several HTML newsletters that go out by e-mail.
We would need to upload several thousands of members from an excel sheet
or SQL and manage s... more >>
Calling a utility function from a web page
Posted by Jordan at 6/16/2005 9:24:09 PM
I added a C# utility class to my project. Now I would like to call that
class from a web page, but I'm not sure how to do it.
This is the new class:
public class autility : System.ComponentModel.Component
{
....
public bool Write_Log(System.Web.UI.Page Page, string strSessionLogText)
{
... more >>
scan files uploaded via asp.net
Posted by Chris at 6/16/2005 8:18:01 PM
Hi,
How can I implement virus scanning on files uploaded via my asp.net page?
Thanks... more >>
How to add DataBinded CheckBoxList in Datalist
Posted by Patrick.O.Ige at 6/16/2005 8:06:02 PM
Is it possible to bind a checkboxlist if this checkboxlist is in a datalist
Bcos when i add a CheckBoxlist to a Datalist i get :-
Object reference not set to an instance of an object error at:-
checkboxlist1.DataSource = myDataSet
Why?... more >>
An unhandled Exception occures in IIS when I start my webapp
Posted by Ray5531 at 6/16/2005 7:36:36 PM
I have .netframework 1.1 and IIS 5.1 installed on my Windows xp.When I try
to run my applicatin either from Internet Explorer or from VS 2003,A
just-in-time debugger instance pops up and says that :
"An unhandled exception ('System.ExecutionEngineException') occured in
aspnet_wp.exe[for eac... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Frames or not?
Posted by matthias s. at 6/16/2005 7:03:44 PM
Hi there,
I'm currently trying to make a decision about whether to use a frameset or
not on the webapp I'm building. Most of the pages have a (more or less)
static
menu on the left side. The right part of the pages is dynamic content
fetched from a db and forms...
Using a frameset (menu/co... more >>
using controls loop...
Posted by Kezza at 6/16/2005 6:58:02 PM
Hi There..
I have dynamically created some textbox and checkbox controls by adding them
to a panel. Now I would like to get the values out.
I have created a
for each loop that I can see the controls Unique ID with. But I for the
life of me can't figure out how to see the value the control... more >>
How do I handle two HTMLFileInput controls on one page?
Posted by Alan Silver at 6/16/2005 6:55:57 PM
Hello,
I am writing a page that allows the user to upload two images to the
server. I have two HTMLInputFile controls on the page ...
<input id="smallimage" Type="File" Runat="Server">
<br><input id="largeimage" Type="File" Runat="Server">
and the code that handle the postback looks like ... more >>
Loop through webform controls - please help me
Posted by Calvin KD at 6/16/2005 6:40:03 PM
Hi everyone,
I'd like to interrogate a web form to check for values of the controls on
the form. The following codes worked when I execute it in a User Control that
has some web controls on it but I can't seem to get it to work directly on
the form itself.
using System.Web;
using System.W... more >>
Validation: Making sure a RadioButton is selected
Posted by Nathan Sokalski at 6/16/2005 6:25:02 PM
I have a set of RadioButtons in my form. I want to make sure that the user
selects one of them, and therefore am initially having none of them
selected. However, I want an error message to be displayed if they attempt
to submit the form without selecting one of them the same way an error
mes... more >>
Stream and Reader help
Posted by mag at 6/16/2005 6:00:56 PM
Let's start off by saying I'm a noob to .Net but here's my problem.
I have many files, all with the same structure.
I know the structure, It was written in some version of C++.
Because it seem to be a null terminated or serialized file
structure.....
using text readers reads only until the ... more >>
portal site Architecture
Posted by getdotnet at 6/16/2005 5:22:02 PM
We are designing a site with ASP.net 2.0. The question is regarding the
options avialble in asp.net 2.0 and the best one to use
Scenario
All the pages have a top menu bar and header. (We plan to make it as a
master page). Now the menu in the master page is based on roles that a person
is a... more >>
ampersand in string
Posted by klynn at 6/16/2005 5:00:01 PM
I have a web.config key as follows:
<add key="DOC_TRAILER" value="&Lib=whatever&File=.pdf&Frameset=Created" />
but I cant run the app with this string. Problems with &
I tried putting @ at beginning but that didnt fix it.
What am I missing?... more >>
what is standard size for graphic title bar? tx -eom
Posted by dee at 6/16/2005 4:37:32 PM
Regular expression question?
Posted by Leon at 6/16/2005 4:33:18 PM
My web application allow the user to enter the site by typing in a subdomain
such as 'name.domain.com'. However, I want to retrieve just the 'name' part
of the subdomain. see code below (the equal sign '=' respresent the value
I'm getting when I run the code)
Test 1........................ more >>
Weird event firing problem
Posted by Ian Lane at 6/16/2005 4:13:01 PM
Hello,
I am having a strange issue between my Test environment and my Production
environment. The problem is my site runs beautifully on Test and almost
beautifully on Production. They are both the exact same machines, with the
same memory, and same exact code and yet Production has some se... more >>
HOWTO comments within ASP:Table
Posted by Sue at 6/16/2005 3:23:02 PM
Is there a way to add comments on the HTML page within an ASP:Table? (ever
try and use "comments" as a search word <g>?)
tia,
Sue... more >>
File Comparison utility....
Posted by Smith at 6/16/2005 3:18:27 PM
I know this question is not much related to this news group.
Is there any free utility on the web which campares files in two folders for
changes. I wanted to compare two set of .ASPX files?
Thanks for your reply.
Smith
... more >>
Windows 2003 - SQL Server does not exist or access denied
Posted by ssp at 6/16/2005 3:07:00 PM
G'Day All,
I have a web application sitting on my laptop and a Sql Server 2000
database on our INTRANET server running Windows 2003. Up until recently
I was able to access the database using my application. But recently it
started to give me the error as below:
****************
SQL Server do... more >>
Missing System.Web.UI.Design namespace !!!! HELP
Posted by Tim Greenwood at 6/16/2005 2:56:55 PM
Why would this entire namespace be missing?? I don't see any missing
references that would make sense. Am I missing something really obvious
here? The entire namespace is just not present in the intellisense when
trying to add designer support to a webcontrol.
... more >>
what is standard size for graphic title bar?
Posted by dee at 6/16/2005 2:31:19 PM
Hi
What's the standard size for a graphic title bar?
Thanks.
Dee
... more >>
Can I get the encoding of a text file?
Posted by MattB at 6/16/2005 2:12:06 PM
Is there a way to determine the encoding of a text file (like is it
UTF-8 or something else?). I've been fishing around and can't find
anything but it seems like something that should be in there somewhere.
Thanks!... more >>
Requires help from Super-MVP: Need JavaScript to produce behavior of radio button in 2 groups?
Posted by Amelyan at 6/16/2005 2:06:09 PM
When we want radio button to belong to a group name we say,
radio1.GroupName="GroupA". In this case, radio1 will be unselected if
another radio button is selected in "GroupA".
Is there a way (trick, custom RadioButton, or javascript) to make radio
button (radio1) belong
to 2 independent rad... more >>
adding extra code to the doPostBack function
Posted by Cesar at 6/16/2005 2:06:05 PM
Hello there,
I'm facing the following situation: I have an aspx web page which contains
several web controls (e.g button and drop down list). The drop down list in
particular has enabled the autopostback property so that I can do some
validations on the server.
This page has algo one html ... more >>
Source control and deployment
Posted by Andy at 6/16/2005 1:46:09 PM
Hi,
I need to deploy my web app (using XCOPY), but first need to put all of the
source under source control (not vss).
I guess the question is, "Q1) what files need to go under source control?"
Should it be the all of the files under inetpub\wwwrot\myapp? or a sub set?
following this, "wha... more >>
Working with Cache and Viewstate
Posted by Ryan Ternier at 6/16/2005 1:40:04 PM
I'm playing around with Cache and Viewstate.
I've made a small little example that reminds me of grade 12:
if(!IsPostBack)
{
ArrayList alTest = new ArrayList();
alTest.Add("This is from the ViewState");
alTest.Add("This is another from the viewstate");
alTest.Add("Wow, ViewStat... more >>
Allowing web application to see a folder outside it's domain
Posted by Oleg at 6/16/2005 1:33:09 PM
I need to configure my web application to see a folder outside it's root.
I know I need to configure my web.config file, but don't know how.
Can you help?... more >>
copy changes back to datatable
Posted by rodchar at 6/16/2005 1:20:03 PM
hey all,
i have 2 tables
1st table - has all the records in it.
2nd table - contains updated rows from the 1st table
is there a way to merge the 2nd table changes back into the 1st table?
thanks,
rodchar... more >>
Extended Web Data Administrator
Posted by dhnriverside at 6/16/2005 1:09:06 PM
Hi guys
Has anyone had a go at extending the Web Data Administrator so that you can
actually edit data with it? It's a very useful peice of kit, but I need to be
able to edit bits of data on a client's server.
If anyone's had a go - let me know! Or can anyone suggest any freebies that
do... more >>
Source control and Deployment
Posted by Andy at 6/16/2005 1:09:05 PM
Hi,
I need to deploy my web app (using XCOPY), but first need to put all of the
source under source control (not vss).
I guess the question is, "Q1) what files need to go under source control?"
Should it be the all of the files under inetpub\wwwrot\myapp? or a sub set?
following this, "wha... more >>
sharing variables between methods
Posted by tfsmag at 6/16/2005 12:59:15 PM
here is some test code i've set up trying to figure out how to share
variables between two different methods.
__________________________________________________
Public Class test
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
#End Region
Public Sh... more >>
download / write to browser.....help!!!
Posted by mavrick101 at 6/16/2005 12:49:08 PM
I have an asp.net page. Which has links to few files.
When a user clicks a link, I open a new window and execute a download.aspx
file which writes the content of that file into the browser so that user can
save it in a new window. I'm doing it with the following code....
Response.AddHeader... more >>
Help Please!
Posted by Shahid Juma at 6/16/2005 12:45:31 PM
Hi,
I am new to ASP.NET and I am having a hard time figuring out
somethings.
I have an XML file which I read thru and create a form using the
Page_Load. In the form, I have radio buttons which I also create
dynamically. This is done in the actual code not the script.
Now, when i want t... more >>
Unable to connect to SQL Server session database
Posted by jamezw at 6/16/2005 12:45:13 PM
Hello
I work on a website where we have 3 servers running one site so we use
the SQLServer option for state management. We are using the persistent
ASPState database. All 3 of our webservers are Win2K3 and up-to-date.
Our SQL Server is up-to-date as well. We have been getting weird
site-hangi... more >>
Setting a controls property in the .aspx : Visible=<%#...%>
Posted by Andrew Backer at 6/16/2005 12:36:43 PM
I would like to be able to set the Visible property of a placeholder to
'false/true' via a normal function call rather than in the codebehind.
What I am aiming for is something approximating this :
<asp:PlaceHolder runat="server" Visible=<%#
MyNs.Class.StaticPropertyGet%> />
This works ... more >>
Best way to pass information between pages?
Posted by hugo.flores NO[at]SPAM ge.com at 6/16/2005 12:05:32 PM
Hello all.
I want to know what would be the best way to pass information between
pages in ASP.NET? Querystring, seession variables, server transfer?
If possible if anyone can list advantages/disadvantages of each, or any
good/bad experience using one against the others.
Thanks
... more >>
Type not defined - error message
Posted by TJS at 6/16/2005 11:24:39 AM
What doe sthis mean "Type not defined" when pointing to 'Protected with
events ' line in codebehind ?
========================================
Public Class dispCalendar
Inherits System.Web.UI.Page
Protected WithEvents myCalendar As popUpCalendar '<==error here
... more >>
StreamReaders and encoding
Posted by MattB at 6/16/2005 11:22:25 AM
I have the following function I use in my application quite a bit (I
missed the VFP one and decided to make my own):
Public Shared Function File2String(ByVal strFile)
'Open a file for reading
Dim strFilename As String = strFile
'Get a StreamReader class that c... more >>
A potentially dangerous Request.Form value was detected from the client
Posted by JJ_377 NO[at]SPAM hotmail.com at 6/16/2005 10:55:55 AM
scenario: textbox that user enters some program code in...
this will cause the above error in the subject of this posting...
How can I deal with this:
Besides a custom error page, is there any way to trap this so that I
can remove the offending item from say, a textbox, and then tell the
user... more >>
Protected or Public ?
Posted by Paperback Writer at 6/16/2005 10:51:31 AM
I have 30 textBox in my UserControl...they are with PROTECTED modifier.
But i need to access these TextBox throught my WebForm...
What is the best way to access them ? leaving PROTECTED and creating publics
properties or Leaving de objects publics ?
--
Please, check my theSpoke:
http://www... more >>
Custom errors and line numbers
Posted by Buddy Ackerman at 6/16/2005 10:20:41 AM
When trapping unhandled errors in a web page via the Page_Error or
Application_Error event procedures is it possible to get the line number on
which the error occured? When not using custom error pages the default
error page displays the line number that the error occured on. Since this
page i... more >>
"Print this Page" MSDN Style
Posted by BELIUS at 6/16/2005 10:10:06 AM
Hi all,
I am implementing a "Print this Page" function in my ASP.NET application.
This function should print a part of the page and I would like to use an
MSDN Style "Print this Page".
I'm going to explain what I would like to do.
Clicking on the print button I would like to show immedia... more >>
Sending Mails
Posted by Mariame at 6/16/2005 10:06:05 AM
Hi Everyone,
im sending mails using this code
Dim smtpmail As Mail.SmtpMail
Dim msgRequest As New Mail.MailMessage
msgRequest.BodyFormat = Mail.MailFormat.Html
msgRequest.Subject = "Track"
msgRequest.From = "from@domain.com"
msgRequest.To = "to@domain.com"
smtpmail.SmtpServer = "... more >>
ASP.Net client sending XML string to remote .net web service
Posted by brendan_gallagher_2001 NO[at]SPAM yahoo.co.uk at 6/16/2005 10:03:42 AM
Hi,
I am using a .Net (VB.Net) webservice with an ASP.net client to
generate an xml string from a db and then send it to a web service on
the same box (client is part of the same service) which then processes
the xml amd sends a sucess result. I have this part already working.
However, I wou... more >>
ASP.NET tab on virtual directory's properties
Posted by Tom Phan at 6/16/2005 9:54:26 AM
Hi,
Setup: dotNet Framework 1.1 and 2.0 b2; Win2000 Server sp4
On my development machine, I see the ASP.NET tab when look at the property
of a site or virtual directory. This ASP.NET allows me to select the
framework version for that particular site.
On my production, I don't see that ... more >>
Need reviews and advice on web and data control tools and vendors
Posted by Tim Meagher at 6/16/2005 9:47:54 AM
In order to reduce my development time, I would like to acquire a suite of
tools for ASP.Net development that provide grid, treeview, menus, and other
similar web controls. I would like a tool that provides good documentation
and that is fairly intuitive to use, is robust and gearing up for ASP.... more >>
MCAD Exam
Posted by Kim at 6/16/2005 9:04:07 AM
Hi,
Does anyone know if 70-305 exam includes ASP.NET 2.0 as a test topic ?... more >>
How to get DLL details?
Posted by Jouni Karppinen at 6/16/2005 8:31:09 AM
Hi
I have to follow closely DLL-versions in different client enviroments.
My goal is to build a web page which shows information of all dll:s in one
page.
So it should:
1. Read through all DLL:s in "bin" directory
2. Print Name, Version number and AssemblyDescription of each dll
Pseudo ... more >>
CheckBox vs CheckBoxList
Posted by Patrick.O.Ige at 6/16/2005 8:12:07 AM
I know with CheckBox i can get ChecBox1.Checked which gives me TRUE or FALSE..
But i want to DataBind with CheckBoxList but is it possible to get TRUE or
FALSE result with CheckBoxList .
And also can i do Databind with CheckBox?... more >>
Deploying Data Access Application Block
Posted by Rachel at 6/16/2005 8:11:04 AM
Hi,
I am using the data access application block successfully in our development
environment, however when I deploy to our testing server as Private
Assemblies I keep getting the following
Configuration Error
Description: An error occurred during the processing of a configuration file
... more >>
Could a change of SQL ports break a data reader?
Posted by Bill in Kansas City at 6/16/2005 8:03:45 AM
Can a change of SQL port affect a SQLDataReader's ability to pull data?
The code that follows was working just fine yesterday, and the only
thing that's changed between then and now is the SQL port. The
connection string is updated with the port - aaa.bbb.ccc.ddd,eeee -
where eeee is the new p... more >>
Response.Redirect at a response.end
Posted by csgraham74 at 6/16/2005 7:28:01 AM
i have the following code
Response.AddHeader("content-disposition", "attachment; filename=" &
str_AccountNo & ".pdf")
Response.ContentType = "application/pdf"
Response.BinaryWrite(oDR.GetValue(0))
Response.End()
this code successfully prints ... more >>
Looking For A Room Scheduler
Posted by Wayne Wengert at 6/16/2005 7:23:39 AM
I am looking for a component that could be used to manage the scheduling of
up to 8 rooms on an hour-by-hour basis. General users need to be able to
select a date and see the schedule for all rooms. Some users need the
authority to add new events and an admin needs the ability to edit/delete
... more >>
Application_BeginRequest With RegEX Question?
Posted by Leon at 6/16/2005 7:12:38 AM
Please help, what I'm I doing wrong?????
--> This following code will not run correctly, no syntax errors, but..
--> execution error = The subdomain does not exist in database.... "but it
does in the database"
--> I think this is the problem in the code but don't know how to fix =
Me.Command... more >>
Barcode on PDF in vb
Posted by csgraham74 at 6/16/2005 5:11:04 AM
Hi there,
Im attempting to write a piece of software that allows me to add a
barcode to a pdf document.
I build the document in asp.net code and populate text fields on the
document - at the same time i want to add a barcode onto the document.
Does anyone know how best to do this ??
Ar... more >>
Forms authentication and session expiration
Posted by Rippo at 6/16/2005 4:44:51 AM
Hi
I am using role base forms authentication in asp.net and have come
across a problem that I would like advice on.
On a successful login a session variable is set to identify a user.
This is all good as this session variable is used to retrieve data for
that user etc. However if I restart ... more >>
Integrated Windows Authentication, ASP.NET and FoxPro
Posted by Amedee Van Gasse at 6/16/2005 4:36:53 AM
Hello,
Since it is the first time I'm posting in these groups, I believe a
(short) introduction of myself would not be a bad thing.
I am mainly a support engineer, not a programmer. I do have some
experience with Java and LAMP (Linux/Apache/MySQL/PHP) but don't
consider me one of those bori... more >>
problem in httphandler using server.execute(please urgent)
Posted by sathya at 6/16/2005 3:04:51 AM
hi,
i have problem in httphandler, my problem is that when i am trying to
use server.execute(/default.aspx) i am getting error....
[Error executing child request for /Default.aspx]
Here i am trying to redirect from home.aspx to default.aspx (both file
isin sharepoint).I have give a co... more >>
Help with CheckBox List!!!!!!!!!
Posted by Patrick Olurotimi Ige at 6/16/2005 3:01:11 AM
if i do :-
<asp:CheckBoxList id="checkboxlist1" runat="server">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
</asp:CheckBoxList>
and on OnSelectedIndexChanged="Check_Clicked" do :-
Sub Check_Clicked(ByVal sender As Object, ByVal e As EventArgs)
Message.... more >>
IIS 6.0 architecture
Posted by wh1974 at 6/16/2005 2:18:56 AM
I've just been reading up on the architecture of IIS 6.0. There are a
couple of issues I would appreciate clarification on:
1. When IIS is running in "IIS 5.0 isolation mode", I assume that IIS
6.0 will still use w3wp.exe as the (out-or process) worker process.
Does this still run under the AS... more >>
Getting CheckBoxList selected values
Posted by Patrick Olurotimi Ige at 6/16/2005 1:40:14 AM
I 'm databinding a CheckBoxList control
Can somebody forward me a sample how to get if a checkBox is selected i
want to return TRUE and if not FALSE?
Thanks
*** Sent via Developersdex http://www.developersdex.com ***... more >>
FireFox and Opera
Posted by Aurelio at 6/16/2005 12:00:00 AM
I'm developing a Web application with ASP.NET and C# and i'm having problems
with Opera and FireFox. The controls don't appear situated correctly. Why?.
What ca i do?
... more >>
Can someone please reply me regarding CHECKBOXLIST QUESTION!
Posted by Patrick.O.Ige at 6/16/2005 12:00:00 AM
Relating to this link:-
http://authors.aspalliance.com/aspxtreme/sys/Web/UI/webcontrols/ListItemClas
sSelected.aspx
Its written that the ListItem.Selected returns TRUE or FALSE as Boolean
Value.
But when i select a CheckBoxList it returns TRUE when selected. But when
nothing is selected it ret... more >>
vb Re-direct script
Posted by Dam6 at 6/16/2005 12:00:00 AM
Evenin,
The code re-directs to a default.aspx page but what would I add to direct to
another page? (Thanks all)
<%
if dsLogin.RecordCount > 0 then
Session("sessUsername") = Request.Form("tfUsername")
FormsAuthentication.RedirectFromLoginPage("tfUsername.value", true )
else if ((Request.... more >>
Datatable
Posted by James at 6/16/2005 12:00:00 AM
Is it possible to store images in a datatable column? (blob)
... more >>
Problem with date in dataset. Need help. Thanks.
Posted by Shapper at 6/16/2005 12:00:00 AM
Hello,
In the [pubDate] field of a dataset the content in each row has the
format:
Fri, 20 May 2005 12:30:00 GMT
When I use:
<%# DataBinder.Eval(Container.DataItem, "pubDate", "{0:f}") %>
the content is not being recognized as a date.
Well, at least it is not formatted as a date. It ju... more >>
grant application permissions on server host
Posted by Andreas Zita at 6/16/2005 12:00:00 AM
Hi
I have some space on a server host where I put my asp.net applications.
However I (my app) doesn't seem to have write permissions to it's folders. I
want to save some log-files ~Server.MapPath("log.xml") but I have no access.
Can I configure my app directly from my own computer? by ftp? ... more >>
3rd part list controls (to replace SELECT)
Posted by Rob Nicholson at 6/16/2005 12:00:00 AM
Any recommendations for a 3rd party server control to replace the basic HTML
SELECT mechanism? We have encountered a problem with the control in the
NetAdvantage suite with their WebCombo and can't use the HTML SELECT
mechanism as IE ignores Z-INDEX value and always plonks them on top of
everyth... more >>
Hide when Empty. How to do this?
Posted by Shapper at 6/16/2005 12:00:00 AM
Hello,
I have this code line inside an ASP.Net Repeater:
<a href='<%# DataBinder.Eval(Container.DataItem, "link") %>'><%=
readMore %></a>
What I need to do is:
1. Show readMore value if <%# DataBinder.Eval(Container.DataItem,
"link") %> is not empty.
2. Show nothing if <%# DataBinder.... more >>
|