all groups > asp.net > may 2004 > threads for tuesday may 4
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
Changing Text property on label from dynamic imagebutton
Posted by Henke at 5/4/2004 10:28:54 PM
Hello,
I have one ImageButton controls which I initialize in
Page_Load and declare on class level.
ImageButton save = new ImageButton();
save.ImageUrl = "save.gif"
save.Click += new ImageClickEventHandler(this.save_click);
This ImageButton is added to a dynamic ta... more >>
Access Connection
Posted by Simon Harris at 5/4/2004 9:37:47 PM
Hi All,
I have pieced together this from a couple of samples:
<%@ Control Language="vb" %>
<Script runat="Server">
Public Function GetConnection()
Import System.Data.OleDb
Dim Conn as OleDbConnection
Dim ConnStr as String
ConnStr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Docum... more >>
Please helppppppppppppppppp checkbox in datalist
Posted by mahsa at 5/4/2004 9:11:07 PM
my problem dosent solve yet I want to have
claa void in onclick of my check bov if I us
function setProps ( )
msg.innerText = "llll";
in <datalist>
<ItemTemplate><input type="checkbox" id="cbItem" runat="server" onclick="test()
value='<%#Dat... more >>
Stumped...
Posted by shland at 5/4/2004 8:48:34 PM
I hope someone can help me figure this out... I have two different pages in
my web app that use this line:
Response.Redirect("review.aspx");
This line is executed in response to a button click, and after I save some
data to session variables. On my local machine, both pages work just f... more >>
JavaScript
Posted by Jim Heavey at 5/4/2004 7:37:08 PM
I went looking for an example of javascript which would open up a new
window. I found this....
<A onclick="popup = window.open('Scorecard.aspx', 'View Scorecard') return
false;" href='ReadOnlyScorecard.aspx' target='_blank'>View Scorecard </A>
When I run it, it tells me it was expecting a... more >>
where am i being called from? (web.config)
Posted by suzy at 5/4/2004 7:32:58 PM
hello,
how do i check from my c# class if it is being called from a asp.net
application or a windows application?
i have some code that reads from the web.config file for webapps, but i want
to default the values to something else if there is no web.config (ie:
windows).
any ideas? thank... more >>
need help
Posted by Mike at 5/4/2004 7:10:38 PM
I'm creating asp.net using C# and I'm going against a SQl db. One table i'm
going against i need to pull FirstName from one column and LastName from a
seperate column.
How can I join these 2 columns in my query and display them together in my
datagrid?
... more >>
Displaying images from a database in an image control
Posted by Jim Mace at 5/4/2004 6:56:06 PM
I am pulling an image and its corresponding content type from a SQL Server 2000 database with ASP.net. My question is how can I display this using an image control
Jim... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
.pdb file
Posted by Mark at 5/4/2004 6:16:41 PM
My ASP.NET project is set to Release mode in VS.NET. Whenever I compile the
project, the .pdb file still exists in my bin directory. I could be dead
wrong, but my gut tells me that the .pdb file indicates I'm not compiling to
the most efficient .dll.
Thanks in advance for clarifying this.
M... more >>
DataList RepeatLayout=Flow
Posted by Marcos MOS at 5/4/2004 5:35:30 PM
Hi,
I have a page (.aspx) with a DataList.
Into it there is a DataGrid... (master/detail).
I wanna my DataList repeat 2 columns in RepeatLayout = Flow format. But when
I put RepeatColumns=2 and RepeatLayout=Flow it doesn't work.
I mean, it displays only in one column.
I think there is... more >>
Reach another function in a usercontrol
Posted by Micke Palm at 5/4/2004 5:06:36 PM
Hi!
I have set up one aspx page and I using a few usercontrols to this page. The
treestructure is like below...
aspx
/ \
uCtrl1 uCtrl2
\
uCtrl3
In uCtrl3 I have a public sub with name Test() , now I need to reach this
sub from uCtrl2.
Dim myTe... more >>
Error message - any ideas?
Posted by Sue NO[at]SPAM ojd.state.or.us at 5/4/2004 4:56:02 PM
W2K Server, IIS 5.0, SQL 7, Integrated Security, web app. When user tried to bring up app in IE6, got the following error
Error loading XML file c:\winnt\microsoft.net\framework\v1.0.370
\Config\machine.config Request for the permission of typ
System.Security.Permissions.StrongNameIdentityPermis... more >>
disabling a button when pressed
Posted by MattB at 5/4/2004 4:37:21 PM
I want to have a "finalize sale" button that disables it's self
immediately when pressed (so they can't hit it twice). I thought putting
mybutton.enabled=false in the click event would do it, but I guess that
requires a postback. Any suggestions (or even better and example) on doing
it on th... more >>
Selected Index event not firing
Posted by moondaddy at 5/4/2004 4:29:04 PM
I have a dropdown combo box on a form and I have its AutoPostBack property
set to true. When I select something from the list it does a postback and
then the Page_Load event fires followed by it's SelectedIndexChanged event.
However, when I go back to this control again and select the first it... more >>
How to send values from one page to another?
Posted by Miguel Dias Moura at 5/4/2004 4:08:06 PM
Hello,
i have an ASP.net / VB page with a Script (submitValues) and a Form.
1. The form has 20 input texts and a "Submit" button.
2. The script declares 20 variables. The value of each variable is taken
from each of the 20 input texts.
3. When the button "Submit" is click the variable value... more >>
Urgent: I can't update database with SqlCommand
Posted by Tracey at 5/4/2004 4:01:10 PM
Sorry for the repeated post. I tried to update a record in database using SqlCommand.ExecuteNonQuery( ) method (I failed using SqlDataAdapter). I traced the above statement and found that it returned 1 rows afftected. Then I checked my database, the data was not updated at all
Can someone give me... more >>
ASP.NET security
Posted by xs at 5/4/2004 4:00:12 PM
Hi, i would like to develop an ASP.NET web apps retrieving information from
a Web Service. However how can i ensure that the Web Service is not exposed
to the public eye? Is there any articles, books on this topic? If so, can a
link be provided? Thanks
xs
... more >>
Web Cache lifetime
Posted by tbandrow NO[at]SPAM mightyware.com at 5/4/2004 3:58:53 PM
How does the ASP.NET web cache actually work with multiple processes
and or servers (web farm)? Does it store serialized data in shared
memory somehow? Can you even tell IIS 5 to have more than one ASP.NET
worker process, and, if so, what's the impact on doing that to web
caches.
Thanks!... more >>
Add data to database and it to an email???
Posted by Miguel Dias Moura at 5/4/2004 3:55:43 PM
Hello,
i have an ASP.net / VB page with a Script (submitValues) and a Form.
1. The form has 10 input text and a "Submit" button.
2. The script declares 10 variables. The value of each variable is taken
from each of the 10 input texts.
3. When the button "Submit" is click the variable values... more >>
Use URLEncode
Posted by Grey at 5/4/2004 3:55:06 PM
How can I use the URLEncode in ASP.NET?? If i used URLEncode to encode =
the URL, how can I decode the URL with proper parameter values in =
ASP.NET?? I can encode the URL, but i cannot decode it properly...
Million Thanks..... more >>
HELP - Using UIP App. Block for .aspx Pages that Contain .ascx User Controls
Posted by Peter Jackson at 5/4/2004 3:53:19 PM
I'm using v2 of the UIP App. Block. I've created all my .aspx pages, =
all of which contain .ascx user controls. The .ascx user controls =
provide the standard server controls (i.e., LinkButtons, etc.) for the =
user to navigate the site and perform their tasks. None of the site's =
actual fu... more >>
Rendering encrypted html via ASP.NET
Posted by Dan at 5/4/2004 3:47:07 PM
Does anyone know if you can use ASP.NET to make ASPX pages which render
encrypted HTML? In other words, when they return the html page, the user
cannot view the source.
Thanks...
Dan
... more >>
HttpException with no details...
Posted by Brett Robichaud at 5/4/2004 3:36:25 PM
I have an ASP.NET 1.1 app running on a set of load balanced servers. I am
using Forms authentication. Periodically I am getting the exception below,
I'm catching it in my Application_Error() override. The problem is the
exception doesn't have much info to go on. No details at all. I suspect ... more >>
aspnet_regiis, VS.Net etc?
Posted by ildar at 5/4/2004 3:26:03 PM
Hi
Let's start with what I'm trying to achieve
I want to keep asp.net 1.1 and asp.net 2.0 on the same machine and transparentl
switch between the versions of asp.net
What I tried so far
I'm on windows 2000 pro sp
Installed whidbey. I was assuming that VS.NET should handle asp.net version by... more >>
How to load different user control - Call made from control being replaced
Posted by moondaddy at 5/4/2004 2:48:21 PM
I need to replace a user control on a page with a different user control.
The challenge I'm faced with is that this call is being made from the user
control being replaced.
Normally I replace one user control with another user control like this
'Using vb.net 1.1
ctl = LoadControl(ctlPath)
... more >>
Repeater DataItemBound not firing
Posted by slaforge at 5/4/2004 2:46:05 PM
I am trying use a repeater to process through the results of a sql query and produce a table that may or may not have multiple rows per record in the query, depending upon whether the technicians have added notes to their work. I can not get the OnItemDataBound event to fire for the repeater contro... more >>
HELP, The connection string does not work
Posted by lloydmonteiro NO[at]SPAM rediffmail.com at 5/4/2004 1:49:57 PM
i am trying to connect to my Sqlserver on my machine.
i tried using the following connection strings
1)
mystring= "Initial Catalog=[SmartLan 2.0 ED];Data
Source=localhost;Integrated Security=SSPI;UID='sa';PWD="
myConn = New SqlConnection(mystring)
myCommand.Connection = myConn
myConn.Open... more >>
Cannot open ASP.NET projects on IIS 6/ Win2k3 running WSS
Posted by Shikari Shambu at 5/4/2004 1:19:33 PM
Hi,
I have a Windows 2003 server running Windows Shareporint Services 2.0.
After I installed WSS I am to able to open any web project that is located
on my default web site from VS 2003.
I can't borwse to the site either. It is as if the site does not exist.
Does anyone know how I can f... more >>
Inserting A New Record
Posted by Curt Emich at 5/4/2004 1:07:39 PM
I'm trying to insert a new record into an Access table based on values in
the controls on a web form. I've tried a combination of techniques, none of
which seem to work.
Does anyone have any sample code that does this? All my books assume I'll
be using stored procs, which I am not.
... more >>
Creating timers
Posted by Simon Jefferies at 5/4/2004 12:56:48 PM
Hello,
I'm trying to create a timer but it doesn't appear to run.
I've tried adding one to the aspx form and coding one manually, but the
Elapsed event doesn't fire.
Any ideas?
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:simonj@headfirst.co.uk
www.callofc... more >>
Reading values from multiple "similar" controls
Posted by Bijoy Naick at 5/4/2004 12:17:26 PM
I have a form with mutiple text fields, all of similar nature.. for
example:
userName1, location1
userName2, location2
..
..
..
userName10, location10
all are text fields. while reading the input and saving to a database,
I'd like to be able to read all of them in a single loop and issu... more >>
Ordering items in ListBox
Posted by Diggler at 5/4/2004 12:16:06 PM
I have a group of items in the database that need to be sorted by the client. There is a field in the database that stores the desired order (0, 1, 2, etc...). I would like to allow the client to move the ListBox.Items up and down in the ListBox via JavaScript and then, on the form submit, read th... more >>
response object
Posted by TJS at 5/4/2004 12:12:50 PM
how do I use "response.redirect" in a class ?
I'm getting an error on "response is not declared" when I try to compile
... more >>
Access client HDD from Web Application ????
Posted by Toma at 5/4/2004 11:18:55 AM
Hello !
First, excuse me for my very bad English, but I'll try to explain my problem
.....
I write my first Web Application on C# and ASP.NET /till now I write only
for Windows/, and this WebApp must read and write files on the client
computer.
Can someone explain how the Web App can do this ... more >>
get image data from dataset (insead of directly from db)
Posted by MattB at 5/4/2004 11:12:01 AM
I have a slightly different twist on the old question "How do I display
images stored in my database?".
My application does not talk directly to the database. It uses a COM+ dll to
deliver serialized datasets. Then I de-serialize those datasets and work
from those.
All the examples I've see... more >>
Postback confusion re: redirects
Posted by darrel at 5/4/2004 10:36:39 AM
I'm rather confused as to what is a postback and what is not.
I have a page with a asp:dropdownlist and asp:button
There's an event on the button click that response.redirects to the same
page with an updated querystring (based on the value of the dropdownlist
selected item).
On pageload,... more >>
opening/maintaincing connections
Posted by Bijoy Naick at 5/4/2004 9:48:19 AM
I have a ASPX page which needs to make several writes to a database,
using data from a form. I am using an MS Access db.
Currently, I am managing my connections/writes as follows..
myConnection = New OleDBConnection(connectionString)
myConnection.Open()
sql = "first sql statment"
myComma... more >>
ListBox and round-trips
Posted by Mike at 5/4/2004 9:22:56 AM
Hello,
I have a web user control that contains a ListBox. I would like to =
display some information based on the double-clicking of the user on a =
ListBox's item. I was thinking about some code behind procedure to do =
that, but I am a little bit worried about round-trip to the web server.... more >>
Connection string and web.config
Posted by Fernando Poinho Malard at 5/4/2004 9:19:15 AM
Hello,
I'm developing a website which has a SQL database working through ADO.NET.
When I'm development site I have my personal IIS server as well as my
personal SQL server.
All my connections strings are pointing to this local SQL server.
When I need to upload the modifications to running w... more >>
aspnet_wp.exe could not be started. The error code for the failure is 80004005.
Posted by Prodip Saha at 5/4/2004 9:05:02 AM
Microsoft has Hot Fix rollup for this problem but there is NO link to
download the hot fix. Does anyone know the link or how to solve this
problem?
Thanks,
Prodip
... more >>
VisualStudio 2003
Posted by adepinto NO[at]SPAM idmi.net at 5/4/2004 9:01:48 AM
Is there any way to have VisualStudio stop modifying code behind files
automatically? I'm trying to change the base case and add a handler
in the InitializeComponent Sub and VS keeps wiping out the code I
place in this sub whenever I touch the page visually.... more >>
BITS v1.5 Upload
Posted by Paul at 5/4/2004 8:56:09 AM
Hi
Does anyone know how to implement BITS v1.5 upload feature in ASP .NET? I found the way to setup the server side but no luck in implementing a web-based client application. I know there's a UploadFile() in ASP .NET but it doesn't support resume ability. This is why I want to use BITS v1.5 up... more >>
VS.NET on Windows 2003 Server
Posted by Mark at 5/4/2004 8:55:16 AM
Are there any known issues with developing ASP.NET web applications directly
on Windows 2003 Server running VS.NET 2003 Pro, SQL Server client tools, and
using VSS for source control? Essentially using W2003 Server as a desktop
with the exception of leveraging IIS 6.0.
Thanks in advance.
M... more >>
Updating a .NET web DLL
Posted by dhopp NO[at]SPAM lmi.org at 5/4/2004 8:54:29 AM
How can you update a .NET web application DLL on the server without
making sure all users are out of the database which the DLL accesses?
Does updating the DLL when users are using it cause any data
corruption if they are in mid-save when the update occurs?
Thanks,
Dia... more >>
Putting a server side control inside an html element attribute
Posted by John Lau at 5/4/2004 8:44:57 AM
Hello,
In Asp, you can render a server side variable inside the quotes in an html
element attribute. For example:
<link rel="stylesheet" href="<%=SomeVariableName%>" type="text/css">
I'm trying to do something similar in Asp.Net:
<link rel="stylesheet" href="<SomePlaceholderControl run... more >>
Custom Validator
Posted by Andre at 5/4/2004 8:40:47 AM
Hi,
Can someone tell me why args.value return "undefined" in my Function.
Thank you.
<asp:textbox id="TBCiv" runat="server"></asp:textbox>
<asp:CustomValidator id="CustomValidator1" ControlToValidate="TBCiv"
ClientValidationFunction="ClientValidate" Display="Static" ErrorMessag... more >>
"System.Web.UI.Page' cannot be designed"
Posted by vandel NO[at]SPAM ki2.com at 5/4/2004 8:23:13 AM
Hello:
This error message crept into my Visual Studio 2002 .Net project after
I updated the framework model IIS is using to execute the project to
1.1. I did a search on this newsgroup and found others with a similar
problems but no solutions.
I solved the problem by deleting the reference... more >>
OT - Book for MCSD.NET
Posted by Franco Figun at 5/4/2004 7:36:28 AM
Hello people
I want to buy this book:
MCAD/MCSD Self-Paced Training Kit: Microsoft .NET Core Requirements, Exams
70-305, 70-315, 70-306, 70-316, 70-310, 70-320, and 70-300
by Microsoft Corporation (Author), Microsoft Corporation
ISBN: 0735619255
Price: $115.59
http://www.amazon.com/exec/obi... more >>
sessionState and cookies
Posted by mike parr at 5/4/2004 7:11:28 AM
I want to use cookies on my website, simply to identify the user when
they come to my website (I will just be writing one for new users and
reading from people who are already users when they reach my home page).
Do I need to put cookieless="false" in my web.config sessionState tag,
or does it n... more >>
EnableViewState not being set to false
Posted by Mike Drewery at 5/4/2004 7:01:05 AM
I want to post a form and not have the form maintain it's value. I am have tried setting EnableViewState = False at the control and on Page Load. When I submit the button my selection is returned. What am I missin
Mik
<asp:DropDownList id="DropDownList1" style="Z-INDEX: 101; LEFT: 115px; P... more >>
Render HTML document in ASP.NET
Posted by vandalo at 5/4/2004 5:16:08 AM
Hi all
I developed a service which can convert an office document (word, excel, powerpoint
into HTML and save it on the file system
To do this I use the "save as" functions of the office applications
Word, Excel and PPT create a folder which contains all the support files for the document
My ... more >>
Client-side ASP.NET Programming Books
Posted by Ivan Samuelson at 5/4/2004 5:11:05 AM
Does anyone know of a book that covers client-side programming in ASP.NET? I have no problem programming on the server-side, but I'm at a loss on the client-side, including how to program either in VBScript or JavaScript
I have a few ASP.NET books that helped me learn ASP.NET programming, but none... more >>
ViewState don't save......
Posted by lirlir NO[at]SPAM walla.co.il at 5/4/2004 4:44:51 AM
Hi to all,
i have this problem:
my sample combine 2 components,
the first one is a simple aspx page (T1.aspx) with a
Button runat server and with the next code:
private void Page_Load(object sender, System.EventArgs e)
{
C1 c = new C1();
this.FindControl("Form1").Controls... more >>
"Visual Studio.NET has detected that the specified web server is not running"
Posted by mike NO[at]SPAM kingscott.f9.co.uk at 5/4/2004 4:07:18 AM
Hi all,
Ok, I'm running Windows 2000, service pack 4. I have .Net framework
installed, version 1.1.4322, I'm running IIS 5.0. When I try to open a
solution that was opening just dandy last week, I get the error
"Visual Studio .NET has detected that the specified Web server is not
running ASP.... more >>
Aggiornamento automatico di Index Server in web application in C#
Posted by zambetti NO[at]SPAM inwind.it at 5/4/2004 3:01:50 AM
Ciao,
qualcuno sa come poter fare in modo ke il servizio Index Server di Win
2000 Pro sia skedulato in modo da aggiornarsi ogni tot minuti?
Il problema è di fare in modo ke un catalogo creato in Index Server
(Gestione Computer - Servizio di indicizzazione) si aggiorni
automaticamente all'inser... more >>
Unreadable QueryString
Posted by s_laha NO[at]SPAM rediffmail.com at 5/4/2004 12:10:32 AM
Hi,
I want to encrypt my query string values when I pass it to the next page.
What can I do for that?
I also want to throw exception, if the user manually changes it!
-surajIT... more >>
|