all groups > asp.net > march 2008 > threads for tuesday march 11
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
Wierd cookie error
Posted by Bobby Edward at 3/11/2008 10:41:32 PM
Here's my code...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
If Not Request.Cookies("UserSettings")("IsAdmin") Is Nothing Then
' THIS IS LINE 11
If Request.Cookies("UserSettings")("IsAdmin") = "True" Then
... more >>
Access denied to the path 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\asp.netwebadminfiles\web.config'
Posted by Sergio Piccioni at 3/11/2008 10:16:07 PM
I should be most grateful if you could help me.
Why do i receive in Visual Web Developer 08 the following message
Access denied to the path
'C:\Windows\Microsoft.NET\Framework\v2.0.50727\asp.netwebadminfiles\web.config'
..
when i do select: Website-->ASP.NET Configuration?
My computer... more >>
Resource expression to access resource located in library
Posted by Heinrich Moser at 3/11/2008 9:58:19 PM
Hi!
(This posting refers to Visual Studio 2008.)
I'm moving part of my asp.net application into a library, to be able
to reuse that (server control) code for other projects. This also
includes some localized text resources. These resources need to be
usable by the library as well as by ASP.... more >>
using case statement
Posted by pintu at 3/11/2008 8:35:31 PM
Hi Friends,
I want to use "in" clause in case statement as shown below.
e.g
select * from employee
where empid in
case i_desgn
when 'HR' then (1,2,3,4,5)
when 'MD' then 1
else 7
end
Though i did this using ... more >>
AJAX UpdatePanel stops custom JavaScript working
Posted by Andrew Jocelyn at 3/11/2008 6:38:54 PM
Hi
I have a custom server control which basically adds a client side character
counter to display with an Html TextArea. When I use the control inside an
UpdatePanel the JavaScript counter disappears.
Please see code below.
Any ideas?
Thanks
Andrew
protected override void OnPre... more >>
Need help with C# code
Posted by Durango2008 at 3/11/2008 5:16:55 PM
Hi, I have a form which contains a table(Table1), within that table I have
label with an ID set to "1A".
Using something like:
if(Table1.FindControl("1B") != null)
{
labelID = "1C";
}
else if(Table1.FindControl("1A") != null)
{
labelID = "1B";
}
Label lblType = new Label();
... more >>
Database backup from a web browser
Posted by Tamer Ibrahim at 3/11/2008 4:56:57 PM
Hi,
Can I backup & restore my sql server database from aspx page located on a
client machine ?
Thank You.
... more >>
Internationalization Support in 3.5 - What's New?
Posted by Robert Cramer at 3/11/2008 3:35:25 PM
I'm preparing for a major ASP.NET development effort that will require
extensive internationalization support. I have a bunch of resources and I'm
happy with those - with the exception that they cover the 2.0 version of the
..NET Framework.
I would appreciate it if someone could point me to... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Global.asax.vb errors
Posted by darrel at 3/11/2008 2:53:56 PM
I'm stuck maintaining a ASP.net 1.1 app for a while.
I'm having all sorts of issues compiling it on my machine now. It was
working for a while, but now I continually get this error:
--------------------
Could not load type 'siteStructureBuilder.Global'.
Source Error:
Line 1: <%@ Ap... more >>
Global.asax not checking the GAC
Posted by bizint@newsgroup.nospam at 3/11/2008 2:48:52 PM
Hi,
I have some code in the global.asax which needs to use a dll in the GAC.
I've included the page directive <%@ Assembly Name="myDll" %> in the
global.asax but I get the following error:
"Could not load file or assembly 'myDll' or one of its dependencies. The
system cannot find the file ... more >>
PLEASE HELP: Web Deployment Wizard is whacked out!
Posted by Bobby Edward at 3/11/2008 2:48:29 PM
I run the Web Deployment Wizard fine earlier this week. Come back and make
a few MINOR HTML changes and go to "Rebuild" it and I get some wierd
error...
An error occurred when merging assemblies: ILMerge.Merge: ERROR!!:
Duplicate type 'MasterPage' found in assembly 'App_Web_yarpwypi'.
... more >>
MVC Route Tables Update Via Reflection?
Posted by coconet at 3/11/2008 1:36:52 PM
I have several hardcoded paths in my global.asax.cs, declaring how and
what controllers should do in my ASP.NET 3.5 MVC code.
Is it possible to read from the current assembly and pick out the
controllers and their parameters and dynamically make the Route Table
mapping?
Thanks.
... more >>
Deployment for calling a command line exe
Posted by dover@world.std.com at 3/11/2008 1:21:25 PM
Does anyone have a pointer to a good overview on deploying an ASP.NET
application that calls out to a command line exe? The application is
working fine in local test but when we deploy it we are getting:
Configuration system failed to initialize at
System.Configuration.ClientConfiguratio... more >>
ASP.NET Web app params question
Posted by William Johnston at 3/11/2008 12:51:57 PM
Hello,
My params are not shown correctly in an HTML page.
Here is the URL:
http://tenbase2.com/DavidHeadlineWebApp.aspx?archiveName="cnn"&headline="Sources: Moving cash set feds on Spitzer's trail"&formalNewsName="CNN.com"&date=Tuesday, March 11, 2008"
Even with backslashes before the ... more >>
Connecting to database from Web
Posted by Lou Civitella at 3/11/2008 12:45:57 PM
I created a test web site with VS2008 using Framework 2.0. Created a
database in SQL Server 2005 and am able to connect to it without any
problems. I then setup the database to be accessed using a public IP
address. Changed the connection string in my web site to use the public IP
along with... more >>
BinaryWrite GIF from Binary String
Posted by andrew.douglas11@gmail.com at 3/11/2008 11:50:43 AM
Hello,
I'm looking to display an image in the browser using a binary string
containing all the bytes that make up a GIF image. I've tried all
the standard encodings in System.Text.Encoding, but the images aren't
showing up. I'm using the approach where I'm setting ImageURL =
"GetImage.asp... more >>
VS.NET 2008 Debug ASP.NET on VISTA with IIS7?
Posted by Asaf at 3/11/2008 11:11:03 AM
Hello,
I have just installed VISTA Enterprise and VS.NET 2008.
When pressing F5 to debug my test ASP.NET website, IE 7 display the message
"Internet Explorer cannot display the webpage".
The local URL that VS.NET 2008 generates is
http://localhost:49705/aaa/Default.aspx.
In IIS7 Manager, A... more >>
Best practice to share session between .net 1.1 and .net 3.0/3.5
Posted by Phil Johnson at 3/11/2008 10:57:03 AM
I work on an asp.net 1.1 application which we cannot upgrade to a newer
version of .net so we want to look into sharing session, preferably with 3.5,
but if that isn't possible with 2.0 or 3.0
Session is currently stored in SQL Server for the 1.1 asp.net application.
Is there any way we ca... more >>
web user control in a master page?
Posted by Stimp at 3/11/2008 10:43:53 AM
I have a few master page files on a large site.
I want them all the share the same footer, but I don't want to re-enter
the footer text on all of them.
So I logically thought I could add a web user control to the master page
which would contain the footer text.
so I add:
<%@ Register... more >>
Mange Large file in the database
Posted by Husam at 3/11/2008 10:15:00 AM
Hi EveryBody:
I have a web application made by ASP.Net 2.0 and vb.net, the purpose of this
project is to upload data from clinte machine and save these data to SQL 2005
database and when the clinte see his or her files in his member area in my
web application he can retrive his or her data ... more >>
Spanish characters problem
Posted by Leon at 3/11/2008 9:34:03 AM
Hi everybody.
I am using streamreader to show spanish .htm page on my website.
Unfortunately those spanish characters that have stresses on top (like: Ó,á,
....) do not show correctly. Is there any way to overcome this problem?
... more >>
Bug? ASP.Net 2 Title does not render text when it contains controls
Posted by Ian Dunkerly# at 3/11/2008 9:14:26 AM
I am using .Net 2 SP1 and appear to have a problem with rendering titles,
when the title contains both text and a controls only the controls are
rendered.
This can be reproduced by creating a page with the following:
<%@ Page Language="C#" AutoEventWireup="true" %>
<html>
<head runat=... more >>
ASPNETDB: dev machine to server
Posted by BobF at 3/11/2008 8:52:51 AM
Scenario:
I have a dev machine with VS2005Pro, WinXPSP2. I create a web site with
authentication built with the ASP.Net Configuration Tool in VS2005.
The site, login and all other functionality are fine when tested on the dev
machine.
I use copy web site to 'deploy' the site to a W2003R2 ... more >>
Handler in Global web.config doesn't work
Posted by mcqwerty at 3/11/2008 6:31:05 AM
Hello,
I'm trying to enable an error handling package at the root of my web server
by editing this file:
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\CONFIG\web.config
In the httpHandlers section I've added:
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, ... more >>
ChildControls state
Posted by mauricio at 3/11/2008 6:21:20 AM
Hi,
Sorry for my english.
I have a custom server control that derive from Panel.
In my control I want to add an Checkbox, but after an postback it
checkbox lost the state of checked property.
My code:
public class CheckboxPanel : System.Web.UI.WebControls.Panel,
IPostBackDataHan... more >>
could not find file (.msi,.exe,.tmp) error in building web setup project!
Posted by chandan at 3/11/2008 4:39:50 AM
Hi All,
I am creating a web setup Project using VS 2005.First time its works
fine, But when I closed the solution and again open solution and try
to build web setup project then there is an error like that could not
find file (.msi,.exe,.tmp) with these extension inside the debug or
release f... more >>
How do I do this with the menu control?
Posted by Bernard at 3/11/2008 2:07:03 AM
We have a web app that calls a Java web service to get a token. This token is
then used as an input parameter to authenticate any further web service
calls. The web service handles the usual session stuff (no access if no
activity for 20mins, etc)
The web service then hands back the username... more >>
Datagrid - Row height on last page
Posted by Phil Johnson at 3/11/2008 2:07:00 AM
I have data that spans over several pages in a datagrid.
On the last page, the row heights seem to justify vertically, so if there
are say 14 records and the paging is ten, each row on the last page will take
up a quarter of the grid height.
Is there any way so that the row height will alw... more >>
Datagrid - set row colour in code
Posted by Phil Johnson at 3/11/2008 2:05:03 AM
Does anybody know of any examples on how to set both the row colour and the
alternate row colour of a datagrid in code?
I need to do this at runtime, probably in the page load event or something
similar.
--
Regards,
Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwar... more >>
Display wait message while processing
Posted by kanya.rajani@gmail.com at 3/11/2008 12:51:46 AM
Hi,
I am generating some large data like 1000 records(my client
requirement) to a gridview without paging. So it will take sometime to
process and bind. I want to display some message(model dialog) inorder
to prevent the user from clicking the button or other controls again
and again.
... more >>
|