all groups > asp.net > july 2004 > threads for friday july 2
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
Advice Needed.
Posted by WStoreyII at 7/2/2004 11:03:36 PM
This question is for all of the developers out there. I recently had to
drop out of school as it was getting way to expensive and i just could not
pay it. I am really upset about this becuase i really want to become a
computer programmer. I dont have any degrees or certificates or any other
f... more >>
How can I run WebService on Win98 System
Posted by Wasi Rehman at 7/2/2004 10:57:02 PM
hi friends,
I have one webservice which i want to run on win98 system because some reference in that webservice only run in win98, and my ASP.net application is on win2000 pro. I want to call that webservice from my ASP.net application how could i do that........ how can i publish my webservice o... more >>
"including" a global for all .aspx pages
Posted by David at 7/2/2004 10:36:24 PM
is there some way to make a file (.cs) containing some common C# code
classes being loaded on every .aspx page in my web without me having to
declare it every time?
Something in the config file perhaps?
since I have these classes that will be used on every page, I want them to
be like a "clou... more >>
Image Editor ?
Posted by WJ at 7/2/2004 10:31:03 PM
I dropped an Image server control on an Asp.Net page, specified my desired
image, saw the nice image, select the control. However, the VS.Net IDE/Image
Editor tools are still grayed out ! I must have done something weird. I also
tried Html Image control and the same affect experienced. My goal is... more >>
OnClick event question
Posted by EMW at 7/2/2004 10:01:29 PM
My datagrid has four template columns in which an ImageButton is created.
I use the following to add the OnClick event to the button.
img.Attributes.Add("OnClick", "AllButtons_Click")
The AllButtons_Click sub is:
Sub AllButtons_Click(ByVal sender As Object, ByVal e As System.EventArgs)
... more >>
ServerVariables & Language Preferences Support
Posted by clintonG at 7/2/2004 8:30:40 PM
I'm messing around with the Request.UserLanguages and the
Request.ServerVariables("HTTP_ACCEPT_LANGUAGE"); to see
how similar or dissimilar they may be.
I observe and conclude that both get their value from the Accept-Language
key stored in the header of the response. To test this hypothesis I... more >>
Uploading Connection String?
Posted by Arne Beruldsen at 7/2/2004 7:48:02 PM
I've got a Web App developed via VBNet. I'm using WebForms and a small Access database. It's easy enough to set the connection string when the database is on my local machine. However...I need to upload both the app and the database. Is there a way I can set the connection string similar to the ... more >>
Multiple *.ascx files with a single *.ascx.cs in VS.NET 2003
Posted by Holger (David) Wagner at 7/2/2004 7:36:54 PM
Hi all,
I'd like to have several "skins" for an application that are
"structurally different" (i.e. controls at different locations, some
controls visible only in a particular "skin"). The application is
implemented with a single default.aspx which loads a couple of
ascx-Controls (navigation,... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Autopostback on a large DropDownList
Posted by Yahya Saad at 7/2/2004 6:12:34 PM
Dear All,
I have an ASP.Net webform that includes a DropDownList (bound to a
dataview including 6000 records) and a textbox that is updated according to
the selection of an event at the SelectedIndexChange of the DropDownList.
Filling the DropDownList takes about 3 seconds but when the Sel... more >>
get return value from ActiveX S_OK in javascript
Posted by Joe at 7/2/2004 6:01:51 PM
I have a javascript that calls a method of an activex control. I want to get
the return value, S_OK or S_FALSE.
I tried var r = document.Form1.PCtl.Download('h')
document.write(r) // to see the value
but r is coming out as undefined.
... more >>
Javascript and cookies
Posted by Wardeaux at 7/2/2004 5:55:44 PM
I set a cookie in my code behind:
Dim cookieFocus As New HttpCookie("PMFocus")
cookieFocus.Value = "D"
Response.Cookies.Add(cookieFocus)
I read the cookie in my html page:
function doFocus(str)
{ var allcookies = document.cookie;
var pos = allcookies.indexOf("PMFocus=");
var mydate = ... more >>
Solution: Asp.Net and Smb shares - without impersonation
Posted by Granger Godbold at 7/2/2004 5:49:09 PM
I've found a solution to this that I think I like, but I thought it wise to put
it out for all to see so people could punch holes in it as they wished. (Is
there a better way?)
I want a page in an Asp.Net site to be able to open/access a file that's on an
Smb share (ie. "Windows Share", "Ne... more >>
datetime error on insert to db
Posted by Lerp at 7/2/2004 5:46:49 PM
Hi all,
What do I have to do in order to get my value from my textbox that is
formatted like 'mm/dd/yyyy' into a datetime database field ?
Currently getting an error: Syntax error converting datetime from character
string
I have 2 validators on this form field as seen below along with a ... more >>
cannot send email from SMTP, help!
Posted by Quentin Huo at 7/2/2004 4:57:19 PM
Hi:
I tried to send email from an ASP.NET page through SMTP. But I always got
the error:
Server Error in '/' Application.
----------------------------------------------------------------------------
----
The transport failed to connect to the server.
Description: An unhandled exceptio... more >>
Request.Querystring or something else?
Posted by David at 7/2/2004 4:12:13 PM
in classic ASP I divided each .asp file into several parts being run by
switch (Request.Querystring("action").Item)
...
what is the best way to do this by .Net? Anchor control events?
... more >>
Activate a text box?
Posted by MattB at 7/2/2004 4:09:23 PM
How would I have a textbox on my web form that will automatically have a
blinking cursor in it when the page loads?
Closest I've come so far is having to press tab once to put the cursor in
there.
Thanks!
Matt
... more >>
Restore scroll position of a DIV over postbacks
Posted by JezB at 7/2/2004 3:56:50 PM
There are a few references on the net about how to restore a page's scroll
position over a postback.
eg. http://www.devhood.com/messages/message_view-2.aspx?thread_id=104625
My question is : can the same thing be done to restore the scroll position
of a specific DIV within a page? I have a DIV... more >>
stylesheet height
Posted by JezB at 7/2/2004 3:38:11 PM
I have a DIV which I want to automatically resize when the user resizes the
browser.
The width setting is easy - I want it to appear on the left hand side of the
page and take up 50% of the screen so I set width:50%.
The height is more tricky since I want to size it from it's rendered
Y-pos... more >>
Homeland Security Agency recommends abandoning IE
Posted by dotnetforfood NO[at]SPAM yahoo.com at 7/2/2004 3:06:59 PM
"The Department of Homeland Security's U.S. Computer Emergency
Readiness Team touched off a storm this week when it recommended for
security reasons using browsers other than Microsoft Corp.'s Internet
Explorer":
http://story.news.yahoo.com/news?tmpl=story&cid=74&e=3&u=/cmp/20040702/tc_cmp/22103... more >>
How can I create a separately scrollable area?
Posted by JezB at 7/2/2004 2:36:32 PM
I have a Page in which I dynamically create an HtmlTable at run-time. The
problem is this table might be quite long. I'd like to create it within a
separately scrollable area so that the user does not have to scroll the
whole page to see it all.
How can I do this ?
... more >>
POST method ?
Posted by WJ at 7/2/2004 2:32:32 PM
I have an Asp.Net page that redirects the user to another page with a piece
of data to be passed. Below is the c# instruction:
Response.Redirect("mySpecialPage.aspx?go1="+strGoName);
This will expose the "go1" parameter on the Address field of the MS/IE
browser because it uses t... more >>
SQL-server with ASP
Posted by Ludo VdB at 7/2/2004 2:24:46 PM
Hi,
I'm new to ASP. Currently I'm planning to develop a web application for my
company. I want to use ASP for the application and use SQL-server as the
back-end.
I want to enable a userID and password for every user. I also want to
specify permissions to parts of the application.
I have ... more >>
Form authentication for subfolders only
Posted by Maziar Aflatoun at 7/2/2004 2:06:45 PM
Hi,
I'm trying to protect one of my subfolders from Web.config file in my root
folder. Here is my directory structure
/ // My shopping cart
/admin // Shopping cart admin which needs to be protected
Now in my Web.config how can I protect just the /admin folder (wh... more >>
Html to text converter
Posted by Guoqi Zheng at 7/2/2004 2:01:21 PM
Does some one got a control or component for HTML to Text converter?
On our web support system, We often recevie email in HTML format which we
would like to convert it into text before save it to database.
Any one got a good example?
--
Kind regards
Guoqi Zheng
guoqi AT meetholland... more >>
Rules of thumb for grid vs. flow mode in the designer?
Posted by Jack at 7/2/2004 1:51:31 PM
Are there any rules of thumb for when it is appropriate to use grid mode vs.
flow mode in the Visual Studio.NET WebForm designer?
... more >>
Bug in user control rendering?
Posted by Sunny at 7/2/2004 1:50:16 PM
Hi,
I have a usercontrol defined as:
<P>
<a id="sectionName" runat="server"></a>
<asp:PlaceHolder id="detailsBody" runat="server">
</asp:PlaceHolder>
<br>
<asp:HyperLink id="hrefTop" runat="server" NavigateUrl="#top">Top
</asp:HyperLink></P>
In the cs code I have added some publ... more >>
hi-traffic websites & session-state
Posted by John A Grandy at 7/2/2004 1:43:13 PM
for high traffic public websites , what are the proven options for
session-state storage & management ?
is an out-of-process state-server generally preferred over a sql-server ?
what are the relevant criteria ? is the primary criteria max expected total
storage size (for all active sessions) v... more >>
Linking problem
Posted by Joerg M. Colberg at 7/2/2004 1:33:23 PM
I have a VS.Net solution that contains various projects. Some of the
projects contain programme blocks (legacy code) that are used by some of
the other projects.
One project contains some C code (managed and unmanaged) that uses
external libraries (GNU Scientific Library). These externa... more >>
ASP.NET Session Management Performance issue
Posted by Akshay Kumar at 7/2/2004 1:21:42 PM
Hi All,
I was reading Perforance and Scalability Guide and reading Session State
Management section.
It says use SQL Server when using Web farm .
No where are the metrics and the Why's are msiisng.
The question that comes to mind is :-
1. When using SQL Server or State Server , will the cost o... more >>
User Controls Dynamically Loaded and Nested
Posted by Guadala Harry at 7/2/2004 1:14:14 PM
I have this scenario:
ASPX Page dynamically loads userControl1 - which in turn dynamically loads
userControl2. UserControl2 contains a TextBox Web Server control.
When a user clicks a [save now] button in the ASPX page (not in either user
control), a Postback occurs during which I'd like to re... more >>
ASP.NET Error
Posted by Ozzie at 7/2/2004 12:56:44 PM
I recently installed IIS6 with the .net extensions. I have allowed both asp
and asp.net extensions. My configuration for asp works great. Yet I am
unable to get the asp.net to work using the same configuration as I set up
for asp. Here is a very simple page saved as test.aspx:
<html>
<bod... more >>
datagrid column width
Posted by billy_cormic NO[at]SPAM hotmail.com at 7/2/2004 12:33:12 PM
Hello,
Is there a way to set the width of a column in a datagrid? Does it
have anything to do with Text Formatting String texbox in the Columns
portion of the properties for the datagrid?
Thanks,
Billy... more >>
what replaces #include in .Net?
Posted by David at 7/2/2004 12:11:55 PM
As very often is the case a web page has a main, dynamic content page and a
surrounding, more constant "frame" (not html frame!) for stuff like menu,
logo, links etc. In my old ASP web pages I solved this by using #include so
that each .asp page simply started with including this in the top of t... more >>
Can this be done? Capture HTML rendered from an aspx page request into a string variable.
Posted by Hose B at 7/2/2004 11:29:32 AM
HI all,
I have a legacy app in which users can pick various page templates. There is
a template preview dialog. It works such that they view a list of icons in
an asp page that represent each available page template. Each template is a
straight-forward HTML file (not an asp or aspx) When a use... more >>
Where to put some javascript?
Posted by Jim Corey at 7/2/2004 11:14:46 AM
A longer version of my problem is here:
http://www.developersdex.com/asp/message.asp?p=1116&r=4327903
I have a large amount of javascript that I want to modify
in my code (i.e. a routine called from Page_Load).
I'm trying to figure a relatively easy way to implement this.
It's too unwiel... more >>
Confirm in codebehind
Posted by rkmoray NO[at]SPAM aol-dot-com.no-spam.invalid at 7/2/2004 11:04:08 AM
I am using c# codebehind. I need a confirm box to determine if the
data is to be saved or not.
Ho do I determine which button was seleected?
RegisterStartupScript("startupScript", "<script
language=JavaScript> if (confirm('This will replace the existing
data table for the selected date and... more >>
how to access session object from non page class
Posted by martinthrelly NO[at]SPAM yahoo-dot-com.no-spam.invalid at 7/2/2004 11:04:07 AM
i have a seperate class which i want to access the session state from.
as a workaround i am able to access the session state by inheriting
from the Page class. but this seems a waste as I dont need any other
Page features. i.e.
public class Stopwatch : Page //inherit from Page class to get ac... more >>
Session object timeout
Posted by mg at 7/2/2004 10:57:01 AM
I set a Session object [Session["x"] = "44" in one page and retrieve it later in another page: String str = Session["x"].ToString().
The timeout in Web.config = 30;
I'm able to retrieve the value (str) anytime up to about 15 minutes after it's created, but not thereafter. Thereafter, I get a ... more >>
Forms Auth cookie vanishes immediately after login
Posted by 23s at 7/2/2004 10:33:18 AM
I had this problem in the past, after a server reformat it went away, and
now after another server reformat it's back again - no clue what's doing it.
Here's the flow:
Website root is public, no SSL no forms auth. One of the subfolders in the
public area is the root of a "protected" area; SSL... more >>
How do I post to an off-site form with view-state enabled?
Posted by Zenobia at 7/2/2004 9:13:50 AM
Hi
I need to emulate a page that posts to a form. This form is just
a minor part of the page.
The form has 4 radio buttons, a hidden text box and 2 submit
buttons each with different values.
The form posts to a foreign URL (i.e. an off-site page) using
the GET method.
I would like to... more >>
Cookies In asp and asp.net
Posted by tim NO[at]SPAM sstechs.com at 7/2/2004 8:48:24 AM
Our company is slowly migrating their websites from ASP to ASP.NET.
This being the case in the current aplication I am working on there
are .aspx pages and .asp pages. Is there a way to retrieve in an aspx
page a cookie that was created in an asp page?... more >>
Detaching from and reattaching to SourceSafe
Posted by teddysnips NO[at]SPAM hotmail.com at 7/2/2004 8:17:25 AM
I need to take my source code to my client's site for final debugging.
I need to disconnect it from SourceSafe (select project, then File,
Source Control, Change Source Control. In the dialog choose
Disconnect. This, I hope, gives me a working copy of the source code
without all the SourceSaf... more >>
Help with ASCX Issue!
Posted by Wade Beasley at 7/2/2004 7:14:39 AM
I have a web project that currently has a standard header, footer, and
menu ascx files. I am now suppose to change the project to allow a
user to choose from 3 different views, ie 3 different groups of those
.ascx files. Does anyone have some sample code on how to do this?
This needs to chec... more >>
I completely disagree
Posted by Dimitris Pantazopoulos at 7/2/2004 5:24:02 AM
Hi all.
I completely disagree with the ASP.NET Event Handling model.
This is a final conclusion I came to after weeks of hard work on a quite-more-realistic-web-app than the MSPetShop ;)
I firmly believe that the Event Handling model is cumbersome, complicated, unefficient and just, well, ...unpr... more >>
deleting datagrid row
Posted by Tim Seaburn at 7/2/2004 4:18:54 AM
after filling a datagrid from code, I now need to delete rows in the grid
based on some conditions. Can this be done in the ItemDataBound or
ItemCreated events? if not is there any other way to explicitly delete a
row before it displays?
thanks,
G
... more >>
The compiler failed with error code 128
Posted by Hamilton at 7/2/2004 3:02:01 AM
Hi there,
I've seen this error appear a few times in newsgroups but unfortunately I haven't found one that actually provides a solution.
I'm basically deploying a new website into an area at a web hosting company and when I try to run the site (which runs in our local IIS server), I get the fo... more >>
is html coding (almost) obsolute with .Net?
Posted by David at 7/2/2004 2:02:41 AM
jumping on the train and with such a big jump that .Net is there is
something I just find hard to believe... since the arrival of Web forms
(<asp:xxx/>) - will I ever need to do manual HTML code except for the actual
graphical design of my web (e.g. <p> <br> <table>) ???
... more >>
File access on other server
Posted by Jan Nedergaard Jensen at 7/2/2004 1:47:02 AM
I try to access a folder on an other server, that have share the folder by a standard share name, like \\TestServer\sharename
But the I can't access to the share folder from the server that's runnes the asp.net web site.
Is it possibility to add a user name and password to the file sahre, or a... more >>
Saving a file on a network folder from ASP.Net Web application
Posted by Vani at 7/2/2004 1:17:01 AM
Hi All,
Is it possible to save a file on a network folder from a web application which is developed in ASP.Net.
I tried mapping a network folder on the server and tried to save a file on that mapped folder. I am getting error as :
"Logon failure: unknown user name or bad password. "
Plea... more >>
Unable to catch Page_Errors anymore!
Posted by Janus Knudsen at 7/2/2004 1:12:44 AM
Hello.
Suddenly im not able to catch unhandled error in the Page_Error nor the
Application_Error events!!
All errors are showing up with the nasty red Server Error in.... Application
page :O(
Do anybody have a clue of what's going on ??, why is'nt the event not
firing...
Kind regard... more >>
Exposing event in user control
Posted by Mark at 7/2/2004 12:18:27 AM
I have an aspx page that contains a usercontrol. The usercontrol is titled
'authorize'. 'authorize' contains 2 panel 'login' and 'logout'. Both are by
default 'not visible'
I want to set one of them, dependingn on whether the user IsAutheticated
(forms), to visible.
Whe I put the following co... more >>
|