all groups > asp.net > march 2004 > threads for friday march 26
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
Find an HTML control in VB code
Posted by Lloyd Sheen at 3/26/2004 10:29:47 PM
I have to use WebMatrix so I cannot debug these pages. I have an HTML
button which I need to find on the page_load event. The FindControl will
not find it at least from page.findcontrol.
Is there any way to do this??
Lloyd Sheen
... more >>
Getting Desparate!!! - Must declare the variable '@CategoryName'.
Posted by James Cooke at 3/26/2004 9:50:29 PM
Trying to update nortwhind table, no matter what I do, I
always get this error:
Server Error in '/WebApplication1' Application.
Must declare the variable '@CategoryName'.
The connection is definitely working, the user has
read/write authority and I can read the database. Updating
i... more >>
Development pc
Posted by ericvdb at 3/26/2004 9:43:42 PM
Hi all,
what OS are most of you using for development on your pc/laptop, 2000pro,
2000server, XPpro, 2003server ?
Greetings Eric
... more >>
How can I tell what control called a Sub?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 3/26/2004 9:20:08 PM
I have two buttons that onclick call the same sub.
How can I use the Sender as Object and the e as EventArgs to tell
which of the two buttons actually called the Sub? Thank you for any
help.... more >>
Display HTML as text
Posted by anony at 3/26/2004 7:45:22 PM
Hi,
I have a field in my database that contains some HTML. When I return the
database query to my page, the browser reads the HTML as... well, HTML. I
don't want the browser to interpret the HTML... rather, just display the
text from my data reader. What is the best way to do this without u... more >>
Serving a Binay Download file from a Stream (ASP.NET)
Posted by Phil Jones at 3/26/2004 7:27:32 PM
How would you go about serving a binary file for download from an ASP.NET
page starting with a Stream?
I would like to be able to do this using a dynamically generated stream
rather than the clucky approach of saving the file to the file-system, and
then linking to it. This is horrible as I'v... more >>
import a web page as a string?
Posted by les at 3/26/2004 5:54:14 PM
Can this be done?
I want to import a web page as a string by providing the url of the
page as a variable. The page will be simple html with an asp or aspx
extension.
Thanks
Leslie... more >>
Newline character '\n'
Posted by Maziar Aflatoun at 3/26/2004 3:59:08 PM
Hi everyone,
I'm using C# to generate an ics file that gets stored in the database. I
need to add a newline character (\n) to my text file but no matter what I do
it doesn't appear as \n. I have tried \r\n too.
Ex. This is what I need as the end result
This is a \n test
But this is wh... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Define variable as static - changes even launching new browser
Posted by Johnny Luner at 3/26/2004 3:08:23 PM
I have a base class (root.cs) and all my pages inherits from it. When I
access default_1.aspx, it changes the base class variable intentionally.
Now, when I close the browser launch a new I.E. to access default_2.aspx,
it shows "changed!!" on my screen! I assume launching new browser would
sta... more >>
Traces...
Posted by Jean-Francois Hamelin at 3/26/2004 3:03:09 PM
Hi,
I have a WS that uses my own class libraries. In my class libraries I use
System.Diagnostics.Trace class to output traces. In order to active them I
have to put the <system.diagnostics> element in the .config file, but this
element is illegal in a web.config file.
How can I enabled trac... more >>
how to save data from dynamic textboxes
Posted by jade at 3/26/2004 3:01:09 PM
On my form, based on the value user selects from a dropdown list, a group of textboxes will be generated dynamicly.
Now the problem I'm having is how to save data entered into dynamic textboxes. I know because of the nature of dynamic controlls, input is gone before submit button is hit. Is there a... more >>
Best way to implement the Logout ?
Posted by Polaris at 3/26/2004 2:53:31 PM
Hi:
What is the best way to implement the logout event? Put a "Logout" button on
each page and then process the logout event? Is there a better way?
And, is there an ASP.NET API for ending a session so that the Session_End()
in the Global.aspx is invoked?
Thanks In Advance for your input.... more >>
navigate 'back'
Posted by MattB at 3/26/2004 2:46:56 PM
Can anyone tell me how to make an asp.net hyperlink object just go back to
the previous page without just redirecting to the previous page? I'd like to
make this work like the browser's back button. Thanks!
--
Matt
"Gravity. It's not just a good idea, it's the law!"
... more >>
Cached DataView and Thread safety
Posted by Gabe Moothart at 3/26/2004 2:18:02 PM
Hi,
I'm creating a database-driven asp.net application, and I'd like to
improve performance by caching the Data, so I don't need to make as many
trips to the database (this is read-only data, btw. I don't do any
updating).
Basically, I populate a Dataset, and add its DefaultView to the cac... more >>
Page Event
Posted by holly at 3/26/2004 2:14:04 PM
Hi,
I have a page, I put a web table control on it (design
time).
Inside this page's Page_Load method, I use LoadControl
create a control, create a table row, a table cell, add
control to the cell then add cell to the row. At the end,
I add the row to the table.
When I run the code, I fo... more >>
Event 1093
Posted by curt at 3/26/2004 2:07:22 PM
I am running two clustered 2003 web servers and receive the following error
message on only the second node when starting a web application.
"Unable to get the private bytes memory limit for the W3WP process. The
ASP.NET cache will be unable to limit its memory use, which may lead to a
process... more >>
Cookies seem so simple...but
Posted by Keith-Earl at 3/26/2004 1:39:51 PM
I am developing on XP Pro VS.NET 2003. All cookie operations work well on
my dev box. When I publish to the PROD server (W2K .NET Framework 1.1) my
cookies do not behave the same way. Here is the code I write to
create/update the cookie:
Dim cookieCreate As New HttpCookie("myCookie")
coo... more >>
ToolTip
Posted by vinay at 3/26/2004 1:36:10 PM
How to set tooltip for Items in DropDown control?
Thank
vinay... more >>
dynamic grid
Posted by Mike at 3/26/2004 1:22:56 PM
On my web page i want to run 2 queries depending what is selected in the
drop downs, but I also want a data item to be added to my grid.
Example:
query 1 runs when a name is selected and the user clicks go - where =
selectitem.value
query 2 runs when the user selects the word ALL in th... more >>
how to pass 2 fields in a Hyperlink from a Datagrid
Posted by sahoo NO[at]SPAM mississippi.org at 3/26/2004 1:07:34 PM
Hello,
I want to pass 2 fields (composite key) to another aspx page. I have 2
database fields (Provider_code, Location_Code) shown on my datagrid.
If the user clicks on the Edit (hyperlink), I want to call
MaintProvider.aspx with Provider_code & Location_Code. With the code
below I was able to ... more >>
How do I refresh a text box in a .aspx code behind project?
Posted by Bryan G at 3/26/2004 12:55:20 PM
I have a timmer that looks at a value in a text box that I need to get
refreshed How do I refresh the text box?
... more >>
ASP.NET dynamic registration of COM+ library application question
Posted by JollyK at 3/26/2004 12:18:12 PM
Hello everyone,
If I set identity impersonate to True in my web.config file, I am able to
register COM+ library applications.
If I set to identity impersonate to False I am not able to register them.
This is something that is confusing me because in my web.config file, if
authentication mod... more >>
Copy File and Permissions
Posted by Chris Strobel at 3/26/2004 12:05:37 PM
Hi,
Does anyone know what permissions I need to copy a file that is created in
an ASP.NET page to another server during the same call. We get login errors
trying to do a File.Copy after we create it.
We are running 2 web servers with round-robin DNS where certain files
(Crystal Report PDF's... more >>
Programmatically Determine if Page Has Control
Posted by Jeff S at 3/26/2004 11:19:10 AM
I am reusing one code-behind module (.aspx.cs) for multiple aspx pages. The
code-behind module will set values of controls on the aspx page. Some of the
aspx pages may not include all of the controls that the code-behind module
can interact with - so what I need is a way to determine, from the
c... more >>
Faking HttpContext for unit testing
Posted by element533 at 3/26/2004 9:56:07 AM
Hi all
I've read the thread titled: ""faking" an HTTPContext when running unit tests
http://communities2.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.dotnet.framework.aspnet&mid=a884a918-b04a-4912-b2ea-e691dc5230f
However, the solutions provided don't work for me
... more >>
aspx folder list
Posted by Rob at 3/26/2004 9:47:05 AM
i am trying to write an aspx page that will list all the folders in a
directory containing a list of albums (this is a virtual directory on
the web server). each folder contains a picture called folder.jpg
i would like to display the picture and the name of the folder in a
list, and if there are... more >>
size of a datacolumn
Posted by Nikhil Patel at 3/26/2004 9:20:51 AM
Hi all,
How can I get the size of a Column of a DataSet's Table? The DataSet is
filled with SQL Server data. The columns are of varchar type. When I display
this data in my ASP.Net form, I would like to set the MaxLength property of
the TextBox controls to the size of the DataColumns.
Than... more >>
Session Content question
Posted by Steve Caliendo at 3/26/2004 9:09:06 AM
Hi,
I have a session variable, liike this : Session("User") = "Steve"
I can get "Steve" by requesting: Session.Contents(0)
Is there a way to get "User" out of index 0 ?
Thanks,
Steve
... more >>
Passing value to a javascript function from DataBinder
Posted by rmoolenaar NO[at]SPAM dolfijn.nl at 3/26/2004 8:42:05 AM
Hi,
I have found many postings where people wanted something like:
<asp:HyperLink NavigateUrl="javascript:MyFunction('<%#
DataBinder.Eval(Container.DataItem, "NeedComments") %>')"
RunAt="server">
</asp:HyperLink>
The problem seems to be that the DataBinding needs both ' and ", and
the r... more >>
Easy Question: Append to XML File
Posted by Jeff S at 3/26/2004 8:41:06 AM
I posted this in another group two days ago and surprisingly never got a
response:
How can I append new entries to an existing XML file?
Thanks.
... more >>
DropDownList control question
Posted by Philip Townsend at 3/26/2004 8:40:12 AM
I have a dropdown list control and need to get its value. The dropdown
list is populated from a dataset, which gets its contents from sql
server.
I am using the following syntax: val=dd.SelectedItem.Value . The value
is getting populated, but will only return the value of the first item
on t... more >>
question about maintaining multiple web sites
Posted by David at 3/26/2004 8:32:19 AM
I will be creating/maintaining web sites for clients who are in the same
industry. So although they are separate business entities, their business
models are very similar.
So I would have different database backends, obviously. But I would like to
somehow come up with a good way to create we... more >>
Strange behaviour of Dropdownlists..
Posted by Vamshi at 3/26/2004 8:31:10 AM
Hi All,
We have an application page that has several dropdownlists on it. Data entered by the user is extracted from these dropdownlists is being stored in a MS SQL database.
The problem is that the page works fine 99% of the time. However, there have been cases where the selection on all drop... more >>
Class Capability Differences
Posted by Jeff S at 3/26/2004 8:26:54 AM
Just wondering why some features are available from the code-behind class
modules (.aspx.cs), and are not available from stand-alone class modules
(myClass.cs). For example, accessing the Application state is no problem
from a code-behind, but not from a stand-alone module in the same assembly.
... more >>
DB File Problems
Posted by T Cordon at 3/26/2004 8:20:08 AM
I have a asp.net website that uses an Access DB to tresent various
information to the logged in users. The problem is when I try to replace
that DB with one with the same name and structure that contains updated
data, I cant because it says the file is being used, even if I stop the www
service ... more >>
Find words in big texts
Posted by imre at 3/26/2004 8:17:01 AM
For example: I want to delete everything between <Script ..............>
And </Script......>
My simple method was using a loop that counts to the last character in the
string, using the commands Left() and Mid().
Okay, it works, but my script analyses over 600 pages and rebuilds script,
head... more >>
Dreamweaver MX and Visual Studio
Posted by Amy Snyder at 3/26/2004 8:00:14 AM
I use both development tools when creating my apps. Dreamweaver is so
much easier to work with when it comes to designing the interface where
as VS makes it easier to write the code-behind.
Is there such a thing in Dreamweaver - code behind that is? It seems it
is very difficult to try and w... more >>
Communication between Web Services, Windows Services and Remoting
Posted by johannblake NO[at]SPAM yahoo.com at 3/26/2004 7:07:26 AM
I have an XML web service that can be customized by customers. The
goal is this...
A process must run *somewhere* that acts as an interface between the
web service and some foreign system. Whatever that foreign system is
doesn't matter. It can be anything. The process could run on the same
se... more >>
Repeater / LinkButton
Posted by Dan at 3/26/2004 6:16:05 AM
Lets say I have a repeater inserts 10 linkButtons onto my page. Now when this button is clicked, how do I determine which one was clicked? Do I have to programmatically change the linkButton CommandName property using the Repeaters ItemCreated event? or is there a better way
-- Thanks.... more >>
Managing state using querystrings
Posted by swatisahasrabudhe NO[at]SPAM yahoo.com at 3/26/2004 4:54:44 AM
Hello All,
I am developing a web application using ASP.NET I need access to some
data on all pages like user id etc. I cannot use Session as I have lot
of new window popups and the session data does not get shared across
them. I cannot use hidden variables to pass data across pages, as the
pa... more >>
ASP.NET on Macintosh OS X
Posted by N4709L at 3/26/2004 4:32:49 AM
We are developing an application using ASP.NET technology. Our
users/customers make use of Macintosh PCs. In theory, since ASP.NET delivers
"plain HTML" to the client, we wonder if there are any problems that others
have found that would prevent an ASP.NET application from being successfully
ope... more >>
Button clicks on refresh, doubling the calculation...
Posted by Trint Smith at 3/26/2004 4:18:41 AM
There is no call to Button7 in the load_page either. I even put "If Not
IsPostBack Then" in the Button7 function and nothing works.
Any help is appreciated.
Thanks,
Trint
.Net programmer
trintsmith@hotmail.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just partic... more >>
Aligning rows in horizontal datalist
Posted by al_cam_nojunk NO[at]SPAM hotmail.com at 3/26/2004 4:09:04 AM
Hi,
I am developing an application which displays a large number of
columns and a relatively small number of rows so it makes sense to
display them horizontally.
This is straightforward enough but no matter what I try, I can't get
the rows to align horizontally so it is impossible for the use... more >>
how to formate this datgrid problem
Posted by gopivp NO[at]SPAM hotmail.com at 3/26/2004 4:04:16 AM
i wan't the datagrid display something like this
Semester 1(Semester_Offered) Semester 2(Semester_Offered)
Year1(Credit_Level)
Subjectid name Subjectid name
Subjectid name Subjectid name
Year2
Subjectid name Subjectid name
Subjectid name... more >>
WebOutlook 2003
Posted by paps at 3/26/2004 3:26:08 AM
I use Web outlook 2003 and i've see that when a new mail item arrive a chromeless window appear on the bottom right of the screen showing me that an advertisement
How does microsoft do it
thanks
Paps... more >>
global database connection
Posted by bm NO[at]SPAM bm.bm at 3/26/2004 12:23:22 AM
I place an object OleDbConnection on my web form.
Then I can set up in properties the connectionstring.
If I make another form and I drop an OleDbConnection to it how can I use the
connectionstring from the previous form. I don't want to write code to do
so. Isn't that possible to be done only u... more >>
|