all groups > asp.net > february 2006 > threads for tuesday february 21
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
Error when creating a SQLDataSource
Posted by BobLaughland at 2/21/2006 11:19:29 PM
Hi There,
I have created an ASP .NET web site. Whenever I try to create an
SQLDataSource I get the following message,
'Following error occured while getting connection string information
from configuration. "Cannot get web application service" '
I have the following line in my web.config ... more >>
Gridview not updating data
Posted by Avanti at 2/21/2006 10:57:32 PM
Hello,
I have a gridview wherein I've added functionality for Edit. Now, when
I click on the Edit button, and modify a field, and click on the Update
button, the new values disappear and the old values are retained.
Here is my source code:
<%@ Page Language="C#" AutoEventWireup="true"
Code... more >>
How to fix aggresive characters in SQL queries?
Posted by Tomas Machala at 2/21/2006 10:18:25 PM
Hi,
I'm looking for some way how to make strings with aggresive characters safe
for usement in SQL queries for Microsoft SQL - just something, what would
add slashes before such characters.
Is there any function for that?
Thanks.
... more >>
Set the cursor on the first control in the web form
Posted by Felix_WafyTech at 2/21/2006 10:08:58 PM
Hi,
I want to set the tab order for the controls in the web form. How do I set
it? Setting the TabIndex doesn't seem to work. I just need the first control
to have the focus when opening the form. Any help is greatly appreciated.
Thanks,
Felix.J
... more >>
Capture the click event of a LinkButton placed in adatagrid (Language Used C#)
Posted by hiuentsang NO[at]SPAM gmail.com at 2/21/2006 9:17:52 PM
Hi,
How can I access the event generated by the click on a linkbutton in a
datagrid? My requirement is like this...
I've placed a linkbutton in a datagrid. The user clicks on it, and
some value is stored in the ViewState. I am not able to capture the
event of click.
Please Help.
Thanks ... more >>
Can't format a databound date
Posted by cmay at 2/21/2006 9:06:59 PM
I am using asp.net 2.0's gridview to display some data.
My data source is a collection of custom objects.
These objects expose a property which is a date.
When I databind and try to format the date with
DataFormatString="{0:d}", I get no change to the display. I still get
hours/minutes/s... more >>
ASP.NET database access Error !
Posted by kobeting at 2/21/2006 8:55:29 PM
Dear All,
I have created a webpage which will access a Access MDB file. However,
there are some problem when I access the MDB file.
I found that the problem is from SQL statement of OLEDBCommand. For example:
if I use "Select * from Location", then the ASP.NET applicant can run
norma... more >>
ASP.NET 2.0: Theme specified in Web.Config, does not work
Posted by Sachin at 2/21/2006 8:39:56 PM
Hi All,
I have a Theme folder "Default" which contians some skins, css files etc.
I have specified default theme in Web.Config file under pages section.
However, theme is not getting applied to the pages. I have not set any other
settings?
What could be wrong? Any hint?
Thanks in advance
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP.NET: Repeater: RadioButtons in ItemTemplate
Posted by Sachin at 2/21/2006 8:22:13 PM
Hi All,
I am using Repeater.
I am using RadioButton in ItemTemplate as I want to allow the user to select
only one row.
I have set the GroupName for the RadioButton.
However, RadioButton remains selected, once selected and does not change the
checked status of other RadioButtons.
Wh... more >>
ASP.NET: Repeater: Total no. of Records in Footer
Posted by Sachin at 2/21/2006 8:15:20 PM
Hi All,
I am using Repeater Control.
I want to display total no. of Records in the Footer template, at the
bottom.
What will be the data binding expression?
Thanks in advance
Sachin
... more >>
site asking for username and password
Posted by news.microsoft.com at 2/21/2006 7:59:41 PM
Hi All,
I have a asp.net site. Whenever I put siteurl onto the IE it asks everytime
for username and password. How do I avaoid this?
Is there any setting needs to be done at IIS server?
Thanks and Regards,
Deepak
... more >>
Todays date in range validator?
Posted by Tarun Mistry at 2/21/2006 6:55:13 PM
Hi everyone, i have a range validator set to date mode. However, I want the
max date to be whatever it is right now, is there a way of setting this
within the properties of the range validator?
Thanks,
Taz
... more >>
Your opinion: Using DataAccess Enterprise Application Blocks 2.0
Posted by va at 2/21/2006 6:49:26 PM
I'd appreciate any feedback
Where some of the Enterprise Application Blocks are pretty powerful, with
all the cool binding controls and the simplicity of combined objectsource and
sqlsource , does the DataAccess Enterprise Application Blocks 2.0 still have
the same benefits?
... more >>
DataList containing a Repeater
Posted by GD at 2/21/2006 6:46:13 PM
I'm using a DataList and a Repeater (nested in the DataList) to display
a list of "Chapters" and "Documents" within the Chapters.
<asp:DataList ID="dlChapter" Runat="server" RepeatColumns="2"
RepeatDirection="Vertical" OnItemDataBound="dlChapter_OnItemDataBound">
<ItemTemplate>
<table>
... more >>
ASP.NET internet up/download speed test
Posted by David R. at 2/21/2006 6:41:19 PM
Is there a way to measure and report the up/download speed between the
server and the client browser using ASP.NET 2.0 C#?
... more >>
.NET validation controls and custom web control
Posted by Marc Robitaille at 2/21/2006 5:04:39 PM
Hello,
I built myself a calendar control. I want the control to be able to be
validated by .NET validation controls. So I added the
ValidationPropertyAttribute("Text") to my class declaration of my calendar
control. It is the Text property of my control which must be validated. I
add a Co... more >>
Not getting values from DropDownLists in User Controls
Posted by MattB at 2/21/2006 4:28:49 PM
I have a asp.net 1.1/vb application that has a page with a bunch of
dynamically added User Controls.
When I add the controls, I set the UserControl.EnableViewState to true.
For all my controls with TextBoxes, I can get the value back out of the
controls just fine.
One of my User Controls has... more >>
Returning top X number of items...
Posted by blackstaronline.net at 2/21/2006 4:25:12 PM
Here is my working code to pull Yahoo business news RSS feed. Can
anyone show me how to only return the top 3 or 4 news articles?
<%@ Import Namespace="System.Xml" %>
<script language="VB" runat="server">
Public Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs)
If... more >>
Error handling not working
Posted by tshad at 2/21/2006 4:15:28 PM
This has been driving me crazy.
I have been trying to get the error handling working on my system and can
get parts of it working and others won't work at all.
I found that you can't access session variables from Application_Error
event, but I need to so I don't need to set up traces to se... more >>
Please help: steps to go from SQL Express and SQL 2005 Production
Posted by va at 2/21/2006 4:06:27 PM
Not sure if I should post this here or SQL so here goes...
I really need some advice regarding how to handle ASP.NET 2.0 development
and SQL MSDE and 2005 Server. Maybe I am just making this more difficult
then it is - please let me know.
Background
------------------
I am using ... more >>
Drop Down SelectedIndexChanged will fire sporadically
Posted by Chris Davoli at 2/21/2006 3:24:27 PM
I have a problem where my SelectedIndexChanged on a drop down will fire
sporadically. When it won't fire, I go into Debug and set a break point on
the SelectedIndexChanged event, it will then fire in debug mode, and will
also fire after that when not in debug mode. Seems like when I do it once... more >>
Select an item in DropDownList in code?
Posted by Lee at 2/21/2006 3:20:32 PM
Is there more direct way of doing this?
Dim LI As ListItem = ddUpdateType.Items.FindByValue("123")
ddUpdateType.SelectedIndex = ddUpdateType.Items.IndexOf(LI)
Not counting the check to ensure that "LI" was actually instantiated,
it's ugly in an otherwise neat group of code lines.
--... more >>
Redirect multiple domains pointing to the same folder
Posted by Greg at 2/21/2006 2:22:45 PM
I like the Web hosting site I'm using (though alternate hosting =
suggestions are welcome), and it allows me to point mulitple domains to =
the root folder for free, but it charges extra for pointing them to =
folders.
But here's my issue:
If I could just point each domain to a different fo... more >>
How to reference to assemblies located in another web project?
Posted by Vitali Z at 2/21/2006 2:20:35 PM
Hi,
I made the Web Project Setup Package in Visual Studio .NET 2003.
How can I reference it to assemblies that located in bin directory of
another web project on target machine (without using Global Assembly Cache)?
thanks
vitali
... more >>
Classic ASP on .NET 2.0?
Posted by John at 2/21/2006 2:17:16 PM
Hello. I believe I've read somewhere that classic .asp pages will still
operate correctly with no problems with the .NET 1.1 framework installed on
a Windows 2000 Server server. Does anyone know if the same classic .asp
pages will work on the .NET 2.0 framework with no problems? I was goin... more >>
how did a singleton object achieve application scope in asp.net when it was declared a page variable?
Posted by Rich at 2/21/2006 2:12:03 PM
The following code produced a singleton object with application scope
when it should have had page scope:
public class Singleton
{
private static Singleton uniqueInstance = null;
private Singleton()
{
}
public static Singleton getInstance()
{
if (uniqueIns... more >>
Display RTF as HTML
Posted by Brian Henry at 2/21/2006 1:55:38 PM
Is there any way to convert RTF formatted text into HTML for display on a
website? thanks!
... more >>
OpenWebConfiguration
Posted by Roy at 2/21/2006 1:51:27 PM
Does WebConfigurationManager.OpenWebConfiguration(string) only open the
web.config file regardless of the argument string?
ex:
Configuration config =
WebConfigurationManager.OpenWebConfiguration("~/myFile.config");
When I use the above code, the web.config file is always opened - never
... more >>
Problem with ASP.NET Development Server
Posted by Aras Kucinskas at 2/21/2006 1:17:56 PM
The “The page cannot be displayed” error occurs when debugging ASP.NET web
application using VS 2005. ASP.NET Development Server icon in taskbar shows
that application is starting on port 2795 but immediately redirects to
http://localhost:1473/MyApp and the error occurs. Other web application ... more >>
Using reflection to read the page properties...
Posted by Stu at 2/21/2006 1:06:04 PM
Hi,
I am trying to write a detailed logging system for a site. The client
basically wants us to save the values of the properties on the page every
time someone presses a save button.
I have written the following function that formats the properties of a basic
class and rreturns it as a ... more >>
Problem inserting and storing data from a web form to database
Posted by hfk0 at 2/21/2006 12:58:43 PM
Hi,
I'm new to ASP.net, SQL Server and visual studio.net, and I'm having
problem inserting and storing data from a web form to a SQL database.
I created a simple ASP.NET web form, a simple SQL database, a database
connection (using the SQlDataSource Web Control from the Toolbox), and
create... more >>
ASP.NET 2.0 and ObjectDataBinding
Posted by dm1608 at 2/21/2006 12:58:32 PM
I'm doing an ASP.NET 2.0 project where I have a BAL and DAL layer. I'm
passing a DataSet from the DAL to the BAL. The BAL is passing generics back
to the presentation. All works fine, however, I noticed a problem with my
code that does something like this in the BAL:
List<JobSummary> j... more >>
.NET forms authentication role-based redirection?
Posted by Cory Lievers at 2/21/2006 12:57:04 PM
Hi there,
Thanks in advanced for any help.
I am new to .NET and am trying to do the following:
Certain paths within the application are public, while certain paths
only are for registered users, and certain paths for administrators.
Using the forms authentication within the web.config fil... more >>
webform items positioning...
Posted by AZSEEK at 2/21/2006 12:37:29 PM
not sure if this is the most efficent way under asp.net (vb.net 2003) but i
would like to have a header that appears on all pages -- i thought about
using an include file - however, the contents of it overlay panels or other
controls - it just drop them down... i tried creating a custom contr... more >>
Dumb guestion:
Posted by <::> at 2/21/2006 12:07:34 PM
Does .NET Framework have to be installed on any client which uses a Web
browser to view/utilize a page served by ASP.NET. Or is the ".NET" part of
ASP.NET strictly a server-side phenomenon?
... more >>
problem dynamically removing items from a droplist..?
Posted by Milsnips at 2/21/2006 11:24:09 AM
hi there,
i have the following HTML code:
--------------------------
<asp:DropDownList id="hddList" runat="server">
<asp:ListItem Value="1">Item 1</asp:ListItem>
<asp:ListItem Value="2">Item 2</asp:ListItem>
<asp:ListItem Value="3">Item 3</asp:ListItem>
<asp:ListItem... more >>
writing a simple code generator
Posted by John Mott at 2/21/2006 11:15:28 AM
I've played with some code generators; they all have what appears to be aspx
web pages run from a desktop program. The pages have a code section and a
section where they use <% %> operators to instantiate content.
I have a very specific and surgical need and want to do this from a desktop
p... more >>
Question reg. AJAX
Posted by Manny Chohan at 2/21/2006 11:06:52 AM
Hi Guys, I am planning to put a Calendar control on my website. However i
dont want the whole page to reload when i am paging the calendar.
i did little research on web and found AJAX as a good source. There aare
some good tutorials out there however i didnt find anything to use AJAX to
b... more >>
session out using windows authintication
Posted by mkhawley NO[at]SPAM hotmail.com at 2/21/2006 10:37:37 AM
hello everyone,
I am trying to make session out when I click logoff button using
windows authentication.
Could anyone help me out with this issue, please?
Thanks in advance!
... more >>
How to protect downloadable files?
Posted by Hongbo at 2/21/2006 9:50:20 AM
Hi,
We have a web site which needs user to login. After login, there are =
some files available for download on some pages. A typical link of such =
file is like this one:
https://www.ourdomain.com/docs/contracts/c_02102006.pdf
I noticed that any one could get this file if the person knows ... more >>
DataList - Firing an event for a drop down list box in the header
Posted by Gary at 2/21/2006 9:20:30 AM
I'm having a problem with the DataList control, my situation is as follows...
I have a DataList with a Drop Down List Box (DDLB) in the header, this DDLB
is set to AutoPostBack = True. When the selected value in the DDLB is changed
the page does post back however no event is fired, I was expe... more >>
Gridview Selection
Posted by MasterChief at 2/21/2006 9:08:24 AM
Is it possible to select an item on a gridview by clicking on it and
then being able to click a link for example that says EditOrder in a
treeview and have the EditOrder page open up viewing what you selected
in the gridview? My EditOrder link is in a sitemap so I don't know if
it is possible be... more >>
Using themed css files requires a header control on the page
Posted by samuelberthelot NO[at]SPAM googlemail.com at 2/21/2006 8:12:29 AM
Hi,
I get this exception when I use a themed css file. In my web.config
file I have:
<pages theme="dRise">
and the trouble page is a master page :
<% Response.Write(Header)%>
<form id="form1" runat="server">
<div class="FormContent">
<asp:contentplaceholder id="ReportWi... more >>
Label ViewState question
Posted by Mark Olbert at 2/21/2006 7:25:01 AM
I have a composite control (under ASPNET2; derived from CompositeControl) which contains a label. The contents of the label are set
when the control is created to a user-supplied value.
What's confusing me is that on postback the contents of the label are not being restored from ViewState. I th... more >>
Browser Game Caching and Design
Posted by Chu at 2/21/2006 7:02:07 AM
Hello All-
I'm writing a game using asp.net (c#). The game is a browser-based Role
Playing Game. I'm trying to determine the best way to design the game
with scalability in mind.
The Player class will hold info about the player, such as hit points,
weapons and armor that are equipped, and ... more >>
dynamic master page content
Posted by samuelberthelot NO[at]SPAM googlemail.com at 2/21/2006 5:54:49 AM
Hi,
In one of my database's tables I have a Header and Footer field, which
content is used to create the header and footer of my Master page.
Part generated from Header field:
<html >
<head >
<title>Untitled Page</title>
</head>
<body>
That's the usual hardcoded content part of... more >>
Clarification on XML schema ?????
Posted by serge calderara at 2/21/2006 4:55:27 AM
Dear all,
What is the real puprose on using an XML schema (XSD) ???
This is still a bit unclear for me, is it just in case we would like to
tranmit data to an other applciation and rebuild a dataset based on that
schema or is there other reason ?
thnaks for your reply
regards
serge... more >>
Need help with GridView and LDAP/GC
Posted by rufpirat NO[at]SPAM gmail.com at 2/21/2006 4:50:19 AM
Hello
I'm in the middle of trying to build an "AD phone book", and this being
my first try at asp.net, I have a few questions that I hope some of you
might be able to help with:
1. Is it correct, that PageSize equals the max size of the result
set?
2. Is there a way to make asp cache... more >>
Avoid calling events on page refresh
Posted by Priya at 2/21/2006 4:00:33 AM
Hi,
I want to avoid the events being called when page is refreshed. For eg: I
call a button event that modifies some data in the database. If i press F5 on
the same page again the button event is fired and data is modified. How do I
avoid it?
Thanks in advance
Priya... more >>
PublishState.xml
Posted by Martyn Fewtrell at 2/21/2006 3:45:29 AM
Hi there
I have seen a few posts about this one already but none that have a
solution. There appears to be a bug report at
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=d0279ec7-8730-4445-9f3e-1d1a01235cf1
but this was closed as it could not be reproduced by M... more >>
Default values in a FormView
Posted by Gary Homewood at 2/21/2006 3:37:27 AM
Where can I specify a default value for a column when using a FormView?
Specifically, I have a checkbox for a column of bit datatype on my database,
and I'd like to default it to checked for insert of a new row.
Thanks,
Gary
... more >>
App Directory
Posted by Just D. at 2/21/2006 1:32:15 AM
How can we get the currently running WebApp directory? All kinds or Request.
don't work, maybe security..., the requests that work just show
C:\Windows\System32, but I need the physical path of the WebApp to adjust
some parameters in the running application after its start. I could include
t... more >>
How to Comment an WebControl
Posted by Oscar Roberto Onorato at 2/21/2006 1:31:56 AM
Hi Guys!
If i comment an html control then i amke that:
<!-- <input type=3D"text" ... > -->
But, if y try comment a WebControl, it is not posible.
Hoy to commente this line?
<asp:label id=3D"PaginaTitulo" cssclass=3D"Head" =
EnableViewState=3D"False" runat=3D"server" Text=3D"<%# Titu... more >>
Webpart development for Sharepoint
Posted by John at 2/21/2006 1:29:42 AM
Hi all,
Could someone please provide me with some meaningful links to show me how to
go about creating webparts both in 2003 and 2005 (.NET 2.0, that is)?
Regards
John
... more >>
Web.Config
Posted by Just D. at 2/21/2006 1:14:27 AM
All,
How can we include some configuration file inside Web.Config file? For
example, we're having the Web.Config file with a number of general settings,
but some of these settings are different per developer's machine and we
don't need to upload these customized settings in the source contr... more >>
Enter key to work as a submit button
Posted by Felix_WafyTech at 2/21/2006 12:55:49 AM
Hi,
I have a web form with multipe edit boxes and a submit button. When the
enter key is pressed within one of the editboxes I would like the form to be
submitted. How do I achieve this? Any help is greatly appreciated.
Thanks!
Felix.J
... more >>
web.config and "copy web site" issue
Posted by M O J O at 2/21/2006 12:41:27 AM
(Using aspnet 2.0)
I'm having problems copying my web site to my production server.
I my web.config, I have <connectionStrings>, <appSettings> etc. sections,
that must NOT overwrite my production web.config settings.
On the other hand, I have several <location path> authorization sections... more >>
daab and mysql
Posted by Pierre at 2/21/2006 12:00:00 AM
Hello,
Is it possible to use the Microsoft Data Access Application Blocks with
MySQL ?
Thanks.
Pierre.
... more >>
Register script block from app_code
Posted by SimonZ at 2/21/2006 12:00:00 AM
I have function in my app_code folder.
Is it possible to register client script block from app_code function?
public static void CheckSessionModal()
{
String scriptValue="";
scriptValue = "<script language=\"vbscript\">" + Environment.NewLine +
"window.returnValue=-1"+
"window.cl... more >>
Debbuging mode
Posted by SimonZ at 2/21/2006 12:00:00 AM
How can I go into debbuging mode without building a whole project.
If I change something on my page and press F5(Debugging), I would like that
only this page is builded again not whole project.
It's too slow otherwise.
Thank you,
Simon
... more >>
drag & drop from listbox to listbox?
Posted by nospam NO[at]SPAM nospam.sss at 2/21/2006 12:00:00 AM
I would like to select items from a listbox into another listbox using drag
and drop functionality. Does ASP.NET 2.0 webparts support this? Or any open
source free framework? I am not looking for anything Atlas based.
John dalberg... more >>
WebPartManager is Undefined
Posted by Prashant Majhwar at 2/21/2006 12:00:00 AM
I have created sample web Application. On the default page I drop
webpartmanager control and then create a table and place webpartzones. Now
when i am running it in development mode ...everything runs fine.
But when i publish the website and try to run....error pops up
Webpartmanager is undef... more >>
displaying time for Online examinations in webapplications.
Posted by Anuradha at 2/21/2006 12:00:00 AM
Good morning all,
I have test management in my webapplication,
in that 'questionform.aspx' is getting post back to get next question every
time,
for this i need to display time for a certatin test period.
and after the test time expires it should automatically stops the test.
Th... more >>
Config Error!!!
Posted by Mr Ideas Man at 2/21/2006 12:00:00 AM
Hi all I am getting this error:
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropria... more >>
|