all groups > asp.net > june 2006 > threads for monday june 12
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
Why do I get "name 'LocalSqlServer' was not found" when my app uses MySQL?
Posted by webonomic at 6/12/2006 7:55:36 PM
"The connection name 'LocalSqlServer' was not found in the applications
configuration or the connection string is empty."
I get the error above. It tells me the error is in
Line 120: <profile>
Line 121: <providers>
Line 122: <add name="AspNetSqlProfileProvider"
connectionStri... more >>
fixed width text file
Posted by John at 6/12/2006 7:45:04 PM
I can create text file, but how can I create a text file where the values
are at the same location on every line?
I want to define the location where the values starts and define the length
of the value.
... more >>
GataGrid Command Link Problem
Posted by Alex Maghen at 6/12/2006 7:25:02 PM
I have a DataGrid where all the columns can be clicked to sort by that column.
A very strange thing is happening: When the page is first displayed with my
default sort order, a click on one of the ButtonColumn LinkButtons works just
fine.
But if I click on one of the column headings and no... more >>
Business Objects Question
Posted by Tina at 6/12/2006 5:10:38 PM
In 2.0, do business objects have to be manually written classes or is there
a wizard that will, for instance, generate the class from a query builder?
I seem to remeber that in a demo somewhere but I can't find it in the docs
now.
For instance I just want to select some fields from a Northw... more >>
ASP.NET 2.0 and Partial Trust with VSTO
Posted by Ken Cox [Microsoft MVP] at 6/12/2006 3:37:45 PM
Hi folks,
I need some help with an ASP.NET 2.0 page that generates the following error
when it calls a VSTO runtime DLL:
System.Security.SecurityException: That assembly does not allow partially
trusted callers.
My understanding was that for my partial-trust Web application to call a
... more >>
Date/Time control
Posted by Samuel Shulman at 6/12/2006 3:37:08 PM
Hi
I need a control that can be used to input both the time and the data like
the DateTimePicker in VB.NET
AFAIK the calendar can't be used to input the time
What is the common solution?
Thanks,
Samuel
... more >>
How to handle memory allocation i shared hosting environments? (GC.Collect)
Posted by jdlwright NO[at]SPAM gmail.com at 6/12/2006 3:23:03 PM
Hi, a customer is using our fairly memory intensive web app. in a
shared hosting environment
and the other day their host 'banned' (I think they just killed the
process) them for memory abuse.
Our app. has been profiled with SciTech's Mem Profiler, and it seems
that some of the issues relate ... more >>
error - virtual dir not being configured as an application in IIS.
Posted by scott at 6/12/2006 3:09:02 PM
I created a new website project using VS 2005 and FTP. When browsing to app
on localhost i got the error below. Anyone know why and how to sort ?
thanks
scott
--------------------------------------------------------------------------------
Configuration Error
Description: An error occu... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Are tables slow in rendering?
Posted by UJ at 6/12/2006 2:53:33 PM
I had somebody (who was an idiot) tell me that tables are slow in rendering?
That you shouldn't do things like tables inside of tables.
Is that true?
I think she didn't know what she was talking about but I just wanted to
confirm with people.
TIA - J.
... more >>
IE toolbar etc
Posted by Sean at 6/12/2006 2:23:02 PM
I am doing a response.redirect("mypagehere.aspx")
I want to be able to turn off the toolbar, backbutton and control the
location and size of this new window.
Becuase I couldnt figure out how to do that for calling a page using
response.redirect I also looked into the onload event of the pa... more >>
GridView sorting
Posted by Nate at 6/12/2006 1:49:02 PM
I have a GridView with one sort column. When I click the sort column the
first time nothing happens. After that when I click the sort column the sort
order changes and my grid is updated as expected. I am only having an issue
the first time I click on the sort column. I have read about manuall... more >>
2.0: Application_Error()
Posted by R.A.M. at 6/12/2006 1:38:26 PM
Could you tell me please how can I get some information about error in
Global.asax Application_Error()?
void Application_Error(object sender, EventArgs e)
{
// Here I need to get some information about error
Response.Redirect("Problem.html");
}
Thank you very... more >>
Mostly Static, but Some Dynamicness .. Recommendations:
Posted by sloan at 6/12/2006 1:31:25 PM
I have a web site. 90% of it is static.
Lets say I have a menu system
Home
VicePresidents
ContactUs
Home is static
ContactUs is static
VicePresidentsHome.aspx is static
However, lets say I have 4 or 5 (on N) number of VicePresidents.
and I'd like to make a page for each of the ... more >>
How to create a WebPart?
Posted by Jav at 6/12/2006 1:28:02 PM
I create a UserControl (.ascx), and then change it in code to:
Inherits System.Web.UI.WebControls.WebParts.WebPart
expecting that it will now be treated as a WebPart. But this immediately
generates 2 errors. How does one go about creating a WebPart by inheriting
as above?
(I know ... more >>
2 Basic Questions
Posted by Samuel Shulman at 6/12/2006 1:25:53 PM
1. How can I set a button/image as the default so when the user will press
on the enter button that specified button/image will receive the event
2. Is there a method that will insert the cursor into a textbox (or set the
focus to any other control)
Thank you,
Samuel
... more >>
Current URL
Posted by Badass Scotsman at 6/12/2006 1:12:05 PM
Hello,
I would like to display the current directory which an ASPX file sits
within, and display the result on page.
For example:
www.test.com/hello/test.aspx would return:
www.test.com/hello
And
www.test.com/hello/goodbye/test.aspx would return:
www.test.com/hello/goodbye
Also
... more >>
Error while trying to run project: Unable to start debugging on the web server
Posted by VB Programmer at 6/12/2006 12:43:40 PM
I have both Visual Studio 2003 and 2005 on my machine.
When running a project in Debug mode in 2003 I get this error:
Error while trying to run project: Unable to start debugging on the web
server
I've already run "aspnet_regiis.exe -i" and "iisreset" and rebooted but it
still doesn't w... more >>
MasterPage Problems
Posted by Islamegy® at 6/12/2006 12:29:30 PM
In my project i have two master page which i change dynamic in runtime.. The
first one with 1 ContentPanel "onepanel.master", the second with 2
contentPanel"twopanel.master"..
but when i switch between them it don't work, if the default masterpage is
"onepanel.master" and try to change it i... more >>
Watching my Packet TCP and UDP
Posted by Dusan Micuch at 6/12/2006 12:26:50 PM
Hi, What's best way for Watching my Packet TCP and UDP ? Socket ? Some
external DLL ? What I need to use for build programs like this?
I want measure data on specific or anyone port at Real Time.
Thanks
... more >>
trap and ignore invalid viewstate
Posted by Deepika at 6/12/2006 12:16:57 PM
Hello,
I am trying to trap the invalid_viewstate error in my application so
that an error email does not get sent.
In my global.asax under Application_Error:
Exception ex=Server.GetLastError();
if(ex.ToString().IndexOf("Invalid_Viewstate_Client_Disconnected") ==
-1)
{
send error... more >>
URL question
Posted by John at 6/12/2006 12:09:56 PM
When I'm online and going to sites and click around the site, there are
times I see the URL looking like this?
www.sitename.com/?sessionId=1211212121212
and i see URL's like this alot for links, etc. How does this work and how is
it done?
I'm thinking of something like this for my site an... more >>
javascript in aspx file?
Posted by Joris De Groote at 6/12/2006 11:27:25 AM
Hi,
I would like to add a javascript to my aspx file so that users can print
that page. I have some javascript for this:
<SCRIPT LANGUAGE="JavaScript">
if (window.print) {
document.write('<form>Click Here To '
+ '<input type=button name=print value="Print" '
+ 'onClick="javascript:window... more >>
Validation
Posted by Bruno Alexandre at 6/12/2006 11:25:52 AM
Using the RequiredFieldValidator I can show a message if the field is
empty...
....but How can I JUST SHOW that message if a selected value from a
DropDownList was previously selected?
I really can't figure out how to use Javascript with this new framewrok :-(
ASP 3.0 was much easy :-/
... more >>
Error 80070522 attempting to start ASP.NET
Posted by Michael D'Angelo at 6/12/2006 11:19:37 AM
We have a machine running Windows 2000 which is running a 3rd party
application. We recently installed ASP.NET 2.0 on the server to install
some addons for this application. When attempting to browse to an asp.net
site, we get this error in the event log:
"aspnet_wp.exe could not be start... more >>
"POST"ing Image Data to ASPX File?
Posted by Corey Ellsworth at 6/12/2006 10:37:06 AM
I am looking for a way to "POST" image data that is copied to the clipboard
on the client computer to an ASPX page using JScript on the front-end and
VB.NET on the backend. Is this a feasible operation or am I on a wild goose
chase here? There are a lot of examples of pasting text into an HTML ... more >>
Question about detecting client browser
Posted by Armand at 6/12/2006 10:32:37 AM
Hi,
I am trying to implement a way to detect client browser,
basically if it is not IE then I will display a msg saying "you need to
use IE"
do you think I should use JS?
does anyone know any goodsource?
Thanks a lot, I really appreciate all your help
... more >>
Split Data in a DataSet
Posted by TCB at 6/12/2006 10:25:16 AM
Hi,
I have a dataset with 12 records selected from a Database (Top 12) I need to
bind a DataList to the first 6 records and another DataList to the last 6
records. How can I split this datadet in two or accomplish this? copy each
set of 6 rows to a DataTable or DataRow()...How?
Thanks
... more >>
Master Pages causing me grief
Posted by Chad at 6/12/2006 10:13:25 AM
I want to pass a string variable from default3.aspx to default2.aspx.
I create a property in default2.aspx, called "X", and assign a value. I then
call Server.Transfer("default3.aspx")
In default3.aspx I have this code:
Dim Default3 As Default3 = ctype(Context.Handler, Default3)
Dim Passed... more >>
ReportViewer Default Format
Posted by aplocher at 6/12/2006 10:10:36 AM
Hello, I was wondering if there was any way to change the default
format of the ASP.NET 2.0 ReportViewer control to be a PDF. I want
only IE to render in HTML defaultly, whereas Firefox and Opera (and
anything else) would generate a PDF so it doesn't look so mangled. I'm
rather surprised that ... more >>
How to appear in google?
Posted by Kevin at 6/12/2006 10:04:34 AM
Hi!
What I must do in my .aspx page for appear in google?
Thanks.
... more >>
Page directive shows in rendered html
Posted by homertbush at 6/12/2006 9:55:02 AM
When our asp.net pages are rendered out as html the page directive is still
in the html.
ie. The following page directive is present in the body of the html of the
rendered page:
<%@ Page CodeBehind="about.aspx.cs" Language="c#" AutoEventWireup="false"
Inherits="Briggs.about" %>
<%@ Regis... more >>
QueryString for HTTP GET in IIS Log
Posted by Steve Besalke at 6/12/2006 9:30:02 AM
I have IIS configured to log the query string for one of my companies'
applications because it's used for some statistics, but I need to keep the
query string from logging during a HTTP GET for a specific page. Is there a
way to keep IIS from logging the query string for just one page? Or is ... more >>
Catch trace enabled='true' output and store in database?
Posted by DC at 6/12/2006 9:11:45 AM
Hi,
I want to store the trace information I get on trace.axd when I use
<trace enabled="true" /> in a database or a custom log file. Is it
possible to intercept the trace mechanism at a suitable point?
TIA,
Regards
DC
... more >>
DataGrid Border around earch row
Posted by Alex Maghen at 6/12/2006 8:26:02 AM
I'd like there to be a border around each row of my data-grid but NOT between
the columns. I've tried setting
BorderColor="Black"
BorderStyle="Solid"
BorderWidth="1px"
ItemStyle-BorderColor="Black"
ItemStyle-BorderStyle="Solid"
ItemStyle-BorderWidth="1px"
at the top o... more >>
Convert from 2003 to 2005 VS.Net
Posted by Chris Davoli at 6/12/2006 7:57:02 AM
I have written a web site (with other class projects) in VS.net 2003
(VB.Net). What
does it take to convert to Visual Studio.Net 2005? Can the 2003 project just
be opened up in 2005? Will that convert it. The interface for 2005 very
different from 2003.
--
Chris Davoli
... more >>
VirtualItemCount in Gridview is missing
Posted by Kamen at 6/12/2006 7:46:03 AM
Hello there,
has the GridView control in ASP.NET a property like the VirtualItemCount of
the DataGrid control?
I am very appreciated for your help.
Kamen
... more >>
What dataadapter should I use with an Access Database?
Posted by clusardi2k NO[at]SPAM aol.com at 6/12/2006 7:32:33 AM
What DataAdater should I add to the toolbox to connect to an Access
database?
Thanks,
Christopher Lusardi
... more >>
using directive w/o code-behind
Posted by Steve Trandahl at 6/12/2006 7:21:02 AM
I developed an asp.net 2.0 page without using the code-behind model because
the page is so simple. Now I am trying to add "using
System.Data.OracleClient" to the page, but asp doesn't seem to like it no
matter where I put it. Is there a valid syntax for this? I feel silly
recoding the page t... more >>
WebControl with CSS and Javascript
Posted by patrick.sannes NO[at]SPAM gmail.com at 6/12/2006 7:17:25 AM
Hi there,
I'm creating a custom control with Javascript and CSS. It will be a
nice overlay calendar with a result textbox. My main problem is that
the Javascript is realy huge, so you want to include it in a seperate
..js file. But, then it is not bound with the WebControl.... What is the
nor... more >>
How to replace SSIs
Posted by LilC at 6/12/2006 7:16:47 AM
Hello,
We are incorporating a new .NET application into an existing ASP
application. We currently make heavy use of server side includes to
incorporate the branding for specific customers. These includes contain
variables and such that are then repeatedly used throughout the
remaining ASP pages... more >>
Recyling of sessionID in ASP.NET 2.0
Posted by Ibrahim. at 6/12/2006 5:49:02 AM
When a new request is made to the server a new session id is issued to the
client (a browser instance). The problem I’m facing is that session id that
is already assigned to a browser instance is getting recycled for another
browser instance by ASP.NET When the client request is sent to Htt... more >>
Question about ASP.NET 2.0 Application and Plugins
Posted by rudolf.ball NO[at]SPAM asfinag.at at 6/12/2006 5:41:28 AM
Hi Newsgroup,
I have a question about a project I want to realize as a ASP.NET 2.0
Plugin System. I want to have an ASP.NET Base-Application, that handles
Users, Roles, but no content. Then I want to have the ability to write
"plugins". Perfectly, a plugin would mean to me:
- a ASP.NET plug... more >>
printing as excel....
Posted by Sonnich at 6/12/2006 5:22:57 AM
Hi all
I know the window.print(); function, but is it possible to print an
excel sheet as this?
Once I set the responce, I cannot print anymore...
Sonnich
<%
Response.ContentType = "application/vnd.ms-excel"
%>
<HTML>
<HEAD>
<TITLE>Excel</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF"... more >>
Write to CSV
Posted by ^MisterJingo^ at 6/12/2006 4:32:52 AM
Hi all,
I need some help on how to generate and write a CSV file in my ASP app
(i'm using c#). Ideally I'd like to generate the CSV file from the DB
and then offer it for download to the user, but i'm unsure where I
should start.
Any help would be appreciated.
... more >>
Threading in ASP.NET (C#)
Posted by venkat at 6/12/2006 2:40:22 AM
Hi,
I have a page that calls a sql procedure and it runs for 20 - 40 min. I
use usual threading for this page.
<code>Thread objthread = new Thread(new ThreadStart(ticketingThread));
objthread.Start();</code>
As i dont know when it will end. i never abort the thread. what happens
is when us... more >>
help needed in usps services
Posted by vijender.mca NO[at]SPAM gmail.com at 6/12/2006 1:54:20 AM
Hai friends,
I am trying to send an XML transmission to the US Postal
Service to retrieve shipping rates but so far have been unsuccessful.
Can any one help me and provide me a source code for usps
implementation in .net please respond quickly. if have any know... more >>
Change code to work with OLEDB
Posted by Tim::.. at 6/12/2006 1:49:02 AM
Can someone please tell me how I edit this code so it works with an OleDB...
Thanks
Sub Application_AuthenticateRequest(ByVal sender As Object, ByVal e As
EventArgs)
' Fires upon attempting to authenticate the use
If Request.IsAuthenticated Then
'Determine... more >>
How sell ownership of websites?
Posted by VB Programmer at 6/12/2006 12:06:52 AM
I am an independent ASP.NET/Flash developer. I currently have about 15
ASP.NET, Flash, and mixed websites that I created and manage.
Because of various factors I am thinking about selling the rights of my
websites, including domain name, source code, rights to profit off all
future enhance... more >>
OnChange Javascript - IE vs Firefox
Posted by Bruno Alexandre at 6/12/2006 12:00:00 AM
Hi Guys,
I'm having a HUGE problem with Javascript under IE, the code below belongs
to a page
http://filterqueen.brinkster.net/test.aspx
it works fine under Firefox, but not in IE...
does anyone knows how to add OnChange Script to work under IE as well?
------------------------------... more >>
Reserved Control Names
Posted by Graham at 6/12/2006 12:00:00 AM
I have noticed with .Net 2.0 that there are some reserved names (obviously)
in the framework.
The main one I am having a problem with is "Header.ascx". This works
pefectly during development, and straight after deployment.
Im pretty sure the problem turns up when the application pool the websi... more >>
|