all groups > asp.net > may 2004 > threads for friday may 21
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
DataBind and SqlDataReader
Posted by Gawel at 5/21/2004 10:16:19 PM
control.DataSource = reader;
control.DataBind();
Is it possible that DataBind() will close automatically the reader ?
--
Gawel
-------------------------------
Pierwszy ³yk z pucharu nauk przyrodniczych czyni ateist±, ale na dnie
pucharu czeka Bóg.
Werner Heisenberg
... more >>
Help For JavaScript in ASP.NET
Posted by Shalin at 5/21/2004 9:46:02 PM
Hi
How can I find an element of radiobuttonlist control in javascript for client side validation which is not browzer specific
... more >>
Regular Expression [ and ]
Posted by Jim Heavey at 5/21/2004 7:49:37 PM
I created a regular expression and I used the following regular expression:
[a-zA-Z0-9.,:;+'_()$%!?<>\\/$#-@*=+\093\091\n\t\r\040]{1,1000}
I used \091 and \093 to indicate that "[" and "]" are valid characters, but
it seems to ignore those values as it will not allow me to enter those
values... more >>
cell clicked on webcontrol datagrid
Posted by EMW at 5/21/2004 7:49:32 PM
How can I detect on which cell the user has clicked on a datagrid
webcontrol?
rg,
Eric
... more >>
Why won't controls show up on my form
Posted by Chris Kennedy at 5/21/2004 7:49:27 PM
We are just starting with asp.net and have just set up a test server. I can
get my projects to work properly on my local machine. I try a test project
on the test server, a label and a button which adds text to the label and
all I can see is the labels caption. The source code when I look at the
... more >>
how to get current rowid in datagrid
Posted by Lerp at 5/21/2004 7:07:40 PM
Hi all,
Assuming the first field in my dataset is my primary key field, how would I
access that value in an itemdatabound event of my datagrid? Would it be
Container.DataItem.Cells(0) ?
Cheers, Lerp: :)
... more >>
Server.Transfer
Posted by Red at 5/21/2004 6:58:00 PM
I am using Server.Transfer("MyForm.aspx", true) to move the user to a
different form. I have a button that allows the user to go back to the
original form. I thought that setting the presrveForm param to true would
save the state of the controls on the original form, but when the user
clicks the... more >>
Set Column Width in DataList
Posted by Wayne Wengert at 5/21/2004 5:49:22 PM
I have a datalist that displays data from an SQL Server 2000 DB. One of the
fields contains names in the format "LastName FI". When the data is
displayed for that field it seems to base the width of the column on the
longest value of LastName which means I often get the lastname on one line
and ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
setting attributes to controls
Posted by Janaka at 5/21/2004 5:40:26 PM
I've seen and used some samples where you can set the onclick attrubute to a
Button control to get it to do some javascript a la :
btnUse.Attributes["onclick"] = "DoSomeJS()";
However when i try and get this to work on certain controls such as the
ListItem in a RadioButtonList it just doesn't ... more >>
Receiving Configuration Error, I've Never Seen Before
Posted by Rob G at 5/21/2004 5:22:03 PM
Hi,
I am new to this ASP.NET thing and while going very slow, I am learning.
Then I got a Configuration Error out of nowhere when I ran my project.
I do have Excel as reference (but I haven't been able to use it yet).
My project has been running just fine and I am sure I did something stra... more >>
Using encrypted dB connection string
Posted by Charlie NO[at]SPAM CBFC at 5/21/2004 5:15:43 PM
Hi:
My host will not allow me use a trusted connection or make registry setting,
so I'm stuck trying find a way to hide connection string which will be
stored in web.config file. If I encrypt string externally, can it be used
in it's encrypted form to connect to SQL Server? If I decrypt back... more >>
Setting the web control textbox property enabled = FALSE
Posted by Gill Smith at 5/21/2004 4:47:53 PM
After setting the web control text box enable property to FALSE makes the
control to loose the data between round trip. I am making sure that the
property - EnableViewState = TRUE.
Same code when the text box Enable property set to TRUE retains the value.
Please advice.
-Gill
... more >>
Advice on asp.net for comercial programmer
Posted by Don Grover at 5/21/2004 4:07:31 PM
Im looking for advice on migrating from asp to asp.net.
If someone can answer a few questions please.
1) What time frames should I allow for getting upto speed in asp/vb .net
from a comercial asp & vb6 background.
2) What development packages should I use, reccomended.
3) Setting up a Tes... more >>
Strange Behaviour
Posted by Grace Sainsbury at 5/21/2004 4:06:38 PM
Hi,
I have developed a multi-frame web application with asp.net in c#. One frame
contains an embedded windows media 9 player for playing .wmv files. While
there is a file loaded in the player the other frames do not reliably
refresh.
Specifivally, if I try to refresh a page where I have ove... more >>
CustomErrors in Web.Config
Posted by Dave at 5/21/2004 4:01:59 PM
Hi All,
I have created a custom error page and updated the web.config file with the
following element.
<customErrors defaultRedirect="Errors/GenericError.aspx" mode="On" />
This appears to work fine for the majority of cases, however if an error is
raised from global.asax the standard err... more >>
Session timeout
Posted by Barb Alderton at 5/21/2004 3:57:29 PM
I wrote a asp.net app for a client to enter Purchase Requisitions for IT
purchases (using Session variables). The users want the session timeout to
be set to at least an hour because they are constantly interrupted when
entering PRs. I know I can change it in the web.config but is there any
co... more >>
ImageButtons in an array
Posted by flyAway at 5/21/2004 3:28:53 PM
HI
In my first asp.Net Homepage I have the following problem:
There are some ImageButtons, witch ImageURL constantly changes. Now I would
like to create an array, so that I can assign the ImageURLs in a loop.
HTML:
<TR>
<TD><asp:imagebutton id="ImgBtn_1_1" runat="server"
ImageUrl="Im... more >>
FrameSet
Posted by Victor Sayas at 5/21/2004 3:20:53 PM
my web application is designed like this. i have two frames, left and right
which is in the Main.aspx form. left is used for the menus while right is
the one with the main windows. my problem is i cant control the frames or i
dont know how to control it.
1. when i log-in in my application,... more >>
page break after and datagrids
Posted by mark at 5/21/2004 3:10:02 PM
im trying to split prints out by using
<STYLE>P { PAGE-BREAK-AFTER: always }</STYLE>
in the <HEAD> </HEAD> section
however its not page breaking like i would like - i want it to page break
after each datagrid (i have 4 on one page - formatted in a table) like :-
<TD><P><asp:datagrid id="D... more >>
Could not load type error
Posted by Sumit Thomas at 5/21/2004 3:08:51 PM
Hi,
I have created sub directories for my application, however, when I
try to access the aspx files in the subdirectory, I get the
following error : "Could Not Load A1.A2" where A1 is the name of my
project and A2 is the name of my subdirectory. It looks like the
program is looking for the bi... more >>
How to send HTML email with images
Posted by Pablo Tola at 5/21/2004 3:06:38 PM
Is there a way to render an aspx page and email it including it's images on
the message, but as <img> tags, not attachments, and also not a reference to
a url?
... more >>
Securing dB connection string in Web.config
Posted by Charlie NO[at]SPAM CBFC at 5/21/2004 2:54:40 PM
Hi:
I'm storing my dB connection in web.config file. Since it will be easily
read by opening file, what is a good way to secure it?
Thanks,
Charlie
... more >>
somebody must know this
Posted by Lerp at 5/21/2004 2:38:26 PM
Hi all,
I thought I has solved this earlier but was wrong.
Say I have 2 tables CUSTOMER and ORDER in a related dataset based on
customerid and I would like to display the customer's lastname along with
the ordertitle and orderdate all on one row then iterate through to the next
row.
The cu... more >>
RegularExpression validator that does not allow blanks
Posted by jhoge123 NO[at]SPAM yahoo.com at 5/21/2004 2:26:36 PM
I have a regex "^\d{5}$" that does not allow blanks, but the
RegularExpressionValidator does not fire for empty fields. Is there a
way to make it do so? I would rather not include a separate
RequiredValidator for reasons of brevity and neatness.
Thanks,
John... more >>
Strange Periodic Error When Debugging
Posted by TJO at 5/21/2004 2:24:58 PM
I am building an asp.net application on my machine and every so often when i
press F5 to debug i get the following error. This is most annoying because
the only way to eleviate the error is reboot. Even iisreset does not work.
Please help.
Server Error in '/myapp' Application.
-----------... more >>
Common Code Class + Session + Request + Response
Posted by Filip at 5/21/2004 2:00:18 PM
Hello,
(ASP.NET c#)
I want to put some common functions into one class and within this class I
need to have access to the Session, Request and Response. This class is not
page behind file!
I keep trying all sorts of namespaces, but to no avail. Keep getting:
"The name 'Session' does not exis... more >>
Force to login page first
Posted by Grey at 5/21/2004 1:58:36 PM
I have many aspx files in an web application. Is it possible to enforce =
the application to divert to login page first even though the user type =
the URL directly in the IE??
Million Thanks.... more >>
DropdownList and DataValue
Posted by A.M at 5/21/2004 1:43:02 PM
Hi,
I use following code on PageLoad to supply DataText for a drop down list
box:
Sub Page_Load(sender As Object, e As EventArgs)
If Not IsPostBack Then
Dim values as ArrayList= new ArrayList()
values.Add ("IN")
values.Add ("KS")
values.Add ("MD")
... more >>
Unable to create or start a webapp in VS
Posted by peter NO[at]SPAM notmail.net at 5/21/2004 1:32:09 PM
When I try to create a new ASP.NET webapplication (in Visual
Studio 2003) or try to open an existing one, I get the following
error-message :
'The webserver reported the following error when attempting to
create or open the Web project located at the following URL
'http://localhost/WebApp... more >>
ASPNET applications and comunication between with message?
Posted by Matej Kavèiè at 5/21/2004 1:28:39 PM
Hello
I have one question. I see some demos in Share Portal service, where we
have some web part which search for documents but when we press button the
results is also set in other web part.
So my question is if I create 3 ASPNET application, and create 3 frame on
one page in every page is... more >>
Need more info on UserControls
Posted by Lau Lei Cheong at 5/21/2004 1:20:50 PM
Hello,
I'm writing UserControls as stated earlier. Now I come to the problem
that I need to preserve viewstate in my controls.
If I want to save the informations on the controls, in which event I
have to do so(on main form or on usercontrol)? Or could there be simplier
method such a... more >>
how do I prevent this problem
Posted by Brent Burkart at 5/21/2004 12:35:48 PM
When you navigate my website, the following message pops up:
This page contains both secure and nonsecure items. Do you want to display
the nonsecure items?
What can I put in my code or html to prevent this from happening?
Thanks for your help.
Brent
... more >>
Re: Application_End() and Session_End () never execute ??
Posted by Chris at 5/21/2004 12:32:43 PM
Hello,
I set the session-timeout to 1 minute ... Session_End() gets triggered but
not after 1 minute of client inactivity but rather after 1m30s , 1m45s or
sometimes even more !!!
Why so irregular and not exactly 1 minute ?
Also the Application_End() never gets triggered at all so it see... more >>
CrystalDecisions.Web.CrystalReportViewer is not compatible with the type of control CrystalDecisions.Web.CrystalReportViewer
Posted by Reza Nabi at 5/21/2004 12:21:04 PM
Hello
I created a very simple page just to load a crystal report which was working just great
Code started throwing the following exception, after I installed crystal report 9 advanced edition
----------------------------------------------------------
Parser Error
Description: An error occurr... more >>
ExecuteReader: Connection property has not been initialized
Posted by MattB at 5/21/2004 11:43:30 AM
I'm trying to implement an example I found for displaying images stored in a
SQL database. The example code looks like this (in page_load):
Dim connstr As String = "Integrated Security=SSPI;Initial
Catalog=Northwind;Data Source=SERVER\netsdk"
Dim cnn As New SqlConnection(connstr)
Dim cmd As N... more >>
print window problem
Posted by mark at 5/21/2004 11:37:26 AM
im printing pages using
RegisterStartupScript("startupScript", "<script
language='javascript'>window.print();</script>")
in code behind
how do i do this to only print the main frame ?
thanks
mark
... more >>
Deleting row from asp.net grid - "Connection must valid and open" error?
Posted by Lauchlan M at 5/21/2004 11:19:37 AM
I get the following error. Apart from the fact that it does not make any
grammatical sense, what would be likely to be causing it?
I have a command component 'nxCmdDeleteErrorLogItem' with the following SQL:
Delete from ErrorLog where LogID = ?
LogID is a parameter corresponding to a DB... more >>
Removing an XML element from an XML document. How can I do that?
Posted by GhislainTanguay at 5/21/2004 11:10:58 AM
This is my XML file and below you will find my code to remove it... I was
thinking that it's a simple task but this code doesn't work.
Anybody have a better solution?
<Advertisements>
<Ad>
<ImageUrl>http://localhost/UQCN/Images/Ecoroute.gif</ImageUrl>
<NavigateUrl>/UQCN/WebMo... more >>
Conversion of classic asp/html to .net at root web
Posted by EO at 5/21/2004 10:59:09 AM
I have much of what I need, but would appreciate a sanity check and I have
some hopefully easy questions. (Easy for YOU, that is!)
I have a website with about 2000 pages to convert to .net.
(prime candidate for aspx headers/footers, etc. - eh?)
There's a development copy on my local W2kS box ... more >>
integrate with SSL Cert
Posted by Grey at 5/21/2004 10:49:29 AM
i have set up a web application. I want to know that how to integrate it =
with SSL cert?? If I got the cert already, how can I set the web server =
in order to be SSL enable web ??
Million Thanks..... more >>
How to Get Calling Page Name from Library Class
Posted by JezB at 5/21/2004 10:33:15 AM
Within some library class, is there a way I can I determine which webpage
called it, without having to pass in the calling Page object ? I only need
the page name rather than the Page object.
Thanks.
... more >>
complex event bubbling problem
Posted by martinthrelly NO[at]SPAM yahoo-dot-com.no-spam.invalid at 5/21/2004 10:25:54 AM
the following event handler checks to see if any parent control has
attached to the event 'SearchItemSelect'. i use it for event bubbling
whenever one of my search items has been selected and at the moment i
am calling this from a repeater's ItemCommand event handler:
protected void OnSearchI... more >>
re:complex event bubbling problem
Posted by martinthrelly NO[at]SPAM yahoo-dot-com.no-spam.invalid at 5/21/2004 10:25:54 AM
sorry posted twice by mistake :roll:
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---... more >>
How to mark text in textbox when tabbing to it?
Posted by Lars Netzel at 5/21/2004 10:22:57 AM
This seems like a standard way on the web to have textboxes behave but mine
does'nt and when I search pages( on the web) to see if they have
javascripts doing this I can't find any scripts ... how do I do this? Is
there a special Property on TextBox control in ASP.NET?
Thanx
/Lars
... more >>
How to set focus on TextBox web control for the clicked event of ImageButton.
Posted by Gill Smith at 5/21/2004 9:59:24 AM
when the page is loaded I am using onload event at the client side and
setting the focus on the control(TextBox). However when the user clicks on
Clear ImageButton, I am clearing all the text boxes and the grid(previous
search result display) in the clicked event of the ImageButton at the server
... more >>
How do I bind values to a drop-down User Control?
Posted by Rob G at 5/21/2004 9:58:25 AM
Hi,
I've made a User Control with a drop-down list box (OK, copied it out of a
book). It binds to a SQL statement which links to my database. All the code
is in the ascx.vb file.
Now I want to make a User Control drop-down list box that only has two
values, "Yes" and "No". That way I can us... more >>
smartnavigation doesnt work!
Posted by spammy at 5/21/2004 9:43:07 AM
hi all,
ive set smartnavigation to true for my asp application page in its property
page, as well as for the application as a whole in the web.config. however,
it doesnt seem to be working - pages still jump to the top on refresh.
any ideas of how i can go about debugging this? looking at th... more >>
Display columns from 2 tables in datagrid HELP!!!!!!!!!!!
Posted by Lerp at 5/21/2004 9:35:38 AM
Hi all,
I have been trying to get this to work for over a week now and have not been
able to get it :( I am attempting to display data from 2 tables in one
datagrid using my ClientBookings relation ship but am having trouble
extracting the data and replacing the id field with the fname value.... more >>
How can I use a dynamic IP address for a domain name?
Posted by dgk at 5/21/2004 9:29:50 AM
Not a dotnet question yet, although the site will be dotnet.
Anyway, I have a cable modem and dynamic (although pretty static) IP
address. How can I use a domain name if the real ip can change? I see
things like NO-IP.com which seems to offer this service for free. Is
this the recommended appr... more >>
How to put two versions of an app on a web server?
Posted by Jim Corey at 5/21/2004 9:17:18 AM
I've got MyApp on a web server. Without creating a new project I'd like
to try out some modifications and put MyAppV2 as a different virtual
directory on the server.
This doesn't work for us, and I think I see why. 'MyApp' is hard-coded
throughout the application and in each case I would b... more >>
Crystal Reports Query
Posted by Jude_44 at 5/21/2004 9:01:03 AM
Hi
I have a Crystal Report that I need to base on a set of 4 tables, as listed and described below:
Companies
Projects
TimeEntries
ProjectExpenses
Basically, is for Timekeeping functionality. Each Company can have many Projects.
TimeEntries table records a set of hours details, as well ... more >>
C# ASP.net and general OO help
Posted by m3ckon at 5/21/2004 8:49:48 AM
Hi there,
I know this may be a bit cheely but I need some help with the above
topics (general I know)
I have a second interview for a firm and the job will be a c# asp.net
programmer. They are well aware that I don't have knowledge in this
subject, but I want to get a better understandi... more >>
Passing either RBG or HEX value to Server Control in VS.Net 2003
Posted by D Sheldon at 5/21/2004 8:11:05 AM
I've created a server control that builds a table. I've exposed a public property that can change the background color of the table. When I compile the control and try to use it in a project, I am able to change the color by using the properties menu in Visual Studio.Net 2003. The problem that I'm h... more >>
ASP Newbie
Posted by Stefan Richter at 5/21/2004 7:53:03 AM
Hi, I am just starting to work with ASP.net
Could you maybe provide some sample code I could have a look at,
or maybe you could also tell me some handy links?
Thx,
Stefan
... more >>
HTMLTable
Posted by Vikram at 5/21/2004 5:36:06 AM
I have a .aspx page with a server side table...i am adding rows to this table on submit of some button...something like this
Sub AddRow(Sender As Object, E As EventArgs)
..
..
..
MyTable.Rows.Add(r)
End Sub
however between calls to this function, I am not able to maintain the sta... more >>
How do I dinamically add controls and events to a Web Form
Posted by vladimir1853 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 5/21/2004 5:23:03 AM
I have this problem...
I want to add controls to a WebForm (any kind of controls... panels,
buttons, datagrids,...) at runtime and I could do that with
HtmlControls :" Label myLabel = new Label();
this.Controls.Add(myLabel) " but I don't know how to add events to
them such as onClick, OnKeyDown... more >>
Asynchronous Web Form
Posted by Danny J at 5/21/2004 4:26:08 AM
I have a Web Form that uses a data grid to display data from a webservice. The problem is that I require a very fast response time for the user. The data that come back needs some heavy crunching so I can only display part of the infomation
Then I need to crunch all the sums and update the informa... more >>
Strange firing sequence???
Posted by Assaf at 5/21/2004 4:18:33 AM
Hi all. Can't explain this....
I am using custom control COCA that includes an Image IMAGO. IMAGO raises
the Click event for COCA when clicked. All good so far.
The custom control COCA is created dynamically and lives on a Webform1.
Whenever COCA is clicked, the COCA_Clicked event on Webform... more >>
accessing values from server controls in an aspx page loaded in frame
Posted by asp_quest NO[at]SPAM yahoo.co.in at 5/21/2004 3:41:54 AM
Hi All
I have a web form page (page1.aspx) which has an iframe, and the src
of the iframe is set to another web form page (page2.aspx). I would
like to access the values of the server controls on page2.aspx from
the parent page1.aspx.
Is it possible ?
Thanks in advance
Aspquest... more >>
Newbie question on databinding
Posted by ori NO[at]SPAM bbs-ce.uab.es at 5/21/2004 2:30:17 AM
Hi,
I'm a .Net developer facing his first aspnet development. I'm having
some problems understanding how controls and datasources work, this is
the situation I have:
An aspnet page with some textboxes in it and a datagrid, each textbox
maps a field from a table in a typed dataset and the da... more >>
"Connection must valid and open" error?
Posted by Lauchlan M at 5/21/2004 1:51:46 AM
I get the following error. Apart from the fact that it does not make any
grammatical sense, what would be likely to be causing it?
The background is that nxCmdDeleteErrorLogItem is a delete command with the
SQL
Delete from ErrorLog where LogID = ?
and LogID is a parameter corresponding... more >>
IsInRole still returns false!
Posted by mongphong28 NO[at]SPAM yahoo.com.au at 5/21/2004 12:25:00 AM
Hi all,
Well I reckon I've just read through 200 messages on this subject and
tried every combination of every setting the is and I'm still getting
a return of false on IsInRole. Here's my code:
Dim rolUI_Admin as String
Dim wp As WindowsPrincipal
rolUI_Admin = "DOMAIN/DOM_ACL_Test... more >>
|