all groups > asp.net > march 2005 > threads for wednesday march 30
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
adding local varialbes - String?
Posted by Patrick Olurotimi Ige at 3/30/2005 11:56:27 PM
I have a DataTable:-
private void CreateForm(DataTable dt, string headerText)
{
}
string formTitle = tbxFormTitle.Text;
string formNotes = tbxFormnotes.Text;
DataTable dtForm = GetDataTable(formSql);
And i'm calling 2 local variable
dtForm,formTitle
Like so
CreateForm(dtForm,formTit... more >>
ADSI... DirectoryService... DataGrid
Posted by Tim::.. at 3/30/2005 10:33:01 PM
Can someone please point to to some good resources for working with
DirectoryServices/ ADSI and pulling Active Directory information into a
DataGrid!
I want to create a contacts application using the information stored in our
Active Directory and would be very grateful for any pointers!
... more >>
Double hop reloaded
Posted by Sharon at 3/30/2005 10:32:02 PM
Hi to all..
I'm using impersonation, combined with windows authentication.
When the page tries to connect to active directory,
i get login failure, due to double hop issue.
As i understand it, the iis does not receive a
primary token, so how can i authenticate against Active directory?
Is it p... more >>
By default zero showing in the text box of .aspx page?
Posted by pesani at 3/30/2005 9:33:02 PM
Hi experts,
I defined two integer values in the class. Like this
public class IntegerClass
public ID1 as Int32
public ID2 as Int32
End Class
then iam instantiating this class and assigning these values to the text box
id. After if i run the application by deafult zero is showing in the... more >>
refreshing label control
Posted by barry at 3/30/2005 8:41:17 PM
The following code, in windows, shows the elapsing time in a label control.
Is there an equivalent method for asp.net dealing with refreshing the label
control?
Do Until Date.Now >= endTimeSpan
curTime = Date.Now
labelControl.Text = _
curTime.ToSt... more >>
Login failed for user 'MyPC\ASPNET'. msg received
Posted by Dee at 3/30/2005 8:05:34 PM
Hi,
I am running sample code from 101 VB.NET. The sample is an ASP.NET porj that
uses SQL Server I added ASPNET user to all the Groups including
Administrator. I don't know why I get this error. I get the message when the
code tries to access sql server: da.Fill(dsProducts).
don't know The Wi... more >>
Adaptive Rendering Issue
Posted by Nacho Nachev at 3/30/2005 8:00:41 PM
Hello,
AFIAK ASP.NET (1.1) uses a technology called 'Adpative Rendering' to output
HTML that is compliant with the client browser or at least stick to HTML 4
specification or IE.
This seems to be quite a problem for me. I have HTML output for Mozilla that
has missing style attribute in ... more >>
Response.Redirect
Posted by news://news.microsoft.com/microsoft.public.de.german at 3/30/2005 7:32:21 PM
Hallo!
Ich habe ein Frameset mit 3 Frames.
Im 1. Frame wird eine ASPX-Seite geöffnet. In dieser werden einige
Steuerelemente angezeigt.
Nun soll bei bestimmten Benutzeraktivitäten eine andere ASPX-Seite geöffnet
werden, und zwar in einem der beiden anderen Frames. Mein Problem ist, dass
d... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
I know that's a .Net forum, but some Xml please...
Posted by Eduardo Rosa at 3/30/2005 7:18:29 PM
I've a trouble with xml, I need to access "a node with child that had some
specific text". Somebody can help me?
Thanks a lot
example:
xsl file:
<xsl:template match="Group[@Name='artigos']"> <!-- that`s works-->
<xsl:apply-templates select="Item"></xsl:apply-templates>
</xsl:templ... more >>
Separate Project DLLs
Posted by theintrepidfox NO[at]SPAM hotmail.com at 3/30/2005 7:05:00 PM
Dear Group
Apologies for this simple question. Would be grateful if you share your
opinion on this.
I've written a web application, compiling all classes into one project
DLL. Now I wonder if there are performance / resource advantages if I
compile some classes into separate DLLs and refe... more >>
Triggering a javascript after postback from dropdownlist
Posted by Corobori at 3/30/2005 6:49:00 PM
In my form my users are entering some data, one of them being a
dropdownlist. When an item is choosen from that dropdownlist I am
posting back to the server in order to retrieve some data from the
server that are part of the calculation on the client side.
I am using that javascript code also ... more >>
Calendar Control Q:
Posted by Matthias S. at 3/30/2005 6:33:32 PM
Hi there,
is there a way to display 2 or more month next to each other? Can't find
anything...
Thanks in advance!
--
/Matthias... more >>
What Causes the Page Load Delay
Posted by Wayne Wengert at 3/30/2005 6:13:50 PM
With most web sites I build that include aspx pages, when the user loads the
first aspx page there is a noticeable delay (15 - 30 sec) before it is
completely loaded. What causes this. I thought it might be loading the
framework but it happens on systems where I know the framework is loaded.
T... more >>
Hyperlink imageURL not displaying URL
Posted by tshad at 3/30/2005 6:04:45 PM
Is there some reason why the Hyperlink in a DataGrid will not show an image?
I have a datagrid with the following:
<asp:TemplateColumn visible="false" HeaderText="Skills">
<itemtemplate>
<asp:HyperLink id="SkillsTestDate"
imageURL="../images/checkmark.gif" visible="fal... more >>
Example aspjpeg in vbscipt in asp.net
Posted by spicy NO[at]SPAM pandora.be at 3/30/2005 4:55:26 PM
Hello,
I'm using already a long time aspjpeg in asp to add my logo and some
text over my images on my website.
Since a couple of months I changed over to asp.net in vbscript. But I
don't find the way to write the code to be able to use aspjpeg with
vbscript in asp.net Who can give me some c... more >>
Entry Assembly in ASP.NET Application?
Posted by Philipp Schumann at 3/30/2005 4:16:04 PM
Hi,
In a class library that may be consumed by .exe as well as web applications,
I need to determine the "main" or "entry" assembly of the current
application. Unfortunately, Assembly.GetEntryAssembly() doesn't produce the
main assembly of a currently executing web application, for example ... more >>
IFRAME Question
Posted by SouthSpawn at 3/30/2005 4:13:08 PM
I have the following situation.
I have made my own WYSIWYG editor.
This editor works with an IFrame.
I am also using this editor for an
content management system.
Right now the whole system is database driven.
I am trying to do this.
If the user highlights some text in the "IFRAME".
I... more >>
JavaScript Question
Posted by SouthSpawn at 3/30/2005 4:12:53 PM
I have the following situation.
I have made my own WYSIWYG editor.
This editor works with an IFrame.
I am also using this editor for an
content management system.
Right now the whole system is database driven.
I am trying to do this.
If the user highlights some text in the "IFRAME".
I... more >>
DataGrid + CSS
Posted by Alexander Widera at 3/30/2005 3:19:18 PM
Hi,
at first a little bit of the code ...
<ASP:DataGrid id="an" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:BoundColumn DataField="status" HeaderText="status" />
</Columns>
</ASP:DataGrid>
Some rows of this DataGrid, which is filled with an database, should ... more >>
UserControl Error event not raised
Posted by Brad at 3/30/2005 3:18:26 PM
I added an Error event to a web usercontrol (ascx), but when an error is
raised in the control it does not get called...only the Application_Error
even in the global.asax gets called. The same thing in an aspx works
correctly. Does the Error event not really work with a user control or is
... more >>
Newbie Question
Posted by Blue Streak at 3/30/2005 3:15:26 PM
Is there an equivalent in ASP.NET for the Application.Lock and =
Application.Unlock commands?... more >>
formsauthentication.signout() problem
Posted by Nitin at 3/30/2005 2:52:19 PM
Hi,
I login to my asp.net web application from the same client machine twice,
using different credentials.
Both separate instances work fine, independant of each other.
However, when I logout from 1 browser instance, I am automatically logged
off from other instance too.
I use formsauthe... more >>
SlideBar
Posted by Mike at 3/30/2005 2:46:05 PM
hi,
how can i do a SildeBar Control?
Thanks
... more >>
CheckBoxList and custom typesafe collection woes
Posted by Matthias S. at 3/30/2005 2:30:57 PM
Hi there,
I have a typesafe collection in my application called Countries, which
is derived from the ReadOnlyCollectionBase. As you might guess, the
item-value is of type Country. Each Country has (for now) and ID and a
Name property.
Now I'd like to use a CheckBoxList to display the con... more >>
Authentification in IIS
Posted by Newton at 3/30/2005 2:23:02 PM
Hi,
I am programming my diploma project in ASP.NET using C#. It is about examing
students using internet.
I created web application and when I am testing it through localhost
everything is going fine... But when I would like to access this web
application from another computer, it re... more >>
Cache ...
Posted by Neven Klofutar at 3/30/2005 2:20:28 PM
Hi,
How can I tell IE not to cache something ...
Every time I access a page I create PDF file, and the I open it ...
*******************
private void Page_Load(object sender, System.EventArgs e) {
CreatePDF();
lblInfo.Text = "<script>window.location='something.pdf'</script>";
}
***... more >>
Instance from property
Posted by Islam Elkhayat at 3/30/2005 2:18:07 PM
I hve Dataclasses one for each dbtable & i have user control with MoveNext()
& MovePrev() methods
i want the toolbar to use the current class so i created an Interface
(IDbClasses) with the 2 methods and i use it in the user control,
i also added a poperty of type IDbClasses to pass instance o... more >>
Get browser window size from C# codebehind
Posted by Just D. at 3/30/2005 1:51:12 PM
How can we get the browser window size from C# codebehind? What's the
easiest way to do that?
Just D.
... more >>
best way to handle sql decimal fields
Posted by Steve Richter at 3/30/2005 1:41:22 PM
I have having a hard time getting the numeric columns in my sql tables
to map correctly to .NET. I have a price and a cost column in a
table. What is the most .NET friendly way to declare those columns?
cmd = new SqlCommand("CREATE TABLE ItemMaster ( " +
"ItemId INT PRIM... more >>
How can i implement [ Please wait ....!! your request is processing...] page .................
Posted by ~Maheshkumar.R at 3/30/2005 1:09:22 PM
hi groups,
I have developed one FTP application in ASP.NET, When i upload a file, i
want to show something on screen like " Please wait ...! Your file is being
uploading........"
As soon the file gets uploaded, i have to transfer control to final page
saying UPLOADED Successfully.
... more >>
works on my xp pc but not on server...
Posted by Mike at 3/30/2005 1:09:03 PM
I have a small application that accesses the webconfig file for the
connection string. The connection string has been encrypted. The app works
fine in IIS 5.1 on my xp machine but when I try it on windows 2003 server,
whenever the app needs to access the connection string it give me the below... more >>
Question on DataTable.Select()
Posted by Diffident at 3/30/2005 12:57:02 PM
Hello All,
I am trying to filter rows in a datatable based on filtercriteria and
sortcriteria using the datatable.select() method.
I am encountering a strange behavior in this process. Here is what I am
trying to do...
---------
1. Queried a table based on a filtercriteria and retrie... more >>
Retrieving index for a particular row from dataset
Posted by Diffident at 3/30/2005 12:45:04 PM
Hello All,
Was wondering if we could retrieve the index of a particular row from a
dataset's table based on the filter criteria for the row?
For example, I have 4 rows in my datatable which is inside a dataset. One of
the columns is "ID" field. If I want to retrieve the row index of a row... more >>
Localization Questions
Posted by Matthias S. at 3/30/2005 12:39:06 PM
Hi there,
on the way to create a "multilingual" site. And some probs:
To provide support for mulitple languages, I've added a new resx file to
my project (gave it the same "root" name as the project =
myproject.resx, to make it the default/fallback resource) and for
testing purpose, defi... more >>
Application Pool Question
Posted by Jeremy S. at 3/30/2005 12:31:28 PM
In application pools there are two property settings (amongst others):
1. Recycle Worker Process (in minutes)
2. Idle Timeout - shut down worker process after being idle for (in
minutes).
My question: IF the Idle Timeout value is reached BEFORE the Recycle minutes
are reached, then will... more >>
Reference Datagrid cell contents
Posted by MrMike at 3/30/2005 12:31:04 PM
Hi. I have an asp:ImageButton which appears when a datagrid row is placed in
Edit mode. The button has it's own click event which fires when the button
is clicked. Within the button's click event, I need to reference the
contents of a cell within the record currently in edit mode.
For ex... more >>
SQL injection
Posted by MattB at 3/30/2005 12:29:30 PM
I have a name lookup form that passes the contents of two text boxes to
a sql query. I've noticed that someone can substitute % for letters and
wildcard the query. I know I could just disallow that character, but is
there a commonly accepted way to stop all of these kinds of attacks?
I see as... more >>
SOLVED!! CS0016 Compilation Error: Finally I got the solution
Posted by andreabilli NO[at]SPAM iperbole.bologna.it at 3/30/2005 12:08:20 PM
Hi All!
Do you remember me? I am that desperate who had this error for a
while:
---
Compilation Error
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropri... more >>
ASP 2.0 Starter Kits
Posted by Paul Aspinall at 3/30/2005 11:48:40 AM
Hi
I know it may be a little early in the proceedings, and ASP.NET 2.0 is not
yet released, but does anyone know if there are any ASP>NET 2.0 versions of
the Starter kits that were released with ASP.NET 1.0?
I would just like to get a feel for how things should be done, as I'm going
to i... more >>
Frame size
Posted by Just D. at 3/30/2005 11:45:32 AM
How can we get the frame size or the windows size? What JAVA script should
we use to get it in C# codebehind? Is it correct that we can use the jAVA
script onload and onresize to get the current window/frame size and save
these values to the hidden controls on the page to read them from the C#... more >>
ASP.NET: Disconnected Event Handlers
Posted by MrFile at 3/30/2005 11:13:05 AM
I am running Visual Studio 2003 v7.1.3088 with .NET 1.1.4322 SP1 and am
having a very annoying problem. Every so often while developing ASP.NET
applications my buttons on a form will loose their event handlers and
when i try to test the page clicking on the button does nothing but
refresh the pa... more >>
Communication Mixup
Posted by Glen Wilkin via DotNetMonster.com at 3/30/2005 11:01:36 AM
I have a ASP.net applcation, written in C#, that is producing some very
strange behaviour.
Information is stored in a SQL Server 2000 database. The page that records
and stores information to the database functions correctly if only one user
is using the application. However, if there is more th... more >>
generate random password
Posted by MattB at 3/30/2005 10:49:22 AM
I have the following code to generate random passwords for new users of
an application.
Const chars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstyvwxyz1234567890"
Dim r As Int16, i As Int16
Dim Pswd As String = ""
For i = 1 To len
r... more >>
State management
Posted by Tim Marsden at 3/30/2005 10:49:05 AM
Hi,
I have a web form which displays some information based on criteria I store
in the session. When the user interacts with the page it is changed and
session changed accordingly. The use can navigate from the page ok, if they
click back all is ok because the session still relates to the p... more >>
Appliation BIN Folder
Posted by RM at 3/30/2005 10:38:43 AM
I have an ASP.NET application thatuses .NET controls in both code behind
pages and in html pages. In order to have the DLLs that contain the
controls in one place only (i.e. the bin folder) the code to instantiate the
controls on the html pages was changed to look like
"bin\assemblyname#control... more >>
Context.Items from base.OnLoad
Posted by Eric at 3/30/2005 10:22:03 AM
Hi all,
I have a web form that inherits from a base class. I try to access
Context.Items in the base class, during the Page_Load event, and find
that it is empty. When I try to access Context.Items from the derived
web form, it is populated with the value I would expect.
This creates a di... more >>
Script Timeout Not working
Posted by Prad Bok via .NET 247 at 3/30/2005 10:14:11 AM
(Type your message here)
--------------------------------
From: Prad Bok
I have a web page that takes long time(more than 3 minutes) to=
finish=2E
I am running IIS6 on windows 2003 server=2E
I have tried all the following but they are not working=2E Same=
application works fine on Wi... more >>
view state and data binding
Posted by Sergey Krutous at 3/30/2005 10:12:22 AM
Hi.
I am developing composite web control which contains a ListBox. I'd like
to minimize the amount of data transfered in view state to the client and
back, so I set to false EnableViewState property of the ListBox and
populated it by DataBind method. But in such scenario ListBox's
Selected... more >>
Getting the Server's IP address
Posted by Steve Caliendo at 3/30/2005 9:52:33 AM
Hi,
Could someone please tell me how to get the server's IP address?
Thanks,
Steve
... more >>
detecting firefox
Posted by Brian Henry at 3/30/2005 9:47:43 AM
We are trying to get our site to be 100% compatable in firefox also, but
right now it is a mess in firefox (CSS formatting problems) is there anyway
we can detect on page load the browser as that and if it is display a alert
that says we are working on the site and until then use IE for the be... more >>
Printing Web Control
Posted by T. at 3/30/2005 9:45:33 AM
Hi,
I have a web control that sits on a web form. I would like to give the user
the ability to press a button, and print only what is on the control instead
of the entire page. Is that possible? If so, can someone point me in the
right direction for code samples?
Thanks.
... more >>
Datareader problem - read() returns true, but doesn't branch correctly
Posted by Scott Shuster at 3/30/2005 9:08:04 AM
Hi,
I'm having some strange problems in VS employing a DataReader. Here's
a small snippet of the code:
....
objDR = objCMD.ExecuteReader()
If objDR.Read() Then
(true stuff)
Else
(false stuff)
End If
....
For some reason, I'm getting to the Read() statement in debug mode and
... more >>
collapsable lists?
Posted by Brian Henry at 3/30/2005 9:08:03 AM
How do you make a collapsable list in html? I remember doing it in the past
but cant remember how exactly to.. thanks!
... more >>
Word automation in asp.net alternatives?
Posted by Scott Brookhart at 3/30/2005 9:02:42 AM
I have developed an implementation to automate word to be used for spell
checking on a asp.net page. Basically, an instance of Word is used to
capture a TextBox, spell check in Word and then write it back to the
TextBox. I have that working and all is fine. Except, there is some
resistance to in... more >>
how can i deploy crystal reports without MSI
Posted by Tim_Mac at 3/30/2005 8:35:48 AM
hi,
i read the crystal reports documentation on deploying for asp.net, but
they tell you to build a web setup project, which i presume is an msi.
i only have FTP access to the web server and hence can't run MSI's on
it. does this mean i can't use CR in my web app? is there any way
around it?
... more >>
System.NullReferenceException:
Posted by Brian at 3/30/2005 8:33:48 AM
i have a radiobuttonlist. I want to check to see if a button has been
selected then get the value.. This was my code;
----------------------------------------------------------------
Dim NewGender as String
if (Gender.SelectedItem.Value <> "") then
NewGender = Gender.SelectedItem.Value
... more >>
howto: Autofiltering dropdownlists!
Posted by DEWright_CA at 3/30/2005 8:31:07 AM
Hi Everyone!
I am working on a project in C# and have a table the contains state info,
plus a variety of other info that I will reference from another dropdown
list. How can I do this programatically?
What I am doing is this,
1. create dbconn, to tblStates (already done!)
2. User has a d... more >>
Retreiving old value from WebControls.TextBox with OnTextChanged
Posted by Mark Siffer at 3/30/2005 8:31:01 AM
I would like to capture the previous value of a WebControl.TextBox in the
OnTextChanged event. I can't seem to find anything online about discovering
this value.
Thanks in advance
MS
... more >>
Directory.GetDirectories display order
Posted by Mike D at 3/30/2005 7:51:04 AM
Can I control the order that files, folders are displayed? Can I do them
alphabetically or do I need to upload to a db like we did in asp?
items = Directory.GetDirectories(path)
For Each item In items
Response.Write(Replace(item, "F:\Inetpub\wwwroot\", "") & " <br
/>")
... more >>
Capturing last error in Global.asax
Posted by ADavidson at 3/30/2005 7:39:05 AM
I've added code to capture the last error (Dim ex As Exception =
Server.GetLastError() ) in the Application_Error sub. And I log the error in
a database. Unfortunately all that seems to be captured is a
System.Web.HttpUnhandledException exception. In the test case i'm using it
should be r... more >>
get url of page that linked to your page
Posted by Steve Richter at 3/30/2005 6:52:04 AM
How does my asp.net code retrieve the path of the page that linked to
the current page? The equivalent of the "Back" menu option in IE?
thanks,
-Steve
... more >>
Intellisense?
Posted by Mike D at 3/30/2005 6:37:05 AM
Should I be able to see intellisense when working in a .aspx page? I can see
it in the code behind page but not .aspx. I am running VS.net 2003 on 1.1
framework.
Thanks
Mike... more >>
IE freeze/page will not load after code is run
Posted by alphanode at 3/30/2005 6:32:16 AM
When starting up my computer, I am able to open Internet Explorer
windows and have them load without a problem, however once I open and
run a .net project I am working on, this causes any new IE windows I
open to freeze and not load. This includes trying to open up control
panel or file explore... more >>
How to call server side function for client side JavaScript?
Posted by lanem at 3/30/2005 6:01:03 AM
I want to call a server-side function, like a button's click event, from a
client-side JavaScript function. How do I do that? Thanks.... more >>
Urgent help needed in cookie arrays
Posted by Raghu Raman at 3/30/2005 5:33:43 AM
Hi,
In javascript file i store 3 values under a single cookie array ,like
var myarray = new Array(null);
myarray["a1"] = "field_1";
myarray["a2"] = "field_2";
myarray["a3"] = "field_3";
document.cookie ="myarray=" + myarray;
it is successfully executed.But i can not retrieve the stored ... more >>
Advanced ASP.NET book?
Posted by John Robert at 3/30/2005 5:02:38 AM
Hi!
Anyone has recommendations for advanced ASP.NET books? By
advanced, I mean complicated stuff... not just
authentification and datagrid binding
I'm mainly interrested in learning more about letting my
customers customize a web forms (from a database... on the
fly control creation and pe... more >>
Custom Paging in ASP.NET
Posted by asad at 3/30/2005 4:47:05 AM
Hello friends, i am designing a ASP.NET page where i want to use custom
paging bcoz data is too heavy so pls tell me how can i use custom paging in
ASP.NET
Thanks... more >>
Read Access database on Novell Netware 6 from ASPX
Posted by Miro at 3/30/2005 1:35:04 AM
Hello!
I have an ASP.NET application which needs to read some data from an Access
database on Novell. I've found an article on Microsoft and did the following:
I've created an account on Novell (IUSR_Machinename) which is the same
account that the aspx is using. This account has full right... more >>
Guidance on ASP.NET authentication, state management and dynamic h
Posted by geodev at 3/30/2005 12:57:04 AM
Hello,
I’m currently writing an asp.net application that will be running on a
Windows XP Professional workstation utilising IIS and MSDE Database. At a
later date this application will need to run on a Windows Server 2003 IIS web
farm utilising either MSDE Database or SQL Server Database.... more >>
ASP.Net and Windows Explorer
Posted by msuk at 3/30/2005 12:57:01 AM
All,
Is it possible to have Windows file Explorer on a webform so I can browse to
it. Does .Net have any controls to provide this?
Thanks
Msuk... more >>
javascript:__doPostBack('linkButtonTest', '')
Posted by bernardpace NO[at]SPAM yahoo.com at 3/30/2005 12:38:47 AM
Hi,
I have a form, and on it I placed a linkButton. Now it has also
specifed also an onmouseover and an onmouseout events.
Also in the aspx.cs file I handled the click event.
<td class="menuNormal" onmouseover="expand(this);"
onmouseout="collapse(this);" width="20%">
<p>
<asp:LinkButton ... more >>
New to Classes, please help.
Posted by David Lozzi at 3/30/2005 12:09:34 AM
Howdy,
I'm new to classes. Below is my class User. (is this a reserved namespace or
class?) It works great, kind of. If I specify the username and password, the
correct firstname and lastname are returned. For example, username dlozzi,
password fun. It returns David Lozzi as full name. If I... more >>
|