all groups > asp.net > april 2005 > threads for friday april 29
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
C# connection string using Windows NT Authentication
Posted by Maziar Aflatoun at 4/29/2005 11:14:42 PM
Hi guys,
I'm using Windows authentication to connect to SQL Server 2000. On my
computer the connection is fine. Now if I move it to a remote server, how
to I hard code my Username/Password in my connection string (using Windows
NT authentication and not SQL Server authentication)?
Than... more >>
HELP!
Posted by Ryan Smith at 4/29/2005 10:25:01 PM
I am having a problem with a datagrid I am trying to use. I have an Access
DB with two records I want to display. All that is displayed is the heading
for the datagrid. I can't seem to display the actual data.
Below is the Code Behind Portion:
Imports System.Data.OleDb
Public Class U... more >>
Access value in HTML. Urgent. Thank You.
Posted by Shapper at 4/29/2005 10:12:50 PM
Hello,
I have this:
Sub Page_Load(Sender As Object, E As EventArgs)
Response.Write(Session("culture"))
End Sub
It displays Session("culture") value.
I want to access this value in my HTML code.
I thought it would be something like:
<%# Response.Write(Session("culture"... more >>
Error when deploying to production server
Posted by Simon Harris at 4/29/2005 9:28:46 PM
Hi All,
I've just tried to deploy an asp.net app. It works AOK on my
development server. On the production server, I get the error below.
Both servers are Windows 2000 SP4 with .Net Framework v1.1.4322
I copied the following to our production server:
- Various ASPX and 1 ASCX files to /... more >>
Method not allowed - webservice
Posted by roni at 4/29/2005 9:09:38 PM
when call to webservice ,after setting ip to the URL (instead of localhost)
,i get The request failed with HTTP status 405: Method not allowed,why ?
... more >>
setting the url property of the proxy webservice in vb.net
Posted by roni at 4/29/2005 6:19:59 PM
hi.
how can i set in runtime the url of the webservice he is using ? (in
vb.net )
all i see in the client is the web reference.
... more >>
changing web.config need restart web application?
Posted by strout at 4/29/2005 5:51:04 PM
Do we need to manually restart the application for the new settings to take
into effect?
If not. What happen to the current user who is current hook on the
application? The new setting applies or old one?
Thank
strout... more >>
deploy .pdb .resx file
Posted by strout at 4/29/2005 5:48:02 PM
Do we need to deploy these type of file on server. Is .resx file embedded
into dll or not? If not we should include resx file, right?
strout... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Session problem using ShowModalDialog
Posted by Perry van Kuppeveld at 4/29/2005 5:31:06 PM
Hi,
When i'm using the ShowModalDialog function, while another browser window is
open (not the application window calling the showmodaldialog) i lose my
session. What could be the problem / resolution?
Thank's in advance,
Perry
... more >>
Post-back and user controls
Posted by James T. at 4/29/2005 5:30:52 PM
Hello!
How I can force user controls to reload on post-back?
Thank you!
James
... more >>
Best practices in ASP.NET application development
Posted by Amelyan at 4/29/2005 5:07:21 PM
Could anyone recommend a book (or a web site) that defines best practices in
ASP.NET application development?
E.g.
1) Precede your control id's with type of control btnSubmit, txtName, etc.
2) Group relevant .aspx files into subfolders within your project
etc.
... more >>
Could not access 'CDO.Message' object
Posted by Martin at 4/29/2005 4:08:35 PM
Hi,
I have standard code that sends mail from an asp.net application.
The application is running on a production web server.
it uses the standard system.web.mail namespace.
most of the time mail is sent fine. however every so often an error is
reported where mail can't be sent.
upon more ... more >>
How to set validator visible by default?
Posted by TomislaW at 4/29/2005 3:41:03 PM
I would like to set requiredfieldvalidator text property to red '*', but he
is invisible by default, only when I click on button he became visible. I
would like to have him visible by default, before I click button.
Is this possible?
... more >>
Is it possible to change culture at aplication level
Posted by Shapper at 4/29/2005 3:03:49 PM
Hello,
Is it possible to change culture at aplication level?
I am using this to get the current culture at application level:
Response.Write(CultureInfo.CurrentCulture.Name)
Thanks,
Miguel
... more >>
Is there a URL Params class?
Posted by Ken Varn at 4/29/2005 2:56:21 PM
Is there any sort of class or method that can be used to construct the
parameters to a URL in ASP.NET? I would like to be able to call
Response.Redirect() with a URL that has parameters passed without having to
manually construct it using ? and & in the URL string.
--
---------------------... more >>
web graphics and copy with mouse
Posted by Spencer H. Prue at 4/29/2005 2:50:04 PM
Hello!,
I am trying to select an image with the mouse and "roll it over" or copy it
and then drag and drop it onto another image. I have looked into using
imagebutton and image. Apparently I have to use Javascript and HTML to
initially make a copy of the image and then the only other questi... more >>
suggestions?
Posted by abcd at 4/29/2005 2:48:11 PM
I want to design an asp.net page which will have multiple controls. I want
to fill one of the control when there is some action like selecting
something from its previous control...I want to simulate as if its a windows
based application and the entire page is not refereshed (trip to
server)... more >>
Can't catch the error: HTTP 401.2
Posted by sck10 at 4/29/2005 2:11:06 PM
Hello,
I have custom errors turned on, and am able to catch errors and send the
user to a friendly page. I have one site with "authentication" turned on.
I would like to send a person who doesn't have access rights to a user
friendly page, but I can't catch the following:
HTTP 401.2 - Unau... more >>
Why this code line doens't work?
Posted by Shapper at 4/29/2005 12:07:42 PM
Hello,
I have the following code in the Global.asax:
Sub Session_Start(Sender As Object, E As EventArgs)
Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
End Sub
The Error I get: "Name 'Thread' is not declared."
However when I have this in my aspx code it work... more >>
databinding xml to dropdownlist
Posted by Joe Gass at 4/29/2005 12:04:14 PM
I'd like to bind some xml to a dropdownlist
<engines>
<engine name="test1" id="1" />
<engine name="test2" id="2" />
</engines>
If I do:
ddlEngines.DataSource = xmlDoc.SelectNodes("/engines/engine")
ddlEngines.DataBind()
I get
<select name="ddlEngines" id="ddlEngines">
<option valu... more >>
Code Switching in aspx file
Posted by Matt at 4/29/2005 12:00:31 PM
Have this generic page for update,new,close fields.
Once click on page1 and capture the button click. On second page I only
would like to show whateever button clicked(update,cl,new)
I would do this in asp like below.
<%if page = "update">
<td><update fields</td>
<%else%>
<td><close fields</t... more >>
CSS Style ignored after postback
Posted by Jim Brandley at 4/29/2005 11:44:02 AM
I need to set the background on required fields to a fifferent color. When
the page is initially rendered, it works fine. When activity elsewhere on
the form causes a postback, the style is ignored when the page is
re-rendered. The CSS reference is in place, and the style is specified
correctly ... more >>
Cookies. Simple Question. Thank You.
Posted by Shapper at 4/29/2005 11:32:58 AM
Hello,
I need to know how to do 2 things:
1. CREATE a NEW cookie with 2 values: "password" and "user".
2. APPEND 2 new values to an ALLREADY EXISTING cookie.
I created a code which is working:
Dim cookie As HttpCookie = New HttpCookie("MyCookie")
cookie.Values.Add("culture", "pt-PT")
... more >>
dynamically generated image's quality
Posted by Ersin Gençtürk at 4/29/2005 11:26:36 AM
Hi ,
I am creating dynamic images (for example writing text into a bitmap) and
saving it to the output stream with gdi library in .net but I can't adjust
image quality.
The best parameters with everything is set to fine also gives me low quality
? how can I set the quality to the maximum ? ... more >>
errors running HttpWebRequest.GetResponse - 401 unauthorized
Posted by Steve Richter at 4/29/2005 11:18:21 AM
I have a page that uses simple HTTP GET to do an ISBN lookup via
Amazon.com. The page works when I run it from //localhost. But I have
moved it to my godaddy.com shared hoster site, and I get errors on the
HttpWebRequest.GetResponse statement.
The remote server returned an error: (401) Unaut... more >>
Search box in usercontrol how to update parent datagrid
Posted by seanmayhew NO[at]SPAM gmail.com at 4/29/2005 10:59:32 AM
I have a search box in a user control when submitted it should update
the datagrid on the parent page that the control is placed on.
Suggestions? Tutorials?
... more >>
Stupid question
Posted by Bart Schelkens at 4/29/2005 10:29:50 AM
Hi,
I have kind of a stupid question (at least to me).
Somebody asked me what the difference was between asp.net and vb.net.
Since I create my webapplications with vb.net I couldn't think of a
difference. To me they seem the same.
Am I correct ?
Thanks
... more >>
HttpContext.Current.User doesn't persist in child app
Posted by John Dalberg at 4/29/2005 10:10:11 AM
I am setting the HttpContext.Current.User in the
Application_AuthenticateRequest event in global.asax.cs. When I use the
IsInRole function in a web page, it works fine. So far so good. (Note that
Integrated security is used and anonymous is turned off.)
This app will actually work as a child... more >>
Simple question about File System
Posted by Joe at 4/29/2005 10:06:01 AM
Hi,
I have a following code which I use to display the files in a directory
named Temp. If the Temp directory doesn’t have any files, then I want to
display a message but I don’t know how to find it out if the directory is
empty or has any files. Can some someone help me?
Thanks,
... more >>
Active Directory
Posted by Vinay at 4/29/2005 9:52:53 AM
I am looking for an book with examples to Program Active Directory from
..NET
Thanks
Vinay
... more >>
No toolbar/menubar etc at start of app
Posted by Glenn Hasteadt at 4/29/2005 9:34:03 AM
I'm VERY new to .NET. I have made a new webform that does an internal
directory search. How do i have the IE menubars disabled from the initial
page. I'm not opening another window so I guess I can't use the 'toolbar=no'
option of window_open. Is there a change I can make in web.config? Thank... more >>
aspnet_wp.exe crashing
Posted by Tom at 4/29/2005 9:32:09 AM
I am having the following show up in my application event log:
=====================================
Source: .NET Runtime
Event ID: 0
Description:
The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry informatio... more >>
probably wont get a response on this, tab question
Posted by Paul at 4/29/2005 8:50:10 AM
Hi, noticed high activity on this newsgroup as the last few posts I have made
have not received a response. Anyhow I noticed that with a .NET web
application when the webform opens if the user hits the tab key it goes to
the address bar at the top of the browser. I would like it to go to a
... more >>
hide the real web form path or URL, and the web page name
Posted by david at 4/29/2005 8:42:03 AM
In J2EE, I can rename the virtual URL in configuration file such that URL
does not indicate any information about the real page path. For example,
http://www.mysite/mypage
is not the real path name in the web server by aditting the configuration
file. The real path and file name could be: main... more >>
Can Asp and Asp.net work on the same Virtual directory?
Posted by Patrick B. (pbutlerm) at 4/29/2005 8:37:48 AM
Hello,
I am running IIS 6.0 (win2003 server). I have an ASP.NET application
running in the root. And I have 2 subfolders running asp applications. My
question is this asp applications will work, or I need to do anything
special to them?
I configured the subfolders to run as applications..... more >>
Error only on production server
Posted by Web Team NO[at]SPAM Borough of Poole at 4/29/2005 7:58:41 AM
Server Error in '/netapps' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack t... more >>
Translate ASPX page from VB.NET to C#
Posted by GMartin at 4/29/2005 7:42:16 AM
Are there any significant stopping blocks from taking an ASPX Page
someone designs in VB.NET, and redoing the Code behind page to use C#?
Is the Code behind the only thing one would need to change? ...That
and the Page Language="vb" in the HTML? (Are there differences to the
way each lays ... more >>
Converting ASPX pages from VB.NET to C#
Posted by glenn.e.martin NO[at]SPAM gmail.com at 4/29/2005 7:29:52 AM
Are there any significant stopping blocks from taking an ASPX Page
someone designs in VB.NET, and redoing the Code behind page to use C#?
Is the Code behind the only thing one would need to change? ...That
and the Page Language="vb" in the HTML? (Are there differences to the
way each lays ... more >>
Problems using GetAttribute and SetAttribute of the IAttributeAccessor interface with web controls
Posted by duff NO[at]SPAM netcomuk.co.uk at 4/29/2005 7:12:38 AM
Hiya,
I'm trying to replace the commented out code below with a neater
version using the IAttributeAccessor interface (so that I don't have to
write 'if' statements for all control types).
At the moment this doen't work. The test line I put in
(string s = ControlAttributes.string s = Cont... more >>
Postback in Firefox and IE
Posted by Diffident at 4/29/2005 6:48:11 AM
Hello All,
I have a piece of rudimentary code which is behaving differently in
different browsers.
if(!this.IsPostBack)
{
//execute some code
}
This piece of code is being executed for the very first time and also each
time a page is posted back to the server on firefox and nets... more >>
HTML to Graphic File?
Posted by Lucas Tam at 4/29/2005 5:17:01 AM
Is there a .NET component which can generate a Graphic File (JPEG, GIF,
BMP, etc) from a URL?
Basically I want to create thumbnails of several dynamic pages I have (via
code of course).
Thanks.
--
Lucas Tam (REMOVEnntp@rogers.com)
Please delete "REMOVE" from the e-mail address when ... more >>
Question about DataGrid ItemStyle
Posted by leodippolito NO[at]SPAM gmail.com at 4/29/2005 4:49:15 AM
Hello sirs,
In my aspx file I have a datagrid with some BoundColumn's. When a
format has been defined for a column (for colors, horizontal alignment,
etc), it adds an ItemStyle element inside the bound column element, as
in this example:
<asp:BoundColumn DataField=3D"DEEMAIL" SortExpres... more >>
Determining 'Build' date of a solution
Posted by Roger Helliwell at 4/29/2005 4:16:12 AM
Hey gang,
What's the best way to implement a Build version (or "last updated"
date) in my web-app? I have a footer in my master page that displays
the application's name and copyright info etc. I'd like to add a Build
version and build date as well. (Without hardcoding it obviously.)
At fir... more >>
Forms auth for directory
Posted by dhnriverside at 4/29/2005 4:10:02 AM
Hi guys
Ok, I have a website which has an "Artists Only" section, for which you have
to login for. This section is contained within its own directory on the
server "/aonly".
I want to make people login before they can access this directory, with a
User control on each page for logging in... more >>
Re-loading a UserControl after PostBack
Posted by jon NO[at]SPAM consultix.co.uk at 4/29/2005 3:53:25 AM
I'm trying to establish how to replace a usercontrol that has already
been loaded (using LoadControl in the Page.Load event) with a
different UserControl following a PostBack. Tying to call
LoadControl(<newControlName>) after the Page.Load routine has finished
does not appear to work. The only... more >>
DropDownList validation (separate from page)
Posted by Liz at 4/29/2005 3:05:24 AM
I have a page with several dropdownlists, several text boxes and
several buttons which perform calculations. I need to validate one
dropdownlist (not the whole page) with the click of one button. I have
a separate submit button which should validate the other fields.
This page on MSDN does what ... more >>
Login failed for user '(null)'. Reason: Not associated with a trus
Posted by boy at 4/29/2005 2:32:14 AM
I got the following error message when I access the web application, in which
the web application use SPPI to connect to database.
"Login failed for user '(null)'. Reason: Not associated with a trusted
connection"
The web application is grant to a group only in web.config
<authorizat... more >>
Request.QueryString Collection Doesn't Get Umlauts
Posted by Axel Dahmen at 4/29/2005 2:19:23 AM
Hi,
I've created an aspx page taking a query string argument as parameter.
Although I've correctly escaped umlauts in the query string, they do not
appear in the QueryString collection. If I give:
http://myComp/myPage.aspx?q=G%FCnther
Request.QueryString[0] yields "Gnther" instead of "Günth... more >>
Problem : IIS 6.0 with asp.net restart periodically with no reason
Posted by Christian at 4/29/2005 2:14:03 AM
Hi,
I have a Windows Server 2003 with IIS 6.0 et dotnet 1.1
I have an asp.net application on that server with no more than 30 users a day.
In my web.config the session timeout is set to 180 min and the form
authentification timeout is set to 120 min.
My problem is the following : IIS r... more >>
how to hide the detail data?
Posted by dollar at 4/29/2005 12:37:37 AM
thanks for your replay Patrick , but I want to show and hide the whole
detail datagrid, the users can show or hide the detail information
whenever they like, any other suggestion?
--
dollar
------------------------------------------------------------------------
Posted via http://www.c... more >>
Accessing Shared Folders on a computer in another domain using UNC
Posted by Baron at 4/29/2005 12:13:20 AM
an asp.net page on Machine A is trying to access files on several machines
of different domains..
any 'good' method to do it without mapping drive in prior.....
i've read something called impersonate; but it use PInvoke, which I don't
like using personally
any good solution?
thanks!!!
... more >>
|