all groups > asp.net > december 2005 > threads for thursday december 22
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
ASPNET2 Radically Changed from v1.1
Posted by Mark Olbert at 12/22/2005 11:56:18 PM
I'm starting to play around with VS2005 and ASP.NET 2 and have some questions.
The typical pattern for a data-driven aspx page in v1.1 was data connection -> data adapter -> dataset -> bound controls. V2 (at
least by default) doesn't include data connections, data adapters or datasets in the to... more >>
HELP: Table height in the new XHTML???
Posted by Arthur Dent at 12/22/2005 11:42:00 PM
I am completely baffled... i cannot for the life of me get the HEIGHT style
to work on a table in the new 2005-supported XHTML.
I put a HEIGHT: 100% on my table so that my footer row will also show up at
the very bottom of the page (unless content pushes it further down).
But when the browser re... more >>
System.Xml.XmlException
Posted by mohit at 12/22/2005 11:24:07 PM
Hi,
I am making a web application in Web Matrix on .NET framework.
I have a Login.aspx File and a Users.xml file.I am reading data
from Users.xml file using FileStream.The Code is
DataSet ds = new DataSet ( );
FileStream fs = new FileStream ( Server.MapPath ( "Users.xml"
... more >>
AddDays exception when subtracting value
Posted by patrick at 12/22/2005 10:31:18 PM
I have the following code in ASP.NET 2.0 (C#)
DateTime datStartDate;
datStartDate = calMonth.SelectedDate; //calStart is a calendar
control
datStartDate = datStartDate.AddDays(-6);
and it gives me the following error:
System.ArgumentOutOfRangeException was unhandl... more >>
ASP.NET 2.0: Global.asax Design Surface Gone
Posted by Mark Olbert at 12/22/2005 10:05:14 PM
I have several ASP.NET 1.1 websites where I centralized a read-only dataset (i.e., one which no web page ever changed) and its
associated SqlDataAdapters.
In 2.0 I noticed that the Global.asax file does not have a design surface, so I can't drag and drop database components onto it.
I could ... more >>
Casting Error
Posted by mohit at 12/22/2005 9:55:26 PM
I am making a web application in .NET framework.
I want to pass an information from one page to another page.
I have a class MsgClass in a page and in the another page I created an
object of this class
MsgClass mc;
for handeling I am using the following code
void Page_Load()
{
... more >>
How to change the timeout value
Posted by ad at 12/22/2005 9:40:40 PM
The default of timeout value of session is 20 min.
How can I change the value in program?
... more >>
Flow layout to grid layout
Posted by Andrew Chalk at 12/22/2005 8:52:28 PM
I have set a page to "flow layout". How do i now set it back to grid layout?
Many thanks
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Access is denied: 'Interop.ADODB' error - almost ready to jump off the balcony!
Posted by Dave E at 12/22/2005 7:49:27 PM
Hi folks,
I have a VB.Net application, currently being developed on my XP Pro 2002 SP2
box. It is pretty straightforward and accesses my local SQL2000 instance.
Randomly I get the above error (see subject line) and I am thus far unable
to google my way out of it. I have tried "iisreset" ... more >>
good links on asp.net 2.0 caching
Posted by Vikram at 12/22/2005 7:02:48 PM
any good articels or link available on asp.net 2.0 caching
... more >>
HTTPBrowserCapabilities Question
Posted by kevinwjames NO[at]SPAM gmail.com at 12/22/2005 6:18:59 PM
I'm writing a C# app which analyzes and reports on IIS web logs. I've
got it producing numbers for hits, visits, ips, etc. but I'm having
trouble parsing the UserAgent string so I can get Browser, OS, and
Version information.
So I saw this great System.Web.HTTPBrowserCapabilities object which
... more >>
Populating FormView (asp.net 2.0 using vb.net)
Posted by sck10 at 12/22/2005 5:57:59 PM
Hello,
I am creating a form for users to enter information about a lab and the
members of the lab. I have one form (FormView) that they use to enter
information about that lab. The keyvalue is "LabLocation_ID". With an
existing lab, they then need to add the members for that lab. So, what ... more >>
GridView with dropdown: asp.net 2.0
Posted by sck10 at 12/22/2005 5:43:45 PM
Hello,
I am using the following in a GridView. Currently, I am using a dropdown
that pulls the Name of the person, given the Employee ID. I am doing this
in both the ItemTemplate and the EditTemplate. This makes sense for the
EditTemplate becuase the user can then change the Employee using ... more >>
How to Remote a custom membership or profile provider ???
Posted by techsupport NO[at]SPAM broadport.com at 12/22/2005 5:30:24 PM
I have some experience with .NET Remoting, as well as ASP.NET 2.0, and
have been wanting to remote a custom membership and profile provider.
I want to take advantage of the new controls in ASP.NET 2.0 such as
Login, Loginuser, Loginview, etc.
The ASP.NET provider model requires entries in the ... more >>
MessageBox
Posted by Rodrigo Ferreira at 12/22/2005 4:47:06 PM
How can i do a simple OK/CANCEL MessageBox in C#???
Greetings,
Rodrigo Ferreira
... more >>
Path conversion
Posted by Frédéric Mayot at 12/22/2005 4:42:16 PM
Hi,
I would like to use the method which is used to convert paths specified in
the asp.net controls. For example, I give Image.ImageUrl =
"~/Folder/img.gif", and the framework correctly converts this url. How can I
do the same?
Thanks,
Fred
... more >>
Quotes, tags, and "greater than" signs
Posted by danthman at 12/22/2005 4:36:16 PM
I'm trying to write a complex multi-line SQL select command on an
ASP.NET 2.0 page, but I'm not sure how to get the "greater than" sign
(>) into the quotes without it thinking it's a tag. Can this be done?
Here's my code (notice where it says SelectCommand= [multi-line
quote]):
------------... more >>
launching background thread in asp.net web application.
Posted by Ashish at 12/22/2005 4:35:00 PM
I have a component, that is used by a web application, it is invoked by
the application through reflection.
I have a static class in this componenet, from which iam launching a
thread that should run for the lifetime of that componenent.
When i try to run the code i get the JIT debugging e... more >>
Adding domain user to local groups
Posted by Rocky at 12/22/2005 4:19:02 PM
Hi,
I have a webform, with 2 textboxs and a submit button. In the text box1, i
enter a username and in textbox2 I enter the computer name. Both the username
and computer name is in active directory.
When i click submit, I want to add the username from textbox1 into the local
administrato... more >>
Virtual Directory
Posted by Newbie at 12/22/2005 3:55:09 PM
I want to determine proramatically from my webform what the virtual
directory path is for my application.
The reason for this is that I want to use some javascript code which needs
to access a file in a subdirectory. This is fine but my component will one
forms which some are in a subdirect... more >>
Framework 2.0 configuration
Posted by Imtiaz at 12/22/2005 3:25:10 PM
Hi,
How can I have framework 2.0 configuration shortcut on control panel >>
administrative tools, if only framework 2.0 in installed on a machine. Only
framework 2.0 without VS 2005
Thanks
Imtiaz Khan
... more >>
PreInit event in usercontrol
Posted by Marcelo Cabrera at 12/22/2005 3:06:17 PM
Hi,
I have a user control that in turn creates a bunch of webcontrols
dynamically and handles the events these webcontrols raise. It used to work
fine on ASP .Net 1.1 but when compiled on 2.0 it does not. The problem is
that the webcontrols get created on the OnLoad event of the usercontrol... more >>
Session_End Pop Up
Posted by chuckdfoster at 12/22/2005 2:58:55 PM
I want a pop up to appear when the user's session ends. I've tried putting
some code in the Session_End sub in the global.asax, but must be using wrong
code or something. I could also just redirect them to a "timed out" page,
but I can't get that to work either. Can anyone help?
Thanks,
... more >>
ASP.NET 2.0 deployment
Posted by Amelyan at 12/22/2005 2:55:05 PM
I dosn't want to deploy my *.aspx.cs files. What do I do so that *.aspx.cs
files are compiled into my project dll and are not required by their
corresponding *.aspx files?
Thank you,
-Boris
... more >>
Error accessing network resources in ASP.Net
Posted by Siva at 12/22/2005 2:53:35 PM
Hi,
I am trying to run my ASP.Net web app. As part of this app, it needs
to create a file in a share in side of the intranet. When I run this
app from a machine which is same as the web server, everything works
just fine. However when I try the same thing from a remote machine
(which is agai... more >>
Arghh!!!! Button Not Firing.
Posted by Adam Knight at 12/22/2005 2:45:28 PM
Hi all,
I have sought out the problem with my last post ('validation issue') by
copying aspnet_client folder from my local machine to the root directory of
my hosting server.
Now my next problem is...a button on my login screen won't fire.
It works fine locally.
Can anyone give me an ... more >>
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\UserData' do
Posted by SivaSiva at 12/22/2005 2:29:02 PM
Hi,
I'm getting the following error when I try convert a word document using
asp.net.
Application Event Log :
Detection of product '{90110409-6000-11D3-8CFE-0150048383C9}', feature
'WordUserData', component '{8ADD2C93-C8B7-11D1-9C67-0000F81F1B38}' failed.
The resource 'HKEY_CURRENT_USER\... more >>
Unable to create the Web (W2003Std + Framework 2.0) remotely
Posted by purkka at 12/22/2005 2:00:03 PM
Hi
I replaced a Win 2000 Adv server to the Win 2003 Std with Front Page Server
Extension and .Net Framework 2.0. FPSE is extended to Default Web Site.
Visual Studio 2005: If I create a new web by VS2005 installed on my server,
no problem, but if i try to do same remotely using http, I got
... more >>
when i Press Back Button on the Menu there is an Issue
Posted by Preethi at 12/22/2005 1:56:20 PM
Hi Dudes,
I have an issue while developing Asp.Net application,
The issue is If i Press Back Button on the Menu, the page should not go to
theprevious page.
In order to Restrict it what I have to do?
Please help me out?
Thanks & Regards
Naveen.... more >>
Anchors in controls ( User Controls )
Posted by Newbie at 12/22/2005 1:08:17 PM
Hi,
I want to use an anchor in my control so that when I place it on a page it
will always go to the top of the page.
So on my Host page I put
<a name="top" />
In my link on the control I put
< a href="#top" />
This does not work, any ideas ?
... more >>
download trial version of vs2005
Posted by sqlster at 12/22/2005 12:55:03 PM
I want to get trial version of vs2005 so that I could try out asp.net 2.0
applications.
Could some one please post the url for the online download.
I have downloaded sql server 2005 trial version but could not find one for
vs2005.
The only thing available is ordering trial version dvd.... more >>
Finally moving from classic asp to ASP.NET 2.0 w/Visual Studio 2005
Posted by MartyNg at 12/22/2005 12:44:33 PM
I have been looking online for pointers, and read mixed things. I was
hoping if I post direct questions here, I could get some solid answers.
I work for a small company with less than 10 web developers. We have
been using classic ASP for years. We do a lot of work with SQL Server,
and moving f... more >>
101 Question - Passing a value from one page to another
Posted by jonefer at 12/22/2005 12:31:01 PM
I'm using a Public variable that I set on one page so that it will be
available for another page but, I know this isn't the way it should be done.
Being an Access Developer, how would I do the same thing in ASP.NET as:
opening a form and passing a value to OpenArgs so that the next form can ... more >>
PreRender event question
Posted by Matt Jensen at 12/22/2005 12:24:00 PM
Howdy all - and seasons greetings
Just wondering, I've recently discovered the PreRender event for .NET (both
for the page and for controls), which seems like a life saver for doing page
data loads that need to occur AFTER event handlers have fired, as well as
after page load and postback. ... more >>
Validation Issue!
Posted by Adam Knight at 12/22/2005 12:23:59 PM
Hi all,
I am having a really strange validation issue.
Validation controls work fine on local machine, but don't work on production
server.
Any thoughts...this is bugging me out?
Cheers,
Adam
... more >>
can asp.net pages source code be precompiled in asp.net 1.1?
Posted by BLACKDOG157 NO[at]SPAM LYCOS.COM at 12/22/2005 12:14:02 PM
Can asp.net pages be precompiled so that the source code never appears
on the server? I know this can be done with asp.net version 2, but my
host is still using asp.net version 1.1.
... more >>
Application_Error does not fire
Posted by Andy G at 12/22/2005 12:11:28 PM
For testing purposes I put a
Throw New Exception("Something didn't work right.") on the click of a button
on a page. In the application_error section of my application I have a
Response.Redirect("error.htm")
Later I will had error logging and email functionallity to this but in the
mean ... more >>
Single Login Problem
Posted by Joe Fawcett at 12/22/2005 12:07:51 PM
Dear All
We have an application where users login, their name/password details are
stored in a table, and now we want to add a third party bulletin board that
lives in its own virtual directory. Both applications are running on the
same IIS.
How do we authenticate users so that they don't h... more >>
Select string building in C# and ASP.NET
Posted by Jacob Arthur at 12/22/2005 12:06:10 PM
How would I go about using a custom select string that is passed from a form
to the SelectCommand parameter of SqlDataSource?
I tried:
SelectCommand = "<% Request.Form("hdnSelect") %>"
but I got an error about putting <% %> tags in a literal. I tried taking
out the quotes (the " ") and i... more >>
Enterprise Library for .Net Framework 2.0
Posted by Amelyan at 12/22/2005 11:36:21 AM
Does anyone know when Enterprise Library is going to release new version for
..Net Framework 2.0?
Thanks,
Boris
... more >>
need help to convert to VB
Posted by Jon Paal at 12/22/2005 10:00:05 AM
need some help converting this to VB,
==========================================
public class SecurityHttpModule : IHttpModule {
#region Properties
public bool IsReusable {
get { return true; }
}
#endregion
public SecurityHttpModule() { }
}
End Class 'Se... more >>
..HtmlControls.HtmlInputFile.Saveas(filename) not overwriting
Posted by Reddy at 12/22/2005 9:57:02 AM
System.Web.UI.HtmlControls.HtmlInputFile.SaveAs(FileName) is not overwriting
the file. It used to work fine on IIS5.1 Recently we migrated to IIS6.0.
Since then it's not working. If it's new file it works fine.
For the same file getting the error
"Access to the path "" denied.
I gave fullcon... more >>
Need help with Web Services / ASP.NET 2.0
Posted by cider123 NO[at]SPAM hotmail.com at 12/22/2005 9:20:53 AM
I have a working Web Service that runs on .NET 2.0 Framework.
Just for tracking purposes, I log a reference in SQL Server whenever an
instance fires up.
I have a Window Service that launches multiple instances of the Web
Service in Async mode.
As I move forward in testing, I slowly increa... more >>
vs2005 debugging on ws2k3 server
Posted by gerry at 12/22/2005 9:09:37 AM
I am almost at the end of my rope - I have to go through this process
everytime a new version of studio is released or it is installed on a new
machine - what a (^%&$^& pain.
I am trying to debug a web app from within vs.net 2005 locally on windows
2003 server
I just cannot get debugging to ... more >>
How do I run a server side method from javascript?!
Posted by Steve Kershaw at 12/22/2005 8:46:14 AM
I have a problem that I need to be able to run a server side method
(MyMethod()) from a javascript script. For example:
<script language="javascript">
confirmValue = confirm("Do you wish to save?");
if(confirmValue)
run MyMethod() here
</script>
There must be a wa... more >>
self-signed certificate for Windows XP
Posted by Arne at 12/22/2005 8:39:02 AM
I know that Micosoft has a utility for creating a self-signed certificate for
Windows 2003.
What can I use for Windows XP?... more >>
Loading UserControl using New Contructor
Posted by Joe at 12/22/2005 8:09:06 AM
Hello All:
Do I have to use the LoadControl method of the Page to load a UserControl?
I have a class which contains three methods (one public and two private).
The class acts as a control server. It "serves" back the required control
(either WebControl or UserControl) based on the conten... more >>
Storing an array to a Session
Posted by Brad at 12/22/2005 7:31:02 AM
I am storing an array which contains about a dozen chracter items to a
Session variable. Later, I need to use this array so I am doing the
following:
Dim eventTypes As String() = DirectCast(Session("EventTypes"), String())
If Date.Today <= closeDate Then
If eventTypes(c... more >>
SQLdataSource with 2 parameters
Posted by drewdr NO[at]SPAM yahoo.com at 12/22/2005 7:20:32 AM
I've got a LastName textbox and a FirstName textbox.
How do I make LastName mandatory, and FirstName optional ?
If I use Select..........Where (LastName=?) AND (FirstName=?)
i need input from both textboxes, and if I use OR- it is either.
... more >>
Stop the refresh in WebPages
Posted by Cesar_Castillo at 12/22/2005 6:07:02 AM
Hi, my problem is the refresh constantly in my webpages when it is generated
any event, I must to use a function "CallBack", but I don't know the use of
this function. Thanks for help.... more >>
2.0 height %'s not working
Posted by prefersgolfing at 12/22/2005 5:59:21 AM
I like to use %'s when laying out tables. In the source (.aspx or .htm) I'll
enter:
<table width=100% height=100%>
<tr height=50%><td width=50%></td><td></td></tr>
<tr height=50%><td width=50%></td><td></td></tr>
</table>
The page will render as band at the top. Appearantly disregard... more >>
When does Application_AuthenticateRequest fires?
Posted by the friendly display name at 12/22/2005 4:59:02 AM
I am using .net 1.1
In the global.asax.cs file, there is this entry:
protected void Application_AuthenticateRequest(Object sender, EventArgs e)
as far as I know, it is wired with the
FormsAuthentication_OnAuthenticate event.
My question is, when does the event exactly fire? My testin... more >>
Tags inside value field of appsettings in web.config
Posted by arulbenito NO[at]SPAM gmail.com at 12/22/2005 4:01:56 AM
i need to write a xml data inside the value field in web.config file.
it looks likes this
<configuration>
<appSettings>
<add key="MyXmlData" value="<data><type></type>........." />
</appSettings>
</configuration>
but i get an error message
some one help me
... more >>
Session issue
Posted by noor at 12/22/2005 3:53:23 AM
hi,
how can i no if a perticular session veriable exist or not for example i
want to chek if
Session["myName"] exist or not i f its not then i have ot create it
Session.add("myName","xyz").
at this time i 'm facing this issue actually i want ot safe a dataTable in a
session veriable if it no... more >>
Losing data in a textbox on postback
Posted by et at 12/22/2005 2:52:23 AM
In a procedure where a user creates a password, among other things, the
password textbox returns to blank whenever a user selects other fields that
cause a postback, even though they are not done saving the record.. How can
I retain what the user has entered in the password field even on post... more >>
Net runtime crash
Posted by ekz NO[at]SPAM hotbox.ru at 12/22/2005 2:27:16 AM
Hi guys
I have a very weird bug and will welcome gracefully any help
We developed ASP.Net application that run on production server, Net
Framework 1.1 , IIS 6.0, the application is huge, having hundreds of
user controls and worked under massive requests load : 200-1000
connected sessions and mi... more >>
Run IISRESET in an asp.net page?
Posted by Daren at 12/22/2005 12:48:40 AM
Hi,
I have a site with page-level caching set at 10 minutes. However, when
I update it, I want to be able to empty the cache immediately, so
changes are seen right away. At present I manually run an IISRESET on
the server. How can I do this within an asp.net page?
Daren
... more >>
about naming
Posted by h-h at 12/22/2005 12:12:25 AM
when i make variable of button what kind of variable name do you use?
btnPress OR PressButton
nowaday ,especially .net , many of programmer use second one .
how about you?
... more >>
|