all groups > asp.net > december 2004 > threads for tuesday december 28
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
getting the row number in a datagrid
Posted by 2obvious at 12/28/2004 8:03:56 PM
I'm using a CustomValidator within a datagrid control. I'd like to
get the index of the item (i.e. row of the datagrid) when the
validator is fired and use this number in my custom function. Can
this be done?
... more >>
sometimes we get Object reference to NULL error
Posted by blashblashblash NO[at]SPAM yahoo.com at 12/28/2004 7:59:12 PM
Can someone help me? I really don't have a clue.
My company staff told me they often got such error: "Object reference
not set to an instance of an object." when they are in search result
page then tried to access 2nd, or 3rd, etc page. The problem is it
happens sometimes - sometimes when they... more >>
Saving a file on the client machine
Posted by chris blackbur at 12/28/2004 7:49:59 PM
I have a textbox on a asp.net webform and I want to save the contents to
a file on the clients machine instead of on the web server. Is there a
way to do this just using ASP.NET or do I need to start learning some
javascript.
Thanks,
Chris Blackburn
*** Sent via Developersdex http://ww... more >>
how to mask an input
Posted by niv at 12/28/2004 6:24:37 PM
Hello,
I have a textbox that users enter their password into..
the problem is that i want the password to be masked with
a asterisk.
How can I do this and also still be able to read the input
like so.
string x;
x = TextBox1.Text;
I dont want x to have asterisks..
Thanks in advance... more >>
application and client session - where to code?
Posted by Likhith Areekkal at 12/28/2004 5:56:14 PM
I am new to web programming.
I am trying to do an ASP .NET reservations application. I need to create
only one dataset and all the clients are supposed to use only that dataset.
Moreover, I need to create an array that can be accessed by all clients.
In short : As long as the application i... more >>
Add custom page type to VS
Posted by bvh at 12/28/2004 5:51:31 PM
Is it possible to add your own items to Visual Studio's list of
templates?
In other words if I have an asp.net page layout that will be used for
every page on my companies site, could I add a template that would
appear in the Add New Item menu along with the usual templates like
Web Form, Web... more >>
meta refresh loosing the viewstate on the TextBox
Posted by Prodip Saha at 12/28/2004 4:46:59 PM
I am sure there is an easy fix for this problem. I am reloading the same
page at an interval using the meta refresh tag in aspx page. This page has
one textbox and one button. The problem is -when the page get posted back to
the server the value of the textbox is gone. How do I preserve the value... more >>
Data field references ?
Posted by WJ at 12/28/2004 4:04:55 PM
..Net Experts,
I have this concept described below:
1. I have a large (4K+) data record called Health_R. This record also
contains Text/memo fields and Image.
2. The record layout is below:
*******************
//My beloved c#
//
using System;
namespace Health.HealthRec
{
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP.NET and free database
Posted by excelleinc.com at 12/28/2004 3:47:54 PM
Hello,
I'm working on small aplication for company that does warehousing. It's very
small (and cheap) application but I have a need for database backend.
Having them pay for MS SQL license would be totally unacceptable, MS Access
does not look like professional solution.
Could you pleas... more >>
Model-View-Controller Pattern in ASP.NET
Posted by Ralf Müller at 12/28/2004 3:44:12 PM
hi folks!
does anyone know a good tutorial on how to correctly implement the
MVC-Pattern in ASP.NET?
thanks in advance
greetings, ralf
... more >>
newbie question - codebehind error
Posted by Mori at 12/28/2004 3:36:55 PM
Using VS.NET 2003, I'm trying to run an aspx file with this code:
<!-- GuidedPracticeExercise1_3.aspx -->
<%@ Page Language="C#"
CodeBehind="GuidedPracticeExercise1_3.aspx.cs"
AutoEventWireup="false"
Inherits="_315C01.GuidedPracticeExercise1_3"%>
<html>
<body>
</body>
</html>
... more >>
How do i: Databinding 2 database columns to a single dropdown control
Posted by John Blair at 12/28/2004 3:32:02 PM
Hi,
I want to select an id column and a name column from the database
and have the results databound to a SINGLE dropdown control with the value
property matched to the database id column and the name values on
display to the user. Any idea how i can do this?
Sample HTML showing desired res... more >>
Self refreshing user control/custom control.
Posted by Jensen Bredal at 12/28/2004 3:14:03 PM
Hello,
I need to display self refreshing information on a web page written with
asp.net. I would image that the info would be displayed either as part of a
user control or a web control.
How can this be done? The information will come from a database and the
displaying should loop throug a tabl... more >>
ASP.NET applications not running on Win2K laptop
Posted by Werner T via DotNetMonster.com at 12/28/2004 2:59:41 PM
I'm not entirely new to ASP.NET but the following problem has cost me many hours of frustration and I still do not have a solution:
I have Visual Studio .NET and IIS5 installed on a laptop computer running under Win2K. IIS is ok because when I type http://localhost then I indeed see the Win2000 ... more >>
how to use Begintransaction ?
Posted by Jason Shohet at 12/28/2004 1:49:03 PM
Page_a.aspx.cs does a loop thru 7 days of the week. W/in the loop, it
makes a call to myService - a webservice - passing in a serialized objDay
(which represents the day's info). The webservice function deserializes
objDay and writes to the db.
Works great. Problem is if 1 of the 7 days... more >>
Creating temporary database on user's PC.
Posted by Jerry Spence1 at 12/28/2004 1:34:36 PM
Why doesn't the following work in my ASP program? I have imported ADOX
I am trying to create a temporary database on the user's PC. The example is
taken from Microsoft.
Dim cat As Catalog = New Catalog
cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\NewMDB.mdb;" & _
... more >>
very basic question
Posted by VR at 12/28/2004 1:27:09 PM
Hi, I'm reading the ASP.Net documentation, the compiled code part, and I got
a question that could not find a "real" answer for it:
If you define your methods, properties and events in your code-behind file
it will get compiled within the ASP.Net app, but, if I define it in a server
script ... more >>
HTML <SELECT><OPTION> Tag With Image and Text
Posted by Chris Fink at 12/28/2004 1:19:04 PM
Does anyone know it is possible to include a small image(.gif .jpeg)
within a <SELECT><option> so that the user would see the option text as
well as a little image(icon) in the option? I know this is not an ASP.NET
related question, but I know this group is knowledgeable and quick with
resp... more >>
Manually install DLL into GAC
Posted by BillGatesFan at 12/28/2004 12:51:09 PM
Is there anyone to install a DLL into the GAC? I do not have access to
the server. I only can copy files to it.
Also could I just put the DLL in the bin directory to make it work?
Will the application look there?
Thanks
... more >>
Best way to pass variable between page and control
Posted by darrel at 12/28/2004 12:48:40 PM
I'm still trying to fully understand how best to pass variables between
pages/usercontrols/each other.
On a current site I've done, I've had one userControl do the logic and set
the variable, and then I had other usercontrols simply read this by
traversing the class structure: siteClass.userCo... more >>
Gridview hyperlink column mailto event
Posted by Marcial at 12/28/2004 12:37:04 PM
Hello,
I have a ASP.NET 2.0 coding issue I need help with.
I have a Gridview which displays the Name and e-mail address columns of an
underlying SQL datasource.
I added a hyperlink field to the columns collection.
I'm trying to figure out how to send an email after the email address li... more >>
Make Footer invisible
Posted by tshad at 12/28/2004 12:31:03 PM
I am using the footer of my Datalist to add a row into my database.
Is there a way to make the footer invisible when not adding a row, making it
visible when a button is pushed and making it invisible again when the page
is posted (after the row is added)?
I have a footer such as:
... more >>
System.Web.HttpException: Could not access 'CDO.Message' object
Posted by pmud at 12/28/2004 11:59:09 AM
Hi,
I have ab ASP.Net Application in which I need to send e-mail on button
click. Even though my C# code for that is correct.I am getting the following
error:: I think the following error can be bcoz of the SMTP virtual server. I
cant view the SMTP virtual server in IIS. How to correct thi... more >>
Common Web functions dll (Used to use MTS, what do I use in .NET
Posted by Jeff Kesinger at 12/28/2004 11:57:04 AM
In VB6 I would build a dll and have it use MTS/Component Services on a
seperate server to allow me to access the functions from the dll anywhere on
the network.
Now with ASP.NET and VB.Net, I am confused as to how I can go about this
without making everything a web service. I would like to m... more >>
Deployment
Posted by Jerry Spence1 at 12/28/2004 11:54:55 AM
Hi - I'm a beginner at Internet programs. I have just developed my first
ASP.Net program which runs fine on my IIS installation. I copied the files
from the two directories to my webspace on my ISP and when I run it I just
get a blank screen. No controls load. No error messages or anything.
... more >>
File locking and Bitmap objects
Posted by alex at 12/28/2004 10:54:24 AM
I hade some problems with file locking and did a simple test using
process explorer tool from sysinternals.
Bitmap BitmapInWork = new Bitmap(Server.MapPath(fileFullPath));
//at this point file referenced by fileFullPath is locked by aspnet
worker process
BitmapInWork = ResizeImage(BitmapInW... more >>
How would I create the following XML file and populate withdata from a dataset?
Posted by Ray Stevens at 12/28/2004 10:50:54 AM
I am not familier with .NET xml classes and am trying to create something
similar to the following document and populate it with data from a DataSet:
<LXML>
<Order>
<Input>
<Origination_Code value="LTT"/>
<Transaction_Type value="UPD"/>
<Lende... more >>
window.print() and postpack, how both works?
Posted by Umut Tezduyar at 12/28/2004 10:43:58 AM
In the msdn.microsoft.com/library most of the articles have an "print"
option. But the "print" button is different from the javascripts
"window.print()" method. It postpacks the page and then invokes the
window.print () method. I couldn't found out the way it works. I need to do
somethin... more >>
Set Start Page to max size
Posted by google NO[at]SPAM joriz.is-a-geek.net at 12/28/2004 10:19:25 AM
I'm obviously new to asp.net. so how do you set the window size to 100%
of the start page. everytime i open up my default.aspx, it's not the
maximum size.
pls help
thanks in advance
... more >>
Master Pages
Posted by TBocchino at 12/28/2004 8:53:03 AM
We have used master pages for our website and everything works fine until we
need to update one of the dll files. When a new dll is added or an old one is
updated the website gives an error message that can be corrected by making a
small change to the master page file(such as adding a space an... more >>
CSS and HTML links
Posted by Paul at 12/28/2004 8:43:03 AM
Not sure if this is the right place for a CSS question but I saw some other
CSS posts so here goes a pretty basic question.
I want the color of an HTML link to be blue on one section of my HTML page
and green in another section of the same page.
I am familiar with CSS and I know that I can... more >>
Parser Error - Could not load type
Posted by Babs at 12/28/2004 8:23:29 AM
Hey,
I have an ASP.Net web application. I created a new subfolder within
this application. The problem is that I cannot access the web pages
within this subfolder from my application. I get the error : Parser
Error Could not load type 'SyncDev.SearchNames.frmTestForm'
<%@ Page language="c#"... more >>
PRIMARY KEY required for WRITING to SQL DATABASE using DATA GRID?
Posted by pmud at 12/28/2004 7:53:04 AM
I need an editable datagrid. But for editing a datagrid as shown in the
walkthrough: Using a DataGrid Web Control to Read and Write Data, the table
in the SQL database should have a primary key. But my table doesnt have one.
So what is the best way I can create primary key in SQL database?
... more >>
Custom control not casting
Posted by BillGatesFan at 12/28/2004 7:39:06 AM
I have a custom composite control which was made from a textbox control
on my ASPX page. Why when I find the control using Page.FindControl, it
is coming up as a regular system.ui.webcontrol.textbox control and not
my custom control? I cannot even cast to my control. And when I cast to
a regular... more >>
ASP.NET question about datagrid row changes
Posted by lanem at 12/28/2004 7:13:02 AM
I have a page that shows some data in a datagrid. All rows are updateable
and then the changes are saved by hitting the "Save Changes" button. It is
not a row by row save. All edits are made and then all altered rows are
saved at once. It can be big, so I only want to save the ones that ha... more >>
how to get hdd info within asp.net app?
Posted by Vadim at 12/28/2004 6:59:03 AM
i have class
using System;
using System.Management;
using System.Collections;
public class CmpHDDUtility
{
public CmpHDDUtility()
{
}
class HardDrive
{
private string model = null;
private string type = null;
private string serialNo = null;
public string Model
{
get { return ... more >>
re: Dynamic Controls..
Posted by Irfan Akram at 12/28/2004 6:59:02 AM
Hi Thomas,
I have code to do that.
((CheckBox)ctl).CheckedChanged += new
System.EventHandler(this.checkBoxSelected1_3);
The problem is: -
1). This is fired both when the checkbox is selected as well as deselected.
I want a warning message to be displayed only when this is deselected ... more >>
Bulk Email
Posted by Amir at 12/28/2004 3:37:01 AM
Hi every one
I have an application that should send email to notify users.
But the message's body is dynamic and changes for every user.
In fact there is a template that for everyone the dynamic data fills the
template.
This facility has made major performance problem.
I'm using System.Web.Ma... more >>
how to prevent multiple logins from the same user
Posted by anoj at 12/28/2004 1:44:02 AM
Hi All
i need to prevent multiple logins from the same user at the same time.
what is the best way to do this .
How can i detect if a user closes the browser window without logging
out so tht his/her id can be removed from the global list maintained
for the looged in users
Kindly help
... more >>
Preselect item in DropdownList Edit mode???
Posted by Tim::.. at 12/28/2004 12:09:07 AM
Can someone please tell me how I go about preselecting an item in a drop
drown list when I click the Edit Command in a datagrid?
I have tried the following but it doesn't work for me!
I would be really grateful for any assistance!
Thanks
...CODE..
Private Function GetSelectedIn... more >>
HTTPContext in Threading
Posted by Makarand Keer at 12/28/2004 12:09:02 AM
Hi All
I have problem in using Threading.
I have ASP.NET application in which I am using multithreading to start a
process.
Now the object instances which are used in this thread access
HttpContext.Current to get Session Variable value. Here my code fails. Thread
on which the process is run... more >>
|