all groups > asp.net > june 2004 > threads for sunday june 20
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
newbie question on Web Setup Project
Posted by Raymond Du at 6/20/2004 11:01:23 PM
Hi,
In VS.Net, to create a new project, there is a "Setup and Deployment
Projects" project type and inside it there is a "Web Setup Project"
template. Can somebody explain what it is for?
I was told to deploy an ASP.Net application, all I have to do is to copy
aspx files from development to ... more >>
Width of control
Posted by Thomas Scheiderich at 6/20/2004 10:48:19 PM
I have a calander control that is inside a large cell. I have the width set
up to "Width='100%'". What I would like it to do is be 50 pixels less that
the 100% so that it would always be a blank area on either side of the cell.
Something like Width=100%-50 (I know this is not valid - just to il... more >>
Trying to make this simplier..need a little help
Posted by TN Bella at 6/20/2004 10:27:40 PM
I have 14 more textboxes called txtRefNum that need to have lead zeros
added if the input is less than 9; the below code works with one, but
can someone help make it use txtRefNum - txtRefNum14? Thanks...
If txtRefNum.Text.Length < 9 Then
txtRefNum.Text = txtRefNum.Text.P... more >>
Username on client computer
Posted by EMW at 6/20/2004 10:11:24 PM
Hi,
For tracing and other thing I need to know the username of the user who is
logged in to the pc on which (s)he is running my ASPX page.
I was using:
System.Security.Principal.WindowsIdentity.GetCurrent.Name()
But that provides me with: SERVERNAME\ASPNET
I was hoping for the windows lo... more >>
Help! Need to add lead zeros to a textbox input
Posted by TN Bella at 6/20/2004 9:07:40 PM
I have a simple text box called txtrefnum, if the user enters a number
length less than 9 characters long than I need to have lead zeros
added to it. Does anyone know how to do this? I couldn't find anything
online on the subject...
<asp:TextBox id="txtRefNum" runat="server"></asp:TextBox>
... more >>
Need help! I need to add lead zeros to a textbox
Posted by tina.pardi NO[at]SPAM nav-international.com at 6/20/2004 8:55:52 PM
I have a simple text box called txtrefnum, if the user enters a number
length less than 9 characters long than I need to have lead zeros
added to it. Does anyone know how to do this? I couldn't find anything
online on the subject...
<asp:TextBox id="txtRefNum" runat="server"></asp:TextBox>
... more >>
Can't render User Control in an ASP.NET page
Posted by sgelfmann NO[at]SPAM yahoo.com at 6/20/2004 6:44:50 PM
I am new to ASP.NET. So I am trying to learn from the book I just
bought. There is a simple example of how to build a user control
which I religiously typed into the Notepad, but the results are not
what was expected.
Here's what I did.
First, I created the user control and saved it in a file... more >>
vs.net creates doctype wrong?
Posted by Ian at 6/20/2004 1:08:56 PM
Hi there,
I have been playing around with DIV TAGS in dreamweaver and just created a
webpage in VS which I was going to edit later in Dreamweaver..
Once i attached all my divs and css etc, the css positioning wasn't working
but I fixed it
it was this line ... it needs to be this
<!DOCT... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
404 errors and Server.Transfer
Posted by Shaun Wilde at 6/20/2004 12:39:40 PM
I am trying to handle a 404 errors and redirect them to the correct page
based on criteria
I was hoping to catch the error in the global error handler and forward via
Server.Transfer to the correct page such that it would appear to be the page
requested. ow this does work to a fashion but it s... more >>
Expected ; in ASP page...
Posted by jgarringer NO[at]SPAM danville.k12.pa.us at 6/20/2004 12:36:43 PM
Hello All,
I'd like to get the network username by using the
Request.ServerVariables("AUTH_USER"). The code I've got is pretty
simple yet I am getting error. If the user does not logon they should
get a msg saying that they must logon, otherwise I wanted to place the
username in label1.t... more >>
Re: Survey Module?
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/20/2004 12:12:27 PM
Helen,
There is a Survey Module in DotNetNuke: -
http://www.dotnetnuke.com/Default.aspx?tabid=467
Hth,
Phil winstanley
Microsoft ASP.NET MVP
http://www.myservicescentral.com
... more >>
Re: 404 errors and Server.Transfer
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/20/2004 12:10:30 PM
Shaun,
What part of your code is not working? The Session should be completly
accesible within the Application_OnError event.
Hth
Phil Winstanley
Microsoft ASP.NET MVP
http://www.myservicescentral.com
... more >>
Re: check for client dll??
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/20/2004 12:07:56 PM
Lyndon,
Why don't you write a small application that users can download and run
that does all the work? This is a client side thing - ASP.NET won't be
of much use unless you want to get in to server side programming using
Impertsonation and WMI.
Hth,
Phil Winstanley
Microsoft ASP.NET MVP
... more >>
Need help with ListBox.SelectedIndexChanged
Posted by Keith Selbee at 6/20/2004 11:49:50 AM
I have a ListBox and a corresponding SelectedIndexChanged event and within
that event need to determine which item is selected, but it always comes
back as 0 (I'm not setting anything selected in my PageLoad). How can I get
the index of the item selected?
Keith
... more >>
FormsAuthentication - <http://localhost> Works, <http://RealMachineName> Does Not
Posted by T. Regan at 6/20/2004 11:43:00 AM
I have a test app where I have Forms Authentication set up.
When I build and run the app as http://localhost/testapp/login.aspx, it runs
correctly. I get the login prompt and the proper redirection to the secured
page.
When I run the app as http://<RealMachineName>/testapp/login.aspx, I get... more >>
ASP.NET VB
Posted by Ammar at 6/20/2004 9:16:19 AM
Hi
i strated surfing through the sites i got from this newsgroup for learning
..NET, I know how to use HTML,DHTML,Javascript, VBscript, ASP, CSS and some
SQL, but the ASP.NET tutorials are rather confusing! Do i have to know
Visual Basic before learnign ASP.NET? are there any other requiremenets... more >>
DataReader Error if DB Column blank
Posted by dazzalondon at 6/20/2004 6:30:02 AM
Hi there.
I have various pages in an ASP.NET applicaiton and in the Page_load event I have data being read from a SQL DB filling textboxes on the page
Now, sometimes the fields in the DB will be blank and I would a 'Invalid attempt to read when no data is present.' error.
I have tried to im... more >>
Re: Dynamic user control loading/initialising
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/20/2004 5:59:21 AM
Jo,
Why don't you try something like this: -
Page_Load(...)
{
if (!Page.IsPostBack)
{
//First Load, Populate the Drop down list.
}
else
{
//Check for the Value of the Drop Down list and do a
((myControlType)this.Page.FindControl("blah")).Visible = false
}
}
Or, you could do your ... more >>
Re: CreationDate
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/20/2004 5:19:41 AM
Steve, in your SQL Syntax you can still use GetDate() as so: -
Create Proc AddCow
(
@Name VarChar(50)
)
AS
Insert into Cows
(
CowName,
CreationDate
)
Values
(
@Name,
GetDate()
)
GO
Do you not have access to the Database server?
Thanks,
Phil winstanley
Microsoft ASP.... more >>
Re: GC.GetTotalMemory() and ASP.Net
Posted by Phil Winstanley [Microsoft MVP ASP.NET] at 6/20/2004 5:16:34 AM
Hello,
It's worth noting that the 7mb footprint is the frammework it's self -
try creating a simple Windows Formas application you'll see it's
massive in footprint.
Phil.
... more >>
|