all groups > asp.net > november 2007 > threads for wednesday november 14
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
Unicode to HTML converter/cleaner
Posted by Rob at 11/14/2007 11:26:22 PM
Is there a handy .NET call to convert a Unicode string to valid HTML so
sticking in an <p> inner HTML? Kind of thing converts "<" to < and
multiple spaces to   etc. I need to display unicode text from a database
on the web page.
Cheers, Rob.
... more >>
customerrors page that errored and error?
Posted by jobs at 11/14/2007 8:23:13 PM
Hello.
I've got a customerrors section in my web.config that redirects all
errors to an ErrorPage.aspx
<customErrors defaultRedirect="~/ErrorPage.aspx">
<error statusCode="403" redirect="~/NoAccess.htm"/>
<error statusCode="404" redirect="~/FileNotFound.htm"/>
</customErrors>
... more >>
How to check users against security groups in Active Directory
Posted by rote at 11/14/2007 6:40:18 PM
My sceanrio is this on an asp.net 2.0 freamework.
I want to use any of the data controls e.g Gridview,DetailView etc..
But i want some buttons e.g update,edit save etc to be enable or disabled
based on if they belong to some security groups in active
directory.
I'm looking for the best options ... more >>
Is it possible for java based applications to use asp.net forms authentication mechanism
Posted by santosh.tripathy@gmail.com at 11/14/2007 6:29:25 PM
We have a requirement where in a java based web application is getting
integrated with the existing .net based web pages. The .net based web
pages are secured through forms authentication. Is there any mechanism
where we can extend the same form based authentication to java based
web pages?
... more >>
ASP.NET way of handling the "Network" Token issue KB207671
Posted by kellygreer1 at 11/14/2007 5:44:17 PM
I'm writing an .ashx page that needs to be able to write files to a
network share.
Example:
string fullPath = @"\\someserver\someshare\log.txt";
File.WriteAllText(fullPath,"test");
I seem to be running into that old Network Token issue from Classic
ASP. I had solved this in the past by wr... more >>
IE does not accept session cookies
Posted by StanB at 11/14/2007 5:15:02 PM
I came across this weird problem:
1. Session state stops working after the app is deployed to another server
because
IE does not accept cookies.
2. It works if cookieless="true" in the web.config
3. Yes, I tried IE - Tools - Privacy - Accept All Cookies and also
Override automat... more >>
Redirecting Users: Please Help.
Posted by Jonathan Wood at 11/14/2007 3:54:56 PM
I've spent days trying to come up with a solution. I'd appreciate it if
anyone can help.
My site requires all users to log on. There are three different roles of
users, and each user type will have access to a completely different set of
pages. "Client" pages are in the root folder and "Adm... more >>
Troubleshooting ASP.Net memory usage issues?
Posted by Daniel Peterson at 11/14/2007 3:11:08 PM
I'm responsible for a pair of IIS 6 webservers that run our production
ASP.Net application. We push code on a monthly basis, and about two weeks
after our October code push, we started to run into occasional webserver
errors.
The application pool is configured to run as a domain user which... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
adding httpmodule causes ambiguous confi
Posted by Jimi Schacht at 11/14/2007 3:09:05 PM
ok, so, i've got a web project in c#. I'm using IIS instead of dev server.
The application builds fine until I add an httpmodule I intend to use for
URL rewriting and it's entry in the web.config. the httpmodule is basically
a simple implementation as all I've done so far is to implement requi... more >>
threading won't work on function with parameters
Posted by esource at 11/14/2007 2:39:25 PM
Hi all,
I'm trying to use threading model in my web service but addressof does
not work with functions
I'm using VS 2005
my code:
Public Function Start() as Boolean
Dim MyThread As New Thread(AddressOf DoSomething)
MyThread.SetApartmentState(ApartmentState.STA)
MyThread.Start()... more >>
Cant find control within EDit Row of GridView .. please halp
Posted by anonymoushamster at 11/14/2007 1:48:49 PM
I have a gridview and a dropdown that appears in my custom edit row
( i added it to the edititemtemplate).
However I cant reference it/ find it. The dropdown is in the first
columnd and the below is located within :
public void rowedit(Object sender, GridViewEditEventArgs e)
Dro... more >>
psot back
Posted by Roger at 11/14/2007 1:14:17 PM
Hi
If anyone can help
Is there away to make javascript prevent a postback on a button,
i have tried putting the button in a <span> tag with onclick but it carrys
out the javascript functioon and then posts back even if i use return false;
I want javascript to do clientside valudation befor... more >>
GridView is making two of each column
Posted by Nathan Sokalski at 11/14/2007 12:57:20 PM
I have a GridView control with three columns, all BoundField columns. They
all have a HeaderText and DataField property set, and the third one has a
DataFormatString property as well. When I run my code, the GridView displays
two sets of columns. The first set looks exactly as I would expect. ... more >>
Best Way to transfer Information Outsiide the firewal
Posted by RSB at 11/14/2007 12:23:35 PM
Hello Everyone,
I am working on a app which is with in the firewall and we have a
requirement for some folks out side to access some of the information. Now
we cannot send the information via Email. So what other options we are left
with .. by which we can push this information to outside f... more >>
testing error page logic. Don't debug in VS.NET 2005?
Posted by jobs at 11/14/2007 11:51:07 AM
vs.net 2005 asp.net 2.0 website. While in vs.net, and testing my
project, I don't want errors to end up in debug mode in the code. I'd
like them to go to the preset error page set in the web.conig. How can
I do this?
Thanks for any help or information.
... more >>
How to Print a Page in IE7
Posted by Sam at 11/14/2007 11:49:37 AM
Hi,
I have to print an aspx page. The page contains only a gridView ( with many
rows). The gridView consist of two template fields where I have put in
another gridView inside.
I don't know Crystal Report, and I want to print this page without header
and footer ( like website address ) and I ... more >>
AJAX Futures CTP
Posted by Ross Culver at 11/14/2007 11:08:08 AM
I installed the Futures CTP prior to installing the AJAX Control Toolkit. I
then later went back and uninstalled AJAX futures via Add/Remove Programs as
well as deleted the AJAX Control Toolkit in c:\programs\Microsoft ASP.NET\.
But apparently there's more to removing it than just uninstallin... more >>
Fender Guitars
Posted by arturklis2@gmail.com at 11/14/2007 11:01:21 AM
Best off
http://fender-guitars-review.blogspot.com/
... more >>
Question: Gridview question (displaying data from a related "many" table)
Posted by Cirene at 11/14/2007 10:57:31 AM
I have a gridview that displays a listing of cars for sale. It's based on a
"Cars" table.
(The "Cars" table has a 1 to many relationship to "CarPictures" table.)
On each gridview row (ie for each car) I want to show just 1 picture from
the "CarPictures" table.
Any suggestions as to how... more >>
ASP.NET ReportViewer popup-type navigation url
Posted by cmarl at 11/14/2007 9:09:57 AM
Can a new browser window be made to popup when a ReportViewer, table,
textbox is clicked ?
The textbox, properties, navigation, jump to url property doesnt seem to
like
javascript:window.open etc.
Thanks.
... more >>
Using GetPostBackClientHyperlink to raise LinkButton's OnCommand e
Posted by Marc Woolfson at 11/14/2007 9:07:05 AM
Hello,
I have a scenario whereby a LinkButton control needs to be called by a
client-side HtmlAnchor element in ASP.NET 2.0. I am using the
GetPostBackClientHyperlink() method to retrieve the postback JavaScript
expected by the LinkButton. I wish to pass an argument to the LinkButton so I
... more >>
Thread.CurrentPrincipal.Identity.Name
Posted by Ken at 11/14/2007 9:02:31 AM
I'm testing on web application (.net 1.1 using C#).
when I tested the application on local machine (IIS5.0,XP professinal), it
return value for Thread.CurrentPrincipal.Identity.Name
However, When I tested the same application on the server (IIS6.0, 2003
Server), it return nothing for
Thread.C... more >>
Visual Studio non-generic method bug
Posted by B. Chernick at 11/14/2007 8:56:02 AM
I have just spent a very frustrating morning reading postings on this problem
and nothing seems to work. I am trying to write a demo project in VB/ASP.net
2.0 and I am unable to get any sort of edit page to work. This is extremely
simple stuff, straight out of one of Microsoft's training vid... more >>
Finding control in GridView
Posted by David C at 11/14/2007 8:54:43 AM
I am trying to toggle a calendar control in a GridView and I am getting the
error "Object reference not set to an instance of an object."
The error is occurring in the 1st FindControl of the code below. I am using
an ImageButton next to a textbox so that when clicked, the calendar will
show.... more >>
Session Object from Application
Posted by Jonathan Wood at 11/14/2007 8:38:15 AM
I was experimenting with putting code in the Application_AuthenticateRequest
hander.
I called some static code and found that HttpContext.Current.Session was
null!
Is this yet another limitation of ASP.NET? That the Session object has not
been initialized? I was going to use that to dete... more >>
worth extracting method
Posted by rodchar at 11/14/2007 8:14:02 AM
hey all,
i have about a 40 or more lines in my switch statement and was just
wondering if it was worth extracting out the individual case statement which
would involve passing a Table object, 2 ints and a string?
What's the rule of thumb?
thanks,
rodchar... more >>
Clear IFRAME from code behind?
Posted by Jakob Lithner at 11/14/2007 6:30:02 AM
I have a ASP.Net page with an IFrame control.
I need to make it empty from code behind.
Is it possible?
... more >>
ASP.NET driving me crazy
Posted by shapper at 11/14/2007 5:29:54 AM
Hello,
First of all let me know that the CSS Control Adapters is a really
good idea ...
ASP.NET renders poorly some of their controls and not CSS friendly ...
so surprise that. Just see IE6 ...
The problem is that CSS Control Adapters has many problems.
Try this, that I am trying for d... more >>
compiled or uncompiled website security
Posted by Sunfire at 11/14/2007 5:22:36 AM
Is there any difference between an uncompiled and compiled website when it
comes to security and safety? or is it all the same?
... more >>
Name of assembly
Posted by Alhambra Eidos Kiquenet at 11/14/2007 5:07:00 AM
Hi misters
I have an Dll (assembly), Servicios.Base.dll,
How I get the full name of assembly without source code (not use
Reflection), only a tool (Reflector perhaps) o VStudio ?
Servicios.Base.Excepciones.ExcepcionesModule, Servicios.Base,
Version=1.0.0.0, Culture=neutral, PublicKeyTok... more >>
Handling errors in ASP.NET AJAX
Posted by Alhambra Eidos Kiquenet at 11/14/2007 12:46:01 AM
Hi misters,
I have an application web ASP.NET 2.0 using ASP.NET AJAX and Ajax Control
Toolkit.
We need handles errors of AJAX, and I want have only one method that handles
those errors (like if I had a Application_error method or a
AppDomain.CurrentDomain.UnhandledException event), a glo... more >>
|