all groups > asp.net > april 2004 > threads for monday april 19
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
display html on web page
Posted by Guoqi Zheng at 4/19/2004 11:27:31 PM
Probably very simple question since I am new in Dot Net....
I have a DisplayHtml function in moudle1.vb which is:
Function DisplayHtml(ByRef fstrText As String)
' replace line break with <br> in html
fstrText = Replace(fstrText, Chr(10), "<br>")
'fstrText = Replace(fstrTex... more >>
Valid HTML 4.01 or not?
Posted by Thomas Due at 4/19/2004 10:59:29 PM
Hi,
Is it just me or is it impossible to generate valid HTML code with
Visual Studio 2003 .net? I am specially thinking about the
DropDropList. When rendered it puts a language="javascript" attribute
in the select. That is one example of an invalid tag attribute.
What can I do to ensure val... more >>
request.querystring
Posted by wade h at 4/19/2004 10:51:01 PM
hi
I am trying to write an app which uses the url eg
www.microsoft.com/index.aspx?id=
My question is, do you know of any information or help which can make this take a little easier for me. I have been looking for information about this for a fair while now with no avail
its the "?id=1" sect... more >>
Problem with special characters in Request Params
Posted by Mikael Engdahl at 4/19/2004 10:08:44 PM
Hi,
I have a situation on an ASP.NET page on which I do a simple
Response.Write(Request.Params["x"]).
The problem is that when the parameters include special characters like
ä or é they are removed. For example, the string 'aéx' becomes 'ax'.
It is the same for both GET or POST and the ... more >>
page validation and Opera 7x
Posted by PCH at 4/19/2004 9:58:57 PM
I've run into a big problem with Opera 7x users.
It appears that most pages do not render the panels correctly, and form
validation does not fire at all.
I tracked down some threads about the machine.config file and opera. I
changed some of the filter options on the Opera case to match IE5.... more >>
JS debugging in VS.NET - how?!
Posted by Shaul Feldman at 4/19/2004 9:47:28 PM
Hello,
I'm almost sure it's possible, just how?! The breakpoints I put in JS code
(client side) are not doing anything when I run ASP.Net application (F5).
How this can be done?
--
With the best wishes,
Shaul Feldman
... more >>
Inconsistent look between browsers
Posted by MR. UNDERHILL at 4/19/2004 9:31:10 PM
I image this question is already answer in thousands of places because is very obvious that ocurrs. Basically, I have a .net text box control on a asp.net page, and I'm using the width property to specify it's display size, it works great in Internet Explorer 6.0 but running the same page on Netsca... more >>
Problem in CRLF in multiline fields
Posted by sunil NO[at]SPAM volcanomail.com at 4/19/2004 9:25:42 PM
Dear All,
In a multiline field if I enter the following way:
Mangesh
Anant
Kodilkar
There is a carriage return after each word.
Now when I press save,it loses the CRLF characters. This is not
correct. Even after the page is reloaded the CRLF's are lost. I get
this problem on my PC (XP), ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to force download?
Posted by Miguel Dias Moura at 4/19/2004 9:15:40 PM
Hello,
in my web site i display some links to PDF files. This links are loaded from
a database.
Anyway, when i click these links the PDF files are open in the visitors
browser and in Acrobat.
How can i force the files to be downloaded when the person clicks the link?
I don't want to use zi... more >>
end of session
Posted by Shimon Sim at 4/19/2004 9:10:49 PM
When should Session_End event fire? It seems to me that it never fires on my
machine. I tried to
1. Log out from Form authentication
2. Close a IE window
3. Wait for some time - in this case system throws me back to login page but
I don't get any events
I do get Session_Start event if I logo... more >>
Returning page to current position after sending request to server
Posted by Devin at 4/19/2004 8:41:05 PM
I am creating a form, and when a user clicks on the ASP.NET calendar control, or on another checkbox that sends a request to the server, the page reloads fine, except that it is at the top of the page, instead of where it was originally. Is there an easy way to move the page back to the current posi... more >>
execute javascript conditionally
Posted by cgian31 NO[at]SPAM katamail.com at 4/19/2004 8:38:13 PM
How to do the following?
When I click a button, it will check if a certain codition is
satisfied, in this case, and only in this one, I want the javascript
confirm to appear.
If I add this:
mybutton.Attributes.Add("onClick", "return confirm('Your Message');")
the popup will appear ALL ... more >>
webcontrols.datagrid problem...
Posted by EMW at 4/19/2004 8:11:25 PM
On my ASPX page I have datagrid control with 6 columns.
4 of them are bound columns, two are link columns.
In the properties I defined the columns with their widths and names.
In designtime I see the column names appear in the datagrid.
Above the datagrid is linkbutton and when the user clic... more >>
Customizing a data view / Response.Write
Posted by anony at 4/19/2004 7:05:58 PM
What is the desired way to deliver a customized view of a database query?
The scenario is that I want to group records based on similar fields. Can I
use any built in data controls and achieve this level of customization? I
can accomplish my custom view via Response.Write, but this can't be the... more >>
Form indetification session expires to early
Posted by Shimon Sim at 4/19/2004 6:27:54 PM
Hi
Working on a project that requires Form authentication. My client reports
that he is thrown out to log in page every 5-10 min. I can't understand why.
I don't get the same behavior on my machine.
The web.config file looks like this
<authentication mode="Forms" >
<forms name=".OURCOMPANY... more >>
Programatically Declared User Control with Post Back
Posted by DM at 4/19/2004 6:11:01 PM
I have a user control that contains a DropDownList and a Submit Button. In the Page_Load method of the User Control, I populate the Drop Down List. When the user clicks on the submit button, I need to retrieve the SelectedValue of the User Control. The code for populating the DropDownList should onl... more >>
n00b Question re: MSDE SQL 2000 Set-up
Posted by newgenre at 4/19/2004 5:38:33 PM
I am attempting to use a program called EasyDisc. It installs a forum on
your web site, where people can post messages. Basic stuff. I have set up
my XP machine as the server, and use IIS. The EasyDisc program requires I
set up an SQL Server, so I installed MSDE SQL Server 2000 and created an
i... more >>
One site under both windows and forms authentication
Posted by MiguelNavarro at 4/19/2004 5:31:06 PM
What would be the best way implement a site that handles both windows authenticated users and fallback to forms authentication for unathenticated users. Roll my own? Is there an option without additional development? Like creating a new project, and copying the apx pages, and referencing the other ... more >>
IE Treeview - Checking & Unchecking All Subnodes
Posted by Pat Roy at 4/19/2004 5:29:47 PM
Hello...
I've created a treeview that looks something like:
Root
.....Folder1
.........Subfolder1A
.............File
.............File
.........Subfolder1B
.............File
.....Folder2
.........Subfolder2A
.............File
.........Subfolder2B
.............File
.............File... more >>
Template with asp.net
Posted by Stan Sainte-Rose at 4/19/2004 5:18:43 PM
Hi,
I m looking for a good example with asp.net (the best will be a vb.net code)
for how to make and use a web template.
With ASP, I used "include", and I know it's impossible with asp.net
Thanks for your precious help.
Stan
... more >>
HttpHandlers and HTTPModules
Posted by Emad Ibrahim at 4/19/2004 5:14:06 PM
I need to handle all http requests so that if someone types something like
http://www.mysite.com/123
then I would load the article 123
I can't get this to work because the app keeps looking for a folder called
123 and my custom handlers and modules are not getting called.
Although if I ... more >>
Branding a site
Posted by Charlie Dison at 4/19/2004 5:06:01 PM
Hi There
I want to create an asp.net application that other companies can brand. So for example a customer would put a link to my site on their web page, my site would then have to know where the user came from and then brand the site so that it looks like my site is actually an extension of ... more >>
.net pdf library
Posted by Björn at 4/19/2004 4:54:47 PM
Hi
I´m searching for a dotnet library for creating pdf files on the fly.
While searching at google I found a lot of libraries, but most libraries are
handling Text as a kind of Image and I have to position it on the page. What
I´m looking for is a library where I can say :
PDFDocument.Add("... more >>
Debugging Problem
Posted by Jim Heavey at 4/19/2004 4:39:26 PM
I meant to post this here and not on the asonet message board....sorry
about that...
Hello, I am having all kinds of nightmares trying to get Visual Studio
..Net working on my "work machine" which is a portable.
I install the software in the appropriate order. 3 1/2 to 4 hours later
whe... more >>
Edit web.config programmatically?
Posted by TK at 4/19/2004 4:38:59 PM
What's the best way to edit web.config programmatically?
I want to have an aspx page as a GUI for web admins to modify the roll-base
security portion of the web.config(s) on a server.
please help.
TK
... more >>
List users and groups from ActiveDirectory in ASP.NET page?
Posted by TK at 4/19/2004 4:34:18 PM
How can I show a list of OS users and groups in an ASP.NET page?
Is there MSDN or SDK articles?
please help.
TK
... more >>
Need Microsoft Help: Session object retrieving another user's Session information
Posted by Boban Dragojlovic at 4/19/2004 4:28:10 PM
I'm building a complex web-based reservations system.
Gathering the user's data requires between 8 and 15 pages (depending on
which options they are interested in). I use the "Session" object to store
the various elements as the user moves through the pages.
Rather than storing the prefer... more >>
Convert string to a string array
Posted by Andrew Banks at 4/19/2004 4:22:13 PM
I've currently got a string formatted as values;
string MyString = "value1;value2;value3;value4;"
How would I split this and place the values into a string array called
MyStringArray so I could access them as
MyStringArray[0] (would give value1)
MyStringArray[1] (would give value2)
etc..... more >>
WebControl Attributes
Posted by Frédéric Goulet at 4/19/2004 4:16:05 PM
In the same way you can add an event to the onclick attribute
ImageButton1.Attributes("onclick") = "javascript:alert('Hello!');"
I would like to set the 'checked' attribute of an ImageButton with similar
code
ImageButton1.Attributes("checked") = "true"
But it does not works!
It is ... more >>
Session State Stored Where?
Posted by clintonG at 4/19/2004 3:11:36 PM
Curious about where the actual values are stored when...
....using Session State Service?
....using SQL Server to store session state
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
... more >>
Totally weird date format in DataGrid
Posted by Paul at 4/19/2004 3:10:53 PM
Hi,
Everything went fine getting a short date format out of SQL into my
DataGrid with this:
<%# DataBinder.Eval(Container.DataItem, "Created", "{0:d}")%>
Then I got too fancy in SQL and started doing a RTRIM(date) when I was
retrieving the data. That screwed the pooch b... more >>
Using XsltTransform crashs asp process, help!
Posted by Peter Row at 4/19/2004 3:05:38 PM
Hi,
BACKGROUND:
I have a VB.NET DLL that uses HttpModules, HttpHandlers etc... which
has been ported from a VB6 webclass application. I am developing on
WinXP Pro SP1, P4 2Ghz, 512MB Ram
I have written a thin wrapper class around the action of XML transforming.
Basically I create my class ... more >>
dropdownlist
Posted by koen van meerbeeck at 4/19/2004 3:04:45 PM
Hi All
I'm creating an application and I want to add images to a dropdownlist in
asp.net using C#.
Can anybody help me with this plz.
Koen
... more >>
Pass parameters to User Control
Posted by Ben at 4/19/2004 2:46:34 PM
Hi
I am using a User Control which is referenced by an ASPX page.
How can I pass a string parameter to the user control, from the base ASPX
page.
Thanks
Ben
... more >>
code example for placeholder/user control and viewstate problem
Posted by ItNerd at 4/19/2004 2:25:00 PM
I am using a placeholder in my aspx page for a control (ascx in a
separate file). I cannot capture the value of the dropdownlist on
postback in the control because according to what I read, the viewstate
is in a "special place" and is being overwritten. Please please tell me
how to access ... more >>
ASP.NET Datagrid with VB
Posted by Chris at 4/19/2004 2:19:27 PM
I've got a datagrid on an asp.net page that loads 4 columns of data from a
SQL query. One of the columns is hidden which contains the identity column
that i use for the primary key.
On the grid, i have an edit command set so that when the button is pressed,
it'll reroute the user to another p... more >>
Input Validation
Posted by Murphy at 4/19/2004 1:38:16 PM
How can I ensure a user password contains only alphanumeric characters or is
this already enforced by setting the text box to password ?
Thanks
Murphy
... more >>
load one or other user control
Posted by Merkisson Jourhanssen at 4/19/2004 1:25:31 PM
When aspx is requested, load one user control or other based on queryString
value. How to do this? Note: only one user control to possibly appear on the
page at one time; and either of which to be loaded must appear in the same
place (in same <td>).
thank you.
... more >>
Beginners question about DataGrid and page selection
Posted by Alex at 4/19/2004 1:17:33 PM
I ahve a DataGrid that is using selective data from a DataSet. I defined for
each column how to bind.
I'm using 10 rows disaplyed at the time. I have 11 items. Therefore a number
2 link shows up.
However when clicking on it, after the Postback I'm still on page 1.
What do I need to change to ... more >>
Adding event handler for dynamically created controls
Posted by Andrew Wied at 4/19/2004 12:56:02 PM
Hello
Please excuse me if this come in as a duplicate.
Here is the situation that I am having: I am pulling data from a database and writing it out as a list. Next to each item that I write, I want to make a linkbutton control which will allow you to invalidate the database record. Since I do... more >>
Syntax problem Inserting variables into database
Posted by altergothen at 4/19/2004 12:15:10 PM
Hi there
I am a newbie to ASP.Net - Please Help!
I am trying to insert the values of my variables into a database.
If I try the following it works perfectly:
string insertQuery = "INSERT into test(name,surname,email) VALUES('Bob',
'Sly', 'bobsly@yahoo.com')";
but instead of inputing the v... more >>
Adding extra items to a drop down list
Posted by pitcher17 at 4/19/2004 12:02:21 PM
I'm sure this is really simple to do but I'm at a loss. I have a
dropdownlist object that I have bound to my dataset. That works fine.
However, what I want to do is add an extra static item as the first entry
and then a couple of other static entries further down the list.
Here is my databin... more >>
MS index service
Posted by Martin c at 4/19/2004 11:57:29 AM
Hi everybody.
Can anyoe point me in the right direction of any documentation / info /
namespace documentation for the control of the Microsoft Index Service via
the .NET Framework.
Any pointers would be greatly appreciated
TIA.
Martin
... more >>
Finding a reliable and inexpensive ASP.Net Hoster... suggestions?
Posted by Vaughn at 4/19/2004 11:57:08 AM
I'm looking for a reliable Web Hoster that has full Dot Net
functionality.I'm basically looking for something that's about $10/month or
less, has ASP.Net support, and has positive feedback and reviews. It should
also have some type of DB support (preferably SQL Server although most
charge additi... more >>
Problem with Web Control Binding
Posted by Andrea Williams at 4/19/2004 11:45:49 AM
I have a drop down control that I've added a list item that has a value of
zero and the text name is "[Select One]". And it shows up like it's
supposed to until I bind a dataset to it. The binding seems to remove the
list Item that I added. Is there something I have to set to keep the list
It... more >>
Roll-base access control with Forms authentication?
Posted by TK at 4/19/2004 11:30:04 AM
What's the best way to implement roll-base access control with forms
authentication?
I have a IIS6+ASP.NET server which hosts some ASP.NET web applications as
separated path that's like "/app1/default.aspx", "/app2/default.aspx", ....
and a single logon page as "/logon/logon.aspx" for forms au... more >>
Looking for a Reliable (and inexpensive) ASP.Net web Hoster
Posted by Vaughn at 4/19/2004 11:29:19 AM
I'm looking for a reliable Web Hoster that has full Dot Net functionality.
I'm basically looking for something that's about $10/month or less, has
ASP.Net support, and has positive feedback and reviews. It should also have
some type of DB support (preferably SQL Server although most charge
addit... more >>
Problem with Index Server Query
Posted by Jorge Varona at 4/19/2004 11:29:11 AM
Greetings,
I am having a difficult time trying to get my index server query to work.
Here's the code:
// create a connection object and command object, to connect the Index
Server
System.Data.OleDb.OleDbConnection odbSearch = new
System.Data.OleDb.OleDbConnection();
System.Data.OleDb.Ol... more >>
Firing events from child controls in a Web Custom Control
Posted by Juan Romero at 4/19/2004 11:15:28 AM
Hey guys,
I am working on a web custom control that basically draws a table (ASP
Table) with a few child controls in the cells.
I have a command button inside one of these cells. The problem I am running
into is that I cannot get the click event of this object handled. I have
tried wiring t... more >>
User Control; read value from hosting aspx code-behind
Posted by Gene at 4/19/2004 11:13:32 AM
I have a number of aspx pages on which a single user control appears. All of
the aspx pages and the user control make user of code-behind modules. I need
for logic in the user control's code-behind to read the current value of a
variable in the hosting aspx page's code-behind. How is this accompl... more >>
Lookup values and DDL in datagrid
Posted by Vik at 4/19/2004 10:55:40 AM
How can I display the lookup values in a datagrid?
E.g., the datagrid displays a table that contains a ProductID field. I want
to display a Product description from a Product table in that datagrid.
Currently I use a join between the main table and the lookup table to get
the Product description... more >>
problem with the Session State
Posted by buran at 4/19/2004 10:52:22 AM
Dear ASP.NET Programmers,
I am using Session State in my application:
<sessionState mode="StateServer"
stateConnectionString="tcpip=127.0.0.1:42424" stateNetworkTimeout="10"
cookieless="false"/>
The problem is that sometimes??? the session state loses its items, so the
the pages do not w... more >>
DropDownList selection not updated
Posted by Alex at 4/19/2004 10:52:17 AM
I have a DropDownList on a form. I filled it with some data from a DataSet.
I can select items.
I also added a button to the form. I added a onClick handler. In the code
behind handler I can retrieve all my other fields from the form (input's).
However the SelectedValue of the DropDown box doesn... more >>
DataGrid and footer control validation
Posted by Sebastian at 4/19/2004 10:43:49 AM
Hi,
I have datagrid. In its footer there is editbox to add new item.
All is cool. Datagrids 'Delete' button has CausesValidation set to false and
all is great.
But the problem is in 'Process' page button. ('Process' button saves all
data on the page to database).
When I click 'Process' but... more >>
Encryption Key/Cache
Posted by A. Elamiri at 4/19/2004 10:33:16 AM
I would like to store some Role Information in a cookie since I cannot use
Session in the AuthenticateRequest method.
I thought of encrypting the cookie using Rijndael Algo. for provider. I
would generate a 16 character key store it as a Cached object and replace it
every 20-30 minutes, if the... more >>
Why choose SQL Server or Access?
Posted by Vaughn at 4/19/2004 10:12:11 AM
I'm looking for a hoster that has some type of DB support and I've noticed
that most include Access DBs, but if you want SQL Server you will need to
pay a substantial additional amount monthly.
Why would I want to choose SQL Server instead of Access, or vice-versa? My
goal is to display my asp.n... more >>
FIX: Creating a New Web Project Error - This worked for me
Posted by Steve Y. at 4/19/2004 9:41:03 AM
My Environment
..Net SDK 1.1 on remote Win2k Server
Connecting with VS 2003 via FrontPage Extension
Error
"The web server reported the following error when attempting to create o
open the Web project located at the following URL
'http://localhost/webservice1'. 'HTTP/1.1 500 Internal Error
T... more >>
Deleting Session Variables after use
Posted by Simon Harvey at 4/19/2004 9:25:42 AM
Hi all,
Is it prudent to delete items that you've stored in the session if you are
sure that these values won't be needed again?
I'm also wondering if things would be arsed up if the user went to a page
that deleted session information and then used his/her back button to go to
a precious p... more >>
need some help
Posted by Mike at 4/19/2004 9:24:53 AM
I have a aspx page that is accessing a WSDL web service creating in VB6.
When I run the page i'm getting the following error:
Object reference not set to an instance of an object
here is my code snippet thats failing
public function GetService as as WebReference1.WebServiceName
dim conf... more >>
DataList and SeparatorTemplate
Posted by Leszek Taratuta at 4/19/2004 9:22:41 AM
Hello,
I have a quick question:
How to specify the height of the SeparatorTemplate (that is rendered as <td>
tag) in DataList?
Thanks,
Leszek Taratuta
... more >>
Can't Rename Project
Posted by Dean at 4/19/2004 9:19:40 AM
I somehow managed to rename my project and Solution from "ProjectOne" to
"ProjectTwo" a few weeks ago. (ficticious project names).
Now, I want to rename it back to "ProjectOne." I renamed it in VS.Net,
replaced all of the strings but it still would not load. Someone on this
forum told me to... more >>
Mouse events
Posted by stefanogandini NO[at]SPAM fastwebnet.it at 4/19/2004 9:17:07 AM
Hello!
I have to use something similar to System.Windows.Forms.MouseEventArgs
in a web form in asp.net.....could u suggest me something,please??
Thank u... more >>
Deny Access To A Page
Posted by Gene at 4/19/2004 8:46:39 AM
What are some ways I can deny access to an aspx page other than removing it
altogether from the site? I need the ability to temporarily prevent all
users from accessing certain pages.
Thanks.
... more >>
VB Questions re C Programming
Posted by Murphy at 4/19/2004 7:48:11 AM
I am new to .Net and am currently learning using vb in a project using
WebMatrix not Visual Studio.
I have found an article regarding password security that is written in C
code and I am unsure of how to implement it into my project.
I am able to create and compile .vb files and I understand... more >>
check for cookies
Posted by mike parr at 4/19/2004 6:39:04 AM
I'm trying to do a check to see if the client browser has cookies
enabled. But my code below always gives me the value for acceptsCookies
= true, whether the machine has cookies enabled or not.
Can anybody help me out with this?
private void Page_Load(object sender, System.EventArgs e)
... more >>
Storing Data in ASP.NET
Posted by Ravi at 4/19/2004 6:11:01 AM
hi all,
I have a requirement where in,i have a user interface which has some text boxes, dropdown lists,links and finally a submit button and cancel/reset button.
The requirement is that i enter data into all the textboxes and select values in the dropdown boxes. And when i click on the link but... more >>
MSXML 4.0 .NET equivilents
Posted by Kent at 4/19/2004 5:56:03 AM
I was wondering if there are direct equivelents in .NET to the objects provided by MSXML 4.0 dll. For example I need to send and recieve XML documents from an asp page. The example I was given uses these objects.
MSXML2.FreeThreadedDOMDocumen
MSXML2.ServerXMLHTT
I know I can still used the MSX... more >>
Why visible=false only work sometimes on datagrid?
Posted by Adam Smith at 4/19/2004 5:38:33 AM
The following code in my onitemcreated works for some item rows in my
datagrid, but not others. I am trying to set a linkbutton visible for
downloading a file if the data is available in the database, otherwise
set a "not available" label visible. The outcome is that for the first
row on my da... more >>
Dynamicly get the form name at server
Posted by Yanir at 4/19/2004 4:46:04 AM
Hi
I have a user control
I want its dynamiclly discover the client name of the form that this control is contained in.... more >>
Crystal Reports For .Net - Error in File. The request could not be submitted for background processing.
Posted by Augustin Prasanna. J at 4/19/2004 4:36:02 AM
Hi
We have developed the reports using Reports for our asp.net web application using the Crystal Report assemblies that comes along with Visual Studio.Net 2003. the report works fine in our development environment. When we deployed the app on our production servers (it has Crystal Reports For... more >>
background-image problem while using CSS for aspx page
Posted by dhakras_n NO[at]SPAM hotmail.com at 4/19/2004 3:24:07 AM
I am using background-image attribute in a CSS file and linking the
CSS file to aspx page. But strangly, background-image attribute is not
working for relative URL.
e.g. If I apply following css
..navbar-background {
background-image: url(images/menubar.gif);
}
the image is not appearing ... more >>
create word documet
Posted by hullyi at 4/19/2004 2:16:02 AM
how can I generate a Word document on the fly with c# tools only or by javascrip
... more >>
RadioButtonList madness!
Posted by V. Jenks at 4/19/2004 12:53:22 AM
I have a RadioButtonList and an ImageButton in my form.
In the ImageButton Click event handler I'm trying to
redirect to a new page, passing the value from the
RadioButtonList in a querystring.
Why do I get a null reference when trying to get the
value of the RadioButtonList?
some cod... more >>
|