all groups > asp.net > april 2005 > threads for monday april 11
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
Data Adapter update
Posted by !!bogus at 4/11/2005 11:46:11 PM
Hi,
This is partial code. I am trying to update the table, but it is not working
and I am not sure why. Can you please help? I don't get any errors, but the
table is not updated. I am sure I am missing something
Thank you
Dim cnNewMember As SqlConnection = New
SqlConnection(Constan... more >>
ASP.NET with MySQL backend?
Posted by Brett at 4/11/2005 11:40:31 PM
I've been developing in CFMX with an SQL Server 2000 backend. For cost
reasons, I want to switch to a different database. I'm also moving away
from CFMX to ASP.NET. There are quite a few hosting services for about
$10/mo that have ASP.NET and MySQL Server along with many other features.
... more >>
Error when attaching multiple files (System.web.mail)
Posted by Brian Farnhill (MCP VB.NET) at 4/11/2005 9:31:03 PM
Hi,
I am having some trouble using the MailMessage object to send an email with
more than one attachment.
I am working on a web based application where a user can submit information,
along with a number of files. The information, including the file is stored
in the database, and an emai... more >>
Retreiving the .Send parameter in ASP.NET
Posted by steve at 4/11/2005 8:50:03 PM
I am using a xmlhttp object from Javascript client side code. I am sending a
XML document e.g. _xmlhttp.send(_xmldoc);
I can't find out how to reference the _xmldoc server side (C# ASP.NET) - I
have searched the request object but to no avail.
--
Any help truly appreciated.
... more >>
Adding emoticon smiley
Posted by Patrick Olurotimi Ige at 4/11/2005 6:05:23 PM
Any ideas on how to add emoticon smileys to a message (Disscussion
Board) using ASP.NET?
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Meta Tags
Posted by Richard at 4/11/2005 5:35:01 PM
I am building a website based on the Community Starter Kit, so the data is
pulled from a SQL Server db, including the keywords for each page's Keyword
meta tag. Basically a property is filled in within the page's Keyword meta
tag with the keywords when the page is called. There is only one pag... more >>
Dynamically created ImageButton with events
Posted by Bruce at 4/11/2005 5:14:03 PM
I have a button on a form that creates multiple ImageButtons; I want each
ImageButton's click event to then redirect to another URL. From doing some
research, I understand this has to do with ImageButtons (and their handlers)
not being re-assigned on postback, but how do I accomplish the above... more >>
Beta 2 Release Date?
Posted by David Hearn at 4/11/2005 4:36:16 PM
Anyone have any idea when it is supposed to be released? I was at the big
ASP.NET Connections convention about 3 weeks ago and the MS people said that
it was in load testing and that it would be released in two to three weeks.
That was back on March 19th. Anyone heard anything different? Just ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how does ASP.NET work
Posted by Secret Squirrel at 4/11/2005 4:03:54 PM
Hi,
1)
So I have a Textbox server side control. I edit the value in the
control client side, in my browser, and postback by clicking a button.
Now on the server-side, the request is handled, and then a response is
sent back to the browser. Let's say server does nothing, so the page is
ju... more >>
List box giving me error
Posted by tshad at 4/11/2005 3:12:28 PM
I am getting an error on my Dropdownlist box if there is nothing in it when
I double click on the item I want to look at. I have the ddl setup to allow
double clicks on the items to look at like so:
Me.StoredSearches.Attributes("ondblClick") =
"__doPostBack('LbxSender','')"
If Req... more >>
Preserving viewstate across multiple pages
Posted by GHQ Dev at 4/11/2005 3:09:02 PM
I have an aspx page (page1.aspx) that post back to another aspx page
(page2.aspx)
“page2.aspx†has a button called back, when the user click on this button it
is supposed to return to “page1.aspxâ€, when the user returns to “page1.aspxâ€
I want to restore the viewstate of the page s... more >>
Check state on webform
Posted by PawelR at 4/11/2005 3:01:11 PM
Hello group,
I'm begginer in ASP.net and my question is very simple.
In my webform I have CheckBox (myCB) and DropDownList (myDDL). I want set
myDDL.Enabled =myCB.Checked and show change without refresh
website (without send formular to server) - run this on client site.
Thx
PawelR
... more >>
ADVANCED data matching?
Posted by HotRod at 4/11/2005 2:15:15 PM
I know I've asked a question like this before but I can't remember what the
final verdict was. When I use to program in VB I could fill a recordset with
the names of cities and then start filtering them as the user typed.
Normally what I would do is populate the first Recordset with the States... more >>
HttpContext.Current.Request.UserHostAddress issue
Posted by Kevin Yu at 4/11/2005 1:47:44 PM
hi all
This problem is odd. in a web service, I try to get the client's IP address
from the HttpContext object, but it seems to fail to get the proper IP, now
in this development environment, we are working on the client site, I don't
really have a clear understanding of their network layout, ... more >>
maxRequestLength and FileUpload
Posted by Jay at 4/11/2005 12:47:39 PM
I have been trying to use maxRequestLength to stop users from uploading
large files. It put this code in the web.config file:
<httpRuntime
maxRequestLength="128" />
--The upload works fine.
--When I select a large file I get the "Page cannot be displayed" message,
which is correct.
... more >>
Deploying .net Web Application to another environment
Posted by mavrick101 at 4/11/2005 12:46:01 PM
I have an application that I developed on one machine(lets call it machine1)
and now I'm trying to move to another machine(machine2). I copied all the
files to the new machine (machine2) and tried to compile the application.
But for some reasons, when I try to view the page in the browser, it... more >>
maxRequestLength and FileUpload
Posted by Jay at 4/11/2005 12:43:53 PM
I have been trying to use maxRequestLength to stop users from uploading
large files. It put this code in the web.config file:
The upload works fine.
When I select a large file I get the "Page cannot be displayed" message,
which is correct.
The problem is that I am trying redirect the us... more >>
Q: populate ddl from stored procedure
Posted by JIM.H. at 4/11/2005 12:30:02 PM
Hello,
I have a stored procedure sp1: “select * fro m myTaleâ€. Now I need to
populate a dropdownlist1, how can you do this in C#, can you give me an
example?
Thanks,
Jim.
... more >>
Method Question?
Posted by SouthSpawn at 4/11/2005 12:21:23 PM
I have the following situation.
I am creating my own user control.
This asp.net user control will have a method called "Read". When this
method is being called from the page. It will read line by line threw a
list dictionary. While reading line by line
it will be setting public properties tha... more >>
vAlign won't work
Posted by VB Programmer at 4/11/2005 12:19:32 PM
I have a bunch of hyperlinks in a table cell and I set the valign to
"middle", but they stay at the top. Any ideas? Here's the html...
Thanks in advance!
<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="300" border="0">
<TR>
<TD><A href="http://www.zzz.com"><IMG height="23" a... more >>
messageboxes in asp .net
Posted by Carlos at 4/11/2005 11:32:17 AM
Hi all,
I am new to asp in general, and I would like to know if
it is good practice just to display a messagebox after a
form validation is performed and the user must be warned
about missing information. I just tried but it is
telling me that the application is not running in UserInteractiv... more >>
using perfmon counter to eliminate viewstate memory issue
Posted by hazz at 4/11/2005 11:30:04 AM
just to see how viewstate may be affecting the performance of an excessive
page reload time, are there certain perfmon counters under ASP.NET
performance object that would be helpful to utilize? thanks, -hazz... more >>
Editing a Deployed ASP.NET
Posted by chuckdfoster at 4/11/2005 11:26:05 AM
One of my co-workers created an ASP.NET project which is located on a web
server on site in our building. I need to change something in this project.
I have access to her PC.
How do I get the project on my PC in order to make the changes? Do I need
to copy her ProjectFolder\ProjectSolution.s... more >>
Curious about VB.Net Syntax
Posted by tshad at 4/11/2005 11:24:08 AM
I was curious if there is some reason why you don't need the "then" in the
if test of VB.Net or is it just ASP.NET.
I just noticed that I don't really need to explicitly put the word "then" as
part of my if statement.
For example:
if a = b
b= 10
end if
works just as well as
... more >>
newbie: HTTP and URIs
Posted by Peter Schmitz at 4/11/2005 11:14:03 AM
Hi,
I'm quite new to this, so please excuse trivial questions:
- Is there any function (int the .net framework) that gives me an
enumeration of all URIs in a http stream (passed as e.g. a string)? If not,
how could I achieve such a thing?
- Really trivial, but to make sure: What does th... more >>
What are you developing ASP.NET pages in?
Posted by Brett at 4/11/2005 11:12:21 AM
Which IDE do you use and why for developing ASP.NET websites?
Some I know of are:
- Visual Web Developer 2005 Express (free)
- ASP.NET Web Matrix 0.6 (free)
- VS.NET 2003
Thanks,
Brett
... more >>
Session ID is in Use?
Posted by xenophon at 4/11/2005 10:27:01 AM
I am using cookieless Sessions. Sometimes an IE user will bookmark my
page, so they will have for example
"http://mysite.com/(aaaaaaaa)/page.aspx" in their bookmarks.
When they return to that bookmark, I want to detect if the Session ID
"aaaaaaaa" is already in use, and if it is then take s... more >>
Image as a link in Datagrid
Posted by SQL_Klovn at 4/11/2005 10:23:05 AM
Hi!
I have been struggeling for quite some time now with a stupid problem which
drives me crazy.
I have Datagrid, where I load some images from a SQL2000 database. This
works fine, but I am not abel to make the image in the datagrid to be a link
to another page.
I have created a Templeate... more >>
scrolling the datagrid
Posted by rodchar at 4/11/2005 10:10:02 AM
hey all,
how do i put the datagrid where it will scroll inside it's own
window(/container, not sure about the term)and not the page?
thanks,
rodchar... more >>
Can't maintain page position
Posted by Carlos at 4/11/2005 10:02:35 AM
Hi all,
I have an asp .net page that has a calculation in the middle of the page.
My problem is that when the user hits the button to calculate, the page
jumps to the top of the page whenever it performs the calculation.
Is there a way to prevent this?
Thanks,
Carlos
... more >>
lack of .NET project file on web server
Posted by keith russell at 4/11/2005 9:58:07 AM
Hi,
I just transferred to another location at my company and am attempting to add some newly created webpages to their existing Windows Server 2003 Web Edition. I am new to ASP.Net, but have been coding ASP pages for a couple of years. The previous web admin apparently wasnt using a project file t... more >>
Newbie IMAGE SRC question
Posted by Rudy at 4/11/2005 9:56:01 AM
Hello all!
I basicly know how to pull a image down with using Image source in HTML. By
telling image src what file name to open. But if I have the file path stored
in a SQL database. such as c:/mypictures/myimagefile.gif, how would I call
that back up, to show that file with out typing the ... more >>
Recommendations for ASP.NET book?
Posted by Brett at 4/11/2005 9:54:57 AM
I'd like any recommendations on a good ASP.NET book which discusses these
topics:
- connecting to SQL Server, MS Access and other databases
- communicating with VB.NET and C#.NET
- Interacting with Javascript
- Session handling - cookies and non cookies, other techniques as well
Most likely... more >>
Export Datagrid to Excel
Posted by C at 4/11/2005 9:31:09 AM
Hi,
I have a dataset which I bind to a datagrid on my ASPX.
I then export the datagrid to Excel and stream the file to the user by
setting the MIME Type etc etc.
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("content-disposition", "attachment;filename=MyFile... more >>
Variables defined in the partial class - ASP.NET 2.0
Posted by fisab at 4/11/2005 9:24:02 AM
I apologise in advance for such a basic question, but I'm hoping someone will
take the time to answer my question.
In my code I define a Dataset :
Partial Class Default_aspx
Dim dsExcel As New DataSet
I fill the Dataset as follows :
Sub btnExcelList_Click(ByVal sender As Object,... more >>
Write DLL
Posted by Angie at 4/11/2005 8:49:04 AM
Hi, all,
I’m newbie in .net, does any expert help me on the following questions? Thanks
I have a DLL file wrote in Visual C++ 6.0 for sending message from one
server to the other server, and I would use asp.net to write the interface
for user. Looks I can’t use “Add reference†to a... more >>
ADO.Net, Transactions, and ASP.Net
Posted by Mythran at 4/11/2005 8:47:24 AM
I just want to know the advantages vs disadvantages of using Component
Services to handle our web application transactions over creating and
passing around a transaction object of our own? When would you use one over
the other, or use one instead of the other?
Thanks :)
Mythran
... more >>
How to get line between DataGrid and Repeater
Posted by Sandy at 4/11/2005 8:45:04 AM
Hello -
I need a line between a datagrid and a repeater control that are inside a
panel. I tried using <hr> but VS keeps removing the "/>" from the end of the
line and then complains that it is not there!!!
Is there some kind of workaround using something else? I also could not
find an... more >>
ArrayList typecasting from binary SQL data
Posted by Jim at 4/11/2005 8:40:01 AM
Is there any way that you can insert an ArrayList into a SQL Server database
as a binary object then retrieve that object and use it as and ArrayList. If
so, how would you do this?... more >>
Problem with Forms Authentication Cookie & Server 2003
Posted by Marty at 4/11/2005 8:28:29 AM
Something strange is happening on my web site since my hosting provider
upgraded to Server 2003 a few weeks ago.
I use forms authentication in my asp.net application, with essentially
the following c# code-behind on my login page:
If (FormsAuthentication.Authenticate(UserName.Text, UserPas... more >>
Problem in ASP.Net File Upload Application
Posted by Pitcairnia at 4/11/2005 8:11:04 AM
The basic purpose of the site is for authenticated users to post event
listings, which often include photographs. The user is faced with a page
where they can insert all of the information about the event in a typical
form with textboxes, drop down lists, etc. On this page there are also 4
... more >>
strange event postback behaviour in dynamically created usercontrol
Posted by Tim_Mac at 4/11/2005 8:01:01 AM
hi,
i have an aspx page which dynamically loads a user control and adds it
to a placeholder. the control is recreated and added to the
placeholder for postbacks as well.
the user control contains a datagrid and some buttons and textboxes.
the button events fire correctly and execute their code... more >>
SmartNavigation weirdness
Posted by jef at 4/11/2005 7:24:47 AM
I'm relying on SmartNavigation to cut down on the "flashing" that
happen when my page refreshes.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.SmartNavigation = True
... more >>
Server control html
Posted by vikram at 4/11/2005 7:21:31 AM
How can i get html generated by a web server control in
the code behid page itself.
i want to store the html in some variable for some
purpose. is it possible.
... more >>
Translate a filename to a URL
Posted by jthornby at 4/11/2005 7:17:03 AM
I'm currently building an application where I need to find the URL within the
current site of a full file path.
Basically what I'm looking for is the opposite transformation from
System.Web.HTTPContext.Current.Server.MapPath.
Jeff... more >>
Script to launch on client with click event
Posted by pmclinn NO[at]SPAM gmail.com at 4/11/2005 7:02:47 AM
The code below is generated by an application that allows you to put a
Microsoft assistant on a webpage. I'm having a heck of a time trying
to get this script to launch on a server side button click though.
I want my user to click on a button to launch this script. I have
tried adding the ob... more >>
Database Design for e-commerce shopping Application
Posted by CAradhana NO[at]SPAM gmail.com at 4/11/2005 6:42:03 AM
I am checking online shopping sites like amazon. Can anybody tell me,
is there any way to get Product database structure. i.e. database
design to store product category and corresponding attributes data.
For all product categories there are different attributes. So how to
design database accor... more >>
Mask Edit control In ASP.NET for phone # or Zip
Posted by CAradhana NO[at]SPAM gmail.com at 4/11/2005 5:16:21 AM
I have a textbox whose text should be of the format "xxx-xxx-xxxx"
i.e if the user enters 1234567890 it should automatically show as
123-456-7890. How do i achieve this in ASP.NET with validations?
... more >>
How to find out a week of the day in C#?
Posted by purkka at 4/11/2005 4:02:01 AM
Hi
I did not find any solution from Internet how to do it. There is a lot of
samples how to retrieve day of the week, but not number of the week.
With rgds
MP... more >>
windows authenticatin
Posted by Nay at 4/11/2005 3:17:03 AM
Hi
If I use windows authentication, is that mean that the time out policy is
the same as the asp.net application machine?
Thanks... more >>
Not able to close Modal Dialog box
Posted by Hitesh at 4/11/2005 3:02:03 AM
Hi,
I am opening an Modal dialog box using the window.Showmodaldialogbox(), and
in that window i am having an aspx form with say one ASP.NET Button control.
i am doing some operation on the click event of the button control on the
server and finally closing the window by using the following ... more >>
Setting default button
Posted by bernardpace NO[at]SPAM yahoo.com at 4/11/2005 2:26:02 AM
Hi,
I have a page with 2 textboxes(Name and Surname) and two
buttons(Submit and Reset).
Now I have set the tab for them
1 Name
2 Surname
3 Submit
4 Reset
Now I am entering the name, entering the surname and while I am on the
surname I press Enter and the Reset button is being pressed.
... more >>
beginner question: local IP-Address
Posted by Carlo Marchesoni at 4/11/2005 1:04:03 AM
I looked in the help but I cannot find the method to retrieve the IP-Address
of the local machine in the code behind (not the client machine, wich I can
retrieve with Request.UserHostAddress, but the IP-Address of the server where
the code behind is running).
I checked IPAddress Class but thi... more >>
Control.visible = true sets the visibility of a control to false
Posted by Nick Stansbury at 4/11/2005 12:00:00 AM
Hi,
I have a loop running on Page_PreRender that sets a number of controls
to invisible based on a set of criteria. Before I do this however, I set all
of the drop down lists to be visible with a straightforward recursive loop.
Now - I'm really muddled by this - why does this:
If TypeOf... more >>
Inheritance
Posted by Chris Kennedy at 4/11/2005 12:00:00 AM
What's the difference between importing a namespaces and inheriting.
... more >>
tell other thread to execute method
Posted by roni at 4/11/2005 12:00:00 AM
hi.
i have applcation in net.
in that application i have 3 threads.
1- main thread with message loop and form
2. thread with message loop and form
3. thread with message loop and form
now ,i want thread 2 to tell thread 3 to exceute method in async way :
how can i do that ?
if i ... more >>
Navigate Back with code
Posted by Magnus Blomberg at 4/11/2005 12:00:00 AM
Hello!
Is it a way to navigate backwards with javascript (same as clicking the Back
button in the broswer)?
Regards Magnus
... more >>
C# ASP.NET & Impersonation
Posted by Olivier Matrot at 4/11/2005 12:00:00 AM
I need to impersonate in ASP.NET in order to print a document to a printer.
The guidelines in http://support.microsoft.com/kb/306158/EN-US/ do not tell
about loading the user profile (LoadUserProfile).
Where should this call be inserted ?
TIA.
... more >>
CSS and scrolling
Posted by John at 4/11/2005 12:00:00 AM
Hi all,
Is it possible for me to use me stylesheet to set things like border,
colour, etc... of my scrollbars? If so, how do I go about doing it?
If not, any hints for programmatically doing it?
Regards
John.
... more >>
Giving file names to response streams, possible?
Posted by Paul L at 4/11/2005 12:00:00 AM
Hi, I have some code which gets a Word document from a database, sets the
Response stream's ContentType to application/msword, and then outputs the
contents of the document to the Response stream. All that works fine, I can
open the document fine in Internet Explorer. However if I try to save t... more >>
code within control declaration
Posted by Daves at 4/11/2005 12:00:00 AM
I'd like to have a control visible/not visible based on some value eg:
<asp:Button ID="Button1" runat="server" Text="Change" Visible=<%
Membership.GetUser("david").IsOnline >% />
doesn't seem to work, do I maybe have to set the Visible property from
codebehind?
... more >>
Grid Example on ASP.NET
Posted by Rik at 4/11/2005 12:00:00 AM
Hi,
I am new to ASP.NET, could any body guide me about that?
I have only one Table which contents I want to display on the ASP.NET page,
and upon doble clicking on grid item, I just want to execute some background
code.
My questions are:-
1. What Grid I will be using for that?
2. Is i... more >>
Button created with dim new button click event is not working
Posted by gce at 4/11/2005 12:00:00 AM
Allthough button2 created with the designer works 100%. The button I created
(inside the table) with dim button1 as new button doesn't give me a click
event. Please help.
Public Class WebForm8
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This ca... more >>
How to load an URL? Thanks.
Posted by Shapper at 4/11/2005 12:00:00 AM
Hello,
I have this code to load an URL:
<script runat="server">
Sub goToPage(sender As Object, e As System.EventArgs)
Response.Redirect("page.aspx")
End Sub
</script>
Basically what I want is instead of loading to page.aspx the script
should to any URL which I send in the argument... more >>
Datagrid checkbox question
Posted by Hennie at 4/11/2005 12:00:00 AM
How can I use a checkbox to trigger an add / delete procedure on a datagrid?
If the checkbox is checked a field in the datagrid row and a session id must
be saved to another table.
The problem is the datagrid row is not selected first, so how do I get the
field value from the row the checkbo... more >>
Visual Studio forgets about variable declarations
Posted by Nick Stansbury at 4/11/2005 12:00:00 AM
Hi,
I'm not sure where to post this - but I'll try here. I'm encountering
some really weird behaviour in visual studio and I can't work out where it
is coming from.
In various files, seemingly at random, the compiler seems to "forget" about
references declared in the code behind file. S... more >>
How to show a Real Player or Media Player on my Web page?
Posted by cyshao at 4/11/2005 12:00:00 AM
How to show a Real Player or Media Player on my Web page?
I want my web page to show a vedio control which can play records.
How can I do that?
Thanks
Charles Shao
... more >>
Server.Transfer problem
Posted by John at 4/11/2005 12:00:00 AM
Hi all,
In one of my user controls, i perform a Server.Transfer with a false. The
reason is to re-navigate to a page with different settings then different
controls are re-loaded.
The problem is that as soon as the Server.Transfer is issued, it is placed
permanently into the Action of my... more >>
How can we add a field to CreateUserWizar
Posted by ad at 4/11/2005 12:00:00 AM
I add a field in into Aspnet_Users tables.
How can I add this field to CreateUserWizard?
... more >>
securing dll
Posted by ven at 4/11/2005 12:00:00 AM
hello
i wanna ask for securing application dll in asp.net
in framework 1.1 i have to use dotfuscator to simply and poor secure of my
dll
so it will be better compiler in framework 2.0 or some tools to secure dlls
or i have to use poor dotfuscator ?
PAT
... more >>
Can I start my application with IIS in the VS2005 Express?
Posted by ad at 4/11/2005 12:00:00 AM
When I run my application in VS2005 Express, it will use VWD Web Server to
run my application.
The link css and image can't show will in the VWD Web Server.
Can I start my application with IIS in the VWD?
... more >>
About ItemTemplate problem
Posted by Alan Ho at 4/11/2005 12:00:00 AM
I would like to know how to change the "Item" to other name...
e.g. in HTML Code
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Item") %>
</ItemTemplate>
I wanna to change the "Item" to "Name" , after i press asp:Button in
webfrom.....
how can i do that?
Thanks
... more >>
System.IO: best approach for clearing a DIR of all files except .CSV
Posted by chris yoker via DotNetMonster.com at 4/11/2005 12:00:00 AM
hiya,
I have a DIR that should only accept .CSV files..I haven't found a way to
do this prorgramatically.
ATM, I:
1) obtain an array of all the files that contain a .CSV extension.
2) move these files to another dir.
I check to see if there are any NON-CSV files in the dir by the followi... more >>
RadioButton Question
Posted by C NO[at]SPAM rLoS at 4/11/2005 12:00:00 AM
Dear All,
I use a set of RadioButtons for users to select things. However, when a
button is pressed for submission, the state of the RadioButtons return to
their default states (due to Refresh of the form prior to every processing I
suppose) and I cant get the user option. What can I do?
... more >>
|