all groups > asp.net > december 2004 > threads for thursday december 9
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
How do I diagnose an error?
Posted by Kevin Burton at 12/9/2004 11:52:20 PM
I have an aspx page that is generating the error below. I want to solve this
problem but in general I would like to know how I might best approach
problems like this. Any suggestions?
Thank you.
Kevin
Server encountered an internal error. For more information, turn on
customErrors in ... more >>
binding same data to two controls
Posted by Darrel at 12/9/2004 11:32:00 PM
This is a followup to a previous question. I'm trying to grab some data and
bind it to two different dropdown lists. (same data in each one).
I can't seem to populate them both without resorting to what looks like two
separate queries:
Dim objConnect As New OleDb.OleDbConnection(strConnect... more >>
crystal problem
Posted by dzemo at 12/9/2004 9:56:47 PM
I have two applications: windows and asp and they have same report. I use
crystalreportviewer control to view report in both applications and when
print in windows I get one page but in asp.net applications I get two pages
(I remind it is same report). Why? any ideas?
--
-----------------... more >>
Tutorial
Posted by Jul at 12/9/2004 9:22:38 PM
Hi ,
I sure you already have read and answered such type of question but I check
some history and did not find the answer.
Can you advise something for asp.net for start, really start?
I am absolutely new for web development and I want to do some programming on
asp.net.
My previous exp... more >>
Web server not running ASP.NET v1.1
Posted by Andrew Chalk at 12/9/2004 7:57:35 PM
I have just moved a project to my laptop and get the message "Visual Studio
..NET has detected that the specified Web server is not running ASP.NET v1.1.
You will be unable to run ASP.NET Web applications or services"
Presumably there is a d/l on MSDN to rectify this, but I can't find it. Doe... more >>
SQL Question!
Posted by Vincent Choy at 12/9/2004 6:21:48 PM
Can anybody know how to set alias after 'where'?
select 1 as A, 2 as B,A-B as C from tbl where [B]=1
... more >>
Gif image editor
Posted by Simon at 12/9/2004 6:17:02 PM
Hi.
Where I can find a freeware simple gif image editor ? Best if it was an
visual studio 2003 plug-in.
Thanks
Simon
... more >>
Problem with Popup calendar control
Posted by Vishal at 12/9/2004 6:15:23 PM
Hey,
I have a popup calendar control implemented in a user
control. Now I need to send the date which the user has
entered manually in the textbox to that control via a
querystring. So I thought I could do something like this:
<asp:TextBox id="txbAddStartDate" Text="<%#SetTodaysDate... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
SQLConnection question
Posted by bnob at 12/9/2004 6:12:52 PM
Im my ASP.net project I do a lot of connection to the SQL Server
Database. I use a global variabe for my connection declare in a module
(VB.Net code behind)
All is ok but when I start a form from the default page it takes 30
seconds to show the resultat of a select request
And when, duri... more >>
What's the best way to do this
Posted by Chris at 12/9/2004 5:59:01 PM
Hi,
What's the best way to check if two or more textboxes are empty before
executing a task?
I have the foll which is NOT WORKING
If Not (txtDateFrom.Text Is Nothing) And (txtDateTo.Text Is Nothing) Then
.....DO THIS
Else
.....Do that
End If
Thanks... more >>
Send file
Posted by Franck Diastein at 12/9/2004 5:46:41 PM
Hi,
I'm trying to send a file to the browser with Response.Write, and it
works great.
The problem (I guess...) is that the code that sends the file is in a
class, and whan I load aspx file using the downloading method, I have
the request for file saving in my browser (and I can save the ... more >>
Redirecting via windowd authentication
Posted by darrel at 12/9/2004 4:40:38 PM
I'm trying to set up a usercontrol that I can put on specific pages to
authenticate people via their network login on our intranet. I have this in
the config file:
<authentication mode="Windows" />
<authorization>
<allow roles="ServerName\GroupName" />
<deny users="*" />
</authorization>
... more >>
Displaying text in an asp.net table
Posted by Craig HB at 12/9/2004 4:31:02 PM
I am using an asp.net table to display postings in a classifieds website.
This is a section of the HTM I am using...
<asp:table id="tblAdvert" Width="466px" Height="78px" runat="server"
BackColor="Gainsboro" BorderStyle="Solid" BorderWidth="1px"
BorderColor="Midnight... more >>
converting/casting before submitting
Posted by djc at 12/9/2004 4:28:39 PM
I have typically always used one of the VB CType functions (not CType itself
but CInt, CString, etc...) to cast/convert an input value to its proper type
before passing it as a parameter to a SQL stored procedure. I recently came
accross one I did not know how to handle though... TinyInt. I have ... more >>
Executing server event and Javascript event
Posted by Neven Klofutar at 12/9/2004 4:08:30 PM
Hi,
How can I acomplish following:
I want to create a file on server using onClick server event, and then I
want to open that file in new window using Javascript window.open(). How can
I do it ?
Thanx, Neven
... more >>
ASP.NET C# newbie
Posted by Craig at 12/9/2004 3:52:28 PM
How do I get the datagrid to page using C# in ASP.NET???
I have always used vb and to make a datagrid page the vb code that works
is..........
Private Sub DataGrid1_PageIndexChanged(ByVal source As Object, ByVal e
As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles
DataGr... more >>
Binding multiple table to a Data Grid
Posted by Nita Raju at 12/9/2004 3:33:00 PM
Hi,
I'm trying to build a datagrid that gets rows heading from records in one
table, columns heading from records in another table, and cell values from
records in a third table that maps the first and second to the cell value.
The primary keys of the first two tables are foreign keys in th... more >>
ASP/DataGrid/BoundColumn/Data formatting expression fo Date?
Posted by Volodymyr Lozovoy at 12/9/2004 3:14:32 PM
Hi All,
who suggest why subj do not affect on displayed result for date?
... more >>
Grid edit item : what gives some bound columns a back colour ?
Posted by Bazza Formez at 12/9/2004 3:07:22 PM
Hi there,
For some reason, when I edit row in my datagrid, some columns have (an
unwanted) back color of yellow, while others correctly display with white
back color.
I can see no setting in my datagrid that could do this...
How can I stop this from happening ?
Thanks,
Bazza
... more >>
response write and web form
Posted by Bill at 12/9/2004 2:52:14 PM
Is there a way to combine the use of a web form and the Response.Write
method? I am creating a search page with 1000's of results. The results
are to large to buffer so I want to use the response.write with buffering
tuned off. When I do this the results always shows before the form.
Any ... more >>
Retrieving data entered by user from Repeater Control
Posted by WebMatrix at 12/9/2004 2:49:07 PM
Hello
I have a data repeater control. Each row has set of <asp:net> controls.
DropDownList,TextBox and buttons. User can add new rows, delete excisting
rows and enter data.
When user is done entering data and submits the form (clicks "save" button)
what is the easiest way to retrieve all dat... more >>
Examine items in the ASP.NET cache added using the OutputCache directive
Posted by Edward Wilde at 12/9/2004 2:47:54 PM
Hi,
Does anyone know how to examine items in the ASP.NET cache that are added
using the OutputCache directive in framework 1.1
i.e.
<%@ OutputCache Duration="300" VaryByParam="None"
VaryByCustom="cmscontrol,cmsrole"%>
By examine I mean see their value, key and expiration time.
Che... more >>
IDE Question
Posted by Greg Smith at 12/9/2004 2:30:16 PM
Is there a drawing tool to drawn simple lines on a aspx page while you work
on it in the IDE?
Any help is greatly appreciated.
... more >>
How do i solve this error?
Posted by Miguel Dias Moura at 12/9/2004 2:24:47 PM
Hello,
I am passing some values in the URL like this:
....search.aspx?keywords=asp%20book
Then to split the words I use this:
Sub Page_Load(sender As Object, e As System.EventArgs)
string[] sr = Request.QueryString("keywords").Split(' ') ****
End Sub
I get this error on line ****... more >>
unable to relay with vb.net system.mail
Posted by Chris Thunell at 12/9/2004 1:42:32 PM
I am using the following code to send email out in a vb.net web program
through an exchange 2003 server. My web server is on a separate server.
When i try to send email inside the office, it works fine... but when i try
to send email outside the company i get "unable to relay" error message.
Pl... more >>
Problems in accessing pages from a local server
Posted by gemel at 12/9/2004 1:21:08 PM
I have a wireless networked peer-to-peer LAN and I can access web
pages on the Internet. I have a development platform for ASP and I can
access all pages on this machine by using the localhost address.
However, if I try to access the development machine from another
client on the LAN then I fail... more >>
ASP.NET + Crystal Reports
Posted by Manny at 12/9/2004 1:19:06 PM
I'm having a problem constructing an ASP.NET page that displays a Crystal
Reports .rpt file using the CrystalReportViewer Control. Everytime I execute
it from VS.NET 2003 it never loads and "hangs" my system (running on XP Pro
SP2), it doesn't show any errors on build or on runtime, it just st... more >>
Row / Column gets much bigger when editing a row in grid
Posted by Bazza Formez at 12/9/2004 1:12:40 PM
Hi there,
What determines the sizes of rows / columns / cells when a grid is in edit
mode ?
When I click the edit command of a row item, the whole grid 'bounces' to a
much larger size... and after update it reduces back again.
I have a custom crafted grid (AutoGenerateColumns = False) ...... more >>
image border in datagrid
Posted by Stephen at 12/9/2004 12:38:51 PM
Ever since I ported VB my webform to C# the images in the following
html have borders.
<asp:EditCommandColumn footerText="New Item" EditText="<img
src=images/edit.gif (border=0 alt='Edit line item'>" CancelText="<img
src=images/cancel_1.gif (border=0 alt='Cancel update'>"
UpdateText="<img src... more >>
Weird problem
Posted by Arthur Hsu at 12/9/2004 12:26:26 PM
Hello,
I have an ASP.NET page with a form
<form id="myform" method="post" runat="server">
<asp:panel id="pnl1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute;
TOP: 8px" runat="server"
Height="572px" Width="360px">
<asp:button id="cmdSubmit" runat="server" Text="Submit"></... more >>
I really need a pros help here
Posted by Chris at 12/9/2004 12:25:07 PM
Hi,
I have been trying for days, yes days, to use the calender from the asp.net
timetracker starter kit. I am now frustrated. I finally get the popup
calender to popup but when I click ok to insert the date to the calling page
I get the error
"A runtime error has occured
Line 14
Er... more >>
Non IE brower issue
Posted by Duncan Welch at 12/9/2004 12:15:43 PM
I've got a very simple bit of code that needs to work with IE, Firefox, and
Opera on the PC and the Mac:
Sound Bite: <asp:TextBox ID="txtEditSoundBite" Width=500 height=600
TextMode="MultiLine" Runat="server" />
On IE on the mac and PC, it renders fine as I'd expect:
Sound Bite: <textarea nam... more >>
Best way to use Global variable
Posted by bnob at 12/9/2004 11:50:24 AM
I have to keep a variable (integer) during the navigation of my asp.net
project (vb.net code behind).
So actually I use a module where I declare a global variable
Public MyGlobalVariable as integer
In all my form I refer to this variable with MyGlobalVariable .
Is this method the best ... more >>
Usercontrol not rendered in table
Posted by Anon at 12/9/2004 11:47:08 AM
I am programmatically populating a asp.net table control with my usercontrol
(PictureBox.ascx) which is basically an assortment of an imagebutton, Label
and a Linkbutton. Now while debugging the application i can see that the
control is being initialized properly (by setting the imgurl and tex... more >>
Error running ASPNET_RegIIS -c
Posted by JStemper at 12/9/2004 11:37:05 AM
On one of my localhost sites I'm getting a message to run aspnet_regiis -c to
correct some scripting issues.
When I try to run the listed command I get another error:
"You must have administrative rights on this machine in order to run this
tool."
I have verified that I have administrati... more >>
ViewState too large
Posted by clsmith66 at 12/9/2004 11:19:10 AM
Is it possible to store the same information about a control that would be
saved in the ViewState in a Session state? I have a page with three treeview
controls and if I enable the view state for the controls I get huge delays on
postbacks, but if I disable the viewstate I lose all my informa... more >>
How to run this when page loads?
Posted by Miguel Dias Moura at 12/9/2004 11:16:54 AM
Hello,
I have an ASP.NET/VB web page (search.aspx) with a search form.
When the button is pressed the keywords are passed like this:
Sub searchClick(sender As Object, e As System.EventArgs)
Response.Redirect("search.aspx?list=" & Request.Form("keywords"))
End Sub
To split the keywords ... more >>
AutoPostback
Posted by JJ at 12/9/2004 11:16:41 AM
Hi,
If a control has autopostback set to true does that mean when the control
losses focus then the page will postback again? A submit button will do the
same thing as a control, lets say for interest sake a datalist control with
autopostback set to true, both of these controls are causi... more >>
Site deploy issues
Posted by DaveF at 12/9/2004 11:14:33 AM
Anyone have any idea what this is?
Server Error in '/admin1' Application.
----------------------------------------------------------------------------
----
Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application preve... more >>
Trace.axd
Posted by cameron at 12/9/2004 11:00:23 AM
I have attempted to lock down the trace.axd file with the standard:
<location path="trace.axd">
<system.web>
<authorization>
<allow roles="SOME GROUP"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
in my webconfig file. ... more >>
Datagrid : massive headings when no data to display
Posted by Bazza Formez at 12/9/2004 10:53:14 AM
Hi there,
I'm new to this... This is a visual formatting problem.
I have two web forms that relate to each other in a master / child type
manner.
Select a table row in the datagrid on the master form (Clients), and you are
redirected to another form showing the children (Client Contacts i... more >>
DLL Lock Issue
Posted by Programmer at 12/9/2004 10:46:19 AM
Hi everyone
Well here is my problem
I hope you can help me
I have a web application. My web application is 4 different dlls
1. The First DLL is a Class library with shared routines and staff like that
(VB Project)
2. The Second DLL is an ASP .Net application and it's the shel... more >>
formatting text using buttons
Posted by Bart Schelkens at 12/9/2004 10:45:14 AM
Hi,
i know i'm not in the right place here but i'm still hoping one of you can
help me.
I have created this website using asp.
Now my boss wants me to add some buttons so the user can format some text of
his own.
Just bold, italic, underline.
I've been trying to find some javascript t... more >>
Enforcing user roles
Posted by VB Programmer at 12/9/2004 9:58:13 AM
I am using Forms Auth in my aspx site.
How do I enforce user role security PER PAGE. These files are in the same
dir.
Ex:
Admin1.aspx - Only admins can view
Role2.aspx - Only admins AND role2 can view
Page3.aspx - Only admins, role2 and role1 can view
PageX.aspx - Everyone can view
Wou... more >>
Session Timeout error- when browser not used for more than 5 minut
Posted by GP at 12/9/2004 9:45:04 AM
We get " Object reference not set to an instance of an object. "
error in all the links whenever the browser is not used for more than 5
minutes.
In IIS 5.0 version we are setting the session time out to 60 minutes.
Please let me the know solution if any knows the answer.
Thanks
GP... more >>
Session_End questions
Posted by MattB at 12/9/2004 9:42:31 AM
Hi. I have a couple of questions regarding the Session_End event. I have
some clean-up code in this event and it does fire when the session times
out, which is good.
I also want to have this (or similar) code fire when the session ends
prematurely, like when the browser window is closed or ... more >>
Urgent SendMail Problem
Posted by Andrea Williams at 12/9/2004 9:39:51 AM
I have been using this code for a while now and I haven't changed this code
for at least a couple weeks... I do not suspect the code. The error I'm
getting is the following:
Message: Could not access 'CDO.Message' object.
StackTrace: at System.Web.Mail.LateBoundAccessHelper.CallMethod(Obje... more >>
ASP.Net doesn't like my ServicedComponent class? [C#]
Posted by Jim Bancroft at 12/9/2004 9:32:51 AM
Hi everyone,
I have a toy class that inherits from ServicedComponent and a
hand-crafted interface. It looks like this:
[Transaction(TransactionOption.Supported)]
public class myclass: ServicedComponent, IReadData //IReadData is the
hand-blown interface
{
public string GetStr... more >>
How to get DataField value of a cell
Posted by Dinçer at 12/9/2004 9:20:47 AM
Hi all!
I want to get the datafield value of a cell in a datagrid item. How can I do
this?
I have a for loop (as below) and I am able to get the data in the cell, but
not the datafield value.
Regards.
foreach(DataGridItem dataGridItem in MyDataGrid)
{
string cellText = dataGridItem... more >>
So tired of this bug
Posted by Thomas Andersson at 12/9/2004 9:19:04 AM
Hi,
I am so so tired of getting this error message when I try to open a web
project or create a new one:
The web server reported the following error when attempting to create ot
open the web project located at the following URL: 'http://localhost/...'
A connection with the server could ... more >>
Beginner problem with IF statements
Posted by Karen at 12/9/2004 9:09:14 AM
Hi,
I'm just working on my first ASP.net site, and I'm having some problems.
In standard ASP I can easily display output based on whether any content
exists for the database field I'm displaying, but I can't seem to work
out how to do the same thing in ASP.net.
What I'm trying to do is dis... more >>
web.sitemap and roles
Posted by aa at 12/9/2004 9:06:13 AM
Where is using in APS.NET 2.0 "roles" key on sitemapnode in web.sitemap
... more >>
Set Focus to a Text Box Field on a User Web Control
Posted by Mike Moore at 12/9/2004 8:21:02 AM
I would like to set focus to a text box field on a user web control. Does
anyone have suggestions on how I should approach this? ... more >>
Huge Web form
Posted by savsol NO[at]SPAM savtech.net at 12/9/2004 8:02:18 AM
Hi!
I've a large form containing 600 fields (mix of textbox, checkbox,
radiobuttons) i've broken the form in 10 parts (more or less with same
number of fields) using web control, so if you press a button a
particular part (1 of 10) will be loaded.
My problem is how to save these part-forms in... more >>
Remind me please about custom error handling
Posted by vbMental at 12/9/2004 7:55:06 AM
I am deep into a project and cannot get this to work correctly.
I am trying to make a custom error page that will be able to know what
exception occurred. I already know about the defaultRedirect page -
<customErrors mode="on" defaultRedirect="Error.aspx"/>
But how do I reference the except... more >>
Track HTTP Request Data.....
Posted by Lalit Singh at 12/9/2004 7:20:34 AM
Is there anyway I can log the HTTP request coming to IIS5? I wanted to track
some human readable data in a web based application
(asp.net/vb.net/.NetFramework 1.1)
Thanks,
Lalit
... more >>
Performance Q..
Posted by Lalit Singh at 12/9/2004 7:16:35 AM
My development environments are ASP.Net and VB.Net and .NetFramework1.1.
I remember reading "using less number of session variables is good for
application performance".
Now instead of using 20 session variables, I can use one session variable
which carries the data for all the 20 variables ... more >>
I get declaration error - When I past it on the next line and comments out the old, the syntax works... why?!?
Posted by kiko1kiko1 NO[at]SPAM hotmail.com at 12/9/2004 7:06:38 AM
I download and grab a .NET solution from Vault and open it on my local
computer.
It works fine - I can compile it - no problems.
But when I check it out and do a small changes in any classes. I got
many
strange syntax errors. Some variables are not declared exc. When I
copy and
past the dec... more >>
Deploying an asp.net application
Posted by seed at 12/9/2004 6:02:18 AM
Hi,
I have deployed my asp.net application on a webserver.
The funny thing is that when I try to run the program from
the webserver.. I receive a runtime error.. but when I run
the application from my development machine.. everything
looks good.
The webserver has .NET framework 1.1 instal... more >>
performance
Posted by meir at 12/9/2004 5:57:15 AM
i have 2 general questions about performance:
1. i heard that using <%# databinder.eval(....)%> will
effect the performance and i wanted to know it that's
corrent.
2. also about performance - does is matter if we use
codebehind or writing <script> tags in the aspx page? or
once compiling t... more >>
Excel Formats
Posted by Jim Heavey at 12/9/2004 5:31:06 AM
When I create a DataGrid and choose one of the "nice" formats and then use
the DataGrid1.RenderControl method to write out all of the HTML and then
look at the Excel file, it maintains the coloring scheme.
When I create a Table manually and place various cascading style sheet
parmaters in ... more >>
ASP.NET Rewrite to a different app
Posted by n8wrl NO[at]SPAM arrl.net at 12/9/2004 5:20:17 AM
Good morning all!
I have several sites with 'introductory' pages, from which users pick
more specific 'sites' to visit - like www.bogus.com/somesitename/blah.
I look up 'somesitename' in a DB to form a url like
www.bogus.com/TheRealThing/blah?ID=123, where 123 came from
'somesitename' in the ... more >>
ASP.NET newbie
Posted by f.blair at 12/9/2004 4:58:41 AM
What do I need to install to get ASP.NET to run on my home PC. I would like
to do some of the examples, but don't know what has to be running.
I have downloaded and installed the .NET Framework and the ASP.NET
Framework.
Thanks, Fred
... more >>
adding days to a date, bypass weekends
Posted by dhnriverside at 12/9/2004 3:19:01 AM
Hi
I have a date in UK Format (dd/mm/yyyy). I want to get a series of days
after that date, but NOT Saturday or Sunday
For example, if the date is 13/12/2004 (next Monday) and I get the next 9
dates, I want to end up with a full list like.. 13, 14, 15, 16, 17, 20, 21,
22, 23, 24 (2wks, m... more >>
validating a listbox
Posted by dhnriverside at 12/9/2004 2:35:01 AM
Hi
How do I validate a Multi-select listbox to make sure at least 1 item is
selected?
Cheers
Dan... more >>
Cooliless State - Image unavilabe
Posted by karthikeyan at 12/9/2004 12:32:25 AM
Hi,
I am having some problems hosting my website. Everything works fine in
my local machine but when I upload to propduction server, my images
won't load properly. I have my state configuration like
this in my web.config:
<sessionState
mode="InProc"
stateCon... more >>
|