all groups > asp.net > july 2007 > threads for wednesday july 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
assign a varriable to text box
Posted by Ganesh at 7/11/2007 10:15:03 PM
Hi There,
I'm trying to use a variable value in the text box, i cannot find a way to
do this.
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script language="c#">
string a12 ="89";
page.databind();
</script>
</head><body>
<form ... more >>
Validate multiple Panels
Posted by Brybot at 7/11/2007 7:28:03 PM
I have a form that i've split up into multiple asp:panels, each panel
has a number of validators which work correctly.
At on the last panel, i want to commit the data collected to a
database. I figured since all the panel data is still being sent
through the postbacks, instead of using Sessio... more >>
Rename ASPNETDB>MDF
Posted by Dave at 7/11/2007 7:20:01 PM
How can I rename the default ASPNETDB.MDF database when a login control is
used?
--
L. A. Jones... more >>
mystery 2.3
Posted by Vince13 via DotNetMonster.com at 7/11/2007 7:19:34 PM
I am working on a page with textboxes that can only accept a certain number
of decimals places. So I wrote a small function to check the number of
decimals, not counting zeros, as well as range check the entry and then
return the results, based on a parsing method I learned in c++ involving
int... more >>
Outlook Web Access (OWA) 2003 Look and Feel
Posted by Martin Adhie at 7/11/2007 7:04:00 PM
Hi All,
Anyone knows where can I get Outlook Web Access (OWA) 2003 look and feel
template code in asp.net 2.0?
This download for windows based Outlook 2003 look and feel template.
http://windowsclient.com/downloads/folders/applications/entry1338.aspx
I'm very like it. It can be used for ... more >>
booking seats - refresh other user's browser window
Posted by patrickdrd at 7/11/2007 5:04:03 PM
Hi everyone!
I'm writing a booking system website,
which needs a seat selection algorithm,
my question is,
if a user clicks on a seat (temporarily booking that one),
how will the other users navigating on the same row of seats know that the
previous user has already booked a specific seat?
... more >>
Reach components in content using javascript
Posted by Magnus at 7/11/2007 5:00:07 PM
Hello,
I am very new to javascript, but would like to do some client operations =
with some server controls.
I have a masterpage with a contentplaceholder. I think what I'm trying =
to accomplish is quite obvious (I hope).
Here's the master page:
<%@ Master Language=3D"C#" AutoEventWireup=... more >>
googlebot and CheckVirtualFileExists Exceptions!
Posted by patrickdrd at 7/11/2007 4:54:01 PM
Hi everyone!
I get some errors lately regarding:
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1;
+http://www.google.com/bot.html)
and:
System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
After googling that,
I found this page:
http://www.inventua.com/forums.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem sending PDF as stream using iTextSharp
Posted by at 7/11/2007 4:31:15 PM
I have no problem writing PDF file to hard drive on the fly with
iTextSharp, but have had no luck in sending PDF as a stream in my
asp.net web application.
I am simply copying the example at
http://itextsharp.sourceforge.net/examples/Chap0105.cs
But, Adobe Acrobat reader complains that th... more >>
good practise question
Posted by Chris at 7/11/2007 4:00:58 PM
Hi,
We have an application where users must fill the same form several times,
creating each time a record in the database.
When checking the checkbox in this form means the last record.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
... more >>
Enterprise Library Configuration setting!
Posted by Rick Mavrovik at 7/11/2007 3:59:46 PM
Hi,
I am developing web application on 3 tier model. For data access my Data
Access Layer (DAL) uses MS Enterprise Library (MSEL). If I am right MSEL
relies on web.config file for the connection strings. I need to make the DAL
totally independent ie I want to save the connection string inform... more >>
CheckChanged event not firing when unchecking CheckBox in GridView
Posted by jlficken NO[at]SPAM gmail.com at 7/11/2007 3:53:32 PM
Does anyone have any idea what has to be done in order to get the
CheckChanged event to fire when a bound CheckBox is unchecked in the
GridView. It fires when going from unchecked to checked just fine but
if I decide to uncheck it again the event never fires and it stays
checked. It is bound t... more >>
How to pass parameter from Datagrid selected row to a text box
Posted by Ed Dror at 7/11/2007 3:40:19 PM
Hi there,
I'm using Visual studio 2005 pro and I want to pass parameter from =
datagrid selected cell to textbox
I have Select button in my datagrid
I wrote this
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As =
System.Web.UI.WebControls.GridViewRowEventArgs) Ha... more >>
asp.net 2 drop down list and a selected saved value
Posted by pelegk1 at 7/11/2007 3:06:03 PM
if i have a drop down list which i pull its values from DB i want the DDL to
point to the selectedIdex that was saved in a db. how can i do this?
thnaks in advance
peleg
... more >>
Do we need to close connection when we use strongly typed table adapters?
Posted by Max2006 at 7/11/2007 2:19:27 PM
Hi,
I saw the Business Logic Layer pattern suggested at the following link and I
found that the pattern never closes the connection:
http://www.asp.net/learn/dataaccess/tutorial02cs.aspx?tabid=63
I am using strongly typed datasets and TableadApters. I assume that
TableadApters always cl... more >>
GridView and hidden field
Posted by pelegk1 at 7/11/2007 2:16:03 PM
i have a GridView and a hidden field :
<asp:TemplateField Visible=false >
<ItemTemplate >
<asp:HiddenField Value="<%#Eval("isActive")%>"
id="hidIsActive" runat=server />
</ItemTemplate>
</asp:TemplateField>
1)when i check the... more >>
How to get UserName of logon control from code
Posted by Froefel at 7/11/2007 2:02:01 PM
I have added a Login control to a Master Page. the control shows the
currently logged in user (domainname\username).
In one of the content pages, I need to access this name.
I noticed that the Login control has a UserName property but it's in
the Nonpublic properties, so it's not accessible from... more >>
Title fees calculator - any 3rd party solutions?
Posted by VB Programmer at 7/11/2007 2:00:12 PM
One of my clients want to have a title fee calculator on their website, like
this: http://www.firstfederaltitle.com/calcindex.php
Do you know of any 3rd party solutions or things I can use with ASP.NET to
create this?
Thanks!
... more >>
Specifying UpdateParameters for ObjectDataSource bound to GridView
Posted by josef NO[at]SPAM wainz.net at 7/11/2007 1:57:15 PM
Can anyone tell me now to specify the Update Parameters for an
ObjectDataSource bound to a GridView. From what I've read in the
documentation, the Update Parameters are automatically derived from
the DataSet bound to the GridView. This is a problem because I don't
need to update fields like Crea... more >>
html table control vs web table control
Posted by Geary at 7/11/2007 1:52:19 PM
I am porting my first traditional app to a web-based app using VS2005
and ASP.NET 2.0. I have a page that will replace a data entry form. To
have complete control of layout, I want to use a table as a layout
device. Typically I would go with a std html table. With VS2005 I have
a choice o... more >>
Changing DetailsView controls in PreRender will fails on postbacks
Posted by Khafancoder at 7/11/2007 1:50:02 PM
Hi guys,
i'm trying to change all of page control's (root controls and inner
controls) forecolor in PreRender event.
it works fine but when a postback occures by detailsview command
buttons, it fails...
(i trace the code, it even executes in postbacks but control's
forecolor don't change)
... more >>
Locking textbox, labels
Posted by Marco Ovalle at 7/11/2007 1:46:03 PM
How can I lock textbox and labels ???
Inside Visual Studio 2005 doesnt work LOCKED property ...
When I run the page, it appears with the objects disorderd.. or not on there
its own place....
Please help...
Regards, Marc Ovalle... more >>
SWF one over another
Posted by Dariusz TomoƱ at 7/11/2007 1:18:08 PM
Hi,
I have got 2 swfs overlain on onto another. This is because I have
skyscraper (displaying jpg, gif or swf) which is moving during scrolling
page. Unfortunatelly there are several swf buttons on the "route" of
skyscraper so sometimes button swfs are on the front instead of being
covere... more >>
Manipulating DIV from UserControl
Posted by David Hearn at 7/11/2007 12:13:38 PM
I have a user control that is embedded into a <DIV> tag in my aspx page. The
div tags visibility is set to true from the page when the user clicks on an
image. There is a user control within the div and I would like to hide (set
the visibility) the div once the user selects a date in the calen... more >>
why does clicking a Button stop an unrelated async thread?
Posted by James Irvine at 7/11/2007 11:39:37 AM
I launch an asynchronous thread by clicking ButtonInitAsyncThread, which
works fine. When it's done, it sends back it's results. But, while
this thread is still running, if I click on ButtonCheckThreadStatus,
which has nothing to do with the async thread running, it cancels the
thread, and... more >>
add results to dataset
Posted by Steve at 7/11/2007 10:55:24 AM
Ok, I hit a wall and I'm stuck. I have a web form that has a textbox were
the user can enter in 1 to many usernames, then the user has to validate the
user to make sure the user exists. I have a stored procedure that can only
take one username at a time, so I need to keep calling this stored proc... more >>
IHttpAsyncHandler & Request/Response Serialization...
Posted by Nikos Konstas at 7/11/2007 10:50:41 AM
Hi,
I'm implementing a simple protocol on top of HTTP using asynchronous
http handlers. Session state is disabled so multiple requests from the
same client can be processed concurrently.
I want to keep the number of client connections to an absolute minimum
(i.e. one connection per clien... more >>
Multiple CSS files - proper way to do this when you have a master page?
Posted by Homer J. Simpson at 7/11/2007 10:44:15 AM
Hi all,
I have enough experience with HTML/classic ASP to get by, and I'm trying to
learn ASP.NET.
Traditionally, I've taken the habit of breaking out extra-long CSS files
into multiple, smaller ones, and referring to them in my HTML/ASP files on
an as-needed basis. Essentially, I've or... more >>
Can I start an Excel session from Visual Studios 2005 (C#)?
Posted by Steve Kershaw at 7/11/2007 10:23:48 AM
Hi,
I have a need to start and load with data an Excel spreadsheet from a
ASP.NET application. Is that possible in XP and if so how?
Thanks
Steve
... more >>
Setting up a Load Balanced Web Farm
Posted by Chris at 7/11/2007 8:54:03 AM
My employer has need to setup a Load Balanced Web Farm for some mission
critical ASP.NET Web Services and I was wondering if the only way to
accomplish this was to purchase Microsoft's ISA Server 2006 since that's the
only reference I have found on Microsoft's site in regards to this
require... more >>
What is the best way to track marketing campaigns (using IIS / asp.net 2.0)
Posted by ship at 7/11/2007 7:55:26 AM
Microsoft IIS (latest)
asp.net 2.0
Hi
How can we track (numerous) separate marketing campaigns using IIS and
asp.net (2.0)?
(We are trying hard to AVOID having to set up a new directory for
every single marketing campaign...
so what is the best way to do create trackable URLs?)
S... more >>
No C:\Program Files\Microsoft ASP.NET directory???
Posted by Steve Kershaw at 7/11/2007 7:54:58 AM
Hi,
I'm trying to install a web site to the test machine and I'm getting
an error when I try to run the site. I've traced the problem down to
the fact that I don't have the AJAX extensions installed. They need to
be installed in the directory
C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 A... more >>
Sorting XML data in a DataGrid
Posted by slinky at 7/11/2007 7:49:43 AM
I have an XML file that is successfully displaying in my datagrid on
my .aspx. I need to sort the data before it displays:
Here's my .aspx code:
<%@ import Namespace="System.Data" %>
<script runat="server">
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim myDat... more >>
Word 2003 and ASP.net 2.0
Posted by eagle at 7/11/2007 7:35:23 AM
I want to get data out of word and put it in an asp page via labels,
textboxes, whatever. Every article I see puts data into word, not the other
way around. I have the Visual Studio Office Tools, can anyone point me to
the right article?
... more >>
Formview update--one field won't update
Posted by Larry Bud at 7/11/2007 7:26:30 AM
I added another column to a table, a varchar(1000), added a textbox to
the formview, bound it (2 way), added the parameter to the update, but
it won't update.
I ran SQL Profiler, and the variable is set to NULL. It's like the
databinding isn't going on.
As the tree said to the lumberjack "... more >>
gray out or disable underlying page on click
Posted by Yankee Imperialist Dog at 7/11/2007 6:38:00 AM
I would like to gray out or disable all of page content while a pannel is
visible and active. I know there is a way to do this.
psudo code
1. click "Join"
2. display panel and disable all other elements on the page
3. click cancel or procede: re-enable page elements and hide the panel
OK... more >>
q; Keeping Credit Card in the database
Posted by JIM.H. at 7/11/2007 6:04:06 AM
Keeping Credit Card in the database:
If I am going to keep credit card information in the database, what process
and procedure I need to pay attention so that I would not be in trouble
because of security in web application, database, and in the building that
the server is in. Any guidelines?... more >>
ASp.net 2.0, IIS, Session Variable(Maybe)
Posted by abhya at 7/11/2007 5:03:57 AM
HEllo,
I hav developed web application using ASP.net 2.0
there are just 2 pages only. Both are works fine in visual studio.
But same when i run on IIS 5.1 ....the page without session variable
works fine.
But the page with...even the Sub() with session variable won't
works (Its my assumption t... more >>
app_code folder in Orcas
Posted by somequestion at 7/11/2007 1:26:44 AM
hi there !
i have some project using app_code in asp.net of vs2005
these project converted to orcas version but class in app_code is not
working..
is orcas not support?
how do i do?
... more >>
window.open & RegisterClientScriptBlock
Posted by at 7/11/2007 1:13:02 AM
Hello,
I try to open a new Window in code behind with :
ClientScript.RegisterClientScriptBlock(this.GetType(), "MyOpenScript",
"window.open('toto.doc');", true);
My problem is that the new window is created but it disappears immediatly
just after creation!!
For information, I tried thi... more >>
Is it possible to use MachineName or IP in cookie's domain parameter?
Posted by alberthung01 NO[at]SPAM gmail.com at 7/11/2007 1:12:25 AM
Hi all,
I wrote the code below in client script block,
but I couldn't retrieve the cookie which was set in line 1.
Server1
processCookies.htm
url->http://Server1/mainSite/processCookies.aspx
------------------
document.cookie="myName=Test;domain=Server1";
alert(document.cookie);
---------... more >>
Displaying HTML Code in DataGrid....
Posted by LamSoft at 7/11/2007 12:00:00 AM
I have a cell in the datagrid, which the original data is as following:
Testing1
Testing2
Testing3
Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and
I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate
<br/> into "<br/&g... more >>
2 questions please
Posted by ckerns NO[at]SPAM refuse.net at 7/11/2007 12:00:00 AM
I have a page that has a LogInView. Inside of it is a LogIn control.
The login control is in the anonymous template and a staus view is in
the logged on template. (Names: LogInView1, Login1, & LogInStatus1.)
quest 1. How can I set focus to the UserName textbox of the LogIn
control (inside of... more >>
Question about user webcontrol and popup
Posted by Victor at 7/11/2007 12:00:00 AM
Hi guys.
I want to implement a customized user webcontrol (.ascx). Inside this
control I have a dropdownlist and a button. when user click the button, it
will open a pop up window(not Ajax popup window). The popup window will
display a datagrid. The user can select one or more items from the... more >>
Alternative of server.mappath() in my class
Posted by Han at 7/11/2007 12:00:00 AM
Hello
I have an website having a class to be used by my .aspx, .asmx in the same
project. Also I have a common directory for XSL files. From .aspx I retrieve
the files by server.mappath("~..."). Now How do I do that in my class file?
Same way? or something another? The server.mapath() synta... more >>
Would AJAX be the best solution?
Posted by VB Programmer at 7/11/2007 12:00:00 AM
I have a music list that is maintained by a DJ (artist, song, genre) in a
SQL Express db.
I want a user to be able to drag one or more songs from the "master" list to
a "playlist" and reorder them easily.
They can either save or email the playlist.
For smoothness of interactivity I was ... more >>
|