all groups > asp.net > may 2004 > threads for tuesday may 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 31
Settting focus
Posted by IMRAN SAROIA at 5/11/2004 11:42:29 PM
Hi!
Which command is used to setfocus to control in Windows and Web Application
in Dot Net.
... more >>
ImageButton and server tags
Posted by Julie at 5/11/2004 11:03:58 PM
I've got one that I've spent all to much time on:
I have an aspx page that includes the following (code behind is C#):
<asp:Imagebutton runat="server" ImageUrl='<%# Application["AppPath"] +
"/images/up.gif" %>' />
When rendered, the image src tag isn't there (at all!).
If I change to:
... more >>
Shared Connection Class
Posted by Simon Harris at 5/11/2004 10:30:16 PM
Hi All,
I'm new to ASP.Net, I have a basic page that connects to and displays data
from an Access DB. I'd like to place the connection in a user class library,
and be able to open the connection, passing variables to my class (Like SQL
Server name, Database name ...etc)
Can anyone point me ... more >>
Frames Navigation Help, Please.
Posted by Martin Schmid at 5/11/2004 10:02:46 PM
I've got a page w/ frames... one is a navigation frame with some
ImageButtons. In the navigation frame, there is also a drop-down list. I
need to redirect the mainFrame based on which ImageButton is selected, and
which value is selected in the drop-down list.
I.e., each ImageButton is a th... more >>
Best way to create multi-page "wizards'
Posted by news.microsoft.com at 5/11/2004 9:49:07 PM
I am moving a classic ASP app to ASP.NET (c#). It is a series of pages that
collect data, validtae the data and move to the next form. I used
response.redirect in the classic ASP app but want to know what options I
have for an ASP.NET app.
I could use pannels, but that would require a rather l... more >>
asp.net error
Posted by Vinnie at 5/11/2004 8:45:04 PM
From Hosting Reseller http://www.technolojik.net/windows.htm Has anyone
seen this before.
Looks as tough ASP.NET was not installed correctly.
Thanks
Server Error in '/news' Application.
----------------------------------------------------------------------------
----
Could not find... more >>
Text boxes and read-only text
Posted by Julie at 5/11/2004 8:14:07 PM
I'm wondering what standard/best practices are for the following scenario:
I have a page representing several fields for stored data. If the user has
sufficient access privileges, the page is rendered w/ read/write text boxes and
they can edit the various fields as needed. However, if the use... more >>
No value given for one or more required parameters
Posted by William Gower at 5/11/2004 7:36:16 PM
I am getting this error on a line that fills the data adapter object with a
dataset
I have a SQL string that holds the sql statement
Dim da As New System.Data.OleDb.OleDbDataAdapter(strSQL,
strConnection)
da.Fill(ds, "requests")
DGRequ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Streaming ZIPPED files
Posted by Mark Kelly at 5/11/2004 7:29:45 PM
Hi (apologies for the xpost, but im not sure where this fits in),
I have recently had a site demostrated to me (a newsgroup binaries archive
site) that allows a user to select multiple files, then download the
selected files combined as one zip. At first i thought this was nothing
special, un... more >>
??? - No Postback When Clicking on Folder in Treeview
Posted by George M. at 5/11/2004 7:18:42 PM
I'm working with the treeview control on an ASP.NET page (written in =
C#), and I have one built the looks something like:
Root
|_Category1
|_Site1
|_Report1
|_Report2
|_Site2
|_Report3
|_Report4
|_Category2
... more >>
FindControl Method no longer working...
Posted by Karen at 5/11/2004 6:01:51 PM
Hi,
We have a datagrid with a templated column. This column contains a
textbox. Up until yestday this code (below) worked fine.
str_note =
CType(DetailsGrid.Items(mintRowsLoop).FindControl("txtNote"),
TextBox).Text()
If mintRowsLoop = 0 (first row in datagrid) the above code doesn't
ret... more >>
error in machine.config
Posted by Logan McKinley at 5/11/2004 6:00:18 PM
I receive the following error about once ever thirty minutes.
The error is
============================================================================
=
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please re... more >>
What process is ASP.NET on a Win2K3 Web Server??
Posted by Eidolon at 5/11/2004 5:29:47 PM
We have a Win2K3 Web Edition server. I have the remote components installed
and am trying to attach to debug, but i cant find what process to attach to.
On Win2K its aspnet_wp.exe. That process doesnt even exist on the 2K3 box
though. I tried inetinfo.exe and w3wp.exe, both to no avail.
Thanks... more >>
how do you get a value...
Posted by Lerp at 5/11/2004 5:21:55 PM
hi,
How do you get a value, say a clientname, from a CLIENT table in a dataset
based on the clientid value in another table called ORDER through a data
relation called 'mydatarelation'? A CLIENT may have one or more ORDERS.
I have not been able to find any examples on this, can anybody help... more >>
Need CSV Parser
Posted by Mike Bridge at 5/11/2004 5:11:29 PM
Can anyone suggest a good CSV parser that I can use from C#?
I've been using the Ostermiller CSVParser in Java, which is great, but
I can't find a full-featured C# one yet....
I need one that:
- Works for Mac, Windows and Unix end-of-line characters
- Handles fields with end-of-line charac... more >>
Regular Expression \w
Posted by Jim Heavey at 5/11/2004 4:33:05 PM
I see that I can use \w which is the same as [a-bA-Z_0-9], but does this
mean it allows spaces? What is the "_" do in that pattern?... more >>
Persisting form data with one to many relationship
Posted by Diane Yocom at 5/11/2004 3:46:44 PM
I'm still very new to ASP.Net, so wanted to get some advice on how to solve
the following design problem (sorry my explanation is so long):
I'm developing an ASP.Net intranet app (using VB.Net for my business
objects) that will allow my users (max of about 25) to enter information
about famili... more >>
Create column in a Datagrid
Posted by ruca at 5/11/2004 3:46:05 PM
Hi,
I have two different questions to ask:
QUESTION 1:
Can I create dinamically a column in a datagrid? How?
I have a datagrid that must have 5 columns, but in some very special cases I
have to add another column. How can I do this in code?
QUESTION 2:
When I Debug my Web application, t... more >>
How to use connection pool in asp.net?
Posted by KeyL at 5/11/2004 3:39:56 PM
Smart Clients Error
Posted by André Almeida Maldonado at 5/11/2004 3:31:56 PM
Huy Guys.. In my aspx page I have a smart client that is called from a
hyperlink:
asp:HyperLink id="HyperLink1" style="Z-INDEX: 101; LEFT: 12px; POSITION:
absolute; TOP: 16px" runat="server"
NavigateUrl="SmartClients/obj/Debug/SmartClients.exe">HyperLink
But when I click on the hyperlink, a... more >>
Assembly probing does not work
Posted by Pavils Jurjans at 5/11/2004 3:13:31 PM
Hello,
This is my test.aspx page:
<%@ Page Language="C#" enableSessionState="true" inherits="MyPage"%>
This is code in CodeBehind.cs:
using System;
public class MyPage : System.Web.UI.Page
{
public void Page_Load(Object sender, EventArgs e)
{
}
protected override void Render(... more >>
how to catch the "YES" or "NO" from the confirm box
Posted by Grey at 5/11/2004 3:09:15 PM
i use "this.Page.RegisterStartupScript()" to display the client-side =
script of confirmation box ...but I want to know that how can I know the =
user was clicked "YES" or "NO" as I need to do different action for =
these two choices.=20
Million Thanks..... more >>
iframe source on the fly
Posted by Tim H at 5/11/2004 3:05:38 PM
Hey there. In my app, I was rendering my report in PDF, then creating the
html for my iframe object and then doing a response.write and writing that
text. However, I need to place the iframe object before I render the
report. How can I set the iframe's src property in code behind?
Thanks agai... more >>
Pressing ENTER does not invoke the only SUBMIT button.
Posted by Neo at 5/11/2004 3:05:17 PM
I think the ENTER key worked this way (in the classic ASP days):
When the end user presss ENTER, IE will submit the page by 'simulating'
a click on the first submit button (or image).
On the server side, I will get Len(Request.Form("btnDoSave")) > 0 if
that first button is named btnDoSave.... more >>
dynamic user control event handler and page communication
Posted by martinthrelly NO[at]SPAM yahoo-dot-com.no-spam.invalid at 5/11/2004 3:02:47 PM
my user control (usercontrol1.ascx) is added dynamically into a
placeholder on page_load. within usercontrol1.ascx there is a button.
When a user presses this button I want the page to reload with a
different user control (usercontrol2.ascx)
if i add the button to the main page I can do this w... more >>
Can't update datarow
Posted by CaptRR at 5/11/2004 2:57:37 PM
I think this is the right group to post to, so here goes.
My problem is this, I cannot update the datarow to save my life. Been
on this for 2 days now, and still am no closer to figuring it out than I
was before. I'm basicly taking date from some text boxes, trying to put
them into a data... more >>
Experts: dynamic control events???
Posted by Assaf at 5/11/2004 2:46:42 PM
Hi all.
In response to user selections, our app adds controls (buttons, image
buttons) dynamically to a page with Controls.Add(myNewButtonControl).
Now that we gotten on the page we want to make them do something for a
living: how do we dynamically create events that the controls respond to?... more >>
Create/send meeting request through asp.net
Posted by Bigfoot at 5/11/2004 2:41:32 PM
Hi,
I want to make a webapplication to book conference rooms and want to know if
this is possible to do this on our intranet. I know that it is easier to do
this via Outlook itself, but I want to have a central place to do this.
Example:
Someone fills in a webform with details of the meetin... more >>
make amimated gif on the fly???
Posted by DaveF at 5/11/2004 2:38:59 PM
I was using ImageMagick, but my client does not allow open source.
Dave
... more >>
can't find the javascript cookie anywhere
Posted by Jason Shohet at 5/11/2004 2:22:35 PM
I'm writing a js cookie from an asp.net page. A .NET cookie won't do.
Inside the js func. that writes the cookie, I do this code to see the cookie
afterwards:
window.document.write(document.cookie);
That shows me this on the asp.net page:
machinename=jshohet; ASP.NET_SessionID=adt2......
... more >>
A Timer Problem
Posted by Ing. Rajesh Kumar at 5/11/2004 2:20:34 PM
Hi Everybody
I want to create a timer event on my web page. Something equivalent to =
setTimeOut in JavaScript. I read the MSDN but still cannot make one :
I tried the following but nothing happens. Can someone tell me what i am =
missing ? :
<%@ Page Language=3D"vb" %>
<%@Import NameSpace=3... more >>
Performance degradation
Posted by Boo R. Ghost at 5/11/2004 2:19:04 PM
Hey group,
I've been workin on this for 3 days now... It's got me all confused.
I wrote a class to convert an HTML dom to an XML dom. HTML dom is provided
by Microsoft.mshtml.dll.
Next, I wrote a vb.net windows forms application which uses a
System.Net.WebClient object to reteive a web page ... more >>
translate this to VB?
Posted by Luis E Valencia at 5/11/2004 2:17:50 PM
Please somebody heeelp
foreach(DataListItem di in dlst.Items)
{
Label num = (Label)di.FindControl("num");
if(int.Parse(num.Text)<0)
{
num.ForeColor = Color.FromName("Red");
LinkButton lb = (LinkButton)di.FindControl("lb");
lb.Fore... more >>
Dynamic Controls
Posted by Jim Heavey at 5/11/2004 2:00:42 PM
Hello, I have a web page with a <ASP:Table> control on the form. This
table also has 5 DataListControls on 5 seperate <ASP:TableRow> controls.
In code I am dynamically adding TableRow controls to this Table control.
Depending on the content of the DataRows being added, I will set the
appr... more >>
Error Handling not Working ASP.NET
Posted by fiddler27 NO[at]SPAM att.net at 5/11/2004 1:51:31 PM
Thank you in advance for your help.
I have a response.redirect in my global.asax.vb file to redirect to
err.aspx page, upon an error the redirect works fine but in the
err.aspx all I simply want to do is write out the error for now and do
a bunch of other stuff later, but with the following code... more >>
Page and control lifecycle
Posted by John Lau at 5/11/2004 1:46:58 PM
Hi,
Is there documentation that talks about the page lifecycle, the lifecycle of
controls on the page, and the rendering of inline code, in a single
document?
Thanks,
John
... more >>
BGCOLOR of the row in dataGrid
Posted by simon at 5/11/2004 1:41:01 PM
I have dataGrid.
I would like that item background(row of the dataGrid) is red if the active
field in database is false
otherwise leave it like it is.
I tried like this:
<asp:DataGrid ItemStyle-BackColor='<%#
checkActive(DataBinder.Eval(Container.DataItem, "active"))%>'>
and in code beh... more >>
Web.Config - customErrors
Posted by John Smith at 5/11/2004 1:07:41 PM
I am trying to implement custom error pages and I get this error message:
****************************************************************************
********
****************************************************************************
********
Server Error in '/mfg' Application.
----------... more >>
ASP.NET project on CD?
Posted by Pavils Jurjans at 5/11/2004 1:06:32 PM
Hello,
Is there any hacky way to get an ASP.NET application run from CD (for demo
purposes)? Obviously, there should be some executable that handles all this,
or, all the app could be ran from specific URN, ie
cddemo://default.html
so that the local links do not fire explorer. Then, CD au... more >>
'Fields' is not a member of 'System.Web.Mail.MailMessage'
Posted by ashwini_ghag NO[at]SPAM yahoo.com at 5/11/2004 1:01:30 PM
I'm trying to use system.web.mail to send an email, but the smtp
server
requires authentication. I came across some info about fields
property
Dim mail As New MailMessage()
mail.To = "to@address.com
mail.From = "from@address.com"
mail.Subject = "this is a test email."
mail.Bod... more >>
Set Request.ContentEncoding from code?
Posted by Ricky K. Rasmussen at 5/11/2004 12:47:01 PM
Hello NG,
I'm having some encoding trouble using my own RequestHandler:
Since the RequestHandler must be able to serve content with diffrent
encoding, I set the Response.Charset and Response.ContentEncoding to the
encoding of current content. Furthermore I set the Content-Type META tag of
t... more >>
Win/WEB/PDA in MVC model...
Posted by Luiz Rafael Fernandes at 5/11/2004 12:04:55 PM
Hi guys...
Somebody needed to make a software for Win/WEB/PDA (Compact Framework) using
MVC model? How i could make? I'm trying to use one class library project,
instanciated win/web/pda forms.
i.e.: sorry my bad english!
Cheers,
Rafael
... more >>
response.redirect to new browser window (_target)
Posted by SStory at 5/11/2004 11:42:22 AM
Is it possible to response.redirect to a new browser window... i.e specifiy
a blank target?
If not, then when using the data and a hyperlink column, can I use more than
one URL field?
thanks,
Shane
... more >>
DataSet sorting
Posted by Björn at 5/11/2004 11:34:12 AM
Hi List
I´m generating a DataSet using a simple sql select statement. Now my DataSet
has several rows with columns(ID,NAME,CAPTION)
Now I want to sort the DataSet for column Caption. I can´t use sql "order
by" because the caption field is of Sqltype text.
So I wanted to use the DataView obj... more >>
Smart Clients
Posted by André Almeida Maldonado at 5/11/2004 11:29:41 AM
Hey Guys...
I need to create a smart client to use the clients printer, but I don't know
how to do it. Can anyonepost a link or an article that explains how to
create smart clients??
Thank´s
... more >>
Please Wait ... message
Posted by A.M at 5/11/2004 11:28:06 AM
Hi,
I have a DataGrid report and filling that DataGrid takes time.
How can I show a friendly "Please Wait ..." message during processing and
hide it when I am showing the actual DataGrid?
Could anyone refer me to a sample article related to that?
Any help would be apprecited,
Alan
... more >>
Response.Redirect
Posted by A.M at 5/11/2004 11:24:42 AM
Hi,
How safe is Response.Redirect in terms of client browser capablities and
security/privacy settings?
Can user change the browser's setting so Response.Redirect doesn't work?
Thanks,
Alan
... more >>
OnClick event
Posted by simon at 5/11/2004 11:23:33 AM
If I put button into the header of my DataGrid:
<asp:TemplateColumn>
<HeaderTemplate><asp:Button ID=btnNew Text="New Type"
Runat=server></asp:Button></HeaderTemplate>
<ItemTemplate>
.....
and in codeBehind:
Private Sub btnNew_Click(ByVal sender As Object, ByVal e As
Syste... more >>
Adding validation controls programmatically
Posted by D Sheldon at 5/11/2004 11:21:06 AM
I am creating a server control that adds web controls (i.e. textboxes, etc) to a form. I use HtmlTable to build the table and insert the controls. Now I want to add validators to the textbox. Here is the code that I am using
bool lastnamerequired=false
public bool LastNameRequire
... more >>
close window click event for command button
Posted by Paul at 5/11/2004 11:11:02 AM
Just wondering how to close a window in vb.net? I have a close button and need this for the click event.... more >>
CapiCom?
Posted by Mohit at 5/11/2004 11:06:04 AM
Hi Friends
I did not know where to post this question, so am posting it on ASP.Net forum (so please excue me
Has any one used CapiCom.DLL. I am having problems with it, and am wondering if it works with Windows 2003?
So the question is, does CapiCom.DLL (Version 2.0.0.3) work with Windows 2003
... more >>
DESGNTIMESP inserted in HTML Tags in ASP.Net
Posted by coder10 at 5/11/2004 11:01:05 AM
Two things
1. Why does ASP.Net not respect code formatting for the HTML tags. I mean, when I write my HTML, I try to use appropriate tabs and spaces and lines beween my tags, but when I save and open in Design View and come back, my HTML view loses all its code formatting.
2. ASP.Net has been in... more >>
Style sheets
Posted by robert.bull NO[at]SPAM wbp.org at 5/11/2004 10:32:56 AM
I am creating a menu with the ComponentOne tools that come with the
..Net resource kit. I am trying to apply a style sheet to the controls
of the menu but I dont know how. Do I need to add a new style sheet or
can I use the styles.css? If I add a new style sheet, how do I apply
it to the menu co... more >>
Can I find strings that need localization?
Posted by Graham at 5/11/2004 10:31:02 AM
I have to localize a very large web application and therefore have to provide resource strings for all hard-coded strings in the application that will be visible to users
Is there a technique for 'finding' the strings that should be placed in resource files
I'm not looking for programs that 'tes... more >>
need help determining the return value of a generated js onChange event
Posted by mdbloemker NO[at]SPAM hotmail.com at 5/11/2004 10:21:38 AM
can anyone help me fathom out how to use this bit of code:
Public Class Utilities
Public Shared Sub CreateConfirmBox(ByRef txt As WebControls.TextBox,
_
ByVal strMessage As String)
txt.Attributes.Add("onchange", "return confirm('" & strMessage &
"'... more >>
Binding a Datareader to Dropdown
Posted by Brian Conway at 5/11/2004 9:24:44 AM
I need some help on binding a datareader to a dropdown box. I have included
the code for the dropdown below. It builds with no errors, but returns no
results. Any help would be appreciated.
private void DropDownList1_SelectedIndexChanged(object sender,
System.EventArgs e)
{
OleDbConne... more >>
INSERT in dataGrid
Posted by simon at 5/11/2004 9:01:57 AM
In dataGrid you have UPDATE,DELETE and EDIT command.
What about INSERT command?
I need somehow also to insert new data, but I don't want to create a new
page for that.
I would like something similar as UDATE, when you have all textbox visible
and you can write new data over existing.
Any exa... more >>
Procedure not accessible when private in webform
Posted by Tim Zych at 5/11/2004 8:13:57 AM
If I declare a procedure in a webform as Public and attach it to a button in
the same webform, it runs fine. If I change it to Private Sub and try to
click it i get the error:
'codelib.editcode.Private Sub SaveRecord(sender As Object, e As
System.EventArgs)' is not accessible in this context b... more >>
multiple dynamic controls with properties
Posted by rahkim NO[at]SPAM hotmail.com at 5/11/2004 7:22:38 AM
Hello,
Ive searched all over the net trying to find an answer to this...so
anybody with some expertise in this area would be greatly appreciated.
Background:
I have a webform that loads a datagrid. This datagrid has a button in
a column that loads another datagrid(user control) when clicke... more >>
Referencing a DLL from code-behind
Posted by mash44 NO[at]SPAM fuse.net at 5/11/2004 7:20:38 AM
Newbie question: How can a dll be referenced from the code-behind for
an aspx page? I have the dll in the /bin directory, and have tried
using the line "Imports [dllname.dll]" in the code-behind, but I get a
compiler error message that the dll can't be found. This is a dll
that I did not creat... more >>
Error on maximum number of connections exceeded
Posted by Philip Townsend at 5/11/2004 7:18:54 AM
I have a web an asp.net web app that is periodically experiencing
exceptions stating that the connection pool maximum has been reached. I
have checked and rechecked all of the code to be sure that the
connections are all closed after use. For added measure, I even call
.Dispose on all connection... more >>
Catch SQL Server's RAISERROR message
Posted by Enzo Marinelli at 5/11/2004 6:51:02 AM
Hello everyone,
I have a HUGE database, with very complex stored procedures that handle every possible error and the passed it to an ASP site with RAISERROR.
Now I need to use that same database on an ASP.NET site, but all I can do is:
Try
Common.ExecuteNonQuery(QueryString, Common.Con... more >>
ASP to ASP.NET Migration Tool - URI Problem
Posted by rob at 5/11/2004 5:21:36 AM
Dear All,
I have a very small test project to convert asp to asp.net using the
Microsoft/Artisan ASP to ASP.NET Migration Assistant
(http://msdn.microsoft.com/asp.net/using/migrating/aspmig/aspmigasst/default
..aspx). Everything works fine when my include file is in the same directory
as the ... more >>
converting cookie values
Posted by mike parr at 5/11/2004 5:07:20 AM
I'm creating a cookie by this method :
HttpCookie objCookie = new HttpCookie(strCookieName);
Response.Cookies.Clear();
Response.Cookies.Add(objCookie);
objCookie.Values.Add(strCookieName, strCookieValue);
But when I read the cookie, I can't convert the value (strCookieValue)
to an integer.... more >>
Ask for username/password without WebForm
Posted by mg at 5/11/2004 5:06:02 AM
How can I download a little grey [header?] box - not a WebForm - that asks for username/ password? I've got a C# - based WebForm app.... more >>
Sql data reader
Posted by zag at 5/11/2004 3:41:02 AM
http://www.sorcellerie.net/hits.asp?action=IN&hit=226
I am using sqlDataReader for Showing data from the Data base.
But if the Data from sql is having tags like <script>alert()</script> then it shows an alert box while binding.
Is there any way of suppressing it this ..... ????
regards
... more >>
Custom validator control does not always fire
Posted by dotnw NO[at]SPAM hotmail.com at 5/11/2004 3:13:32 AM
Hello.
If I use an asp.net custom validator control to validate a textbox,
what I find is that if I enter in some text that I have already
entered and validated in a previous session (you know when you start
typing inside a textbox, you see things that have already been typed
before), then wh... more >>
Is there an '<!--#include...' directive in .NET?
Posted by littlecharva at 5/11/2004 2:56:02 AM
Hi
I'm trying to write a webpage in ASP.NET using code behind. My code behind page works fine, but now I want to create an instance of an object who's class is stored in a different file. In ASP I've have just used the old <!--#include virtual="file.asp"-->, surely there's something similar I ca... more >>
question about the events in the webform control
Posted by Harry at 5/11/2004 12:16:07 AM
Dear all,
It is found that when a webform control trigger an event,
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
This function will be load first, followed by
Private Sub Submit_Click(ByVal sender As System.Ob... more >>
|