all groups > asp.net > january 2006 > threads for tuesday january 24
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
Lazy question about displaying current time
Posted by clintonG at 1/24/2006 11:59:21 PM
How do I format the current time as: 8:00 PM (GMT -06:00)
<%= Clinton Gallagher
... more >>
How can we automatically Shut down a system.
Posted by vna at 1/24/2006 11:09:18 PM
Hello Everyone,
Please send me the code for a system to
automatically shutting down the system by specifying the time.Can use
either C# or ASP.Net.
Please help me asap.
Regards,
Vna
... more >>
datagrid
Posted by Tales Mein at 1/24/2006 11:08:31 PM
How to"
Display 1 row vertically, rather than many rows horizontally?
Thanks
... more >>
AzMan API and Examples
Posted by Sachin at 1/24/2006 10:46:11 PM
Hi All,
I have to build a small application using AzMan and ASP.NET 2.0.
Where can I find the AzMan API documentation and Examples using C#?
TIA
Sachin
... more >>
Open visual studio project in other path
Posted by ken at 1/24/2006 10:40:02 PM
Dear all
If I have asp.net 2.0 web project, when i move the folder of web project
into other place, i can't open the web project, how to solve this problem?
Moverover, when i create a stor pro in sql server 2005, it can't save in
local server and to save into a file location. HOw can save in... more >>
Decimal to Integer
Posted by Alper Özgür at 1/24/2006 9:56:43 PM
Hi;
I want to convert a decimal to integer. but the problem is i wanna do
convert the value to upper integer value if there is decimal value... For
example if value is 12,01 this must convert to 13; if it's 12,0 then convert
to 12.
Is there any way except Fix method?
... more >>
Postback object
Posted by Buddy Ackerman at 1/24/2006 9:34:46 PM
Is there a way to determine (in the page_load procedure) what object casued
the postback? I have a page that I'm converting from "simple" dynamically
generated HTML into a ASP.NET web form using server controls. However one
section of the form has some pretty complex logic that returns a table ... more >>
HELP: Setting masterpage at runtime
Posted by Newbie at 1/24/2006 7:39:36 PM
Hi,
For my recent web project, I need to built a site which has 3 language. The
content pages are identical, so it only the language that differ. What I
planned is: I'll build a masterpage for each language, and fill up the
content from the database, based on selected language. My question ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Nested ConfigurationElementCollections
Posted by Mark Olbert at 1/24/2006 7:27:44 PM
I'd like to create a ConfigurationSection to handle something that looks like this:
<SiteSettings>
<site name="develop" smtp="mail.arcabama.com" host="localhost">
<mappings>
<membership name="a" column="cola" />
<membership name="b" column="colb" />
</mappings>
</site>
<site ... more >>
Export to Excel issue (C#)
Posted by Arvind R at 1/24/2006 7:14:31 PM
Hello,
how to ask saveas dialog before writing the data to the excel file?
right now im able to save in c drive or any other specified location only.
any solution will be a great help!
System.Text.StringBuilder sbrHTML=new System.Text.StringBuilder("");
//StringBuilder sbrHTML = new Str... more >>
DIV Horizontal Scrolling Very Slow
Posted by Eduard at 1/24/2006 6:31:11 PM
I have a ASP.Net datagrid wrap in the following div:
<DIV id="divPart2" style="OVERFLOW: hidden">.
Another div controls the horizontal scrolling:
<DIV id="scroll1" style="OVERFLOW: scroll; WIDTH: 800px; LINE-HEIGHT: 0px;
HEIGHT: 17px" onscroll="javascript:
document.getElementById('divPart2... more >>
preventing images saving
Posted by Fred at 1/24/2006 6:02:27 PM
hi, is there some way to prevent(at least for not so advanced users)
image saving on local disk; currently i use javascript which handles the
right mouse button click, but all it takes is to disable js in the browser ?
TIA... more >>
Looping through web.config to get values
Posted by Andy Sutorius via DotNetMonster.com at 1/24/2006 5:59:56 PM
I have 2 values in the web.config with a key of ServersInCluster. However
when I execute this code I only get the 2nd value. I never get the 1st and
2nd value. Anyone know why?
private void Button2_Click(object sender, System.EventArgs e)
{
System.Collections.Specialized.NameValueCollection c... more >>
2.0: enableviewstate
Posted by param NO[at]SPAM community.nospam at 1/24/2006 5:46:01 PM
Here is an interesting one. If I disable viewstate in the web.config file,
but enable it on a specific page, it doesnt save the viewstate on postbacks.
I have to actually enable it in web.config.
Thanks!
... more >>
Invalid token in declaration
Posted by Andy Sutorius via DotNetMonster.com at 1/24/2006 4:56:47 PM
With this line (asp.net/c#):
colNameVal = System.Configuration.ConfigurationSettings.AppSettings;
I get "invalid token '=' in declaration". I also get it for "invalid token
';' in declaration".
I don't understand what the compiler is trying to say. Can you clarify/solve?
--
Message posted v... more >>
Unable to serialize the session state
Posted by js at 1/24/2006 4:22:07 PM
Does anybody knows how to solve the problem? I added [Serializable]
attribute to the following classes in
Microsoft.Practices.EnterpriseLibrary.Data namespace, but I still get
the error. Thanks.
Database.cs
DatabaseFactory.cs
DatabaseProviderFactory.cs
DBCommandWrapper.cs
Server Erro... more >>
weird behavior when using 2 different connections - 1 for application 1 for reports
Posted by TS at 1/24/2006 4:04:55 PM
I have 2 sql server databases on 2 different servers, a web app, and a
crystal reports interface. When the app uses 1 database and the reports
datasource points to a different database, both databases on different
servers, the application always comes up, but the report comes back saying
no ... more >>
ASP.Net 2.0 Errors
Posted by Sengo at 1/24/2006 3:58:44 PM
I just installed VS2005 Team Suite, the 2.0 Framework and the SDK on a clean
WinXP Pro SP2 installation and I am having issues viewing the quickstarts.
Here is the error message I get...
CS0016: Could not write to output file
'c:\WINXP\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
... more >>
DetailsView UpdateCommand
Posted by Andre at 1/24/2006 3:47:52 PM
Hi,
I need some help with an UpdateCommand syntax.
Everything is ok with the major part of my update (if i don't use my
calendar).
For the Date field i use a Calendar, and i can't find a way to update my
DB with the new date.
Did someone have any answer or a palce where... more >>
CSS and textbox
Posted by Stephen Costanzo at 1/24/2006 3:46:37 PM
This is my first attempt at working with style sheets so I am probably
missing something obvious.
I created a default ASP.NET Web Application and added 3 elements to it, a
label, a text box, and a hyperlink.
I changed the default style sheet to have the label color be purple (added
color... more >>
2.0 comptability with 1.1
Posted by param NO[at]SPAM community.nospam at 1/24/2006 3:41:39 PM
Hi all,
I am writing a new app in VS 2005 and trying to using some assemblies that
are written in 1.1 and compiled and stored in the GAC. These assemblies work
fine because my 1.1 websites work fine. The problem is when I run the 2.0
website it comes back with:
Type 'MyCustom.Objects' is... more >>
DataBoundColumn in datagrid DataFormatString is not working, why?
Posted by ThunderMusic at 1/24/2006 3:15:39 PM
Hi,
I have a datagrid. In my datagrid I have a DataBoundColumn with the
property DataFormatString set to "{0:F2}" so it should format the content of
the cell to a floating number with 2 digits. It does not work, at the moment
it always puts 4 digits (which is the same as before I put the ... more >>
Tab control in vs2005/2.0
Posted by GaryDean at 1/24/2006 3:12:20 PM
I notice that there is still no tab control in vs2005. That seems like a
strange omission. Are we left with the only choice to use those I.E.
Webcontrols?
(maybe it's still because we don't want to look like Lotus notes :)
--
Regards,
Gary Blakely
... more >>
Formatting a date in a FormView control?
Posted by David Veeneman at 1/24/2006 2:46:42 PM
What's the simplest way to format a date in a FormView control? I've been
looking for something like a DataFormatString property, but it doesn't look
like the control itself, nor the consitutent controls in its templates, has
a property like that. What I want to do is apply a ShortDate format ... more >>
Problems with source code on iis server
Posted by Booker Washington at 1/24/2006 2:18:11 PM
ORIGINAL POST BELOW.. this is an addendum.... read from THE ORIGINAL
POST first and below... andthen come back up to this section
now upon further reading, i can provide some more context.......
Here is what my global.asax file contains
<%@ Application Codebehind="Global.asax.vb" Inherit... more >>
HttpRequest sample for downloading document in ASP.NET
Posted by jdhancock NO[at]SPAM parker.com at 1/24/2006 1:58:45 PM
Can someone give me an example of how I can execute a program on a
corporate server and then download the response to the user? I'm not
sure if I'm asking this right.
Here is the asp code used today. I am attempting to recreate in
ASP.NET.
Thanks in advance,
Clem
-------------------------... more >>
Odd validation problem
Posted by B. Chernick at 1/24/2006 1:11:11 PM
I have an odd problem with validation and I'm not sure if the problem's in
ASP, VB, Javascript, or a third-party component.
We created a user control (ASP1.1) that encapsulates a third party control
(a Telerik RadComboBox). It's really just a Yes/No option box. However due
to the Look &... more >>
No symbols Loaded
Posted by Jim Heavey at 1/24/2006 1:02:03 PM
I converted (manually) my 2003 web site to 2005. When I place my break point
on the first line of code in the page load of the default page, the page does
not stop at the break point. If I hover over the break point, I see the
message "The breakpoint will not currently be hit. No symbols ha... more >>
adding server controls at the client at run time
Posted by z f at 1/24/2006 12:56:07 PM
hi, tough one? for me it is currently.
i have a user control that contains other controls like text boxes.
in the client i need to dynamically add the user control using DHTML.
i achive this by having the control hidden and grabbing it's innerHTML to a
new container in the HTML.
i also cha... more >>
problems adding a second table to a dataset
Posted by TB at 1/24/2006 12:50:41 PM
Hi All:
As a newbie to ASP.NET, I think I have understood a dataset as a kind
of container where I can store several datatables to used during the
lifetime of a page. With that in mind I written the following code for
a page (simplified here):
Dim myConnection As MySqlConnection = New
MySQ... more >>
Bulletin Board
Posted by qwe85 at 1/24/2006 12:11:36 PM
Hi,
Can anyone teach me how to create a bulletin board using ASP.NET? I
would greatly appreciate your help.
Thank you in advance
--
qwe85
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------... more >>
.NET 2.0 image load issues
Posted by Roy at 1/24/2006 11:54:11 AM
Hey all,
I just installed 2.0 today. I've been enjoying 1.1 for so long I didn't
want to change. :)
Anyways, I converted over a web project from 1.1 to 2.0. No problemo.
Then I noticed something very bizaare. Here's my short and simple CSS
code:
SPAN, #lblSailDate
{
width:100px;
text-alig... more >>
VB.Net Stored Procedures
Posted by Hutty at 1/24/2006 11:38:39 AM
I'm trying to call a stored procedure from vb.net that's on the sql server. I
would like to have the output on another form or a listbox where I can print
results. I'm not getting any errors, but i'm not getting any output either.
Any help appreciated. Thanks.
'Stored Procedure = COMPARE, O... more >>
How to cram into one DataGrid results from more than 1 queries?
Posted by antonyliu2002 NO[at]SPAM yahoo.com at 1/24/2006 11:37:05 AM
I want to put results from more than 1 sql queries into a signle
datagrid,
For example, in my web application, I submit this following query to my
oracle database:
Select NetID, Firstname, Lastname from Student;
Then I put the result into my DataGrid. This is successful.
Following thi... more >>
CMS for asp.net 2.0 and masterpages
Posted by Lars W. Andersen at 1/24/2006 11:19:43 AM
Hi,
I am looking for a good - easy to comprehend little CMS application for my
"beginners" asp.net 2.0 site.
It must be able to use Access as the database (only a couple of people will
be posting and editing news articles).
I use masterpages so it needs to be able to publish content in th... more >>
ASPNET 2.0: Sending mail in HTML
Posted by Jim in Arizona at 1/24/2006 11:14:53 AM
Now that I've figured out how to send mail within our domain:
Dim test as new System.Net.Mail.SmtpClient
Dim nco as New
System.Net.NetworkCredential("mailaccount","password","domain")
test.Credentials = nco
test.Host = "mailserver"
test.Send("mailaccount@domain.local","toaccnt@domain.local"... more >>
Use ASP.NET 1.1 or 2.0?
Posted by Pieter at 1/24/2006 11:12:46 AM
Hi,
For my development I use VB.NET and C#. In the company w're using 2003 and
2005.
Now we want to make an intranet-application in ASP.NET, but neither me
neither the developer have a lot of experience with ASP.NET.
But one of the things I do have a lot of experience with is Visual Studi... more >>
RequiredFieldValidator Dynamic Creation
Posted by Giovanni at 1/24/2006 11:11:12 AM
Dear Friends,
I need your help. I am trying to dynamically create a
RequiredFieldValidator in the ItemCreated event of a DataList but cannot get
it to work. The errors seem to revolve around the .ControlToValidate
property.
When a new Item is created, I check the information ... more >>
asp.net code to unload msohev.dll ??
Posted by Marzipan at 1/24/2006 11:10:06 AM
Is there a way to unload msohev.dll that loads when a IE6 session starts? I
need to unload prior to running JRE. It is hogging up too much memory and
crashing the session.
I am wondering if a .aspx page could run code to unload the dll prior to
going to the applications url?... more >>
Connection Pooling
Posted by Not Me at 1/24/2006 11:04:28 AM
Hi,
I'm using asp.net 2 with an sql server 2000 database. What steps if
any, must I take to ensure connection pooling efficiently?
for any 'manual' connections made, I open the sqlconnection obtaining
the connection string from configurationmanager.connectionstrings, and
close the conne... more >>
ASP.net web hosting (not spam! ;o)
Posted by darrel at 1/24/2006 10:43:30 AM
The spammer below reminded me that I've been meaning to ask about this.
I have a handful of small web site projects I'd like to move to one host.
These are not huge sites, typically 50 pages at most running a small .net
CMS that target local audiences. So no crazy bandwidth needs or anything.... more >>
Where are the 'web 2.0' .netters?
Posted by darrel at 1/24/2006 10:17:52 AM
With all the web 2.0 hype out there, I'm finding that .net isn't playing
much of a role. Nearly everything out there getting publicity is PHP or ROR
based.
Which leads me to the question: Anyone see some web 2.0-centric applications
out there based on .net?
-Darrel
... more >>
Page inheritance Take 2
Posted by Wayne Sepega at 1/24/2006 10:17:33 AM
Ok, so aside from the lack of code insite, I'm also seeing that my base page
layout isn't taking affect in the inherited page.
Is there something I have to do? aside from Master pages (see master page
question), and adding layout to the inherited form as well.
Thanks
Wayne
... more >>
Custom MembershipProvider Index out of bounds/machineKey
Posted by Mark Olbert at 1/24/2006 10:08:49 AM
I'm getting the following exception from a website that uses a custom MembershipProvider that I've written. What's bizarre is that
the exception is thrown outside my code, >>after<< the user is properly validated.
Anyone have any idea what's going on?
- Mark
System.IndexOutOfRangeException... more >>
Looking for cookies?
Posted by brett at 1/24/2006 9:53:51 AM
I'm doing this to get a listing of cookies:
HttpContext.Current.Request.Cookies.AllKeys
and
HttpContext.Current.Request.Cookies.AllKeys.ToString()
However, that only gives:
System.String[]
How can I get a listing of cookies sent by the client?
Thanks,
Brett
... more >>
Web.Config and XML
Posted by Peter at 1/24/2006 9:20:08 AM
How can I have the following in my Web.Config file
the problem is with the '&' character
<add key="TemplatesFolder" value = "C:\temp & Test\" />
Thanks
Peter
... more >>
GetCompiledPageInstance and Custom IhttpHandler
Posted by Mutley at 1/24/2006 8:59:52 AM
Hi,
I have written an HttpHandler to process page requests for a custom
file extension. The handler gets called as expected and after searching
the web for examples I have used a method called
GetCompiledPageInstance from the PageParser class for getting the web
page within the ProcessReque... more >>
Inheriting from System.Web.UI.Page and System.Web.UI.UserControl
Posted by DanG at 1/24/2006 8:58:43 AM
Howdy,
On past .NET projects, I only had System.Web.UI.Page forms. One
application needed a set of functions to do processing against the
Page, Session and Request objects associated with the current Form. I
handled this by making a new class (BasePage) which inherits from
System.Web.UI.Pag... more >>
New web projects in Visual Studio 2005
Posted by postings NO[at]SPAM alexshirley.com at 1/24/2006 8:17:12 AM
Hi
I'm confused.
I have created a new folder on a server on situated my local LAN,
configure IIS 6 to use it, set up the DNS record for the host header,
so far so good.
In Visual Studio 2003 would set up a new project in Visual Studio 2003
it in turn would ask for file location and URL ... more >>
Master pages
Posted by Wayne Sepega at 1/24/2006 8:16:07 AM
We currntly have one site, with a menu. However, we have multiple projects
on this site. I would like to have a single master page for the entire site.
I did the following:
Created a new web site
added a master page to it
Created a new web site
Added a page
Pointed the master pag... more >>
Argument type 'CrystalDecisions.Web.CrystalReportViewer' is not CLS-compliant
Posted by TS at 1/24/2006 7:51:35 AM
i have this build error that is pointing to a crystal report class. Am i to
believe that the company who created this assembly created it un compliant,
or is it something in my application/code that is causing this.
What do i do to make it compliant (i don't want attach
[CLSCompliantAttribu... more >>
caching/state management
Posted by baffled at 1/24/2006 5:40:02 AM
I have both datatables and custom objects that are specific to a session and
need to be cached for such things as paging, sorting, etc... As far as I
can tell, there would be 2 basic ways to do
this:
1. Use session state to store these objects.
2. Use the System.Web.Caching namespace to c... more >>
Login control - remember me
Posted by baerland NO[at]SPAM gmail.com at 1/24/2006 4:41:37 AM
Hi
I'm having a hard time getting the "remember me" functionallity to work
with the new Login control in ASP.NET 2.0.
The Authenticate event works fine and I get logged in, but if I restart
the browser, I'm presented with the login page again.
I thought I only needed to set the DisplayRem... more >>
''SqlDataReader not define" error
Posted by paapa21 at 1/24/2006 4:00:02 AM
I want to Declear a variable as SqlDataReader in ASP 2.0. But when i do so it
tells me SqlDataReader is not define. This same code works in my previous
application in ASP 1.0. Has this change? Can someone show me how to do this.
Below is the function and the line of the error is bold.
... more >>
NodeList iteration and node edit
Posted by Cuperman at 1/24/2006 3:28:59 AM
I am iterating through a nodelist, and trying to edit node attributes
based on conditions that are met.
As soon as the first condition is met, the For Next loop finishes, even
when there are more nodes left in the list, so subsequent updates are
not completed.
Any one know what causes this?... more >>
ASP.NET 2.0 Dynamically Casting User Controls
Posted by Ron at 1/24/2006 2:37:25 AM
Hi all,
I've come across a problem when casting user controls in ASP.NET 2.0,
hopefully someone can help. I have a master page with a user control on
it (myMenu) that I wish to programmatically access from a content page.
Below is how I am trying to do this (this would work in ASP.NET 1.1).
... more >>
Dynamic Screen Application
Posted by Locusta at 1/24/2006 2:10:54 AM
Hello,
I'm looking for an ASP.NET application for data entry; I would need a
lot of screens such as maintain customer, vendor, products, orders, ...
and I was thinking on designing a dynamic screen application that build
the screen with controls based on a particular table; for example the
ta... more >>
<input type="button" .... won't stop from submitting even the validation is falied?
Posted by baroque Chou at 1/24/2006 1:51:26 AM
I add validation control to my page, but it seems it dosn't work using
input. is it true?
... more >>
Crystal reports question
Posted by ken at 1/24/2006 1:46:04 AM
I want to ask
can it use asp.net 2005 bundled version crystal report to deploy into the
server
what is the license limitation and how can it deploy to the server
how many user limited?... more >>
CustomValidator in Gridview edit mode
Posted by ken at 1/24/2006 1:16:04 AM
I added a CustomValidator in Gridview edit mode, how to set the
cusomvalidator to invalid or valid when check the update ... more >>
2-Way Databinding without the DataSources from 2.0
Posted by Joey Chömpff at 1/24/2006 1:16:03 AM
L.S.,
Hello is there a way to implement 2-way databinding without using the
datasources from dotnet 2.0. Why would you ask? Now that's simple.
I've created an object model with BusinessObjects and I don't want to write
an separate provider layer for the datasources. This is because I loos... more >>
finding which button is pressed
Posted by Jonathan Crawford at 1/24/2006 12:00:00 AM
Hi
I have a form with two butons
I know if the form is a postback but I can't
find anyway to tell which button was clicked,
on the form load event.
I have a feeling that this is obvious.
Any guidance appreciated
thanks
jc
... more >>
The XML page cannot be displayed
Posted by Mammaloe at 1/24/2006 12:00:00 AM
Hi,
I have VS2005 Beta2. I'm trying to publish a Web Site (as described in
http://msdn2.microsoft.com/en-us/library/1y1404zt.aspx).
When I run the site from Visual Studio on Visual Studio's webserver, the Web
Site runs fine.
When I publish the web site, I'm getting the following error messa... more >>
ASP.NET:: Paging on Demand
Posted by Jignesh Desai at 1/24/2006 12:00:00 AM
Info::=20
Most of you must have worked on paging feature of DataGrid. its works =
fine as long as you have more no of records to show, but if you have =
configured 20 records per page and no of records you retrieved is less =
then 20 then also pager gets rendered at the bottom of the grid showin... more >>
mathematical String Evaluation
Posted by kris Palmby at 1/24/2006 12:00:00 AM
hi,
I'm trying to do something which I assume is fairly simple but I jsut cannot
seem to do it.
I have a string which i am trying to evaluate Mathematically
for Example
Dim strEval as string
Dim decEval as Decimal
strEval = "(10+5) * 6"
I'm trying to get decEval = 90
Can anyone ... more >>
Show and hide a usercontrol (codebehind)
Posted by Øyvind Isaksen at 1/24/2006 12:00:00 AM
Is it possible to show/hide a usercontrol code behind?
<uc1:topart id="Topart1" runat="server"></uc1:topart>
This is what i want to do, but this does not work:
if objDR.read
me.Topart1.show 'Show usercontrol if datareader.read
else
me.Topart1.hide 'Hide usercontrol
end if
... more >>
multiple framework
Posted by lara169 at 1/24/2006 12:00:00 AM
Hi
I am very new to .Net.
I had VS 2003 installed on my machine. Yesterday i installed SQL server
2005. Now i've 3 frameworks installed on my machine
when i run aspnet_regiis -lv its showing 2.0.50727.0 as root and the others
as Valid.
now i started programming for Yukon in .Net
I've create... more >>
Check Box !
Posted by Adam Knight at 1/24/2006 12:00:00 AM
Hi all,
I have a checked box in a datagrid like so:
<asp:TemplateColumn>
<ItemStyle HorizontalAlign="Right" Width="25px"></ItemStyle>
<ItemTemplate>
<asp:CheckBox ID="chkAddDocument"
OnCheckedChanged="chkAddDocument_CheckedChanged" AutoPostBack="True"
Runat="server" />
</Item... more >>
|