all groups > asp.net > october 2004 > threads for friday october 1
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
Object reference not set to an instance of an object??
Posted by Reapes at 10/1/2004 11:23:35 PM
Hi Group,
I wonder if any smart people out there can help me ...
I keep gettng Object reference not set to an instance of an object whenever
I run my aspx page.
I cannot understand why I keep getting this as a while ago this page worked
fine with as far as I can tell no modifications. I... more >>
asp.net form processing
Posted by John at 10/1/2004 11:04:21 PM
Hi
I want to make a form that user can fill in and submit. I previously
processed the form post in an asp script and sent the entries as email to a
recipient using cdo. How does the form processing differ in asp.net?
Secondly, what is involved in adding a multiple files upload facility to th... more >>
User Controls/Design Best Practices
Posted by NathanV at 10/1/2004 9:45:06 PM
In traditional ASP I used to pretty much replicate what is now being done in
ASP.NET 2.0 with the master pages. I would create a header include file that
included everything up to the main content cell, and a footerthat included
the rest. I've been creating header user controls in asp.net bu... more >>
DataBind
Posted by Jim Heavey at 10/1/2004 7:25:06 PM
I'm trying to figure out what is wrong with this statement...
Text='<%# DataBinder.Eval(Container.DataItem, "EventStartDate", "{0:d}")%>'
This is in a textbox. I'm using the exact format of this statement as a
stand along value (not embedded in an ASP control), but when I place it into
t... more >>
how to make a user control that uses templates?
Posted by bennett NO[at]SPAM peacefire.org at 10/1/2004 5:04:48 PM
Are there any samples of how to create a user control that uses
templates, like the <ItemTemplate> and <HeaderTemplate> of the
Repeater control?
I tried searching for user control samples on the Web but couldn't
find any that used templates.
What I'm (still) trying to do is display a hierar... more >>
Stored procedure or view?
Posted by Justin at 10/1/2004 4:49:07 PM
I am creating a web app for a client in VS.NET using ASP.NET with C#. I need
to query three tables in a database using one parameter and display the
results on the page. my question is should I use a Stored Procedure or view
in SQL Server to get the data from multiple tables? What is the diffe... more >>
Complete newbie.... Therefore, I've got a few questions...
Posted by Newbie at 10/1/2004 4:33:07 PM
Hi
I'll be blunt: I'm a newbie to .Net, and a lot of the concepts can be
confusing to me at times
So basically, I'll start off with a little intro:
I'm fairly proficient with "classic" ASP VBS applications development, but
I'm attracted to .Net from all the hype about how "its better ... more >>
Convert Currency-formatted string back to decimal
Posted by KB at 10/1/2004 3:44:18 PM
Hi guys,
In my DataGrid I have a column that displays decimal values as currency ( I
set the Data Formatting expression of that column to {0:C}). So the actual
string displayed in the grid looks like $2,295.99.
For each row I need to do some additional calculations based on this value,
so I n... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Connection string in Web.config
Posted by GaryB at 10/1/2004 3:42:21 PM
In a large asp.net project we have always kept our connection string in the
Web.config as so....
<appSettings>
<!-- User application and configured property settings go here.-->
<!-- Example: <add key="settingName" value="settingValue"/> -->
<add key="connCP.ConnectionString" value=" blah,... more >>
ASP.NET Page "Redirection"
Posted by Ryan Moore at 10/1/2004 3:37:57 PM
I'm working on an ASP.NET project and would like to have calls to
directories map to certain querystring paths.... for example, I would like
http://localhost/myapp/somedirectory/
to actually request
http://localhost/myapp/main.aspx?pg=somedir
Is this possible?
thnx
... more >>
Request.ServerVariables("Logon_User")
Posted by T. at 10/1/2004 3:14:31 PM
Hello,
I'm trying to pull the logon user's name using
Request.ServerVariables("LOGON_USER")...which is returning nothing...so I
need help in determining why it's returning nothing, or I need the format in
which it returns the username so that I can hard code it. Does it return
anything with ... more >>
Multi-value selection box issue
Posted by Julia at 10/1/2004 3:05:26 PM
I have a multi-value drop down box (<select name="Users" multiple>...)
When my form is posted, i can read Request.Form.Item("Users"), a string that
contains all values separated by comma. The problem is, that each value
itself can contain comma as well, in which case i have no way to separate m... more >>
Set webcontrol properties before control is rendered?
Posted by PokerJoker at 10/1/2004 2:55:07 PM
I have a web control that has a property of UserId.
I need to set the userid before rendering the control, because based on who
is logged in, it displays something different.
If I set the properties in page load for the page the control is placed on,
it seems that is post render because... more >>
listbox horizontal scroll?
Posted by Tina at 10/1/2004 2:49:56 PM
Am I missing something or does the listbox web control not have a horizontal
scroll capability?
Thanks,
T
... more >>
viewstate question??
Posted by Raed Sawalha at 10/1/2004 1:43:43 PM
Hi
I have created a usercontrol in which I save a value in viewstate like this:
ViewState["myValue"]=value;
If I use the same key (ViewState["myValue"]=value;) in my master page, does
the framework recognize where the value comes from ? Or have I to set
ViewState["myValuefrommyusercontrol"]=v... more >>
FormView Control
Posted by sck10 at 10/1/2004 1:37:03 PM
Hello,
I just started learning about the formview control in asp.net 2.0. I am
using the following. The problem I am having is that the data is not showing
on the web.
<form id="form1" runat="server">
<div>
<asp:FormView ID="DetailsView1" Runat="server" >
<ItemTemplate>
<tab... more >>
return a collection from class
Posted by TJS at 10/1/2004 12:49:43 PM
from a code class,
a] how does one dimension a collection and then
b] after it is created, reassign it in the page ?
I'm getting only errors on line of code in the page.
"System.NullReferenceException: Object variable or With block variable not
set "
example :
------------------
... more >>
generate a multipage form from a database
Posted by nabil m at 10/1/2004 12:25:22 PM
hi i am using c# with sqldb in visual studio
i have a small realtional database that contains data informaiton about
clients who filled out an automobile isnruance form -this form has like 5
tables and a lot of 1-to-many relationships
can i generate a multipage form from my database table fi... more >>
File upload status
Posted by Brian Henry at 10/1/2004 12:06:49 PM
I am uploading a file from the file input box (textbox with a browse button)
but when you tell the file to upload the client doesn't see anything happen
until its done uploading... I'd love to provide some kind of visual feedback
(an animated image or something while it happens to show its goi... more >>
Access Session Object from DLL
Posted by bob garbados at 10/1/2004 11:55:38 AM
I'm trying to access the Session Object from a vb.net DLL in my asp.net
application.
If I use this code:
System.Web.HttpContext.Current.Session("some_var")
I get this error: BC30456: 'HttpContext' is not a member of 'Web'.
What am I missing?
... more >>
writing to a file from a dll
Posted by Kristof Thys at 10/1/2004 11:49:17 AM
Hello,
I'm writing a webservice in ASP.net, wich uses a dll. In this dll I'm
trying to write to a temporary file. But this does not seem to work.
When I build the dll as an exe it works perfect.
Is there something wrong with write permissions, and where should I
adjust this?
grtz,
... more >>
Remote Debugging: Access Denied Error?
Posted by James at 10/1/2004 11:31:44 AM
I have reached the pulling hair out stage with this now:
I am trying to remotely debug my aspnet applications on our intranet web
server.
The server is running Win2K Server, SP4.
It is a domain controller.
I originally installed IIS & then the .NET framework. I now want to remotely
debug... more >>
Error "Login failed for user ..."
Posted by fl at 10/1/2004 11:05:27 AM
I am running ASPNET on my local machine. I have a problem when I try to
connect to a SQL server database table. The data looks good when I right
click SqlDataAdapter1 to preview the data. When F5 to run it, I get this
error "Login failed for user '(null)'. Reason: Not associated with a
trusted S... more >>
performance question
Posted by Mike at 10/1/2004 11:03:06 AM
Lets just say my app is done HOO HOO.
Now, I'm accessing the database via a web service and one thing i noticed
that my app is running real slow. When I first started working on the app is
ran pretty quick returned the data to the screens in about 2 - 3 seconds. Now
its going about 5 - 10 s... more >>
SELECT permission denied...
Posted by Lastie at 10/1/2004 10:59:04 AM
Hi all,
I’m an ASP developer but I just started to try and learn ASP.NET. I have
the following code but it seems like I have a permissions problem.
<%@ Page Language="VB" Debug="true" %>
<%@ import namespace="System.Data" %>
<%@ import namespace="System.Data.SqlClient" %>
<%
Dim con... more >>
Tabstrip
Posted by Bart Schelkens at 10/1/2004 10:57:16 AM
Hi,
I have this website that consists of 2 frames.
In my topFrame I have a tabstrip.
What I am trying to do is, when you click on a tab, the corresponding page
is displayed in my mainFrame.
I can't seem to find how to do it.
Can anyone help me?
Thx.
... more >>
Create a temporary download link?
Posted by Asaf at 10/1/2004 10:49:25 AM
Hi,
Is there a way to create a temporary download link and to know when the
client has finished downloading the file?
Thanks in advanced,
Asaf
... more >>
ASP Frameset with ASP.NET Content Frame..
Posted by Cleave NO[at]SPAM bigfoot.com at 10/1/2004 10:45:58 AM
Hello,
I have a ASP application that I can't afford to convert totally
over to ASP.NET, but currently I am converting the content pages that
display in the content part of the ASP frameset. When a user performs
some action the left nav frame should update (in ASP world), but with
ASP.net, I... more >>
Populating a datagrid ... how is it done normally?
Posted by Prime at 10/1/2004 10:44:29 AM
Hi All ...
I'm writing a small shopping cart app (school assignment) and need to list
all the books that a user selects.
I have created a "BookBasket" object that contains among other things an
arraylist of the user selected books. The "book" object contains isbn,title
price and quantity in... more >>
question about grid columns
Posted by Nikhil Patel at 10/1/2004 10:25:17 AM
Hi all,
What is the best way to allow the administrator of the application to
select which columns are displayed in a Databound grid in an aspx form. I
was thinking of creating a form and display all possible columns with a
checkbox. The admin would check the checkboxes for each column they wa... more >>
Find controls ?
Posted by TM at 10/1/2004 10:22:50 AM
What is the method used to find all asp.net server controls (run at server)
such as TextBox, ListBox, CheckBox... currently defined on an Asp.Net page
at run time. I need it inside of a controlled loop (for int i=...).
Reason: I need to fill up an updatable dataset with all fields entered on ... more >>
HTML / ASPX image
Posted by tma at 10/1/2004 10:19:36 AM
I have the following HTML in use on my web page. I need it to show a graphic
image on the page but do not know what to use in the codebehind to make the
graphic appear. If I load the source url in a browser by itself, the graphic
appears, but when I use the tag in a web page it does not. Anyone h... more >>
Access to Session from my class
Posted by Dave at 10/1/2004 10:05:37 AM
Hello.
I have created some class and want to access session data, but there is
error message: The name 'Session' does not exist in the class or namespace
'MyApp.MyWebApp.MyClass'.
So how can access Sesstion from my custom class (class is in separate file,
not in web form)?
... more >>
Postback is TRUE on refresh?!
Posted by Paul W at 10/1/2004 10:04:22 AM
For debugging purposes, I have the following in Page_load:
Response.Write("postback is " + IsPostBack.ToString + Now.ToLongTimeString)
i
When I view my page in IE, if I hit F5 (refresh), it tells me (as expected)
that IsPostback is False.
If I then hit a submit button on the page it... more >>
switching between release and debug version
Posted by Stefan Landgraf at 10/1/2004 9:55:23 AM
Hi,
is there a way to switch between release and debug version at
runtime (e.g. with web.config settings) in an ASP.NET project?
Thanks for any hint!
Stefan
... more >>
How to display multiple spaces in a dropdownlist?
Posted by anonieko NO[at]SPAM hotmail.com at 10/1/2004 9:51:44 AM
>
>
>
How to display multiple spaces in a dropdownlist
webform1.aspx
<asp:DropDownList id="DropDownList1"
runat="server"></asp:DropDownList>
VB.NET Code
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initiali... more >>
RequiredFieldValidator Will Not Submit Form
Posted by paul.hethmon NO[at]SPAM inslogic.com at 10/1/2004 9:41:27 AM
I've got a strange behavior on a new machine. I cannot get a web page
with a RequiredFieldValidator to submit the form.
My test case is simply a new project, add a textbox, a label, a
button, and a required field validator. Connect the ReqFV to the
textbox. In the onclick event for the button,... more >>
is this possible
Posted by Mike at 10/1/2004 9:03:08 AM
can this be done?
I want to display different web user controls based on the selection from
the user.
... more >>
Is it possible to add a description to methods of a class?
Posted by david.wade NO[at]SPAM raymondjames.com at 10/1/2004 8:51:55 AM
I'd like to have a description included in the tool tip
(intellisense?) when I call a method from a class I wrote. Just to
make sure I'm describing this correctly, I'm talking about the yellow
box that comes up with I call the method in code that shows what
parameters that method required. Is ... more >>
AUTH_USER & User.Identity.Name?
Posted by Dave at 10/1/2004 8:43:03 AM
Hi,
I have a dev machine, part of a domain, with a site set to Integrated
security only. I want to determine the username of person accessing the
page. When I run the page with the following code:
Response.Write(Request.ServerVariables["AUTH_USER"]);
Response.Write("<BR>");
Response.Wri... more >>
Loading assembly from the bin
Posted by JMM B at 10/1/2004 8:30:51 AM
Microsoft MOC 2063 says that i can put an assembly in the bin directory
of an AspNet application and instantiate the classes using
Namespace.Class. This works with Framework 1.0, but i didn't manage to
make it work with Framework 1.1.
Anybody knows anything about it?
thanks a lot.
*** Sent v... more >>
Make cells in Table webcontrol 'clickable'?
Posted by Paul W at 10/1/2004 8:21:48 AM
I'm using a Table webcontrol to display a 'grid' to the user. Various cells
should be 'clickable' by the user (to run javascript). How can I make this
happen? (currently I use the background cell color to indicate to the user
which cells are clickable).
(I think I could achieve this by addi... more >>
validation controls not working on target machine
Posted by David C at 10/1/2004 8:08:32 AM
I have validation controls that work flawlessly on the development machine,
but not on the target machine. They just get ignored. Plain and simple.
I've checked the files in aspnet_client and they seem to be all there. It's
not my browser. Other client browsers are seeing the same thing.
... more >>
Run command to fix my IIS with ASP .NET
Posted by Danny J. Lesandrini at 10/1/2004 7:40:27 AM
OK, I've done this before but I can't remember the syntax.
My ASP .NET server isn't working right. It has some quirky
stuff that usually happens after installing a service pack.
What is the run command to reset -- fix -- ??? my IIS install?
Something like aspiisreg or regissasp or somethin... more >>
ASP.NET
Posted by mathon at 10/1/2004 7:33:09 AM
Hello,
Because of some problems i had to install my IIS once more, now when i start
VS.NET and want to open an ASP.NET Web Application the following notification
occurs:
Visual Studio.NET has detected that the specified Web server is not running
ASP.NET version 1.1. You will be unable to... more >>
Is there a way to "step into" the dataadapter.update command?
Posted by david.wade NO[at]SPAM raymondjames.com at 10/1/2004 6:38:41 AM
I'm having trouble using the update command of a dataadapter. It
would help if I could watch it go through each record in the datatable
and see what it's doing. Is there a way to do this? Also, is there a
way to see the actual sql statements it's executing, with the value of
the parameters, f... more >>
number of online users?
Posted by Esref DURNA at 10/1/2004 5:13:03 AM
how I could count the number of online users with asp .net?
which complement should i use?
... more >>
Convert password ? IN asp.net...Urgent..
Posted by Daniel at 10/1/2004 4:43:02 AM
Hi,
Does anyone know to convert the string of password into binary format.
And convert the binary password back to string format .
thanks in advance.
daniel.... more >>
Local Maibox .. Urgent..
Posted by Daniel at 10/1/2004 4:43:02 AM
Hi.
Does anyone know to send a mail to local mailbox and read from it..
Need any configuration //??
Thanks in advance..
daniel.... more >>
MS SQL/.NET Performance
Posted by news at 10/1/2004 2:37:42 AM
I use MS SQL and .Net on a dedicated server (1GB), but the speed of db
access is very slow.
Are there any methods/software to improve speed of access to db?
Will more memory help?
... more >>
Changing ListBox order with Javascript - changes lost on PostBack
Posted by James at 10/1/2004 2:17:02 AM
I have up and down buttons on my web form which execute Javascript to move
the selected list item up or down in the list.
However, when I post the form back to save the list order in a database, the
original list order is still present and all changes are lost.
Any ideas on how I can overc... more >>
I am getting what I think is a permission error.
Posted by newbie at 10/1/2004 2:15:06 AM
I have a .net application that I am trying to run on my XP Professional
Laptop. I have gone through all the posts and they say to set the asp.net
user to have access to the folder. But I do not know where to set this, I
have gone into IIS and hit properties, I have gone in windows explorer,... more >>
Nested Master pages
Posted by Lakshmi Narayanan.R at 10/1/2004 1:35:27 AM
Hi Experts,
Working with Visual Web Develope 2005 Express, as per the example given in
the URL http://msdn2.microsoft.com/library/x2b3ktt7.pf
, the following error comes. "Could not find any attribute 'Master' of
element 'Master' ". The
attribute available there is 'MasterPageFile'. So, ... more >>
|