all groups > asp.net > september 2006 > threads for monday september 4
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
Application.ExecutablePath throws ArgumentException: Illegal characters in path.]
Posted by Thomas at 9/4/2006 11:56:49 PM
Hi,
I have written a simple web application in asp.net 1.1.4322. following
is the code written in Page_Load
private void Page_Load(object sender, System.EventArgs e)
{
string str = System.Windows.Forms.Application.ExecutablePath
Response.Write(str);
}
string str = System.Windows.Forms.... more >>
Formview control
Posted by dalholm NO[at]SPAM gmail.com at 9/4/2006 11:32:24 PM
Hi, I'm just starting to poke around with asp.net, and have stumbled on
this problem:
I'm converting an old MS Access database to a web solution. I have
created individual user controls for each table, and added these to my
webpage. Now the master table "cars" has a usercontrol consisting
pri... more >>
Any way to include an HTML form with server-side controls?
Posted by Paul at 9/4/2006 11:19:23 PM
Hi all,
I have a page with a mutli view control where one of the views needs to
contain a separate HTML get form with a submit button that goes to
another page. In ASP this was no problem - there was no container form
and it just went to the target page. In ASP .NET however, there is a
contai... more >>
HTML Page inside ASPX page
Posted by Jai at 9/4/2006 10:48:20 PM
Hi All,
As When I am displaying my html page which contains images also inside
content placeholder with panel control.....it is only showing text and
not the Images.....................please suggest me...how can i do
this.....
I want to display html page(with images) inside a panel,and tha... more >>
MasterPage Samples
Posted by Dan Sikorsky at 9/4/2006 8:43:46 PM
I'm looking for different ways to do a Master Page. Are there any samples
anywhere?
... more >>
Save Edit Table on Exit
Posted by Stephen Lynch at 9/4/2006 8:06:19 PM
What is the best way to insure that an edit table fields are saved on an
exit.
For example, I have an edit panel on a page. I do not want to post back on
every field, but if an end user goes to another page I want the save button
clicked so that the records are saved to the backend databas... more >>
Getting log4net to work *just* the way I want it to!
Posted by Marc Scheuner at 9/4/2006 5:54:04 PM
Folks,
I'd really like to use log4net for our error logging, but I'm having
two problems:
1) For certain cases, I'd like to log error and messages to text
files. I tried both the regular FileAppender, as well as the
RollingFileAppender, but both don't work exactly the way I'd like them
to.... more >>
Regular expression for cleaning html safely
Posted by Steve B. at 9/4/2006 5:49:56 PM
Hi,
I'm building a web site that can render html from various user input.
The problem is that the html cannot be trusted, so I need to ensure it does
not contain script attack injection.
That's why I'd like to provide a set of allowed tag and to remove other
ones.
I think about regular e... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Visual Studio 2003 and 2005 coexistence.
Posted by Kevin Burton at 9/4/2006 3:37:02 PM
We have been working for some time with VS 2003 and VS 2005 both installed. I
am finding recently that ASP.NET seems to be based on .NET 1.1 So, while I
can build web pages and web services projects that compile with VS 2005 when
I go to run them I am finding that IIS seems to be hooked to .NE... more >>
Namespace Not Found?
Posted by Arpan at 9/4/2006 3:11:43 PM
I successfully compiled a "Database.vb" file (existing in
C:\Inetpub\wwwroot\ASPX\Business) into "Database.dll" (in
C:\Inetpub\wwwroot\ASPX\bin). The namespace in "Database.vb" is
"Database" which encapsulates a class named "DBSettings". This is the
code in "Database.vb":
Imports System
Impo... more >>
Constructors?
Posted by Arpan at 9/4/2006 2:08:34 PM
The ASP.NET book that I am referring to learn ASP.NET says the
following:
----------------
If you don't provide a constructor that doesn't take any parameters,
you cannot do the following:
Dim mObject As New MyObject
----------------
Now isn't the above line (not the code line) wrong si... more >>
Ambiguous Name In Mamespace?
Posted by Arpan at 9/4/2006 1:54:57 PM
The following code exists in a class file named "Users.vb":
Namespace Users
Public Class UserDetails
Public FirstName As String
Public LastName As String
Public UserName As String
Public Password As String
Public UserID As String
End Class
... more >>
DropDown and Caching
Posted by JJ at 9/4/2006 1:50:58 PM
If I were to use Caching for a dropdownlist can I disable viewstate for
this control? Would I lose control behavior like selectedIndex etc.? I
would think since my ddl has like 50+ rows in it and they don't change
once the ddl is populated that this control would be an ideal candidate
for Cachin... more >>
WebConfig Authorization
Posted by Stan SR at 9/4/2006 1:48:14 PM
Hi,
Inside my asp.net 2 website, I have a a folder where I store several files.
When I try to download a file, I get a Login Form windows.
How to avoid this ?
Thanks
Stan
... more >>
regular expressions
Posted by Jon Paal at 9/4/2006 1:26:10 PM
when reading a string from a file how to clean off "new line" and "end of line" stuff so text is returned as a clean single line ?
... more >>
Deny anonymous users and showing link!
Posted by tranky at 9/4/2006 1:25:37 PM
hi...
....i've a question for you!
I use in web.config this:
<location path="xxx/yyy">
<system.web>
<authorization>
<allow roles="x1,x2,x3,x4"/>
<deny users="?"/>
</authorization>
</system.web>
</location>
And in a sitemap this:
<sit... more >>
How do I save viewstate programmatically?
Posted by RHIZOME at 9/4/2006 11:52:52 AM
I am reparameterizing a SqlDataSource programmatically, using runtime
events. This works nicely for on-the-fly search, but sorting and
paging are using the original (declared) version of my SqlDataSource.
The net effect is that I lose all of my runtime parameters, when I sort
or page in a GridV... more >>
FindControl in Class
Posted by MRW at 9/4/2006 11:46:45 AM
Hello!
I have a problem, I can't seem to solve.
I'm making a class in my page that will hold the members of a FormView,
so I can access them freely throughout the several functions and
subroutines, without having to redefine them every function/subroutine.
I ran into a problem when trying... more >>
Problem with nested QueryString
Posted by Cem at 9/4/2006 11:19:41 AM
Hi,
I need to retrieve a querystring from page1.aspx into page2.aspx.
When I do a request.querystring("myUrl") from
http://localhost/myWeb/page2.aspx?myUrl=http://www.domain.com?a=1&b=2&c=3&d=4
I only get http://www.domain.com?a=1.
The other values don't appear.
How do I get the wh... more >>
Using a Dictionary as the DataSource for a DropDownList
Posted by Mark Rae at 9/4/2006 11:09:43 AM
Hi,
Is it possible to use a Dictionary<int, string> or even Dictionary<string,
string> as the DataSource for a DropDownList directly, i.e. without having
to iterate through the the Dictionary's KeyValuePair collection and populate
the DropDownList's Items collection manually?
The DropDow... more >>
crypographic and viewstate errors
Posted by scottrm at 9/4/2006 11:07:01 AM
Hi
We have been getting 2 intermitent errors in the event log detailed below.
They are occurring on a server where the web site is stopping responding
periodically and needs to be brought back up by recycling the application
pool. We have 2 servers which are hardware load balanced with stic... more >>
DataGrid: NumericPages + NextPrev PagerMode combined
Posted by DC at 9/4/2006 9:42:28 AM
Hi,
I know this has been asked a number of times... but maybe a new trick
was found by now? I need to offer paging options for a datagrid Google
style:
<< previous Page 1 2 3 4 5...(of 23) next >>
Is this possible without reinventing the datagrid control; e.g. can I
replace the p... more >>
parsing a cvs stream from an http request
Posted by sollento at 9/4/2006 9:41:39 AM
Hello,
I am writing an asp.net application to retrieve a cvs file from an http
request and populate a dataset. Can someone provide sample code or a
reference example.
Step 1: http request to a web site (yahoo finance stock historical
quotes which returns a csv file -
http://ichart.finance.... more >>
Can datagrid columns be resized using mouse like in excel sheet et
Posted by Niyaz. at 9/4/2006 9:28:01 AM
I need to implement this feature, that the user shoul be able to resize the
columns width at runtime. firstt off i want to know that it is possible and
if yes how to go about it.
Thanks. ... more >>
latout tools
Posted by WebBuilder451 at 9/4/2006 9:09:02 AM
Is there a command or option to auto align the html in vs 2005 AND more
importantly can anyone suggest a good pocket reference (or other) to help
point out these features?
THANKS!!!
--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes... more >>
Sql query and drop down list
Posted by tarscher NO[at]SPAM gmail.com at 9/4/2006 5:52:34 AM
Hi all,
I have 2 dropdownlists that after selection feed the WHERE in a sql
query
SELECT * FROM tbl WHERE a = 'dropdown1' AND b = 'dropdown2'
I also want to add the selection to the dropdownlist that everything of
a and/or b is selected.
Is there some sort of character that I can put b... more >>
Problem with max query
Posted by b.ashish.b NO[at]SPAM gmail.com at 9/4/2006 4:11:27 AM
How can we get the maximum value from multiple fields within the same
record in SQL-Server 2000.
... more >>
Controls.Add() Problem in ASP.NET 2.0
Posted by Iain Buchanan at 9/4/2006 4:07:50 AM
Moving this code below from v1.1 to 2.0... am now getting this bug...
After I bind a repeater I move the repeater inside the placeholder
using controls.add(), but when I do this, all the children's clientids
change - I also ran a test and then moved the repeater again into a
third placeholder,... more >>
Custom Composite control error
Posted by benoit at 9/4/2006 3:34:01 AM
What is wrong with this code?
I get no errors on compilation of my assembly
But On compilation on my Webpage i keep getting this error
"Unable to find control id 'FreeBox1' referenced by the 'ControlToValidate'
property of ''"
public class FreeBox : TextBox{
private Labe... more >>
Asp.net Dropdownlist selected index in changed
Posted by Santosh at 9/4/2006 3:23:48 AM
Dear all ,
i am writting following code.
if(Page.IsPostBack==false)
{
try
{
BindSectionDropDownlist();
BindSubSectionDropDownlist();
BindSectionLineDropDownlist();
}
catch(Exception ex)
{
Response.Write("<script language=Javascript>alert('"+... more >>
ASP.Net Memory problems..
Posted by Chris Ashley at 9/4/2006 2:24:12 AM
I have an ASP.Net page which does some very memory intensive GDI+
processing. This page is being called using AJAX by another script
which I have no control over. What is happening is that the consuming
script is attempting to call my page hundreds of times which is causing
'Out of Memory' excep... more >>
Adding WebParts via code behind?
Posted by Bart Van Hemelen at 9/4/2006 1:27:25 AM
I'm working on a project where the user of a site will receive custom
content, depending on a set of parameters. The content will all be
contained in UserControls (.ascx), that will be used as webparts on a
page.
We need to add the webparts dynamically to the site, depending on the
status o... more >>
load-on-startup
Posted by bisanthe at 9/4/2006 1:02:54 AM
hi,
Tomcat has a property in web.xml , load-on-startup.
<servlet>
<servlet-name>MyServerl</servlet-name>
<servlet-class>com.bisanthe.MyServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
I am looking for an equivalent at asp.net. How can i run a class , or... more >>
How do you add to a Database, an image
Posted by binaryBunny at 9/4/2006 12:18:25 AM
I have a page in ASP.NET 1.1, that is connected to an Access Database.
Here is the functionality, textboxes that the user puts in the name,
surname, ID, Phone, etc.
a typical form-filling. But the problem arise when I actually want to
add an image. I'm not sure how to go about it.. Here is wh... more >>
Inserting to Access Database
Posted by MA P at 9/4/2006 12:00:00 AM
Hi!
Need help. I want to insert values from textbox-based input and upon
clicking the Create button, these command lines will run. It didn't work! It
points to the "test.Insert()" line that indicates that "Keyword not
supported: 'provider'". See the code behind below:
Protected Sub b... more >>
dynamic HTML
Posted by Agnes at 9/4/2006 12:00:00 AM
I got a grid list the record, column1 is "number"
When the user press colunn 1 , i want to show out the pdf file whose
filename is same as column1's contents
How can I do that ?? thanks a lot
<a href="<%# DataBinder.Eval(Container.DataItem, "number") %>.pdf > <%#
DataBinder.Eval(Container.DataI... more >>
OLEDB + VFP DATABASE
Posted by Agnes at 9/4/2006 12:00:00 AM
i got two server, (data server) + application server.
the asp.net will be stored in application server and map the vfp database
by using network drive.
When the database and program located in the same server, everything works
fine.
However, when I place the database in another server, It ... more >>
Comment utiliser un meme TEXTBOX comme entree et sortie ?
Posted by Icare-Infographie at 9/4/2006 12:00:00 AM
bonjour,
j ai un textbox qui reçoit un contenu de champ de base de donnees;
quand je modifie ce champ, la modification n est pas pris en compte dans la
mise à jourde la bd.
si je supprime le databind() du textbox cette modification est executée,
par contre au depart mon textbox n est plu... more >>
|