all groups > asp.net > october 2004 > threads for monday october 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
Problem with asp.net 2.0
Posted by no.one NO[at]SPAM no.where.com at 10/18/2004 11:22:58 PM
Not sure if ths is the right place, but I couldn't find a group for
asp.net 2.0 beta.
I am having a problem with updating databases using the data grid. I
have the following code...
<asp:SqlDataSource ID="SqlDataSource1" Runat="server"
SelectCommand="Select * From Custome... more >>
Authentication problem
Posted by Nikolay Petrov at 10/18/2004 10:31:32 PM
I have the following web method:
<WebMethod()> _
Public Function Test_CurrentCredentials() As String()
Dim tmpArr(2) As String
tmpArr(0) = "User: " &
System.Threading.Thread.CurrentPrincipal.Identity.Name
tmpArr(1) =
System.Threading.Thread.CurrentPrincipal.Identity.Authenti... more >>
ASP.Net 2.0 HttpHandler configuration
Posted by vplusplus at 10/18/2004 10:20:26 PM
I found by accident following behavior with ASP.Net 2.0 web.config
Background:
I am trying to implement WebDav protocol for serving information from
database.
I had to route all requests (with or without file extension) to my WebDav
Httphandler.
Step 1:
I added IIS wildcard map to aspne... more >>
Seeking to understand something about the HttpSessionState class
Posted by caustin NO[at]SPAM austinspad.com at 10/18/2004 9:32:58 PM
A co-worker asked me today what would happen if Session.Add() method
was called multiple times with the same key. My first thought was
that it would throw some sort of duplicate key exception. Thinking
about it some more, the only thing it really does is implement
ICollection and possibly IDic... more >>
design advice
Posted by rodchar at 10/18/2004 8:49:04 PM
Hey all,
I'm trying to create a personal media tracker in asp.net and had a few
design questions. Following is a snippet of my pertinent fields in my database
Media Table:
name
media type
Borrowed Table:
name
date borrowed
borrowed by
I'd like to display a datagrid of all my med... more >>
File Upload
Posted by Manny Chohan at 10/18/2004 8:39:03 PM
Hi Guys,
I need to allow users to upload files in their user directory
on server.how can i check that the files dont have viruses while uploading?
Is there any other issue that i should consider about too?
Thanks
Manny
... more >>
Limitting Number of Logged in Users or Active Sessions in ASP.NET
Posted by Lenn at 10/18/2004 7:31:02 PM
Hello,
This requirement might seem strange to someone out there, but here it's
We need to make sure only certain number of users can be logged in the site
at the same time. Is there any way to do that in ASP.NET, in web config file
or otherwise. Thanks in advance for your help.... more >>
URL class in C#
Posted by K R at 10/18/2004 7:00:30 PM
Hi,
Please let me know the equivalent code to the below code in c#
(ASP.NET).
This below code is written in java.
MyDataString =
#DREDOCID 1
#DREFIELDNAME Price
#DREFIELDVALUE 10
#DREDOCREF http://www.autonomy.com/autonomy/dynamic/autopage442.shtml
#DREFIELDNAME Country
#DREFIELDVALU... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Session resurrection
Posted by nn at 10/18/2004 6:24:03 PM
Hello
I have ASP.Net application configured to use cookies for session.
For some reasons I can't move to cookieless model.
I need access to session created in this application without cookie.
I tried pass session id through url (like in cookieless mode). But this
dosen't work. I know that th... more >>
Connect to exchange mail stores and retrieve some attachments.
Posted by sospetermurigi NO[at]SPAM scceramics.com at 10/18/2004 6:09:02 PM
Hi,
I want to connect to a mail store from an ASP.NET application. Once I
connect to the mail store I want to be able to retrieve a message from
a particular user. The problem I have is I don't know how to connect
to exchange. Thought it would be as easy as connecting to a sqlserver
but that ... more >>
Could not find path error
Posted by Steve at 10/18/2004 5:56:49 PM
Hi all,
I am referring to this article in MSDN :
http://msdn.microsoft.com/library/en-us/secauthn/security/logonuser.asp
While creating folder on the remote machine, we are specifying the UNC path
as per the example. But we get this error "could not find a part of the
path".
we are prefixi... more >>
Page_Validators error
Posted by dhurwitz NO[at]SPAM stersol.com at 10/18/2004 5:13:37 PM
I am working on a large ASP.NET project. We have a user control
called ucSearch, which is called from two other pages. ucSearch
contains some validation controls. Up until this afternoon, it worked
perfectly with no problems. For no discernable reason, it stopped
working on my machine, givin... more >>
Error -The "SendUsing" configuration value is invalid. Only on ASP Not VB on Server
Posted by elie.goldberg NO[at]SPAM gs.com at 10/18/2004 5:05:36 PM
Hello
I get this error when the code runs from the server as an .asp page or
from a compiled dll.
But When I log onto the server and run a vb program that executes the
same code, it works fine.
this works fine on a different web server as well. They are both
running windows 2003.
I kn... more >>
"asp.net" web templates
Posted by JB at 10/18/2004 5:00:07 PM
Hello All,
I want to make my site template-based.
Can anyone point me to a good article on how to do that?
John... more >>
Listbox item added with client scripts not submitting with ASP:Listbox
Posted by Simon Prince at 10/18/2004 4:46:11 PM
Help
I have a ASP:Listbox on a form. My page Adds items to this this via
Client-Side Script only.
Such as...
var vObj_TargetElement =
document.getElementById("_PageTemplate_innerHolder_oASP_Lbx_Invoice");
var vObj_SourceElement = document.getElementById("oHTML_Tbx_Invoice");
var vInt_Op... more >>
Datagrid
Posted by vinay at 10/18/2004 4:29:03 PM
I have created a Master-Detail DataGrid
The detail grid is embedded inside the Mastergrid with each row.
Adding the detail grid in ItemDatabound event.
I am exporting the Grid to a Excel.
In the excel sheet only Master grid content shows up and NOT the detail grid??
Why is the detai... more >>
databind a grid with linkbutton
Posted by Nikhil Patel at 10/18/2004 4:22:39 PM
Hi all,
I am binding a grid to an array of the System.IO.FileInfo class. I need
to display the Name column as Link Button and its target should be the Full
Name of the file. How can I do this?
Thanks.
... more >>
Read external stylesheet values
Posted by Billy Cousins at 10/18/2004 4:14:43 PM
Can anyone tell me how to programmatically read the values from a stylesheet
that is linked into my asp.net app? I can read styles that are declared in
the HTML code, but have not found a way to get to the external stylesheet.
For example, I want to read the font-size and font-family from a class... more >>
controls as variables
Posted by Marc Miller at 10/18/2004 4:08:14 PM
I have 10 hyperlinks on an .aspx page. Hyperlink1, hyperlink2, etc.
I want to reference them in a loop to set their visibility and targets.
What I think I want to do is
mylink = 'hyperlink' & i (i being 1 to 10)
and change the string into a hyperlink reference and then do
mylink.target = abc... more >>
page is not posting back
Posted by Nikhil Patel at 10/18/2004 3:42:16 PM
Hi all,
I have a simple page with a dropdown and a datagrid. But the page is not
posting back at all when I select an item in the dropdown. What could be
wrong?
Thanks.
... more >>
How can I kill an "Excel" process from a memory?
Posted by Michael Tkachev at 10/18/2004 3:36:28 PM
Hi Everybody,
I created an Excel file in the ASP.Net. When I wrote this file on the disk I
tryed to release COM objects. But I couldn't do it. When my method finished
an "Excel" process exists in the memory. So, I would like to kill an
"Excel" process and for it I need to know a ProcessID or ... more >>
aspnet_wp.exe memory leak
Posted by caulker at 10/18/2004 2:58:25 PM
i have an asp.net that seems to be leaking memory somewhere.
in an attempt to find it, i create a blank test.aspx page with one label on
it, and made this the default page for the site.
every time i refresh test.aspx the memory ussage for aspnet_wp.exe
increases.
why?
... more >>
Add DataColumn to DataSet
Posted by Azkaban at 10/18/2004 2:49:25 PM
Hi I succeded to add a DataColumn to DataSet but now I've one big problem.
The value of this column would be a personal function result, I try a lot of
time but the result is always empty.
Why?
There's a method to do this thing?
This is the code
cols = ImageDataSet.Tables("Immagini").Column... more >>
javascript with master page
Posted by sck10 at 10/18/2004 2:47:03 PM
Hello,
I am using asp.net 2.0. I have an asp.net page that uses JavaScript to open
a popup window. When I use the JavaScript with a content page that has a
MasterPage, I get a "return" error associated with the JavaScript. I would
prefer to keep the JavaScript in the ContentPage, but how... more >>
Need help for dotNet
Posted by Binh at 10/18/2004 2:40:53 PM
Hi,
I write a C# to get information from a XML site, when I run my program at
home, there's no problem.
But when in office (no proxy, no firewall, port 80 is open), I've got this
error:
---------------
Unhandled Exception: System.Net.WebException: The underlying connection was
cl... more >>
ASP temp files
Posted by Nikolay Petrov at 10/18/2004 2:28:27 PM
I have an ASP .NET page where a user uploads file, then this file is
processed and finaly a result file is downloaded to user.
My question is: Is there a way to find if user have downloaded the file, so
I can remove it from server?
TIA
... more >>
Best architecture - upload file and save on different server
Posted by Pat Carden at 10/18/2004 2:21:09 PM
Hi,
We need to allow webusers to upload a file on our website (on Server3, all
servers run Server 2003, remotely hosted) and eventually save it on our SBS
Server (Server2) which is not exposed through our firewall. We have another
server (Server1) within the SBS domain that is exposed thro... more >>
Sending values between applications
Posted by Eje at 10/18/2004 2:17:14 PM
Hi,
I'm building an application where other companies
redirect users to our application. I need the redirecting
company to attach a code telling me who is redirecting.
I've seen url:s with a querystring at the end. That would
suite me fine but how do I send such a message and how do
I cat... more >>
Generating Thumbnails (GetThumbnailImage) ...
Posted by Fabricio Sperandio at 10/18/2004 2:03:42 PM
Hi everyone,
I am trying to generate some thumbnails using System.Drawing.Image Class.
Actually the GetThumnailImage method. The question is: How can I get a
better thumbnail picture? I mean, when the original size is big, for
example, 800x600 and I generate a small picture (160x120) the qu... more >>
Validation Store Procedure
Posted by Leon at 10/18/2004 2:00:44 PM
Is There a better way I could have written the following stored procedure?
Or is my way cool?
Checking: Username, Password, Activation = True
CREATE PROCEDURE GetAuthorization
(
@Username Varchar( 20 ),
@Password Varchar( 16 )
)
AS
DECLARE @AccountID INT
SELECT @AccountID = Accoun... more >>
Calling aspnet_wp.exe
Posted by pimburg NO[at]SPAM gmail.com at 10/18/2004 1:55:44 PM
Does anyone know whether it is possible/advisable/stable to call
aspnet_wp.exe from a process besides the inetinfo.exe or dllhost.exe?
For example, is there a way of passing the form parameters in and
getting the response output?
Many thanks,
Peter... more >>
datagrid columns wrapping
Posted by rodchar at 10/18/2004 1:49:03 PM
Hey all,
I have a datagrid that auto-generate the columns. When I run the app some of
the column values are wrapping. How do I prevent the values from wrapping?
Do I have to use template columns to accomplish this feat?
thanks,
rodchar... more >>
ListBox question
Posted by Scott Reynolds at 10/18/2004 1:46:53 PM
Hello!
Could someone provide me a sample code how to move values between two
ListBox controls?
Thank you!
Scott Reynolds
... more >>
Preferred Client Side Calls
Posted by Ryan Moore at 10/18/2004 1:33:12 PM
Does anyone know if there is another method for making asynchronous client
side calls to server methods (without page refreshing) besides JavaScript
Remote Scripting?
thnx
... more >>
including a javascript file
Posted by Justin at 10/18/2004 1:23:06 PM
I am using asp.net with a C# code behind and I need to figure out how to
include a javascript file for use with my code.
It was simple to do this in classic ASP: <!-- #include File="md5.js" -->
Is there a similar way in ASP.NET?
Thanks, Justin.... more >>
Login and Post in one C# program
Posted by Brian at 10/18/2004 1:22:40 PM
Hello All,
I need some help for my auto-post C# program.
I tried to post something on my forum, but my forum need me to login first.
How could I keep the session information in two http connections?
In other words, I need to login at login url first, then post my message on
post url.
How to ... more >>
event from itemtemplate not raised
Posted by Daniel at 10/18/2004 1:03:31 PM
hi all,
i have a dynamically loaded item template for a datalist that contains a
button element.
this button does not raise an event when clicked.
Is there something special to care for with a dynami template?
thanks for any help.
d.... more >>
Clear the Colsole Window
Posted by Josh at 10/18/2004 1:02:05 PM
Hi Guys,
I have written a console application in C#. I wish to printout a percentage
to the screen as the program is running.
Does anyone know how to clear the console window?
or does anyone konw how to do this?
Thanks
Josh
... more >>
User control + relative path
Posted by Alex at 10/18/2004 12:50:34 PM
Hi. I need some help on this.
I have a user control (a header) in my root directory, and all my pages use
that control. Then a created a folder (in my root directory) and put a new
page inside it, and that page use the same control, but this time the
control can't find it's images and resources ... more >>
Client site info
Posted by dmertens NO[at]SPAM home.nl at 10/18/2004 12:34:13 PM
I am a noob in building sites, but hope i can get information about my
answer.
I want to build an security in my site.
Without the user(the one that is alowed to enter) noticing it. So no
password stuf.
I want to do this by letting the site, check something on the client
site computer. Lik... more >>
raise event from javascript
Posted by Nikhil Patel at 10/18/2004 12:33:31 PM
Hi all,
How can I raise the Click event of the LinkButton server control in
Javascript?
Thanks.
... more >>
A little help with managing session timeouts
Posted by Simon Harvey at 10/18/2004 12:28:27 PM
Hi everyone,
If anyone can help me with the following I would be very greatful.
In order to determine when a session has timed out I have some code in each
page that does something like:
loadSessionData(); // Populates a variable called sessionState
if(sessionState.currentUser !... more >>
alert box and problem with back button
Posted by Ersin Gençtürk at 10/18/2004 12:13:11 PM
hi,
I wrote a function like this :
public static void Alert(string message){
message=message.Replace("'","\'");
message=message.Replace("\n","\\n");
Response.Write("<script>alert('"+message+"');</script>");
}
this function is showing an alert box when necessary but when the user
... more >>
Sql Server Datetime
Posted by Irishmaninusa at 10/18/2004 11:53:27 AM
Hello Everyone,
I am trying to pull back value from my database and the value in the field
is 2004-10-16 16:48:36.840
but when I store that in a string variable it gets converted into real time
10/16/2004 4:48:36PM
I want to keep the value as is and not have it converted, so I tried to ... more >>
DataGrid to Excel
Posted by vinay at 10/18/2004 11:49:07 AM
Hi
I am saving a Datagrid to Excel file.
The datagrid has a Header named "First Name", When it is saved to Excel an
extra char "Â" is getting added in between !!
First Name
Why is it getting added, how to avoid it???
Thanks
vinay... more >>
Random Number Generating
Posted by Leon at 10/18/2004 11:44:19 AM
I need a program that generate 5 non-duplicates random number between 1-10
as string values store in an array.
Do anybody know of any good books or websites that explain how to generator
random numbers using asp.net?
Plus If you have any coding practice ideas for the above defined project ... more >>
Graphical controls
Posted by Mau at 10/18/2004 11:31:38 AM
I ' m looking for some articles
concerning the way to create graphical
controls in ASP.NET or WinForms
an example: I would like to create a round
progress bar and so on.....
I think that I have to use GDI+ but I need
some resources to get started.
Thanks!
M
... more >>
Problems opening a file containg å,ä or ö (swedish characters)
Posted by Henke at 10/18/2004 11:28:53 AM
Hi!
I have streamed files to a database and use Response.BinaryWrite to open
them. When the file name contains å,ä or ö they get replace by for example
Ã¥. I have tried changing the CharSet on the Response object but it didn't
solved my problem.
Does anybody know how the fix this problem?
... more >>
Session State without HttpSessionState
Posted by gudujarlson NO[at]SPAM hotmail.com at 10/18/2004 10:47:32 AM
I have the need to keep a substantial amount of session state, but I
do not have the option of using the HttpSessionState object. My
current scheme for dealing with this is to convert all the state
values to strings, place them in the query string of the URL passed to
Server.transfer(), and the... more >>
Display RTF text in aspx page ?
Posted by Tigrou at 10/18/2004 10:47:01 AM
Hello,
In a Oracle Database i have text who are stored, this text are in RTF
format, you can see an example below:
{\rtf1\ansi\ansicpg1252\deff0\deflang1036{\fonttbl{\f0\froman\fcharset0
Times New Roman;}{\f1\fnil Verdana;}{\f2\fnil\fcharset2 Symbol;}}
\viewkind4\uc1\pard{\pntext\f2\'B7\... more >>
Some webservice connections
Posted by Nikolay Petrov at 10/18/2004 10:26:44 AM
1. Can I use SSL for my web services?
2. How can implement some kind of security to my web services? My idea is to
implement some kind of licensing or user/password authentication for an web
service.
3. Do I have to make my web service multi threaded or IIS takes care for
simultaneous reques... more >>
Forms Authentication
Posted by Manny Chohan at 10/18/2004 10:23:04 AM
I am using forms authetication in the web config. i can validate a user
against a database and click on images which makes hidden panels
visible.However when i click on the link inside a panel which should take
user to another pages, it defaults them back to the login page prompting them
to ... more >>
Response.redirect does not redirect from .aspx page
Posted by Troy at 10/18/2004 9:43:03 AM
I am calling Response.redirect(strURL, false) from the page_load event in an
..aspx.
My goal is simply to display an https://somewhere.com/ in the current page.
On execution I get the .aspx page without any redirect. The url displays my
..aspx path. Any help is greatly appreciated.
Th... more >>
Disable Submit Button
Posted by Jeff at 10/18/2004 9:27:51 AM
I have a payment form with a submit button. A large percentage of users
double-click the submit button thus submitting their payment information
twice. I would like to use javascript to disable the submit button once
it's been clicked, yet still have the form submit. I can do this in ASP
2.0, ... more >>
Focus in Web Control?
Posted by Dexter at 10/18/2004 9:04:34 AM
Hello All,
I have a web control that when receive the focus, a postback is called,
using getPostBackEventReference. But, when the PostBack is called, i want
that the focus goes to the web control.
Somebody know how to make this?
Dexter
... more >>
textbox question
Posted by alnur.ismail NO[at]SPAM scotiabank-dot-com.no-spam.invalid at 10/18/2004 8:55:17 AM
Lets say I have a page that has a Button control and a Table control.
The Table control holds a textbox that gets its text from a DB. Now
when i click the Button control I want whatever text in the TextBox
to be saved to the DB. So it would be like an update.
My problem: When I click on the Bu... more >>
exception when using form tag within a user control
Posted by Daniel at 10/18/2004 8:51:21 AM
Hi all,
i would like to load a usercontrol dynamically in a web page.
this uc contains some buttons.
because the page itself also contains button elements, the error
"A page can have only one server-side Form tag. "
is raised.
when i dont use a formn within the uc anothr exception:
"'Butto... more >>
Date diff help please,in c#
Posted by Raghu Raman at 10/18/2004 7:10:21 AM
Hi
I want to find the difference between 2 dates in terms of year.It is
confusng in msdn.could u help me on that.
for ex,
int year=datediff("y",date1,date2)//of course it is in VB.
--------------
COULD U PLS TELL ME HOW TO DO IT IN C#.Net
With sincerely
Raghuraman(a drop in the ocean... more >>
htmlInputFile problem in mozilla
Posted by Bob Kirby at 10/18/2004 6:49:09 AM
I have a problem with the htmlInputFile control. It works fine in IE6, but
not in Netscape, Firefox, etc. The problem is that in Netscape the path is
deleted -- only the file name is returned. Anybody know what's going on?
Thanks.... more >>
Message Box (delete record - Yes or No) - Help!
Posted by Mike Moore at 10/18/2004 6:29:02 AM
asp.net app - How do you get Java-side code to communicate with server-side
code?
I have tried numerous ways and examples, but have been unsuccessful.
Therefore, unless I get real lucky and find another way of doing a messagebox,
none of the existing ways will work with the code we have a... more >>
Closing the connection
Posted by evandelagrammaticas NO[at]SPAM hotmail.com at 10/18/2004 6:09:19 AM
Hi guys... I am developing an application and need some advice while
the application is still in its infancy.
1. Set Conn = Server.CreateObject("ADODB.Connection")
2. Conn = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" &
Server.MapPath("documents.mdb")
3. Set rs = Server.CreateObject("ADOD... more >>
interaction between aspx & html page
Posted by Priya at 10/18/2004 5:55:22 AM
Hi,
I'm new to ASP.NET.
I've some basic ques.
In what situations we use aspx page when DHTML can be used?
How can I interact between an aspx page & html page
eg: using Request . Form[index] i get the values from a html form
but if i want to populate some values in html form based on value retr... more >>
Config Session Timeout
Posted by Michael Chong at 10/18/2004 1:11:52 AM
Is below the right way to configure my session timeout until 1 hour long?
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="3600"/>
... more >>
Page_load before a buttonclick event function
Posted by Joshua Weir at 10/18/2004 12:01:04 AM
Hi there,
I just found out that when I have a button on an aspx page and i click it,
the page_load event function executes before the button click event function.
Why is this so? I have a web form that is continually displayed. Each time
the button is clicked i want the value of a checkbox ... more >>
VB.NET: MonthCalendar
Posted by http://www.visual-basic-data-mining.net/forum at 10/18/2004 12:00:18 AM
Does anyone know how to highlight the monthCalendar :
For instance i want 1/11/2004 , 2/11/2004 and 8/11/2004 to be highhight in
the monthCalendar..
How to go about it..
Thanks
--
toytoy - forum member
http://www.visual-basic-data-mining.net/forum
... more >>
|