all groups > asp.net > july 2003 > threads for friday july 18
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
HttpContext.Current
Posted by memememe at 7/18/2003 9:32:10 PM
Now how in the wolrd does that work? How does it know that some static
method I called on some library was called by a page that had that context?
I have tried it so far with my Utils class, and it works just fine when
called from a page (all my methods are static), but I have also tried it by
s... more >>
DropdownList: How to select by value programaticly?
Posted by Northern at 7/18/2003 8:53:18 PM
I have an ASP DropdownList populated. What I want is to
select a new item, in my code, by set a datavale to
dropdownlist's selectedItem.Value property. I did the
following:
MyDropdown.SelectedItem.Value = "value 1"
Even though the "value 1" is in the dropdownlist's data
value collectio... more >>
Stored Procedure
Posted by Leon Shaw at 7/18/2003 8:22:38 PM
How do I implement a stored procedure to insert a new member in a database
then return the primary key of that member back to the application to be use
in another table?
... more >>
Forced user logins
Posted by Bill Wilson at 7/18/2003 5:44:26 PM
Can anybody direct me to the method where I would place my code to verify a
user has logged in in the codebehind? I know I can call a validate routine
on each and every event, but there should be a global event handler for the
page that all inbound activity is directed through prior to being dis... more >>
ASP.NET Model-View-Controller design question
Posted by Stan at 7/18/2003 5:33:23 PM
I want to make two pages interact through a controller.
1. Page A has a grid and Add button.
2. When Add button is clicked Page B pops up.
3. User enters information and clicks Save
4. Information is saved in database
5. User goes back to Page A which gets new data from database and displays
... more >>
Please help, Date Format Error
Posted by Bernard at 7/18/2003 5:03:50 PM
Hello,
Can someone please help me?
We have developed a asp.net application which is working fine on 4 other
computers. We have recently deplyed the application to the live environment
running windows 2000 service pack 4, .NET v1.1.
We continue to get the following error "Cast from... more >>
Sessions not working
Posted by Helen G at 7/18/2003 4:59:55 PM
Hello
We have a asp.net solution which consists of 5 projects. Up until a few
days ago, when we deployed the solution on our webserver all was fine. We
were copying the dll's and aspx pages to the appropriate folders.
However for the past couple of days the deployed site will no longer wor... more >>
How to check for a file before I upload??
Posted by Helixpoint at 7/18/2003 4:44:08 PM
I upload a file with the following code. Is there a way to check to see if
the file is currently there before I upload?
Dim s1 As String
Dim s2 As String
Dim pos As Integer
s1 = file1.PostedFile.FileName
pos = s1.LastIndexOf("\") + 1
s2 = s1.Substring(pos)
file1.PostedFile.SaveAs("C:\Inetp... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Using SQL Server for session states
Posted by Jonathan Amend at 7/18/2003 4:19:28 PM
I tried configuring my web application to use SQL Server for session states
and I installed the SQL script provided by .NET to set up the databases and
whatever goes with it but now my web application returns the following
error:
Unable to serialize the session state. Please note that non-seri... more >>
I can't use the asp.net debug mode for a particular project
Posted by TaeHo Yoo at 7/18/2003 4:08:29 PM
I have a couple of asp.net projects(Say A and B projects). For A
project, I can use the debug mode so I can use the stepinto or
stepover functions to find bugs. But I can't use the bebug mode for B
project(although debug mode is set as "Debug" not "Release").
I didn't do anything to change the s... more >>
Client side validators not emitting
Posted by John Livermore at 7/18/2003 3:55:00 PM
I am unable to get ASP.NET to send down Javascript to my IE 6.0
browser for client side validation.
To simplify the problem I have the following code snippet in from User
Control that creates a validator and emits HTML for Textbox.
control = //my Textbox control
RequiredFieldValidator valid... more >>
I can't use the asp.net debug mode for a particular project
Posted by yootaeho NO[at]SPAM yahoo.com at 7/18/2003 3:52:42 PM
have a couple of asp.net projects(Say A and B projects). For A
project, I can use the debug mode so I can use the stepinto or
stepover functions to find bugs. But I can't use the bebug mode for B
project(although debug mode is set as "Debug" not "Release").
I didn't do anything to change the set... more >>
Datatable Caching
Posted by Joe Curry at 7/18/2003 3:49:15 PM
if (Cache["MyDatatable"] == null)
Fill MyDatatable
Cache.Insert("MyDatatable",dtDatatable,null,DateTime.Now.AddMinutes(5),Syste
m.TimeSpan.Zero);
In debug mode Cache["MyDatatable"].Rows.Count = 38;
else
dtDatatable = (System.Data.DataTable) Cache["MyDatatable"];
Now on a post... more >>
Pager and Event Handling
Posted by sunil at 7/18/2003 3:18:58 PM
OnItemCreated method of DataGrid I modified the Pager cell to have a button
TableCell pager = (TableCell)e.Item.Controls[0];
ImageButton hImg = new ImageButton();
hImg.ImageAlign=ImageAlign.Left;
hImg.ImageUrl="some.gif";
hImg.CommandName="SomeCommand";
pager.Controls.AddAt(0,hImg);
... more >>
File Access error - writing to .txt file
Posted by John Carnahan at 7/18/2003 3:06:15 PM
Using .net in aspx page with following code, and get a write error on the
website, but everything works fine on the development machine.
----- code ----
Dim counter As String = CType(logcount, String)
Dim fileName As String = mPath + mFileName
Dim Fs As System.IO.FileS... more >>
SMTP
Posted by Grant at 7/18/2003 2:52:44 PM
I am having a problem with sending mail via system.web.mail. When I send the
file shows up in the queue folder so something is not letting it go, any
idea? No runtime error comes up or anything. I suspect it is the firewall so
what should I tell them?
Here are the codes that I am u... more >>
Exception Handling.
Posted by Rajeev Soni at 7/18/2003 2:44:01 PM
Hi,
Considering the scenario for handling exceptions in Web Application =
where we have Presentation layer, Business layer and Data Access layer; =
if there any exception is occurred in DAL, what is the best thing to do:
1. Dont catch the exception in DAL and let it prop up to the Applicatio... more >>
Two rendered rows for each record in DataGrid
Posted by Hrvoje Vrbanc at 7/18/2003 2:06:26 PM
Hello all!
I have quite an strange question: I'm using DataGrid to display the results
of a query stored in a DataSet. I use data binding with DataBinder.Eval
statement (like e.g. <%# DataBinder.Eval(Container.DataItem, "ColumnName")
%>).
Now the tricky part: is it possible to render one more... more >>
Webconfig Error
Posted by Omundu at 7/18/2003 1:12:48 PM
I'm learning ASP.NET and have developed a project and
build it without any build error but when i browse the
startup page i receive the error below, i have configure
IIS accordingly and have administrative rights. I have
used the tool aspnet_regiis -r to map scripts but still
getting the e... more >>
runat="server"....a simple html textbox or a webform server textbox...that is the question.
Posted by Hazzard at 7/18/2003 1:02:25 PM
I just realized that the code I inherited is using all asp.net server
controls (ie. webform controls) and when I try to update textboxes on the
client side, I lose the new value of the textbox when submitting the form to
update the database. The server doesn't have the client side value any more.... more >>
Asp.net and internet explorer 4.0
Posted by Jan Timmer at 7/18/2003 12:43:30 PM
Hello,
One of our clients wants a web application. Several offices (worldwide
distributed) only have internet explorer 4.0.
Are we facing problems when we develop an ASP.NET application for them? And
if so, are they showstoppers or are there workarounds?
TIA,
Jan
... more >>
make Serializable or create custom TypeConverter ?
Posted by Christian at 7/18/2003 12:18:03 PM
Hi,
I try to assign a variable of type WebControls.Button to ViewState as
follows
ViewState["m_ballSelected"] = m_ballSelected;
but get an error -->
"The type 'System.Web.UI.WebControls.Button' must be marked as Serializable
or have a TypeConverter other than ReferenceConverter to ... more >>
database connection string encryption and decryption
Posted by Srinivasa Reddy K Ganji at 7/18/2003 12:01:10 PM
Hi
I want to encrypt the database connection string and add it to web.config
file. Before connecting to the database I want to decrypt it.
Can anyone suggest me how to implement this (c#)
Regards,
Reddy
... more >>
How to create top-level site/application
Posted by Amil at 7/18/2003 11:55:49 AM
Hum...am I missing something here. Seems like when I create a new web
application in visual studio .net, it will put it at
http://localhost/newapp/. This is fine..for now.
But, I want to write the app in such a way that I can place it at a
top-level of a site...directly to an ip like http://... more >>
ASP DataList
Posted by Chris Fink at 7/18/2003 11:11:34 AM
Hello,
I have an ASP Datalist in which I am binding a value within the
<itemtemplate> section as follows:
<%# DataBinder.Eval(Container.DataItem, "week")%>
This displays the week value as expected.
However, the same statement in the <headertemplate> of the datalist
display's nothing?
... more >>
Add control using C# (newbie)
Posted by Ivan Demkovitch at 7/18/2003 11:08:31 AM
Hi!
I'm VB developer learning ASP.NET and C#
Unfortunately, my book has only few examples in C#, all in VB.NET
Here is a question:
I'm trying to add control dinamically. In VB it looks like:
Dim CheckBoxList1 As New CheckBoxList()
Controls.Add(CheckBoxList1)
CheckBoxList1.Items.... more >>
Method not found: System.Collections.Specialized.NameValueCollection System.Web.HttpRequest.get_QueryString().
Posted by Mark Miller at 7/18/2003 10:51:02 AM
I just recently started getting the above error on a page I am posting
MULTIPART/FORM-DATA. We have SoftArtisans FileUp component and Filter
installed on the server in question and up until a day or so ago everything
was working fine. I honestly can't remember changing anything since it was
last... more >>
Why can't I debug?
Posted by Andy Crawford at 7/18/2003 10:33:18 AM
It used to stop at breakpoints. I had to re-install VS.net (2002, =
XPpro). Now it won't stop at breakpoints.
I've set build to "DEBUG". Web.Config has debug=3D"true". ASP.NET =
debugging is checked.
What am I missing?
Thanks,
Andy
ac411@bellsouth.net... more >>
Encrypt identity password
Posted by Anand at 7/18/2003 10:26:48 AM
Hi,
I want to encrypt userid and password on the web config
file. I ran the aspnet_setreg.exe and encrypted it on the
registry and in the web config file i wrote
<identity impersonate = "true"
userName="registery:HKLM:\SOFTWARE\MYAPP\identity\ASPNET_SE
TREG,userName"
password=="registe... more >>
enablesessionstate Page directive is needed to use the Session object
Posted by Marco Gerlach at 7/18/2003 9:57:29 AM
Hello,
on IIS6 running on Win2003 server std. I get this error
"enablesessionstate Page directive is needed to use the Session object"
my web.config looks like this:
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
... more >>
Why does VS.NET use codebehind?
Posted by Graham Allwood at 7/18/2003 9:20:36 AM
I'm reading the Essential ASP.NET book by Fritz onion and he says that when
VS.NET creates a new .aspx page for you is uses the codebehind attribute on
the Page directive rather than the src attribute. From what I understand the
src attrib is standard ASP.NET but the codebehind attribute is only
... more >>
doPostBack client-side function
Posted by Johno at 7/18/2003 9:12:42 AM
Whenever you drop a linkbutton on an ASP.NET web form,
the following script gets emitted:
function __doPostBack(eventTarget, eventArgument) {
var theform = document.Form1;
theform.__EVENTTARGET.value = eventTarget;
theform.__EVENTARGUMENT.value =
eventArgument;
theform.submit();
... more >>
RegisterHiddenField to Capture Enter Resetting Application
Posted by Matthew Wieder at 7/18/2003 9:08:18 AM
Hi - I wanted to capture the enter button on a form since I have a
datagrid with the first column being a delete button and if someone hits
enter it deletes the first record. I coded:
private void Page_Load(object sender, System.EventArgs e)
{
Page.RegisterHiddenField("__EVENTTARGET","Som... more >>
ask for help for setting up the asp.net dev environment
Posted by tongchen NO[at]SPAM programmer.net at 7/18/2003 9:06:56 AM
Hi,
I was setting up a dev environment for using asp.net.
I set up the IIS and Visual Studio.NET and tried some aspx pages but
did not get the result I expected. What I got in the browser was my
aspx source code. Can anyone help to figure out what was wrong?
Thanks in advance,
Tong in S... more >>
ASP:RequiredFieldValidator control is not working on Netscape 7.
Posted by Rob at 7/18/2003 8:00:35 AM
ASP:RequiredFieldValidator is not working on Netscape 7.
Any one has idea how to fix this problem?... more >>
calling doPostBack not working
Posted by Timothy Kelley at 7/18/2003 7:48:09 AM
This bug has my application crippled in I.E. 5.0.
I'm calling the __doPostBack Fuction from my custom javascript function
Submit(pict)
It never reaches it in i.e. 5.0
I'm using 1.1 framework. It works fine in i.e. 5.5 and 6.0 but not i.e. 5.0
You can see an example of the problem at
http:/... more >>
MVP is this a BUG? Adding button element corrupts textbox event!!!
Posted by Kathy Burke at 7/18/2003 7:38:45 AM
Hi, I posted earlier about my textbox textchanged event no longer
firing. I've found the cause but NOT the reason.
On a fairly simple aspx form, I added an html button to fire a
client-side script of open.window. As soon as this was added, the
textchanged of my textbox no longer fires. I check... more >>
Easy Datagrid question
Posted by AC at 7/18/2003 7:36:19 AM
Any reason i'm having trouble with:
DataGrid1.Columns(7).ItemStyle.HorizontalAlign =
HorizontalAlign.Right
I'm trying to directly set the column alignment of a
datagrid created at runtime..
AC... more >>
SQL Error caused by .NET Framework incompatibility
Posted by teddysnips NO[at]SPAM hotmail.com at 7/18/2003 7:22:31 AM
Our app was built on VS using .NET Framework version 1.0.3705 It
worked fine until last week when the SysAdmin installed W2k SP4 which,
it appears, installs the .NET Framework version 1.1 This has broken
our code. It was failing with the error :
"Syntax error converting from a character str... more >>
asp:textbox_TextChanged event no longer fires???
Posted by Kathy Burke at 7/18/2003 6:48:03 AM
Hi, I have a textbox control with some typical textchanged event code.
It has worked fine, but all of a suddent the event no longer fires when
you hit <Enter>. It does allow me to enter data, just beeps at me with
no error message of course, when I hit <Enter>. I haven't changed any
code since i... more >>
How can I write to text file.(ftp)
Posted by Mike John at 7/18/2003 6:19:38 AM
I want to write to text file, the follow text " My Name Is
mike"
Now, I have used the following sysntax:
dim strFilePath as string = "C:\"
dim strFileName as string = "MyFile.txt"
fileopen(1,strfilepath & "\" & strfilename,output)
write(1," My Name Is mike")
fileclose(1)
now, assum th... more >>
Set focus problem
Posted by dsweatman NO[at]SPAM bellsouth.net at 7/18/2003 6:10:17 AM
I have a page with a drop down and several web controls. The drop down
is set to postback and it reloads the textboxes based on the selected
drop down item. I set the focus to the first textbox control on the
client like this:
<script language="vbscript">
Option Explicit
....other code
If Not... more >>
Waiting on Stored Procedures
Posted by mlavinder NO[at]SPAM rms-online.com at 7/18/2003 5:25:47 AM
We are creating an ASP.NET application where I would like to call a
SQL Server 2000 stored procedure and have the application wait until
the procedure is done to proceed. The stored procedure is performing
an INSERT statement and isn't returning a recordset. I'm looking for
any suggestions on... more >>
Applic. size
Posted by Rob at 7/18/2003 5:06:53 AM
Hi all,
at the moment I'm using the task-manager to get information
on memory usage of my asp.net application. Are there other
way to get more exact information on memory consumption?
Cheers
Rob... more >>
ASP.NET and IIS Server.
Posted by Abhijeet at 7/18/2003 4:37:11 AM
I have Windows 2000 OS with SP1. How to make the IIS
server to work with ASP.NET? Currently the IIS works fine
with the ASP applications but not with aspx. I do not
have .Net studio installed on my machine.
When I try to access any aspx page, it opens it like a
text file in browser. The a... more >>
Currency data type
Posted by John Rebbeck at 7/18/2003 1:40:53 AM
I'm currently using Decimal for my currency data but I noticed it has 4
decimal places (which is wrong when displaying with .ToString()). I either
need to format the data correctly when displaying it or use a data type
intended for currencies. Can anyone help me? Btw, I use SQL Server with its
m... more >>
set up a datagrid of multiples datatables in 1 dataset
Posted by Richard Loupatty at 7/18/2003 12:55:50 AM
I have a few tables consisting two columns each.
They all have the same first column (unique key)
What I want to do is show a datagrid, starting with the first column
followed
by the rest. Actually put the tables behind each other.
Is there anyone who could show me the way how to do this
... more >>
|