all groups > asp.net > december 2003 > threads for friday december 5
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
developing a web application
Posted by Roberto at 12/5/2003 11:29:14 PM
Hi, I am new using asp.net. I just installed visual
studio.net but I can't open a new project using asp.net.
Is there anything else I need to active or start so it
would work?
thank you... more >>
How to test Webservice on the Web?
Posted by kai at 12/5/2003 10:46:53 PM
Hi, All
I created a Webservice locally, and it returns all coustomers names in XML
format when I click "Invoke" button. But when I test from the Web, it says
"The test form is only available for requests from the local machine. ".
Can I get the same invoke result from local computer on the... more >>
datagrid-expressions
Posted by reiks at 12/5/2003 9:34:28 PM
My select query is a s follows
select qty from sales;
My datagrid as two template columns with textboxex in
Item
template.I want to use second template column as a
compute column in my datagrid which
depends on column 'qty' values of my select statement
compute column's value should ... more >>
HTTP headers and Response.Redirect
Posted by Sam at 12/5/2003 7:09:33 PM
I have some issues with HTTP Headers and I was hoping for
some pointers or references to good articles.
Here is the problem.
I have 6 .aspx pages, each page contains a common .ascx.
This ascx serves two purposes, 1. it contains a tab strip
with response.redirects to navigate to the other p... more >>
Referencing DLL in ASP.NET
Posted by Srinivas Kotipalli at 12/5/2003 6:26:16 PM
Hi,
I am tring to create a ASP.NET web form using notepad. in the codebehind
file I have imported CrystalDecisions.CrystalREports.Engine.
This gives me compilation error, saying that engine does not belong to
namespace.
I read somewhere I need to reference this assembly. When I am using a
... more >>
Looping Through Controls In DataGrid
Posted by Jim Heavey at 12/5/2003 5:22:40 PM
Hello, I am trying to figure out how to get to the "footer" control in a
datagrid. I set up the following logic:
Dim cntrl As Control
Dim cnt As Integer = dgNewMovies.Controls.Count
For Each cntrl In dgNewMovies.Controls
Dim cntrlName As String = cntrl.ID
If TypeOf cntrl Is System.... more >>
Escape characters
Posted by Maziar Aflatoun at 12/5/2003 5:21:10 PM
Hi everyone,
I have a form that stores the information it collects into a database.
However, for textboxes if I have a user input as something like
this 's 'sda, the ' causes it to fails (ex. Incorrect syntax near
's'...etc). Is there a function that would make this database safe?
Thank yo... more >>
Quest: Error connecting to MSDE hosted DB...
Posted by lewi at 12/5/2003 4:48:41 PM
I am trying to connect to MSDE hosted DB on the same computer as my ASP.NET
app. The DB was created using VS.NET Server Explorer window and here is my
aspx.cs code in the Page_Load() for the main page...
Note: using "using System.Data.SqlClient;"
try
{
SqlConnection dataConnection = ne... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Error message I don't understand
Posted by simon at 12/5/2003 4:44:08 PM
I create datagrid:
dgdMedia.DataSource = ds.Tables("mediaPlan")
dgdMedia.DataBind()
A field or property with the name 'a' was not found on the selected
datasource.
What this could be?
It worked before all day and know doesn't work any more?
I don't know why?
Thank you,
Simon
... more >>
SOS - SourceSafe
Posted by Kenny at 12/5/2003 4:43:15 PM
Hi,
How a project can be simultanously working by 2 or more person? It looks to
me the Re-compile is compiling for the whole project..
If I check out 1 page and you check out one page.. Then I recompile and
upload to SOS and you recompile again and upload to SOS, will my changes
lost?
Tha... more >>
Validation Controls
Posted by Jim Heavey at 12/5/2003 4:05:48 PM
I am wanting to validate that a listbox selected index is not equal to -1.
Can I use a validation control other then the "CustomValidator" do do this?
I realize that I could use a dropdownlist which always has something
selected, but what if I "needed" a listbox.
Thanks in advance for you... more >>
Wanted to try ASP.NET, but ...
Posted by Michael Hesse at 12/5/2003 3:50:41 PM
When I try to create a project I get the message
Visual Studio .NET has detected that the specified Web server is not running
ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or
services.
Do I need to install something else on my computer?
Thanks
... more >>
Excel on a ASP.NET page - HELP
Posted by Dale Williams at 12/5/2003 3:47:04 PM
Everyone :
Here's my problem. I'm developing an web application for a user inwhich
they will select a "template". This needs to populate an Excel spreadsheet
on the web form with data from SQL Server. All the formulas, values, etc.
will come from the database. The user(s) will do their... more >>
Dynamically updating parameters
Posted by Maziar Aflatoun at 12/5/2003 3:29:04 PM
Hi everyone,
Here is the basic idea. I have a form that opens up a new window
ViewNote.aspx sending 3 parameters.
<INPUT class="buttonsmall" id="NewNote1" type="button" value="New Note"
name="NewNote2" onclick="javascript:var
w=window.open('ViewNote.aspx?NID=0&SID=12&AID=200',null,'width=6... more >>
Simple question about cookie:
Posted by Ivan Demkovitch at 12/5/2003 3:07:54 PM
Hi!
From what I understand cookies could be persisted or in-memory.
I need to set second one...
This code:
Response.Cookies["phpbb_data"].Value = Server.UrlEncode(phpC);
Response.Cookies["phpbb_data"].Path = "/";
Response.Cookies["phpbb_data"].Expires = DateTime.Now.AddMinutes(1);
wou... more >>
reg expression for date validation
Posted by Brian Henry at 12/5/2003 3:04:17 PM
does anyone have a simple regex expression tovalidate dates in the form of
month/day/year like 12/27/2003 ? thanks.. i forgot the name of the site that
has all these on it...
... more >>
mixing Javascript and VBScript in ASP.NET?
Posted by Jamie at 12/5/2003 2:50:41 PM
I'm trying to use a mix of both JavaScript and VBScript in an asp.net page
and i'm getting this error message from the browser (IE 6.0).
"Cannot use parentheses when calling a Sub".
This only comes after i add the vbscript code below.. it's not even a sub.
So i'm not sure what it's complaini... more >>
XML file and asp.net application
Posted by Madhuri Mittal at 12/5/2003 2:47:24 PM
I have been developing an ASP.Net application which uses a
XML file to read data. I realized if I have to modify the
XML file to change the data, I have to stop my w3svc. I am
beginning to think it may not be such a good idea to use
an XML file to read data after all if I have to stop the
... more >>
Click-Event by dynamical Button
Posted by Liqun Xu at 12/5/2003 2:39:34 PM
Hallo NG,
I created a Button with Click-Event dynamically:
System.Web.UI.WebControls.Button bt_1 = new Button();
bt_1.Click += new EventHandler(bt_1_click);
and I implemented the Funktion bt_1_click in which I created a second
Button dynamically too.
System.Web.... more >>
Global Variables
Posted by martin at 12/5/2003 2:38:17 PM
Hi,
where is the best place to keep global variables in asp.net.
I want to load a value from a database when the application starts. I know
that i can load this is application_start which is fine. I also know that
mostly storing a global value in an application variable whould be good,
like... more >>
Running win scheduled job
Posted by Ching-Lung at 12/5/2003 2:30:50 PM
Hi,
How can I manually run a win scheduled task (*.job) from
C# or through command prompt?
Please advice, thanks!
-CL... more >>
ASP Life Cycle Problem
Posted by john doe Jr at 12/5/2003 1:49:53 PM
The problem is the following pseudo code causes you need to click buttons
twice to get event.
This is notable via debugging and single stepping.
I can't seem to quite figure out how to do events in ASP where they need to
rerender the page.
I been banging my head on this for 4 days now... more >>
Page Process Web User Control
Posted by cksj at 12/5/2003 1:33:16 PM
I have webforms that contain a web user control (ascx). The control is a
page header for all of the webforms. In one of the webforms, the data in the
web user control is dependent on the webform. What I would like is for the
webform to complete the postback before rendering the user control. Is t... more >>
Microsoft.Jet text file query
Posted by Simple Simon at 12/5/2003 12:58:46 PM
I'm trying to read a CSV file that happens to have some spaces in
it...(Land - Lot.csv) For some reason, the SQL statement can't find
the file...ne1?
// CSV file connection
strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\\Temp;Extended Properties=\"Text;HDR=YES;FTM=Delimited\"";
O... more >>
Is it possible to access another Page in code-behind
Posted by Dan at 12/5/2003 12:32:31 PM
We have a simple site. It's a frameset with two frames a left and a right.
The left frame is essentially a list of records from a database (using a
server-side repeater control). When you click on one of the items in the
left frame, it targets the right frame and displays a form prefilled with
... more >>
Response.Expires and Response.Cache
Posted by Promenade at 12/5/2003 12:31:42 PM
Hi, everyone...
I want to avoid the user to use the navigator back button.
For that reason, I tried all the possible ways to set the Expires property
of the Response Object, but whatever I do, it does not work for me.
In fact, it does work once, the first time I wrote these lines in the
Appli... more >>
Clear Session on page termination
Posted by JezB at 12/5/2003 12:21:29 PM
I want to clear some specific Session variables when the user closes a page.
On my page I have a "return to ..." button which navigates back to the
parent page from which it was invoked - under the click event of this button
I clear my Session variables.
However, how can I capture the fact tha... more >>
Windows username...
Posted by Paul M at 12/5/2003 11:51:03 AM
Hi,
If you're using integrated security, is it possible to get hold of the
username of the current user??
Thanks in advance...
P
... more >>
IE Browser and ASP.NET
Posted by david at 12/5/2003 11:45:42 AM
(1) How do I update the IE browser's status bar from
within an ASP.NET web application?
(2) How can I capture the event of closing the IE browser
from within an ASP.NEt web application?
(3) How can I suspend any activity - disable accepting
keyboard or mouse clicks on a web page until a ... more >>
ASP.Net win form responding to Enter key.
Posted by Muscha at 12/5/2003 11:36:28 AM
Hi I am a new bie in ASP.Net, I have a simple text box and a button in my
WebForm. I put event handling on the button and if I click the button it
does what it's suppose to do, but how do I make it if the user enter
something on the text box and press "Enter" the button is clicked?
Thanks,
/m... more >>
disable button on click
Posted by nicholas at 12/5/2003 11:22:44 AM
how can I disable a button when the user clicks on it and the webform is
validated.
I want this to prevent the user from clicking twice and by this submitting
the form twice.
Thank you.
This is what I tried, but it does nothing:
<script runat="server">
sub submit_it (Obj as Object, e ... more >>
ASP.NET/Windows Server 2003 Security Problem
Posted by Pedro Alves at 12/5/2003 11:18:25 AM
Hi,
When executing our application ASP.NET in the Windows
Server 2003 is being returned the following error:
Exception Details: System.UnauthorizedAccessException:
Access to the
path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\administratori\4152f07e\848e4dc9" i... more >>
Problem with connection from ASP to SQL server
Posted by Bobofrut at 12/5/2003 11:12:36 AM
Hi
I have a problem, when I try to connect to the MS SQL SERVER from my
workstation ocourr the error message:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection.
Description: An unhandled exception occurred during the execution of the
current web re... more >>
showModalDialog and cookies
Posted by dave at 12/5/2003 11:01:29 AM
I open up a window from a main window with showModalDialog. When the new
window opens, it finds the cookie:
paymentSalesCookie =
Server.HtmlEncode(Request.Cookies("misc4")("paymentSalesGuid").ToString)
When I post back to the window, it is null?
Dave
... more >>
Creating a Explorer PlugIn
Posted by Ford Prefect alias Armin at 12/5/2003 10:49:19 AM
Hello
In the past to create a Internet Explorer PlugIn, I have to use an ActiveX
Control (OCX).
Is there an other (new) Methode in DOT NET to do this ?
... more >>
Impersonation with forms authentication ?
Posted by Eric Veltman at 12/5/2003 10:48:35 AM
Hello everyone,
[ Unfortunately I don't have Windows on my machine
at home to try it and unfortunately, don't have an
office anymore ( me == jobless ) and I couldn't find
the information on Google as well, so I hope you can
help me with this question. ]
Till now, I've always used I... more >>
debugging asp.net applications remotely - please help
Posted by sean at 12/5/2003 10:45:42 AM
Hi There,
I have an asp .net application that I am trying to debug remotely,
unfortunatley I do not have access to the server itself. I have verified the
application is working on my local machine but on the remote server it is
not.
The application inserts rows into an ms access DB, do I need... more >>
databinding question
Posted by Jason S at 12/5/2003 10:21:29 AM
I haven't been able to find a clear answer to this and I'm hoping someone
could enlighten me.
As pertains to databinding a control in a repeating fashion(datagrid,
repeater, etc.) what event would one handle to get a handle on things just
BEFORE the data is bound. To be clearer, not controlli... more >>
Different web.config's for development and production
Posted by Klaus Jensen at 12/5/2003 10:08:24 AM
Hi!
I have a pretty traditional setup where I develop on my local PC and the use
"Copy Project" to deploy to the production enviroment.. In web.config I need
different values for connectionstrings etc for development and production -
pretty normalt stuff.
Currently I edit the web.config man... more >>
weird white space being introduced into <td>
Posted by neverstill at 12/5/2003 10:04:07 AM
hi-
I have a table on a page there is 1 row and 2 cells
cell 1 has a user control that is basically just a DataList nested in a
table o fit's own.
then, below that user control I have some <p> tags to give me vertical
space, then after that I have an <asp:image> control.
Now, I just add... more >>
A page can have only one server-side Form tag
Posted by Tom at 12/5/2003 9:40:22 AM
Hi all,
I posted the same question one week ago in
http://communities.microsoft.com/newsgroups/previewFrame.as
p?
ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framewo
rk.aspnet&sMessageID=%253C7d8d01c3b4a1%2524412f7770%
2524a601280a@phx.gbl%253E
The problem has not fixed till now.... more >>
SQL DTS from webserver .dll?
Posted by Simple Simon at 12/5/2003 9:38:21 AM
Hi,
Is it possible to make a DTS on a SQL server, save the DTS package,
transfer the package to a Web Server, and run the package using a SQL
DLL and ASP.NET instead of using a SQL Server to run the package?
Is there a DLL I can reference from ASP.NET that will allow me to run
the DTS with S... more >>
Using Microsofts File Upload ActiveX Control
Posted by John Boghossian at 12/5/2003 9:32:04 AM
Has anyone successfully used the file upload activex control.
It would be nice to hear of any practical experiences. I tried to get it
working, but I didn´t succeed.
Regards
John
... more >>
Page titles
Posted by Gilgamesh at 12/5/2003 9:16:47 AM
Hi there,
I've got a dozen pages in my asp.net application, and I want all the pages
to read their titles from an XML file. I tried to implement is using XSL but
haven't had any luck. is there a way to do this?
Thanks,
Gilgamesh
... more >>
Web User control and Marshelling b/w client browser and web server(database).
Posted by Al at 12/5/2003 8:59:28 AM
hi, I am new to asp.net. I have a question about
Marshelling b/w client browser and web server(database). I
heared that it is better to minimize going back and forth
b/w client browser and the server.This will increase
performance and improve scallability.
With asp.net, using server contro... more >>
Variable Scope (ASP.Net)
Posted by Brian at 12/5/2003 8:56:41 AM
If i declare a module level oledbconnection with each
request for the page, the variable remains in scope? I get
open.executing error message on subsequent calls for the
page.
I assumed ASP.Net to be statless and all variables go out
of scope (except session, application) when making new ... more >>
RegEx Validation Control Bug??
Posted by Mike at 12/5/2003 8:37:14 AM
I'm trying to have a form where a user has to enter a valid email address, and
I'm trying to use the RegEx Validation control to do that. The problem is that
when a user submits the form with a blank line, it is ACCEPTED even though it
does not pass the pattern match in the expression.
Anothe... more >>
user control
Posted by RCIC at 12/5/2003 8:30:58 AM
If I add a user control to a webform, it seems like I
should be able to make it visable or invisable. My code
doesn't seem to work. To test this I made a control
called myControl and dragged to on to my web form. I then
added this to the code behind and ran it.
Public test As myC... more >>
Calling Java applet from a user control
Posted by murphy NO[at]SPAM murphysw.com at 12/5/2003 8:29:10 AM
Is there a limitation in ASP.NET in this regard? From the aspx code
below, I can successfully call a Java applet. If I try the identical
thing in a user control ascx however, the control loads and hangs.
The Java console offers no clues. The server serves the aspx page
that contains the cont... more >>
Loading a deployed Assembly - System.IO.FileNotFoundException
Posted by bkchare NO[at]SPAM sysmatrix.net at 12/5/2003 8:21:20 AM
I've looked through the previous posts on this one and have verified
permissions and location of my Dlls, but I am still getting an
exception when I try to Load an assembly.
The directory where my Dlls are located give the ASPNET user full
control, and all Dlls used by the Assembly in question... more >>
Datat Base Option and Performance
Posted by Andrew Robinson at 12/5/2003 8:07:40 AM
This might not be the best place to post this, but I thought I would give it
a try:
I am working on a small to medium sized web site for my company that will
have some dynamic content. "Corporate" controls our web servers and I am not
sure that I can get SQL or MSDE installed on a machine for ... more >>
Retrieve asp.net session variable within HTA page?
Posted by Kathy Burke at 12/5/2003 8:00:52 AM
Hello.
I have an aspx page with a button onclick that opens an HTA page that
simply runs javascript to open a client desktop application...the aspx
form remains open.
I would like to set which file should be opened by the HTA based on a
session variable set in the aspx page.
Having a tot... more >>
asp.net debugger question
Posted by Philip Townsend at 12/5/2003 8:00:51 AM
I frequently need to debug .aspx files that contain url querystrings.
Currently, when debugging, I wait for the page to load with an
exception, then enter the querystring and continue debugging. Does
anybody know a way around this? Is there a way to specify the arguments
within VS.NET? Thanks!
... more >>
Cost for using Server control
Posted by Ali at 12/5/2003 7:57:47 AM
hi, I am new to asp.net. I have a question about
Marshelling b/w client browser and web server(database). I
heared that it is better to minimize going back and forth
b/w client browser and the server.This will increase
performance and improve scallability.
With asp.net, using server contro... more >>
One code behind page acting differently
Posted by renukasrivastava NO[at]SPAM hotmail.com at 12/5/2003 7:03:19 AM
I have one .aspx page which has 2 clickable links going to the same
code behind page. Each click must activate diferent functionalities in
the code behind page.
Can someone help me achieve this.
Thanks in advance for your help!... more >>
flowlayout vs. gridlayout
Posted by Stephen at 12/5/2003 6:42:53 AM
I am about to start my first project in asp .net. I like
the gridlayout but is there anyt limitations or obstacles
hing I should know about before proceeding with this page
layout?... more >>
C# Web App with Lotus Notes datasource
Posted by jasonjbwalton NO[at]SPAM hotmail.com at 12/5/2003 5:53:32 AM
Hi
Does anyone know how I make a connection to a Lotus Notes database to
extract address based upon a parameter e.g. customer id ?
Best Regards,
JJBW... more >>
IE offline
Posted by rbscheer NO[at]SPAM my-deja.com at 12/5/2003 5:35:49 AM
Hi.
When IE is offline and I try to create a new web application, I
receive an error that says that I need IE online in order to create
the new application. What is the relationship of IE and .net in this
case?
Thanks,
Robert Scheer... more >>
System.web.mail truncating message body - strange behaviour ??
Posted by jitesh NO[at]SPAM getwebdomains.com at 12/5/2003 5:19:13 AM
Hi,
I am running Windows 2003/ IIS 6.0. I was stuck with rather a abnormal
behaviour of System.Web.mail class. It was truncating the message body
after 3,071 character. The code i was testing was:
Import Namespace="System.Web.Mail"
Dim aa as new StringBuilder(600010)
Dim i as Integer
... more >>
datagrid columns-urgent
Posted by reiks at 12/5/2003 4:02:23 AM
I have a datagrid with two columns-name,id and both are
editable.
My requirement is that I want my second column(id) as a
non updatable column.Though I can change the values of
column by editing it,upon saying update,the second
shouldn't be updated.
Do we have to set any property or ... more >>
Session_End not firing or limited?
Posted by Stig Johansen at 12/5/2003 3:16:51 AM
I have what I thought was a simple task. When the user's
session times out I want to save some data to a database
so that these can be retrieved the next time the user
connects. I have therefore put this in the Session_End
procedure of the global.asax.vb file.
The problem is that nothing ... more >>
alert using Javascript with asp.net
Posted by Michelle Stone at 12/5/2003 2:24:15 AM
Hi all,
I use the following command to display a messagebox
Response.Write ("<script language=javascript>alert('Hello
World');</script>);
It works. But the window containing the messagebox whites
out.
Any way to avoid this?
Thanks
Michelle... more >>
datagrid query
Posted by reiks at 12/5/2003 2:11:31 AM
My select query is a s follows
select qty from sales;
My datagrid as two template columns with textboxex in Item
template.I want to use second template column as a
compute column in my datagrid which
depends on column 'qty' values of my select statement
compute column's value should be... more >>
Executenonquery method
Posted by Marcel at 12/5/2003 1:43:16 AM
Hi,
I'm trying to insert a number of records in a SQL server
table using the executenonquery method. This works fine
except when the records already exist which results in a
runtime error.
Is there a way to prevent this runtime error and just
ignore that the records can't be added ?
... more >>
Simple User Control Question
Posted by 42 at 12/5/2003 1:08:43 AM
Hi,
I've run into a block, that I'm almost sure is really simple...but I
can't seem to clue in right now.
I'd like to create a user control that takes input like this:
<mycontrol:panel id=firstpanel photo="mypic.jpg" runat=server>
<h3>Hi there</h3>
<p>This is a test</p>
</mycontrol>
... more >>
Encrypting the source code
Posted by Mohammad Samara at 12/5/2003 1:04:41 AM
Hello everybody,
I have deployed an ASP.NET application for one of our clients, is there a
way to hide or encrypt the source code of the application (C# code behind)
from being diplayed by anyone else?
Thanks.
... more >>
Same sessionID retuned to diff browsers in diff machines
Posted by Berrucho at 12/5/2003 12:46:15 AM
Please Help!
I recently posted this same issue but got no answer... please help
Using VB.NET, IIS5, W2K Adv SP3 all patches, .net 1.0, VS.NET 2002
Using forms authentication, persistent cookie = false
Recently my asp.net app is returning wrong data to users. Users frequently
get data that... more >>
|