all groups > asp.net > february 2007 > threads for wednesday february 14
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
Hiding table rows at run time in vb.net
Posted by Garg at 2/14/2007 11:15:44 PM
How do I hide a paricular tablerow during run time?
I have two table rows with ids row1 and row2.
I want that if a particualr condition is true, then row 1 should be
displayed on the web page, otherwise row2 should be dispalyed.
I tried following code, but it is not working:
row1.Style.Va... more >>
URLs, 404 redirect etc.
Posted by David at 2/14/2007 10:20:57 PM
Hi all,
Using C#.NET 1.1
I am progressing on my URL ReWriting quite well, but have a slight problem.
My server will not have real paths, just virtual, which is generated from a
database. This will include images, documents etc. (The images will map (URL
ReWrite) to real images of a diff... more >>
Some events are not executed from child gridview
Posted by chris at 2/14/2007 10:11:58 PM
I have a perent gridview which includes in a template field a child
gridview. Child gridview includes command buttons for opening
different windows based on its row selected.
I used the code below. The event for RowDataBound is executed, rows
get different color, but event for RowCommand is no... more >>
dotNet - Newbie Queries: Which Version to use?
Posted by Eric Layman at 2/14/2007 10:11:19 PM
Hi,
I understand that .NET has few frameworks:
1.1
2.0
3.0
Which one should we use for our web application?
Also, we have a few developers in the house, one is more familair in C#,
another is proficient in VB,
can these 2 lang co-exists in one asp.net web application?
Pls advis... more >>
Null reference exception
Posted by Garg at 2/14/2007 9:10:24 PM
I have declared an array and when i use it in vb.net, I get a warning
that
variable arrClash has been used before it has been assignes a value. A
null reference exception could result at run time. This is my piece of
code;
Dim arrClash() As String
Dim i As Integer
... more >>
asp.net 1.1 on 64 bit with cpu high usage problem!
Posted by sviau NO[at]SPAM nospam.nospam at 2/14/2007 7:24:20 PM
weve installed our asp.net 11. (32 bit) web app on windows 2002 64 bit
server running under 32 bit emulation mode.
should work ok, but were seeing cpu at 100%, but the server is a qaud dual
core brand new server! old server running better.
what to look for?
thanks
steph
... more >>
Releasing file locks on email attachments?
Posted by David Veeneman at 2/14/2007 6:04:15 PM
My web app creates several temporary files, then attaches them to an email
that it sends out. When the app attches the documents to the email, .NET
locks the files. My problem is that they aren't getting unlocked.
When the app runns, the first thing it does is delete the files left from
its... more >>
display image from database
Posted by Rahul at 2/14/2007 5:47:46 PM
while writing an image ... i get the following error
my Code
-------------------------------------------------------------------
Dim imgStream As New MemoryStream()
Dim query As String
query = "select Photo from EmployeeMaster where EmpCode='1'"
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Cancel Submit ASP.NET
Posted by No_Spam at 2/14/2007 5:45:12 PM
How do I cancel submit process if certain fields are not filled in my
ASP.NET form? I need to know how to do it using the Click sub for the
submit button (in the .vb file) and not using javascript, if possible.
... more >>
how to get value of variable into textbox?
Posted by Cliff at 2/14/2007 5:42:51 PM
Hi,
i would like to get the value of variable 'em', defined in code-behind, into
a textbox.
I tried two ways but withoit succes (no error).
The first textbox is empty, the second gets:<%=em %>
aspx file:
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server"... more >>
ASP.Net Checkbox Problem
Posted by mschmidt18 NO[at]SPAM gmail.com at 2/14/2007 5:32:46 PM
Hello,
I am fairly familiar with Web Development with .Net, but i have come
across a problem that is giving me some trouble......
I want to have a list of checkboxes where 1) the labels come from one
table and 2) each box is checked or unchecked according to a different
table.
I have fig... more >>
Creating delay for tooltip
Posted by Creating delay for tooltip at 2/14/2007 5:31:02 PM
I am using 'title' attribute of Anchor tag (<A>) for creating a tooltip.I
need to show the tooltip for 25 seconds.Can anybody help please me out in
creating a delay?
Thanks... more >>
read this thread
Posted by Mukesh at 2/14/2007 4:51:06 PM
hi gust go thrpugh this link n read thread " Shall I now always use
String.Empty instead of """
http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?query=difference+between+%22%22+and+String.Empty&dg=&cat=en_US_d02fc761-3f6b-402c-82f6-ba1a8875c1a7&lang=en&cr=&pt=&catlist=&dgl... more >>
Resource Files and Output Caching
Posted by aptenodytesforsteri NO[at]SPAM gmail.com at 2/14/2007 4:36:24 PM
I have an ASP.NET 2.0 application I've localized to English, French,
German, and Italian.
I used resource (.resx) files.
Most of the site is static content, easily 90% of it, so I thought
output caching would be useful.
I implemented output caching at 60 seconds.
The problem: If page A... more >>
First time at using shared code in App_Code directory
Posted by bissatch NO[at]SPAM yahoo.co.uk at 2/14/2007 4:21:06 PM
Hi,
I have been using the following tutorials:
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/pages/code.aspx
It would appear that it is instructing me to simply to create an
App_Code folder and place the CustomClass.vb file there. I have done
so and using the exact same code from th... more >>
difference between "" and String.Empty
Posted by Rohn Farrington at 2/14/2007 3:57:28 PM
Hi All,
Was just courious is there any performance/managebility issue while using ""
or String.Empty.
for example
Dim str As String = String.Empty '// first
Dim str As String = "" '// second
i.e. which one will run faster?
Thanks in advance
F
... more >>
Releasing file locks
Posted by David Veeneman at 2/14/2007 3:38:54 PM
I have a maddening problem that I hope someone can help with. I have some
code that writes temporary documents to the data folder of my web site. On
one document, I keep getting an error "The process cannot access the file
'myFile.txt' because it is being used by another process."
Simple failu... more >>
ASP .NET Beginner trying to figure out <asp:Repeater and checkboxes
Posted by bissatch NO[at]SPAM yahoo.co.uk at 2/14/2007 3:27:41 PM
Hi,
I am trying to output a list of checkboxes. Using ASP .NET controls, I
was able to create the following:
<label for="colour_red">Red: </label><asp:CheckBox ID="colour_red"
runat="server" /><br />
<label...
<label...
<label...
I figured because they all follow the same HTML structur... more >>
error when getting email of membershipuser
Posted by Cliff at 2/14/2007 3:14:03 PM
Hi,
i try to get the emailaddress of an membershipuser:
Dim a As MembershipUser
Dim em As String
em = a.Email.ToString
In runtime, i get the error:
"Object reference not set to an instance of an object. "
(line em = a.Email.ToString)
Thanks for any suggestion
Cliff
... more >>
Need a Web Designer Tool
Posted by GaryDean at 2/14/2007 2:08:40 PM
I'm looking for a good but simple web designer tool....
Is Expression Web any good?
How about Dreamweaver? Will it work with asp.net?
Any other good ones that will work with asp.net and Visual studio?
--
Regards,
Gary Blakely
... more >>
Perflib Application Errors on Web Server
Posted by Mike at 2/14/2007 12:47:05 PM
Hi. Every time I roll-out an updated version of an ASP.NET project to the
webserver, a Perflib Application Error is written to the server's event
viewer in the application log. Below is the event log description, verbatim.
If I roll-out ten different websites to the webserver I get ten of t... more >>
Deleting Rows from a DataTable...
Posted by karthick at 2/14/2007 12:31:09 PM
Hi,
I am reiterating through a Datatable and deleting few rows based on
the user's selection (with the index ref). I use
datatable.rows[index].Delete() for this purpose. But if I select three
rows, it just deletes only two rows; any idea ?.
Any help is much appreciated. Thanks.
Karthick
... more >>
why does this formview not appear?
Posted by Cliff at 2/14/2007 12:25:57 PM
Hi,
I expect with this code to see the FormView in the browser but nothing
appears (no error, no formview).
I checked with variable 'x' and i know there is one record in the dataset.
The formview must be editable.
Did i forget something?
Thanks for help.
code-behind:
-----------
Di... more >>
problem with setting cookie expiry date
Posted by Milsnips at 2/14/2007 12:06:01 PM
Hi there,
I don't know why its not working for me, here is the code I am using:
Response.Cookies["TestCookie"].Value = "Cookie is set";
Response.Cookies["TestCookie"].Expires = DateTime.Now.AddYears(30);
Response.Redirect("cart.aspx");
then it redirects to the cart page where i read the c... more >>
Page showing as not valid
Posted by tshad at 2/14/2007 11:13:52 AM
I have a page that is showing as:
Page.IsValid = False
on postback when my submit button is pressed but none of my Validators have
fired so there is no error message.
How do I find out what is making the Page invalid?
Thanks,
Tom
... more >>
abandon specific session
Posted by mharness at 2/14/2007 11:07:58 AM
Hello,
I'm working on an approach to systematically and automatically log users on
and off an app that precludes users from sharing usernames and passwords.
I have most of that working except for how to deal with a user that simply
or mistakenly closes the browser window (does not explicit... more >>
Reference a class without App_Code
Posted by dan_vee at 2/14/2007 10:49:53 AM
Hello everyone,
I've been out of the .NET loop for a little while. This question might
seem trivial for many of you. But I 'm a bit stumped. I recently
started to work with VS 2005 ASP.NET 2.0. The notion of App_Code
didn't exist in the good old VS 2003. I have a web application, I
deployed o... more >>
Virtual Directory not created during installation of ASP .NET 2.0 website
Posted by CodeMonkey at 2/14/2007 10:29:39 AM
Hi all
I created a web site project using Visual Studio 2005 and then created
the Deployment Project to deploy it. I set the virtual directory
property on the web application folder to "testsite". However when
installing I get the following error:
The Specified path '/LM/W3SVC/1/ROOT/testsite... more >>
Advice sought. How do I add summary row (not databound) to gridview. Like weekly totals etc
Posted by dave at 2/14/2007 10:00:34 AM
Hi,
Can someone get me started by pointing me to an example or tutorial.
I am displaying some weekly sales data using the GridView. The data
shows all sales data. I would like to group it by date and have
weekly summaries. Some weeks may have many sales some, not so many.
Also, I don't wan... more >>
pass more than one parm
Posted by rodchar at 2/14/2007 9:01:07 AM
hey all,
i'm in a template column of a gridview. i have a hyperlink in the Item
Template and i'm trying to do a custom binding expression to it. So far i
have the following:
Eval("FILE_ID", "~/ViewFile.aspx?Id={0}")
Is there a way to pass more than one parm? If so, could someone please sh... more >>
Script manager equivalent... How can I do?
Posted by ThunderMusic at 2/14/2007 8:31:28 AM
Hi,
I know there is something called (something like) Script Manager in asp.net
AJAX... What is the best way of achieving the kind of behavior it has? I
mean, maybe I didn't understand it correctly, but as I understand it, many
(if not all) asp.net AJAX control gets the Script manager (in th... more >>
Object Must Implement IConvertible
Posted by Kat at 2/14/2007 8:20:32 AM
I have a gridview that queries a stored procedure to select id, firstname,
lastname from clients. Then I have a detailsview that queries the client
details linked to the id from the client gridview. If I put the select
statement for the client details directly into the datasource, it works
... more >>
does it still apply in 2.0
Posted by rodchar at 2/14/2007 7:14:10 AM
hey all,
i was wondering if the following code snippet from a 1.1 exerpt still apply
in asp.net 2.0 framework:
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
private void InitializeComponent()
{
... more >>
Check if an authenticated user can write to a file/directory?
Posted by Paul Lemke at 2/14/2007 7:08:30 AM
Hello, I currently have an application that uses authenticates users
via NTLM. I would like to provide a user a directory listing of a
folder. Everyone has read access to the folder, but the only folders
that should show up are ones that allow them to modify sometime.
I can list the directorie... more >>
Firefox javascript won't work (works in IE)
Posted by Altman at 2/14/2007 7:02:04 AM
I have created an ascx control and I am calling
registerclientscriptblock. The path to the js file is relative to the
aspx page and not the ascx file. The function runs fine in IE7 but in
Firefox the error console says that the function is not defined. I
tried making a very basic js file to g... more >>
request for clarification
Posted by rodchar at 2/14/2007 6:57:03 AM
hey all,
below is an excerpt from an article i'm currently reading. the article is
about using WebUserControls and encapsulation.
"Although it is possible to subscribe to the button click event from the
containing page, doing so would break some of the object oriented rules of
encapsulatio... more >>
Closing popup window when closing parent window?
Posted by VMI at 2/14/2007 6:51:57 AM
How can I close popup window automatically when I close the parent window
(the application itself)?
Thanks.... more >>
Question about TARGETSITE property of web setup
Posted by Nadav Popplewell at 2/14/2007 6:01:10 AM
Hi everybody,
I'm writing a custom action for a web setup to register my web site to use
dotnet2.0.
Everything works OK, there only one thing I'm not sure of.
The parameters that I pass from the websetup to my custom application are
TARGETVDIR="XmlAPI"
TARGETSITE="/LM/W3SVC/1"
However ... more >>
Windows Control / dll in ASP .Net
Posted by Ragu at 2/14/2007 4:33:25 AM
Hi
I have developed a basic windows control an dll in vb.net (windows control
library)
That contol is used to load image to a picture box. The control has a
pciture box and a property by name image. when we consume the dll in windows
app, the image property in set to the control which lo... more >>
MasterPages and a Base class
Posted by musosdev at 2/14/2007 4:00:20 AM
Hi guys
I'm well into a project at the moment which uses a MasterPage. I'm also
using seperate code-behind files for each page (C#).
I just realised that the MasterPage doesn't give you a property to set Meta
Keywords. It's got Description and Title, but not Keywords.
Reading around on ... more >>
Membership Provider _Hashed password_ Email
Posted by Raj at 2/14/2007 3:20:18 AM
I am trying to implement Password Recovery control. In this, the password
format is "Hashed".
I set the EnablePasswordReset to true, so when clicked on submit button,
ResetPassword() is called and the new password is encoded and saved in data
base. How do I get the unencoded password in my... more >>
Paasing values to javascript from asp.net
Posted by Priya at 2/14/2007 3:13:51 AM
Hey all,
I have some values in the database which has to retrieved and then
passed on to some functions in the javascript. The javascript file is
a separate file. I have included it in the aspx page using the src
option. How do I pass the values that I get from the database to
javascript ? An... more >>
Files in ASP.NET 2.0
Posted by shapper at 2/14/2007 3:04:32 AM
Hello,
In my ASP.NET 2.0 web site I need to upload many files to various
folders and add the information in an SQL 2005 database.
I am creating a documents table which includes the fields:
[DocumentId], [DocumentAuthor] and [DocumentUrl]
This table will have records for many files.
Is ... more >>
array.length = 0 means what?
Posted by Garg at 2/14/2007 2:53:29 AM
if we assign
array.length = 0
then what does it mean?
Are we setting the length of the array equal to 0
or are we selecting the first element of the array?
Please help me on this..
In vb.net, this gives an error saying that .length is a read only
property.
... more >>
Scripting language
Posted by avh at 2/14/2007 12:00:00 AM
Hi,
I'have been looking for a simple scripting (interpreted) language to be run
within my ASP.NET pages.Syntax is of minor importance.
Although I find many options, all of these seem to first compile the script
and then run it and this gives trouble on my shared hosting account on which
my... more >>
Reading xml from database
Posted by Mukesh at 2/14/2007 12:00:00 AM
HI all
I am storing user info in database. for this i m using varchar(for
storing name , email , password etc.) and xml(UserDetail info ) datatypes.
dbo.User
........................
USEREMAIL VARCHAR PK
USERNAME VARCHAR
USERPWD VARCHAR
USERDETAILS XML
for retriving d... more >>
Completely OT: Text flower needed
Posted by John at 2/14/2007 12:00:00 AM
Hi
Years ago when there weren't any display terminals and only typewriter
terminals, people used to draw "pictures" using alphabets and symbols. I
hope I am making sense. I need a rose designed in this way by alphabets and
symbols that can be emailed across. If anyone knows such a thing the... more >>
|