all groups > asp.net > january 2005 > threads for thursday january 6
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
Disable a property in Design view?
Posted by Lars Netzel at 1/6/2005 11:53:48 PM
Hello,
Making your own WebCustomControl, how you do disable properties in the
design view?
For example my WebCustomControl does not use text, so the default property
Font is missleading when it's editable. I want to disable that Property in
Design view.
Any hints?
best regards
/La... more >>
How to write a HttpModule to replace built-in Session?
Posted by Danny W at 1/6/2005 11:32:19 PM
Hi There!
Is it possible to use HttpModule to replace the built-in ASP.NET Session
object? I want to write a HttpModule that will handle storing and retrieving
of session values from an external database.
For example, when a page set values to Session object such as
Session("somevar")=1 ... more >>
Web Setup project............
Posted by thomson at 1/6/2005 9:05:02 PM
Hi,
i have used a treeview control in my application, with
Microsoft internet controls dll, and it is working fine,
i have created a Web setup project too, and it is installed on
another machine and is working very fine, but the problem is that , the
tree view control is not rendering properly... more >>
Persisting dynamic controls across postbacks....
Posted by Stu at 1/6/2005 8:52:50 PM
Hi,
I am creating a control in a PlaceHolder like so:
Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnDelete.Click
Dim ctrl As AcceptOrCancel =
CType(Page.LoadControl("controls/AcceptOrCancel.ascx"), AcceptOrCancel)
PlaceHolder1.... more >>
urgent pls -- freetextbox upload image
Posted by sri_san NO[at]SPAM mailcity.com at 1/6/2005 8:10:48 PM
Hello,
I would like to have the functionality provided at
http://www.freetextbox.com. In other words, should be able to save the
text as well as the image added to the editor.(The image added the same
way as in the link mentioned above)
Any help would be appreciated!!
Thanks,
Sam.
... more >>
Building a Website Question
Posted by Wizard at 1/6/2005 7:46:48 PM
Hi,
If I have a box with SQL on and IIS and develop a Website on this box
entering all connection strings and links in as local host, then move the
box on to the network and get clients to connect to say
http://192.168.0.1/index.aspx will this work?
I mean will the App run on the server or ... more >>
Newbie - Where Can I find?
Posted by Wizard at 1/6/2005 7:43:09 PM
Hi Group,
Just wondering if anybody could point me in the direction of a link where I
could download some example ASP .Net pages which would allow me to Add,
Modify, Delete Tables for a SQL Database. I mean what im looking for is a
example which will explain how I do it?
Either that of some... more >>
ConfigurationSettings problem?
Posted by Bruce W.1 at 1/6/2005 7:24:38 PM
I started a new web app.. In my Page_Load method I do this:
string strConnTxt = ConfigurationSettings.AppSettings["ConnectString"];
and the compiler gives this error:
The type or namespace name 'ConfigurationSettings' could not be found
(are you missing a using directive or an assembly re... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Forms Authentication Security questions...
Posted by The Eeediot at 1/6/2005 6:55:26 PM
Hello, ASP.NET gurus!
I have read many pages on setting up a login screen to access a =
number of web pages using Forms Authentication and I am still trying to =
wrap my brain around the whole thing. However, I know that my knowledge =
on this topic has a few gaping holes ('cause it still... more >>
Wrong encoding reading form fields
Posted by Nelson R. at 1/6/2005 6:16:44 PM
Hi,
im using a form to get some input from the user. This form is in a
HTML file.
When I post the form directly to my email, i receive all fields
correctly. Example test.html:
<FORM action="MAILTO:myemail@work.com" method=post
enctype="text/plain">
But if I post the form to an aspx pag... more >>
Anyone else experiencing odd behavior with the MSDN newsgroup webs
Posted by Chris at 1/6/2005 6:05:01 PM
For about a week now it appears the session timeout has been changed? It
times out in a short amount of time, maybe 2 minutes? It’s almost like this
website has been worked on. If I’m submitting a question and I don’t hurry it
times out and says I’m not logged in and goes into a viciou... more >>
div runat="server" question
Posted by Miguel Dias Moura at 1/6/2005 5:39:34 PM
Hello,
I have this line:
<div runat="server" id="category-header">
I get this error:
'category-header' is not a valid identifier.
When I use:
<div runat="server" id="category-header">
I have no problems.
Is that I can't use the "-" in id's?
How should I separate words in an id?
... more >>
Help to send mails with delay in asp.net c#.
Posted by Max at 1/6/2005 5:19:04 PM
Hi,
I am newbie developing a MailList program in asp.net c#.
To avoid be considered as a span, a would like to process some messages,
stops, process some messages, stops......
What do you recommend ?
Help!!!
Thanks... more >>
DataGrid problem - Combine 2 fields
Posted by CuMPeEWeEr [No MCSD] at 1/6/2005 5:15:07 PM
I am trying to combine FirstName and LastName to display in one column on
DataGrid, but it gave me an error saying "Preprocessor directives must
appear as the first non-whitespace character on a line". How should I do
this?
<asp:DataGrid ....
<columns>
<asp:TemplateColumn...>
... more >>
Hide Div
Posted by Miguel Dias Moura at 1/6/2005 5:00:01 PM
Hi,
I am trying to make a <div> invisible when I call page.aspx.
When I call page.aspx?type=1 the <div> should be visible.
I have this line:
<div runat="server" visible='<%# Request.QueryString("type") <> ""
%>'"></div>
I get this error: "The server tag is not well formed"
Why I ge... more >>
Why Petshop Changed all static methods to instance methods when upgrading from version 3.0 to version 3.1?
Posted by Neo at 1/6/2005 4:27:07 PM
Is it because of perfomance or something else?
I was confused when to use static methods and when to use instance.
Please give me some points. Thanks.
... more >>
Unable to start thread from ASP.net app with windows server 2003
Posted by tonyreynolds NO[at]SPAM gmail.com at 1/6/2005 4:23:55 PM
I have an asp.net application that needs to spawn a new thread but
return the response back to the user before the thread finishes. My
application works fine on my machine (XP pro) and on a win 2000 server,
but I can't get a thread to start on a new win 2003 server. I've
posted some sample cod... more >>
HTTP Modules
Posted by Tim Payne at 1/6/2005 4:23:09 PM
If I were writing an HTTP module where I wanted to access the response text
that was being sent back to the user, what would be the optimum method for
doing this within the module? I'm investigating the viability of using this
for logging some info, and I'm wondering if there are any establish... more >>
Selected item in RadioButtonList
Posted by Richard at 1/6/2005 4:19:02 PM
My RadioButtonList has items with similar values. N/A has a value of 0;
Sometimes also has a value of 0; Never has a value of 1, etc.
I'm running into a huge problem in that if the selected item is Sometimes
(which is second in the list), the rbl.SelectedItem.Text property always
returns N/... more >>
page cache
Posted by Bala at 1/6/2005 4:11:10 PM
Hi,
when first time i uploaded my local aspx file to my server. its working
fine. then i done some changes on local machine and again i uploaded the
files. after that the page output is not changing. i tried so many times. is
it any other idea solve this issue?
thanks
bala... more >>
Session State Performance Metrics
Posted by RG at 1/6/2005 4:07:03 PM
What kind of performance hit (typically, in terms of percentages) can we
expect when we use SQLServer instead of InProc or StateServer mode for
maintaining the session?
Thanks.... more >>
Validating expression
Posted by John at 1/6/2005 3:58:02 PM
Hi
Is it possible to validate a text box to ensure values entered are in the
format 99-99-99? All digits are required.
Thanks
Regards
... more >>
Cacheability issue with IE
Posted by ashish at 1/6/2005 3:37:10 PM
hi All,
I have a web page which tries to send user a file attachment using
httpresponse, by setting the content-Disposition header..
the problem is that the page is hosted on a ssl site, and there is a
issue with IE that it wont download files where Cache-control header is
set to no-cache.... more >>
Dynamically adding a web user control to a placeholder
Posted by Stu at 1/6/2005 3:36:31 PM
Hi,
I have created a Web User Control (vb.net) that I want to display on a
placeholder on the page when a button is pressed. The control 'DeleteImage'
is a blank control with 2 buttons added at design time (cancel/accept).
However, if I add a reponse.write("hello world") in the page load ha... more >>
Sorting child records in a repeater
Posted by news.microsoft.com at 1/6/2005 3:35:08 PM
<asp:Repeater id="rptCourseDetail2" runat="server"
datasource='<%#
((DataRowView)Container.DataItem).Row.GetChildRows("CourseDetailRelation")
%>'
EnableViewState="false"
>
I am having troubles trying to sort child records that appear in a
repeater..... Above is the code that i... more >>
Validating dates
Posted by John at 1/6/2005 3:09:16 PM
Hi
I have a web control text box on my webform which I want to use for entering
dates. Is there a way to validate this text box field for valid dates? May
be using a validators such as regular expression validator?
Thanks
Regards
... more >>
Error on creating a text file to write lines
Posted by jenniferhu46 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/6/2005 2:56:11 PM
Hi all,
I want to create a text file to write lines, but it gives me an error
on Dim sw As New StreamWriter(CreatePath & Efilename) :
System.IO.IOException: The process cannot access the file
"C:\temp\DD_01062005.txt" because it is being used by another
process.
Can someone point me out wh... more >>
Render Javascript into a WebControl.
Posted by Ronen at 1/6/2005 2:05:45 PM
Hi,
I am writing a grid Web control library.
The grid has some client side JavaScript to enable columns resize, sorting,
row selection etc.
I have some problems adding the JavaScript link at the render of the
control:
1) During the render method of the control I need to add the... more >>
Work local in ASP.NET
Posted by Matt at 1/6/2005 2:00:04 PM
I am writing an application in ASP.NET where one of the requirements is
that the user wants the option to "work locally".
This is a Time and Expense application for sales people on the road. I
need to be able to remotely install the pages and save the data to xml
files until the next time the... more >>
RowSelectorColumn and DataGrids
Posted by tshad at 1/6/2005 1:55:13 PM
I just started using the RowSelectorColumn from Andy Smith
(MetaBuilders.com) and can't seem to find a way to find the other controls
in the same row of my datagrid. I really like the contro and have been able
to work for everything I need, except for this. I can't seem to use
src.parent or... more >>
SelectedIndex of Dropdownlist in Datagrid
Posted by Kay Chan at 1/6/2005 1:32:34 PM
Hi All,
I am going to using a editable datagrid, one of the field should be a
dropdownlist, here is my code
<EditItemTemplate>
<asp:DropDownList
ID="INVESTMENT_FUND_ID"
DataSource="<%# getINVESTMENT_FUND() %>"
DataTextField="NAME"
DataValueField="VALUE"
runat="server"
CssClas... more >>
Multiple form tags
Posted by Roshawn Dawson at 1/6/2005 1:27:26 PM
Hi All,
When you open a .aspx page in VS.NET, it has the form tags
(<form>....</form>) already present. I am trying to create a web user
control that contains textboxes, buttons, and other form controls. Is
it possible to have multiple form elements on the same ASP.NET web page?
If so... more >>
Security Update for Windows XP (KB824151) breask ASP.NET debugging
Posted by usenetlex NO[at]SPAM yahoo.com at 1/6/2005 1:24:15 PM
I installed Security Update for Windows XP (KB824151) and now I can't
open and debug my ASP.NET projects. How can I fix this?
... more >>
API calls fail in ASP.Net
Posted by howard dierking at 1/6/2005 1:07:04 PM
I have an unmanaged library that i'm using to generate a .tif image from a
..pdf file. When I run the following code in a console application,
everything works fine. However, when I run it from ASP.Net, I get a stack
overflow exception. If anything, I would have expected a CAS exception - b... more >>
can anyone answer this tuff question?
Posted by Diffident at 1/6/2005 1:01:04 PM
Hello All,
I am encountering a strange behavior which I want the MSDN stalwarts to
explain me in detail and your explanation is highly appreciated.
I have a User Control which is dynamically loaded from a parent page. In the
User Control, I have a DataGrid. In the datagrid's event handler ... more >>
Chat Rooms with C#/ASP.NET
Posted by studen77 at 1/6/2005 12:33:11 PM
Thanks in advance to anyone who can help :)
I"m an admitted 'newbie' when it comes to chat room technology (be it JAVA,
servlets, or whatever language..) Was wondering if someone could guide me on
possible literature (books, well done websites) on creating chat rooms in C#
w/asp.net...... more >>
Q: check if excel installed
Posted by JIM.H. at 1/6/2005 12:17:03 PM
Hello,
I am using this code to display excel in IE.
locFilesPath = "D:\Files\myFile.xls"
If (System.IO.File.Exists(locFilesPath)) Then
Response.Clear()
Response.ContentType = "Application/x-msexcel"
Response.WriteFile(locFilesPath)
... more >>
addiing values to a column in Datagrid
Posted by SenthilVel at 1/6/2005 12:05:09 PM
HI
i have a datagrid with 5 columns.
for the first 4 columns i do add the values using a arraylist.
now i do need to add the values to the 5th column using another arraylist
..,.
how can i do this ??which is the best easy method to do this?
Thanks
Senthil
... more >>
ISS TCP?
Posted by Sam at 1/6/2005 11:59:02 AM
I unsure where is Internet Information Service (IIS) newgroup but I have the
following inquiry:
I require 5 TCP for my web application as follows:
a. TCP 100 - Finance
b. TCP 101 - Sales
c. TCP 102 - Purchasing
d. TCP 103 - Inventory
e. TCP 104 - Payroll
An... more >>
Chaging a UI control in a child thread
Posted by vbellino NO[at]SPAM uol.com.br at 1/6/2005 11:51:28 AM
Hi All,
Is there a way to change a property of an UI control, such as the
enabled property of a button, in a child thread?
I mean, my code runs a long process, and because I wanted to show the
status in another popup window, I created a new (child) thread to run
the long process and I let ... more >>
DataGrid, Sorting & Checkboxes
Posted by David McCormick at 1/6/2005 11:45:03 AM
I have been scouring the message boards before I posted this question hoping
to find an answer regarding datagrids and their behaviour after a sort
command has been invoked.
What I am trying to accomplish is this:
I have a datagrid that has several columns directly bound from data table
an... more >>
Very Easy Dropdownlist Problem
Posted by Luis Esteban Valencia at 1/6/2005 11:28:17 AM
Hi Everyone,
How do you get two or more listitems to have the same value?
I am trying to do this:
<asp:dropdownlist id="one" runat="server">
<asp:listitem text="hello" value="hi" />
<asp:listitem text="yada" value="hi" />
<asp:listitem text="NO" value="die" />
</asp:dropdownlist... more >>
What does the INamingContainer Inteface do?
Posted by gemel at 1/6/2005 11:20:40 AM
Interface definitions do no not contain implementation, only
signtures. That is there real purpose. Here thow we have an Inteface
which does not have any implementation code but it has to be included
in the creation of a Web User Control. Please tell me how it actually
does something?
Regards... more >>
Asp.Net Time Tracking Software
Posted by Luis Esteban Valencia at 1/6/2005 11:16:10 AM
i've been looking around for a time tracking and billing solution but
haven't been able to find anything that will fit my needs. maybe you know of
a good one.
Criteria:
web based (so i can use this with multiple computers)
create / update projects
create / update tasks within the project(s)
... more >>
Deployment of a WebApp that uses Word 10.0 via Interop.Word.dll object - How do I register the COM??
Posted by Luis Esteban Valencia at 1/6/2005 11:15:33 AM
I have a WebApplication (ASP.NET) that uses Word 2000 (COM , via
Interop.Word.dll).
I want to deploy it to a computer, but Word is not installed there.
I tried to register the MSWORD.OLB (and his dependencies) with regsvr32
I keep getting the same error: invalid DLL
what should I do??
... more >>
How to convert string to decimal?
Posted by jenniferhu46 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/6/2005 10:55:40 AM
Hi all,
I have to read from a text file and generate values and insert to
database.
But first of all, when the text file contains '0000000000', I received
a sEfundAmt value = 0D instead of 0.0 on
sEfundAmt = Decimal.Parse(Mid$(sRetLine, 30, 10)) / 100.0
For example, in the text file,... more >>
mySQL State Server?
Posted by Danny W at 1/6/2005 10:53:09 AM
Hi Newsgroup!
Is it possible to use mySQL as State Server instead of Microsoft SQL?
Thanks all in advance.
Dan
... more >>
Can't get value of TemplateColumn in Editable DataGrid
Posted by Carlo Marchesoni at 1/6/2005 10:39:05 AM
I have an editable Datagrid and some columns (4 and 5) are TemplateColumns
(because I have DropDownLists there).
Everything works fine except that if I want to retrieve the values (that I
can see visually) from the DataGrid with the following loop the Values of the
TemplateColumns are returne... more >>
Q: Response.Write
Posted by JIM.H. at 1/6/2005 10:17:02 AM
Hello,
I use this:
Response.Redirect("/Files/myFile.xls") which is working fine but shows
address bar and I am trying to get rid of it.
So if I have the following, will this let me see excel file? If yes, can you
complete Response.Write?
Dim fileAndPath as string
fileAndPath = DD.Select... more >>
Quick and easy copy of a Row to another Row
Posted by Luis Esteban Valencia at 1/6/2005 10:14:23 AM
How would I quickly read several records (rows) from a SQL table, change the
key in each (recordid) and insert them back into the same table thus
creating duplicates.
I'm reading the rows like this:
Dim strSQL As String = _
"SELECT * FROM XMMProjDet " & _
"WH... more >>
must to remove hard coded https links from aspx and ascx pages
Posted by Luis Esteban Valencia at 1/6/2005 10:13:43 AM
have a website that uses both http and https. I am able to change any hard
coded http links to relative paths. No problem.
But, I have several aspx and ascx pages that contain hard coded links that
are https. I have to get rid of those, asap.
I know HTML and beginning+ C#. I have heard th... more >>
A simple CSS question
Posted by Hardy Wang at 1/6/2005 10:01:06 AM
Hi,
Just a client JavaScript question, I have one table, I want to make
table row to show different background color on mouse over, I know I can do
like this:
<tr class="AltLine"
onclick="javascript:__doPostBack('GridPageList:_ctl3:_ctl0','')"
OnMouseOver="this.style.backgroundColor='#... more >>
URGENT Error: CS0117: 'System.Data.DataTable' does not contain a definition for 'WriteXml'
Posted by Luis Esteban Valencia at 1/6/2005 9:23:56 AM
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS0117: 'System.Data.DataTable' does not contain a
defi... more >>
Entering DataList EditItemTemplate from Outside of the DataList
Posted by Luis Esteban Valencia at 1/6/2005 9:14:13 AM
Is it possible to enter the EditItemTemplate of a Datalist from outside of
the DataList?
For example:
I have a Webform with a datagrid of data displaying only 3 fields and a
hyperlink to edit for each entry. When the edit button is clicked, I would
like to take the user to the EditItemTempl... more >>
Screen Scraping
Posted by usha at 1/6/2005 9:13:18 AM
Hi,
I have written a VB app which uses the web browser component to
screen scrape a website I was wondering if I could rewrite this in DOT
NET and I would like any inputs regarding this
These are the things I want to accomplish
1) Type in a query and click the submit button in the web page
2) ... more >>
Screen Scraping
Posted by usha at 1/6/2005 8:54:24 AM
Hi,
I have written a VB app which uses the web browser component to
screen scrape a website I was wondering if I could rewrite this in DOT
NET and I would like any inputs regarding this
These are the things I want to accomplish
1) Type in a query and click the submit button in the web page
2) ... more >>
time out issue
Posted by rodchar at 1/6/2005 8:51:04 AM
hey all,
i have a simple web page with a datagrid on it and that's it. i enter in
information throughout my day and sometimes i'll get the message object not
istantiated, so i'm assuming it's a timing out issue.
is there a way i can get it to prompt me with a messagebox and ask me to
con... more >>
screen scraping
Posted by usha at 1/6/2005 8:48:49 AM
Hi All,
I have written an VB application using web browser component to screen
scrape some web pages .I was wondering if i can
rewrite this app in ASP.NET
these are the tasks I need to accomplish
1) enter query and click the submit button
2) display the result list from the web page based on t... more >>
page loading slow
Posted by Bala at 1/6/2005 7:59:08 AM
Hi,
In my page there is 4 dropdown list boxes.when page loading that time i am
loading the nearly 3000 items array. so its taking too much time to load.
is it other way fill up the dropdown list array items?
can i make the array itesm into xml file and bind the dropdown list? is it
po... more >>
How to only print something once
Posted by DaveF at 1/6/2005 7:56:59 AM
I have a user pop a window that has a window.print on it. The problem is the
client only wants the coupon printed once. There is no way to stop multiple
prints is there?
--
David
... more >>
_users…
Posted by EK at 1/6/2005 7:47:04 AM
I have an application that executes a lengthy search (5-10 sec) against a SQL
server. Everything runs fine when only one user executes the search but when
2 or more users searching at once the application crash. The query returns a
valid dataset, but when the application trying to access data ... more >>
Uploading File
Posted by sara at 1/6/2005 7:41:07 AM
Hi to all
is there any way to upload a file without using <input type=file>
thanks ... more >>
Q: file exists?
Posted by JIM.H. at 1/6/2005 7:37:06 AM
Hello,
I am using this to open an excel file:
Response.Redirect(http://myServer/Files/myFile.xls)
How should I check if the file available first to get rid of error page.
Thanks,
Jim.
... more >>
Project created with IP address instead of localhost. No DEBUGGIN
Posted by pmud at 1/6/2005 7:37:02 AM
Hi,
I have a 2-3 questions.Plz if possible answer all of them.
I was creating projects in ASP.NET using C# code but suddenly I started
getting the error that didnt allow me create anew project or open an
existing one.
But if i create a new project with the IP address instead of the "... more >>
This Image Generating thing...
Posted by Lars Netzel at 1/6/2005 7:26:59 AM
Hey!
I wrote a message yersterday and got some good answers and have now managed
to generate a nice image. The problem is that it's all generated in an
Images.Aspx file and I don't really want that. I am writing a WebControl
Library and I want to generate everything from there...
In the ... more >>
Is this possible? (thanks!)
Posted by Andy at 1/6/2005 6:03:01 AM
Hi,
I basically need to write an asp.net system where contracts (stored as word
documents) can be retrieved and given to the user for amendments to be made.
After the user is done, they upload the new document again.
Is this practical to do in asp.net?
If so a nicety would be to be able... more >>
Text field is empty
Posted by jtvc NO[at]SPAM sapo.pt at 1/6/2005 4:34:01 AM
I'm trying to insert a record on an sql server database table that has
among others a text type field. The insert happens without errors and
all the fields show the correct information except for the text field
when the number of characters is larger than 900. In this case the text
field appears... more >>
User controls
Posted by Jim Reynolds at 1/6/2005 4:13:05 AM
Hi,
I've built a login user control and placed it on an apsx page but when run
it does not fire a Page_Load event for the control. Any ideas why?
Jim... more >>
Getting Web App root directory with HTML / JS code?
Posted by Joel Leong at 1/6/2005 1:47:04 AM
I wonder how I can refer or get my web app root directory
without using code behind.
Here is my scenario.
I created the folders below
--WebAppRoot
----common
----img (assume a file called myimage.jpg is inside)
----reports
------finance
------admin
I hosted the app @ http://www.... more >>
Doing my head in
Posted by DrBytes at 1/6/2005 1:47:03 AM
Hello All
After a perfect compile of my asp app I often (now more freq. than before)
get the error below.
To make this error go away I can delete the VSWEBCACHE/someapp/obj folder
and at times it'll actually run then.
Any ideas why this happens?
(Oh.. and the redist. package I've crea... more >>
|