all groups > asp.net > november 2004 > threads for monday november 1
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
How to access session variables in Session_End in global.asax?
Posted by Kim Bach Petersen at 11/1/2004 10:56:09 PM
I would like to record user behavior data stored in session variables.
Since the data is modified throughout each session it seemed obvious to
store the data when the session terminates - using Session_End in
global.asax.
Problem is, apparently the session-object terminating cannot be acce... more >>
maxRequestLength and Trap Page Not Found error
Posted by ssavvakis NO[at]SPAM hotmail.com at 11/1/2004 10:08:11 PM
Hi,
I have seen many posts about this problem and no resolution.
I have set the maxRequestLength to 200K as I don't want anyone
uploading files to the server greater than this size.
I have put code into Application_BeginRequest and Application_Error to
try and trap the error of "Page Not ... more >>
uploading ASP.NET project to the internet
Posted by rami at 11/1/2004 10:04:02 PM
I'm trying to upload my asp.net project and im getting this error when I'm
running the page.
Server Error in '/' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The curre... more >>
Drop Down List Selected Index!!!
Posted by Anthony Judd at 11/1/2004 9:47:45 PM
When I user click a link buttton i am calling a stored procedure and
provided the required parameters.
Unfortunately it seeems I can't seem to get the right selectedItem when the
page posts.
Any insight into getting around this is appreciated!!!
void new_menu_Click(object sender, EventArgs e)... more >>
DataGrid and Repeater strange disappearance bug
Posted by tim.hardy NO[at]SPAM omegacreations.com at 11/1/2004 9:17:03 PM
I'm fighting a really strange bug that involves both a DataGrid and a
Repeater disappearing on postback. The strange thing is that I've
distilled the problem down to a simple program, that originally could
reproduce the problem, but now can't, even as I add complexity back
in.
The basic scen... more >>
Validation White Spaces
Posted by Prince at 11/1/2004 7:21:51 PM
I have some <RequiredFieldValidator> on my page and
everything works fine except that there are lots of white
spaces between the web server controls that are being
validated. I've set the Display properties for all the
controls to "Dynamic" and still I can't get rid of the
white spaces be... more >>
WebClient not posting data.
Posted by Manuel at 11/1/2004 7:13:09 PM
I have an asp page ("test.asp") that presents the data it receives from a
post.When I try the following code, test.asp doesn't return the values
(supposedly) posted to it. If I make a web page with a form and the values,
test.asp reports them fine.
----------------------------
Dim thePos... more >>
Secure communication over https !
Posted by Linda at 11/1/2004 6:25:45 PM
I am developing an application over the web(intranet app). Now my problem
has to do with secure communication
between browser and webserver. I want to enable secure communication using
https. Are there any alternatives other than buying certificate for virtual
directory ?
Thanks for all yo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to pop up a new window in ASP.NET
Posted by yichen NO[at]SPAM gmail.com at 11/1/2004 6:17:49 PM
I know that I can use "redirect" method to load a new page in the same
browser window, but how can load a new page in a new browser window
like a pop up?
Thanks!
Yi... more >>
Multiple data sets
Posted by AMD Desktop at 11/1/2004 5:55:39 PM
Hi,
I have one page with four reports in separate datagrids. I need to generate
one report in excel format.
I wrote a script that generate reports for every datagrid separately.
Now, what I need is to create one master report and to combine these four
datagrids into one datagrid programmatica... more >>
Just Disapeared! First Time It happens
Posted by Ken at 11/1/2004 5:49:04 PM
Hi
Last nigth I was happily working in my ASPNET App inside VSNET 2003, and
suddenly when I executed the App I only got a Blank Page !!!
I have everything ok, the phisical files are in the same place, de Dll file
is here..
I can see my ASP desing page and the Code behind inside VS.NET but... more >>
Viewing File in ASP.NET
Posted by Benson Cheng at 11/1/2004 5:27:12 PM
Hi All,
This is what I want to do, in a aspx page, the user enters some search
criteria, and when the user click on the search button, the page lists all
the matching files (on the server) as a hyperlink, and if the user click on
any of the hyperlinks, then it display the file content in a new... more >>
the difference between string.Empty and null
Posted by Asha at 11/1/2004 5:09:01 PM
greetings, i have some questions below, what are the differences between
private string _strVal = string.Empty; and _strVal = null;
does the string.Empty; allocate memory for it? how about _strVal = ""
thanks for enlightening me on this.... more >>
Null Values
Posted by Craig at 11/1/2004 5:06:26 PM
I have the following code in my code behind page for an apsx page...
If Not IsDBNull(DataSet1.tblMyTable(1).MyField) Then
'More Code
End if
It returns the following error - "Cannot get value because it is DBNull."
I can't even test for DBNull without an error.
How do I get around t... more >>
ASP.net & Win32 API (LogonUser) question...
Posted by bobo456 NO[at]SPAM hotmail.com at 11/1/2004 5:06:19 PM
I am running IIS6 on a Win2k3 server.
I have an ASP.Net app (C#) that a user logs into and then I use
LogonUser to validate them and log them onto the server. I have
Windows Authentication ONLY checked on the site in IIS.
My problem is that eventhough I am using LogonUser to log on to the
... more >>
SMTP Settings on Production Machine
Posted by Tushar at 11/1/2004 4:56:49 PM
Please help: I found some of the following information in messeges in this
group but I would like someone to confirm them please.
I would like to use the following web-services / ASP.Net code to be used in
an intranet environment:
MailMessage Message = new MailMessage();
Message.To = ...
.... more >>
Text from a Hyperlink column in a datagrid
Posted by GaryB at 11/1/2004 4:38:07 PM
Does anyone have any idea how to get the text out of a hyperlink column in a
web datagrid?
It's a hyperlink column, not a template column so findcontrol does not work
and there is no apparent name to look for.
myGridItem.cells(0).controls(0) shows no text properties or anything that
poin... more >>
formatting datetime field
Posted by djc at 11/1/2004 4:19:25 PM
one of the columns in my asp.net datagrid shows a datetime value from an sql
server. By default is displays the date like this "mm/dd/yyyy hh:mm:ss am"
or the same ending in 'pm'. How do I make it only show the 'mm/dd/yyyy'
portion? Should I do this within asp.net/vb.net or should it be done
som... more >>
Deployment variables
Posted by murphy NO[at]SPAM murphysw.com at 11/1/2004 4:07:59 PM
When deploying a web project how would I parameterize the following
registry value entry?
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MyApp]
"EventMessageFile"="C:\\WINDOWS\\Microsoft.NET\\Framework\\v1.1.4322\\EventLogMessages.dll"
I need a variable like %... more >>
How can i disable "RightClick Menu" in Internet Explorer ?
Posted by Ken Yu at 11/1/2004 3:59:54 PM
Hi,
How can i disable "RightClick Menu" in Internet Explorer, when
access the frontpage ?
tks a lot !
Ken
... more >>
RE: completely fail to load data using crystal report
Posted by Comfort at 11/1/2004 3:34:31 PM
I'm preaparing a web page using ASP.NET/VB
I have already added the crystal report viewer on my web form. I have used
the Databindings property to write the path whereby my crystal report can be
found. In the design mode the report is loaded but when I run my form I get
the following error:
"... more >>
Is it safe to still develop 1.1 apps?
Posted by dw at 11/1/2004 2:49:42 PM
I was listening to a Microsoft Webcast last Friday on Whidbey and migrating
from 1.1 to 2.0. It mentioned having to use a converter tool to migrate apps
to Whidbey. Is it safe to develop ASP.NET 1.1 apps at this point, with 2.0
just around the corner? Will things break on 1.1 apps with the 2.0... more >>
How do i refer to "<META ..." in code?
Posted by pealy2 NO[at]SPAM bigfoot.com at 11/1/2004 2:46:07 PM
Hi. I'm trying to get one of the examples from ASP.NET 1.1 Insider
Solutions to work in asp.net and i'm getting stuck on using the META
tage to do a refresh.
I have the following in my HTML behind my aspx web form but the ID=..
is generating an error - "Could not find any attribute 'id' of ele... more >>
ASP.NET 2.0 and framework version is?
Posted by nancy.l.steinmann NO[at]SPAM boeing.com at 11/1/2004 2:44:19 PM
I'm confused about versioning with ASP.NET 2.0. When ASP.NET 2.0 is
installed, will the whole .NET framework change to version 2.0, or
just the ASP.NET part of it?
Will I be creating Windows forms in VB.NET 2.0 after I install Visual
Studio 2005? Or will it still be VB.NET 1.1 but ASP.NET 2.0?... more >>
im trying to return a file from a request
Posted by Sam Martin at 11/1/2004 2:26:33 PM
Hi all,
One of my pages needs to return a CSV file.
I've set the Response.ContentType = "text/plain"; but I don't want the
browser displaying the file, instead I want the user to get the file save
dialog
Anyone know how to do this?
TIA
Sam Martin
... more >>
Return value between webform ?
Posted by Ken Yu at 11/1/2004 1:59:07 PM
Hi,
I have some question about ASP.net in VS.net,
I have two webform : webform_A and webform_B,
webform_A : for user input the data, but have some field need to redirect to
webform_B to make selection.
webform_B : for user to select the item and return to webform_A.
Q1. How to kee... more >>
using activeX Controls in asp.net web app
Posted by sumanth.meka NO[at]SPAM gmail.com at 11/1/2004 1:56:48 PM
Guys,
I was trying to use an activeX control that communicate with Scales in
a web application, i could add the control in the design mode and it
even works as expected. But, i need to access it to get more
information and Communicate with the scales by its properties. I am
able to do it in a w... more >>
Discussion: Integrating Designers' Work into VS.NET Projects
Posted by George Durzi at 11/1/2004 1:43:15 PM
I'd like to get some real world feedback from developers out there who have
to work with the "design" folks to integrate look and feel stuff into a
vs.net web project.
A lot of designers use web page design specific products such as Macromedia
Dreamweaver when building sites. What happens w... more >>
accessing protected variables
Posted by mark_hanson_eng NO[at]SPAM hotmail.com at 11/1/2004 1:38:47 PM
I would like to access code behind .aspx.vb protected variables from
the aspx web page like this <%# _ProtectedVariable %>. The only way I
can get the value is if I do Me.DataBind on each postback. If I don't
call Me.DataBind then the protected variable is empty on the web page.
But I don't w... more >>
Please Help me- Returning DataSet from a Web Service
Posted by sumaira.ahmad NO[at]SPAM gmail.com at 11/1/2004 1:25:02 PM
Hi All
My Web Service is returning a DataSet. I realized that we cannot
return a DataReader.. Normally we can use a DataReader( when not
using Web services) and access it as below to assign values of columns
of returned rows to Labels in the client aplication such as:
while (dtrJobDetails.... more >>
ASP.NET Application - Defined???
Posted by Steve Taylor at 11/1/2004 1:19:20 PM
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C4C015.6562DA80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am having trouble understanding the ASP.NET application boundaries. =
Here's my setup:
1. Win2003 Serv... more >>
Language Translation ASP.NET
Posted by rarora NO[at]SPAM virsasystems.com at 11/1/2004 12:24:48 PM
Hi,
We have a web app written in ASP.NET, which we are looking to convert
into diferrent languages (from English) to like German etc.
I have some questtions:
what is the best and easiest way :
1) Using a 3rd party Translation services or software
2) content in the resx files (we dont use r... more >>
Defining a Command for a LinkButton
Posted by Vi at 11/1/2004 12:03:03 PM
Hi,
I'm trying to dinamically add LinkButton Controls to a web form. I do
something like:
for(i=1;i<=someVariable;i++)
{
LinkButton PageLink = new LinkButton();
PageLink.CommandName = i.ToString();
PageLink.Text = "Page " + i;
PageLink.Command += PageLink_Click;
}
The ... more >>
Binding columns
Posted by tshad at 11/1/2004 11:34:19 AM
Is there any difference between:
<asp:Label id="Label3" runat="server" Text='<%#
DataBinder.Eval(Container, "DataItem.employeeid") %>'>
</asp:Label>
And
<asp:BoundColumn DataField="Answer"
HeaderText="Answer"></asp:BoundColumn>
or is this just a matter of style?... more >>
Strange type of POST
Posted by Manuel at 11/1/2004 11:29:49 AM
I have to log into a website and retrieve some information. The problem is
that the post isn't "normal". I'm used to passing post values in the form
of: Variable1=Value1&Variable2=Value2 etc.
I used Live Http Headers to retrieve the POST information, I included it at
the end of this message... more >>
Installer for Windows Service in .NET
Posted by Vishal at 11/1/2004 11:09:39 AM
Hello,
I have successfully created my first windows service
in vb.net and I also installed it on the same system.
However I would like to install the service on another
system. Can somebody tell me please how I can do that or
is that the same procedure as installing on the
developem... more >>
Development Server for Dummies
Posted by xstevex1 at 11/1/2004 10:58:02 AM
I'm using Visual Studio.net for ASP.net development.
The problem is, I can't create any new projects on my development server.
I've run the Mscorcfg.msc, and I can copy project folders onto the server and
run them from within VS, but whenever I try to create a new project and set
the locatio... more >>
Question about custom validator on UserControl.
Posted by Ken Varn at 11/1/2004 10:13:57 AM
I am trying to place CustomValidator in a User Control. I am using client
side script for the CustomValidator. The problem that I am having is that
when the script is called, I need to access multiple form elements by ID.
The ID's have been changed by ASP.NET when the form is loaded to reflect
... more >>
large text field
Posted by Andy G at 11/1/2004 10:13:41 AM
I have a very general question and just need someone to lead me in the right
direction. I am constructing a ASP.NET web form that is called
'Acknowledgement'. My client needs people to read and accept a privacy
disclosure statement before they register for the applications main
offerings. I w... more >>
dynamic server control
Posted by angus at 11/1/2004 10:12:45 AM
Hi All,
i have an aspx form for the user to input, and those data will be stored
into the database.
I would like to build up the form dynamically by using the data in the a
database table, named question
for example, i have a question table and the data in the question table is
as fol... more >>
"stream" a PDF?
Posted by Tom Kaminski [MVP] at 11/1/2004 10:10:05 AM
I can do this in ASP, but not sure how to handle in ASP.NET:
How To Use the ADODB.Stream Object to Send Binary Files to the Browser
through ASP
http://support.microsoft.com/?kbid=276488
Do I need to use BinaryReader? Can someone give me an example?
... more >>
aspx page, C#, trying to instantiate a C++ ATL COM control
Posted by WTH at 11/1/2004 9:58:37 AM
and when I call
MyUtilityLib.MyControl l_oControl = new MyUtilityLib.MyControlClass();
I get an exception thrown with the message "Access Denied."
Now, I wrote the control myself (as a test case when this happened with a
different control) and it is a terribly simply control created via th... more >>
Dynamic Web Service Reference
Posted by Demetri at 11/1/2004 9:23:12 AM
Is it possible to add a web service reference during runtime? If so, how?
--
-Demetri... more >>
AssemblyKeyFile location problem in ASP.NET Web Application
Posted by Jarmo Muukka at 11/1/2004 9:06:42 AM
Hello,
I started to use FxCop to check my assemblies. One requirement is a strong
name key. Placing the .snk file for library projects was easy. I placed the
file in project directory and in AssemlyInfo.cs I
haveAssemblyKeyFile("..\\..\\myprojectname.snk"). This is because the
compiler ha... more >>
Dinamically assigning handler methods to controls on the page
Posted by Vi at 11/1/2004 8:45:02 AM
Hi,
I'm building a screen where I want to allow users to be able to see data one
page at a time.
The users would view the data by clicking on the Page Nr.
The problem is that the number of pages is dynamic, based on how much data
the database returns, and I'm having troubles building the list... more >>
Using Custom Assembly Installed in GAC
Posted by Chris Fink at 11/1/2004 8:36:02 AM
Using the GacUtil I created a SNK and deployed my assembly to the GAC using
the GACUTIL. When browsing to c:\[SystemRoot]\Assembly I can see my custom
assembly. However, how do I use it in a new project? I don't see it listed
as a component in the .NET Add reference section?
Also, why ... more >>
Crystal Report Failed to Logon
Posted by andy lim at 11/1/2004 8:22:22 AM
Hello all,
I'm developing a web application using ASP.NET/VB.
I have problem in viewing my CR reports. It returns following exception when
I tried to view any CR report.
CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed
I found many similar problem in several .NET forums... more >>
dropdownlist default selected
Posted by huzz at 11/1/2004 8:19:08 AM
How do i make a dropdownlist selected value based on the value i retrive from
the database.
Basically i have an edit page and like to display the default value in a
dropdown list from the database.
for example: if the ddl_value is 2 from the database i want the second list
item to be sel... more >>
bypass an event because server side validation failed
Posted by interuser NO[at]SPAM hotmail.com at 11/1/2004 8:16:54 AM
Hi
How can I prevent an event (eg button click) from happening from
within page_load?
The reason is that I want to make my existing application work for
netscape, for which there are no client side validations.
So I thought to put something like the following in the superclass of
all UI pages... more >>
Window.Print in an ASP.net web page
Posted by Daniel Foster at 11/1/2004 8:14:04 AM
I am trying the javascript window.print function to print a asp.net web page
without much success.
I keep getting the error Stack Overflow on line....
Does anyone have any ideas what might be causing this error?
Or if anyone knows an alternative way of achieving this in c#?
Please help... more >>
Invoice printing in ASP.NET
Posted by cFleury at 11/1/2004 7:21:05 AM
Hello,
I am new to ASP.NET and I have to print an invoice from an application
written in ASP.NET, I have followed most of the threads in this newsgroup
about the dificulties posed by the server side nature of ASP.NET, but nobody
really addressed a solution to the problem, can I use "Crystal R... more >>
C# equiv of Chr(13)
Posted by Dan Nash at 11/1/2004 7:14:02 AM
Lo,
In a previous version of an app, I used replace to convert multiline text
boxes to something easier to put in a database, and then i used
replace(chr(13), "<br>") when i needed to show the data.
I'm now working on a new version of this app, and im using C# / .NET.
Obviously I'm using... more >>
Dynamically add link to css stylesheet?
Posted by Dave at 11/1/2004 7:00:01 AM
Is there a way to dynamically add a reference to the css stylesheet from the
codebehind similarly to the script registration features?
I was thinking of adding this code to a base class and inherit all my pages
from it so the css link below is added to each page automatically in the
<head> ... more >>
accessing User Controls - URGENT please help!
Posted by Dan Nash at 11/1/2004 6:47:02 AM
Hi all,
I've got a page with a user control on, added via VS. I'm trying to get to a
property of the user control (or more precisely, a public var).
Here's the code at the top of my aspx page...
<%@ Register TagPrefix="dI2" TagName="dartsUC_rolodexsearch"
Src="dartsUC_rolodexsearch.asc... more >>
remove "- Microsoft Internet Explorer" from title?
Posted by Dan Nash at 11/1/2004 6:44:08 AM
Hi guys
Is there a way to get rid of the "- Microsoft Internet Explorer" part of the
title bar? I've got a popup with "Contact Details :: [ContactName]" and it
just looks untidy with the IE stuff.
Cheers
Dan... more >>
Open PDF in popup window
Posted by Leo at 11/1/2004 6:37:21 AM
I need to open a PDF file in a popup window that has no user interface. I
can do that with:
function popUpPDF(fileName)
{
var pdfWindow = window.open(fileName,"SalesReport", scrollbars=0,
toolbar=0, menubar=0,directories=0);
}
I would also like to suppress the toolbars and tabs in the ... more >>
error when updating user attributes
Posted by Mesut KoÅŸucu at 11/1/2004 5:33:02 AM
hi all
i get a error when update user attributes
the error is "General access denied error "
the code is
Dim strAttrName As String = Me.TextBox1.Text
Dim strAttrValue As String = Me.TextBox2.Text
Dim objADObject As New
DirectoryEntry("LDAP://CN=ukosucu1,CN=Users,DC=proje,DC... more >>
Access controls in Web User Control from web form
Posted by joachim.feldt NO[at]SPAM astrazeneca.com at 11/1/2004 5:08:11 AM
Hi,
I am a newbie, so some help here would be very appreciated!
I have a aspx-page with four links at the top of the page. These links
are the application navigation and they are stored in a separate Web
User Control(ctrlTop.ascx).
These four links are added as asp:Hyperlink, with an ImageU... more >>
FrontPage extensions unexpected failure
Posted by Boz4313 at 11/1/2004 4:57:01 AM
I have been uploading my website to Brinkster through FrontPage extensions
for the last 4 months. One night I was re-uploading my project and it fails
on me. No settings have changed and I tried to reload the project and an
error came up. “Username or password is incorrect or I do not hav... more >>
asp.net + unmanaged dll security issues
Posted by Priya at 11/1/2004 4:08:04 AM
Hi,
I'm developing an ASP.NET application. I imported a C++ dll into the C# code.
When I tried to access a function in that dll, application threw an exception
"System.Runtime.InteropServices.SEHException:External component has thrown
an exception". I debugged the unmanaged C++ code & found tha... more >>
GetResponse() & POST timeouts
Posted by Garnet2 at 11/1/2004 3:30:02 AM
I am trying to get the following code to work :
HttpWebRequest request1 = (HttpWebRequest)
WebRequest.Create(@"http://localhost/TacUssd/8.tac");
request1.Method = "POST";
request1.Credentials = System.Net.CredentialCache.DefaultCredentials;
request1.ContentType = "application/x-www-form-urle... more >>
datareader problem
Posted by huzz at 11/1/2004 3:10:05 AM
I am having problem accessing a datareader from the aspx page here is my code:
private void Page_Load(object sender, System.EventArgs e)
{
BindData();
}
public void BindData()
{
objConn.Open();
SqlCommand selectCmd = new... more >>
checkbox and javascript
Posted by DotNetJunkies User at 11/1/2004 3:02:39 AM
1.
i want to populate checkboxlist using javascript only at client side ....how can i do this..by populate word i mean that checkboxes should be checked or unchecked on some condition basis....
2. after population there should be validation in checkboxlist.....
that is if user clicks... more >>
SmartNavigation doesn't work?
Posted by jahyen at 11/1/2004 12:02:20 AM
I'm trying to track down why SmartNavigation isn't working on a site.
I have created a brand new form, set SmartNavigation=true and added some
text and a button. There is no code in the codebehind file beyond what was
created by visual studio when creating a new web page.
When I click on the ... more >>
Problem using COMPUTE with SPROC on ASP Application
Posted by skirkby at 11/1/2004 12:02:05 AM
This will be obvious to some - but not me I'm afraid...
I am using an SQL data link from my ASP application to a SPROC - this all
works fine on standard SELECT statements and JOIN in to a datagrid in my
application. Rather than messing around with the code/server resource, I
thought I would... more >>
|