all groups > asp.net > february 2005 > threads for wednesday february 23
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
Get selected value of dropdown from panel
Posted by Andy Sutorius at 2/23/2005 11:02:24 PM
Hi,
I have 4 panels, each panel has a dropdown and a "next" button. I would like
to get the selected value of the dropdown after the next button is clicked.
I thought I could use the following (ddlChooseEmail.SelectedValue) to grab
the value but it does not work. Is there something special abo... more >>
check file transfer complete
Posted by Grey at 2/23/2005 10:57:55 PM
i have used asp.net to transfer a file from one server to another . i use
the system.io.file.copy to copy the file. But i want to know that how can
assure the file is transfer complete?? Do i need to check the file is exist
in the target location??? any another smarter way to do that??
million... more >>
from test to production
Posted by ericvdb at 2/23/2005 10:26:04 PM
Hi all,
how are you guys handling the deployment and settings from a test server to
a production server?
In particular, if I have a db connection in my web.config pointing to my
test db server, do i need to modify it manualy on the productionserver once
the site has been deployed?
I have t... more >>
Render vs RenderContents
Posted by Alex Nitulescu at 2/23/2005 9:11:17 PM
Hi.
What's the difference between the Render method (overridden when creating
custom controls) and the RenderContents method.... (overridden when creating
custom controls) ?
From MSDN:
Render - Sends server control content to a provided HtmlTextWriter object,
which writes the content... more >>
Get selected value of dropdown from panel
Posted by Andy Sutorius at 2/23/2005 8:48:17 PM
Hi,
I have 4 panels, each panel has a dropdown and a "next" button. I would like
to get the selected value of the dropdown after the next button is clicked.
I thought I could use the following (ddlChooseEmail.SelectedValue) to grab
the value but it does not work. Is there something special abo... more >>
Custom HtmlInputFile
Posted by Augusto Cesar via DotNetMonster.com at 2/23/2005 8:38:43 PM
Hi, I want to customize the HtmlInputFile. I wanna something like an image
button to play the "browse" button hole and hide the textbox. Is that
possible?
I also have tried to hide an HtmlInputFile in my page and added some
javascript code to a button to fire the click() event of the HtmlIn... more >>
Passing Security
Posted by Charles A. Lackman at 2/23/2005 7:45:36 PM
Hello,
I have a web site that is selling a product. When the visitor agrees to buy
the product they are directed to a credit card processing company who debits
their card. Once the authorization is successful the credit card processing
company allows me to give them a link on the receipt ... more >>
Loop through a Plain Radio Button in ASP.NET
Posted by Brian at 2/23/2005 6:58:38 PM
I have a list of plain HTML radio buttons that I want to be able to
loop through, get the values from them and insert them into a db. each
one should be a separate record... Can anyone please give me some kind
of example on how to do this???? I am doing this in asp.net VB.
Please let me know i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Byval vs. byref
Posted by Iams at 2/23/2005 6:43:01 PM
Forgive my newbie question, but I guess I don't understand passing
parameters, in my case an array.
I have a procedure which calls another procedure, passing an array. The new
procedure creates the array, but when it returns to the original procedure,
the array is lost, along with all the par... more >>
How do I know when a user control is loaded for the first time?
Posted by Alan Silver at 2/23/2005 6:33:39 PM
Hello,
I'm having rather a problem with user control. It is a fairly simple
affair (see my other threads for more details) that shows a date and
time in five drop down controls.
I had private member variables for the day, month, year, hour and
minute, and the public property that sets the D... more >>
Using stylesheets
Posted by Iams at 2/23/2005 6:03:06 PM
How do I set up in a style sheet what format I want to use for various
controls, such as a drop down list? The format is not following the body
font, nor tables (which the ddl's are in), nor even a grid, which some of
them are in.
Thanks.
... more >>
writing a file
Posted by Victor Rodriguez at 2/23/2005 5:41:54 PM
Is there a way to write a file from:
Dim datafile As System.IO.Stream =
Me.GetType().Assembly.GetManifestResourceStream("myassembly.filename.dbf")
To a physical file on the hard drive like "C:\filename.dbf"?
thanks in advance...
Victor
... more >>
javascript in a repeater control
Posted by Jack at 2/23/2005 4:43:02 PM
Hi,
I have a button and a textbox in a repeater control. I would like to use
the ID of the textbox in the onclick event of the button. How can I get the
ID of the textbox when it is created and write it into the button's onclick
property?
Thanks in advance, J.... more >>
Add events to html table
Posted by JJ at 2/23/2005 3:53:03 PM
Hi,
I was wondering is it possible to create my own html table that has two
features.
1. it is databound and 2. create my own events for it?
The datagrid is nice and I do use it but I need to be able to customize it
for other events to occur with it.
Thanks,
JJ ... more >>
Non-web version of System.Web.Caching.Cache
Posted by Steve W at 2/23/2005 3:18:57 PM
I have an ASP.NET app that calls into some VB.NET components. It passes in
the current application's cache (HttpContext.Current.Cache).
These VB.NET components also get called by a non-ASP.NET application (in
this case a VB.NET windows service). I'd like to create something like the
cache in... more >>
Operation must use an updateable query
Posted by S. Han at 2/23/2005 2:45:33 PM
I'm getting an "Operation must use an updateable query" error from my
asp.net page. The strange part is that it doesn't happen in Debug mode
within the IDE (we're using Whidbey Beta 2), but happens when you deploy the
pages to the site. Any pointers as to what to look for would be appreciated.... more >>
Null not support by .net?
Posted by Sam at 2/23/2005 2:39:26 PM
I want to control textbox where if textbox is not empty process ADO.NET
If TextBox_Account.Text is not null then
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim cmd As New SqlCommand()
cmd.CommandText = "Select * from Info where ID = " &
... more >>
Refresh Not Happening
Posted by Wayne Wengert at 2/23/2005 2:30:56 PM
I have an aspx page on which I trap a change in the selected radiobutton in
a radiobuttonlist. In that event code, I change the visibility of some
controls based on what button was selected. The change to the objects made
in that routine does not take effect until the user clicks on another
cont... more >>
Key/Value Pairs - data types and validation
Posted by heromull at 2/23/2005 2:30:33 PM
Can someone point me to some resources or help out with the design for
this issue?
I'm using asp.net 1.1, C# and SQL Server. I need to persist about 30
values for each user. These values do not really relate to any of the
other data.
So I'd like to place all these "misc" values in single db... more >>
DataList, Repeater, or Data Grid?
Posted by .Net Sports at 2/23/2005 2:25:03 PM
I am resurrecting an old script from a previous programmer, and want to
migrate it over to asp.net from classic asp. Tho there are other
peripheral parts of the script (that really have no bearing on the
core, in which I will explain), the main core is the concern. I have a
daily feed from a h... more >>
Problem Opening a Solution in VS.Net
Posted by Kirk at 2/23/2005 2:21:31 PM
Hi there. I'm new to .Net development and have inherited a web project
built using .Net and C#. I have a copy of the project on my laptop
machine and can open it, make changes, compile fine, test, etc... The
previous developer had VS.Net installed on the web server that the
application is hoste... more >>
Parsing Email bounce back tex
Posted by Darren Clark at 2/23/2005 2:07:40 PM
HI,
I am after some assistance in finding what is the best way to parse through
bounce back text......
because each server is different i cant really depend on Line x being the
line where the error message is...
the only reliable way i can think of it so search for the error message by
n... more >>
Event OnClick on datarow in datagrid in ASP.NET
Posted by at 2/23/2005 2:07:25 PM
Hi, (C#, ASP.NET)
I need to invoke server procedure when user click anywhere on data row in
datagrid (datagrid has 6 columns). I need also know on which row was
clicked, especially the best parametr, which I need know is
e.Item.ItemDataSet like in procedure ItemCreate(); because then I need wo... more >>
Calling Global shared sub not working
Posted by tshad at 2/23/2005 2:05:17 PM
I just put this together from O'Reillys book (with much of the code stripped
out).
Global.asax:
******************************************
<%@ Application Language="VB" %>
<script runat="server">
public shared sub WriteFile(strText as string)
response.write("<br>inside WriteFile ... more >>
Setting event handler during PostBackEvent
Posted by Russell Smallwood at 2/23/2005 1:47:23 PM
Hello all,
Why can't I wire up an event during the "Raise PostBackEvent" stage of a
postback?
Just in case this is the wrong question, the situation:
deep in the bowls of some code-behind loop:
ImageButton A is created (with ID "A"). ImageButton A's click event is
wired to EventHandl... more >>
Getting Text from DataGridItem object directly
Posted by tshad at 2/23/2005 1:39:28 PM
Is there a way to get the text from control, without actually defining it?
For example, I have a DataGrid that has fields that are either Labels or
Textboxes, depending on whether they are in edit mode or not.
Dim answer as String
Dim lblAnswer as Label = CType(oDataGridItem.FindControl("... more >>
Using ASP to create a dynamic XML document
Posted by Jon Westmore at 2/23/2005 1:33:16 PM
I've been trying to use a combination of ASP and Infopath to display a
dynamic form for users to fill out. I have some ASP code that generates a
dynamic XML document and the document points to the Infopath application to
display the output. However, Internet Explorer is making slight
modif... more >>
Forgotten Password Reset
Posted by Alfred E. Newman at 2/23/2005 1:32:45 PM
I want to enable visitors who have forgotten their password to request a new
one. I have seen that some sites simply require users to enter their e-mail
address. Then the server-side logic sends the password (perhaps a new
temporary one) to the e-mail address if it is a valid address in the db... more >>
Using ASP to Generate an XML Document
Posted by Jon Westmore at 2/23/2005 1:21:37 PM
I'm using an ASP page to dynamically generate an XML document using a data
source. I was thinking the concept would be similar to dynamically creating
HTML but I'm running into an issue. Here is my source code:
<%Response.ContentType = "text/xml"
Response.CharSet=""
Dim Connect ,RS, Query... more >>
must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be put in viewstate.
Posted by jeffpriz NO[at]SPAM yahoo.com at 2/23/2005 1:21:25 PM
I'm having trouble.. I created a small class that I pass to my Pages,
and I want to put that class into Viewstate..
I do:
Viewstate.add("thisVar", myClassVariable)
and i receive the lovely message that:
"my class" must be marked as Serializable or have a TypeConverter other
than Referenc... more >>
ODBC error
Posted by Brad at 2/23/2005 1:19:48 PM
I am working on my first ASP .Net page and I need access to data, however I
am getting the error: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data
source name not found and no default driver specified
What would cause this? Everything runs fine from VB .Net windows
applications that I h... more >>
Displaying a aspx page within a page
Posted by BoltonWolf at 2/23/2005 1:01:02 PM
Hi,
I was wondering if someone could give me a bit of advice on achiving
something.
I have a page with a panel on it. Is it possible to then load content
into the panel from a second aspx page.
The web site I am writing is a reporting tool for a database, and I
don't want to write a comp... more >>
tabcontrol
Posted by Jennyfer J Barco at 2/23/2005 1:00:25 PM
Hello, I have a question.
How do I create a tab control in .NET? I don't see the control in the
toolbox
Thanks in advance
Jennyfer
... more >>
ASP Redirecting
Posted by ChrisN at 2/23/2005 12:59:06 PM
Hi there,
Which way of calling pages from within your application is better (ie faster
or more efficient)?
1. "~/users/mypage.aspx?"
2. "http://www.mysite.com/users/mypage.aspx"
Perhaps someone knows of an article or something.
Thanks!
Chris.
... more >>
Best Free asp.net hosting
Posted by kode at 2/23/2005 12:53:53 PM
Hi people, anybody can reccomend me a good free server that supports
asp.net?
thanks in advance
... more >>
Button click and Page refresh issue.
Posted by Lenny Shprekher at 2/23/2005 12:40:09 PM
I am using regular server site ASP.NET button to execute function. Works
fine, issue is that when I call page-refresh on IE after click I done it is
calling same event again.
Could anybody suggest how to prevent this behavior?
Thanks,
Leonid.
... more >>
asp.net 2 master page event problem
Posted by PCH at 2/23/2005 12:33:31 PM
Hello all,
Been messing the the dec CTP of .net 2
Heres the situation:
I have a master page with the contents control and a button control (call it
btnRefresh).
I have a child page that uses the master.
I have an abstract class that inherits the page class. The child page
inherits ... more >>
Can't get Global.asax to execute Sub
Posted by tshad at 2/23/2005 12:11:00 PM
I have an example I copied from "programming asp.net" (o'reilly) and can't
seem to get the Sub (writefile) to execute. It displays all the
response.write lines that are called directly, but not any of the
response.write lines from inside the sub.
*******************************************
<... more >>
VS2003 Suddenly Stops Seeing Localhost
Posted by IT Drone at 2/23/2005 12:07:25 PM
I'm running Windows Server 2003, IIS 6.0, and VS 2003. I have an
ASP.NET project I previously created, and went to open it back up to
make modifications. Now VS won't open http://localhost
When I try to open that location, it just goes to "My Documents"
I haven't changed anything on the ... more >>
Question about querystring
Posted by jenniferhu46 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 2/23/2005 11:37:45 AM
In my restaurant.aspx, I have a 2 dropdownlists (ddlState, ddlCity)
and a button (btnFindRestaurants). The 2 dropdownlist has the first
item as "--Choose--"
After user selected a state and a city and clicked the
btnfindrestaruants button, it should redirect to storelist.aspx page
by using qu... more >>
Help: Custom Forms Authentication User Object (iPrincipal?)
Posted by CodeCowboy at 2/23/2005 11:27:59 AM
I'm sure some of you have done this before and I've been perusing
through the forum trying to find some uncomplicated solution.
I am trying to extend the existing user.identity object.
I would like to add a bit of extra information to it such as:
User.Identity.FullName
User.Identity.Email... more >>
Display DB Stored Image on Web Form
Posted by C CORDON at 2/23/2005 11:25:26 AM
I have read the table field information into a Byte(), so...now how can I
display that picture in a specific place in a web form where there is more
information...I cannot use just Response.Write that will place the pucture
at the top.
THANKS
... more >>
Strange RangeValidator behavior
Posted by BobRoyAce at 2/23/2005 11:19:54 AM
I have a RangeValidator control on a page that is supposed to make sure that
the user does not enter a value outside of the range 0-nn.nn, where nn.nn is
some monetary value. For example, let's say I don't want to allow users to
enter values greater than 500.00. The strange behavior I am seeing i... more >>
javascript or asp.net
Posted by () at 2/23/2005 11:16:15 AM
guys i have a asp.net form with a ton of dropdown boxes and i need to accomplish two things on the client with no post back to server.
im also thinking that my answer lies in using javascript, but i wanted to check with the experts on this forum first.
now ive already done this using all asp.net s... more >>
htmldecode problem
Posted by aa at 2/23/2005 11:08:49 AM
I have a text like "addads asdasd http://microsoft.com asdasdsad" and I =
want=20
in the page this text wold be=20
"addads asdasd http://microsoft.com asdasdsad"
picture like simple text, but the web link=20
would be like href, but not all text, just a http://microsoft.com... more >>
Help in hosting an asp.net application
Posted by GMK at 2/23/2005 11:03:06 AM
hi all
i don't know if here is the right place to ask such a question but i don't
know where to ask it and i'm used to get all the help i need from this
NewsGroup.
Anyway i have built a complete asp.net appilcation, now i want
to host it online but the problem is that i don't know how to create... more >>
Display DB Stored Image
Posted by C CORDON at 2/23/2005 10:44:23 AM
I have an image stored in a SQL DB how can I display it in a control on a
Windows Form?
TIA!
... more >>
Frameset Issue
Posted by JJ at 2/23/2005 10:31:04 AM
Hi,
I am using a frameset in an aspx page, like so:
<Frameset id="Frameset" BORDER="0" ROWS="350,3%" HEIGHT="100%"
FRAMEBORDER="0" FRAMESPACING="0"
runat="server">
<frame id="srcFrame" SRC="repheader.aspx" frameborder="0" runat="server" />
<frame id="docFrame" name="docFrame"... more >>
Read session data of all users
Posted by Oleg Ogurok at 2/23/2005 10:21:42 AM
Hi all,
Is there a way to read other people's session variables?
I understand it makes sense that session state is on per-user basis, but
still...
Is there a way to get a collection of all current HttpSessionState objects
on the server, or at least get a reference to a HttpSessionState obje... more >>
Path 'OPTIONS' is forbidden
Posted by Graham at 2/23/2005 10:12:01 AM
Hi,
One of our clients sites has a files directory that stores different types
of files: doc, pdf, xls.
Every now and again we get an error email with the following info:
PATH: /files/Timeline_of_Deception.doc
PLATFORM: Unknown
BROWSER: Unknown 0.0
COOKIES: False
EXCEPTIONS:
ME... more >>
asp:textbox not display in IE
Posted by ajiwu NO[at]SPAM yahoo.com at 2/23/2005 10:10:29 AM
I have .net code <asp:textbox id="txtUser" runat="server"
cssclass="field-125"></asp:textbox>
It's not display on my local system which running Winxp with .net
framework 1.1 installed.
It's running good on the server. I can not figure out why the textbox
is not showup.
In this code <asp:... more >>
Mail problem
Posted by Alessandro at 2/23/2005 10:09:31 AM
HI !
I want to use Notification for mail :
i use mail.Headers.Add("Disposition-Notification-To",mail@mail.it"), but
ity doesn't work !
I have always an error when i try to send message !
... more >>
position property for textbox does not exist?
Posted by Carlos at 2/23/2005 9:48:38 AM
Hi all,
I am designing a page with radiobuttons and textboxes using the flowlayout.
However, I notice that the position property does not exist for these
controls. How can I align these controls at the position that I would want
to?
Thanks,
Carlos.
... more >>
Watermarks in tables
Posted by Mark Rae at 2/23/2005 8:51:44 AM
Hi,
Is it possible to have a watermark / background image on an individual table
row either in raw HTML or with the <asp:Table> control?
I know it is possible to change the background colour in a row by row basis,
but I wondered if it was also possible to do the same with an image?
Just... more >>
Buttons and the textbox for none IE Broweser
Posted by UGH at 2/23/2005 8:43:25 AM
Buttons and the textbox is set to the correct width and height using IE but
not in Mozilla, Firefox, or Netscape. How can I force it to use the width
and height?
... more >>
open html file from database to new browser
Posted by Puhonien at 2/23/2005 8:03:13 AM
I have saved HTML files in the database (stored as image/binary datatype). I
need to pull them back and open into a new browser. What's the best way to
do this?... more >>
Is it Possible to assign a dynamic ID to a RadiobuttonList??????
Posted by Brian at 2/23/2005 7:59:28 AM
I have a datagrid that is listing a bunch of questions from my DB.. I
am creating a radiobuttonlist for each question to give me a yes or no
answer. I would like to use the "QuestionCode" column from that
database to assign the radiobuttonlist ID. Is this possible??????
... more >>
Number Formatting Question C#
Posted by probashi at 2/23/2005 7:32:00 AM
Hi
I want to format numbers with leading zeros
Like:
Input output
0 00
1 01
2 02
10 10
11 11
Thanks
... more >>
Oracle Simultaneous Sessions Problem
Posted by pmclinn at 2/23/2005 6:22:18 AM
I have created a aspx page that requires me to pull data from multiple
tables in an Oracle DB. The data is pulled down and then stored in
local variables, and then closed and disposed. I have implimented an
error handling to prevent sessions from remaining open and yet I'm
still noticing that ... more >>
How can i call the exe file in webapp
Posted by Raghu Raman at 2/23/2005 6:07:32 AM
Hi,
I want to run the calculator.exe file from my c# webapp.I did this by
using the hyperlink control and the location of the exe is the navigate
url and is working nice.
But it gives the dialog box telling ,'one or more files can harm your
computer ...' since it is opening on the IE. i... more >>
Writing .NET Classes
Posted by Jen at 2/23/2005 5:56:22 AM
I am fairly new to .NET and was wondering if someone
could point me to a tutorial/overview of writing custom
classes? Thank you.... more >>
Is there a simpler way (trick) to create composite controls ?
Posted by Alex Nitulescu at 2/23/2005 3:23:44 AM
Hi. Because I'm a beginner in creating controls, I spent more than two *&^#$
hours to create this "login" as a custom control and to make it work
properly:
_________________________________________________________________________________________________________
Imports System.ComponentModel
... more >>
Form not submitting
Posted by John at 2/23/2005 1:11:43 AM
Hi
When I try to submit an asp webform by clicking on submit button, nothing
happens and the button click event does not seem to be triggered. I have a
compare validator and a regular expression validator but these two seem to
have valid values and do not display the warning messages.
What ... more >>
Databinding and empty rows
Posted by Anders K. Jacobsen [DK] at 2/23/2005 12:46:01 AM
Im developing an ASP.NET application. So far im pretty pleased. Databinding
is really nice but also gives me som e problems / design issues.
Lets say I want to bind a list of contries to a DropDownList in a search
form. Now I have a problem because I also want to let the user be able to
sel... more >>
|