all groups > asp.net > october 2006 > threads for friday october 13
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
ASP.NET and externalizing error messages
Posted by NW Technicals at 10/13/2006 10:45:56 PM
Hello Folks,
I am trying to develop a webbased applicaiton for which I thought of
externalizing the error messages.
Earlier in my life when I had similar problem with different technologies I
have stored the errorMessage with an errorNumber associated in a Database
Used to retrieve the stri... more >>
Using loops <TD><%= Response.write("Data")%> </TD>...
Posted by Manish Sawjiani at 10/13/2006 10:14:01 PM
Dear experts
i have just migrated from asp to asp.net and i am missing the loop for
creating tables. while in asp one could just start a loop anywhere withing <%
%> is this out of style in the .Net Scenario?
Thanks
Manish
--
Three Cheers to Technet for the Help!... more >>
Wheres the Target for siteMapNode?
Posted by nesr235 NO[at]SPAM lni.wa.gov at 10/13/2006 9:25:48 PM
I can't beleive that Microsoft would create the whole Sitemap XML
datasource process but not have a TARGET tag. What am I missing? The
only place I saw the target tag was at the treeview level. Please tell
me that something this basic is at the siteMapNode level and not the
Treeview level?
... more >>
CreateUserWizard Cancel Button is not Visible
Posted by Matt at 10/13/2006 8:45:30 PM
I have a CreateUserWizard control on my registraion page and it works =
fine. I added the information in the CancelButtonType=3D"Button", =
CancelButtonText=3D"Cancel" and =
CancelDestinationPageURL=3D"~/Default.aspx" but after setting all of =
this the Cancel button is not visible. How do I m... more >>
Page margins in Firefox
Posted by karanovicm NO[at]SPAM gmail.com at 10/13/2006 8:37:37 PM
Hi
I have a problem with page margins in Firefox, it always show some
white margins arround what I don't like, in IE6 everything is fine.
This is part of code.
.............
</head>
<body bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0">
<form id="form1" runat="server">
....... more >>
Save page values, leave and refresh later
Posted by xzzy at 10/13/2006 6:10:48 PM
1. What asp.net page event would I use to save the values of the controls
just before a page closes?
-- remainder of scenario --
2. close the page and open a different page
3. open a new instance of the first page and initialize the controls' values
with those saved in step #1
Th... more >>
Change Namespace in ASP.Net 2.0
Posted by Pablo Ulman at 10/13/2006 5:01:58 PM
I have Windows XP-SP2 with Visual Studio Proffesional Edition 2005.
Y create a new Web Site, but i dont see the location to change the default
namespace!
Where is it?
In Visual Studio 2003, i change the properties but in VS2005 i didn´t see
this option!?
bye, and sorry for my english.
... more >>
Strange problem using Gmail as mail server in ASP.NET
Posted by MMAS at 10/13/2006 4:46:06 PM
I've got my .net application set up to use gmail as a mail server (see
code below). Everything works quite well, actually, EXCEPT for one
particular email account. I've created an "admin" account that I'd like
to use to send emails from since GMail automatically replaces the
"from" field with wh... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
problem accessing row in repeater!
Posted by Jeff at 10/13/2006 4:40:29 PM
Hey
asp.net 2.0
I have a Repeater control consisting of linkbuttons on my webpage. when a
linkbutton is clicked I need to get the info about the linkbutton clicked
and put that info in a session variable so it can be accessed from another
webpage in the same application (the webpage open... more >>
Losing cookie values
Posted by David at 10/13/2006 4:36:40 PM
Using VS2005 and ASP.Net. I am going between 2 aspx pages. I set cookies in
page 1, go to page 2 and then return to page 1 via postBackURL. When I get
back to page 1 all of the cookie values are gone and I don't do anything
with them in page 2. Any help on what might be wrong? Thanks.
D... more >>
Accessing usercontrol in placeholder
Posted by David Lozzi at 10/13/2006 4:31:34 PM
Howdy,
I'm using a PlaceHolder to dynamically display a user control based on a
users selection. This part works great. However how do I get to the
properties of that user control? I have public properties setup but I dont
know how to access that use control...
Thanks!!
David
... more >>
Testing for no controls collection
Posted by Tina at 10/13/2006 3:55:51 PM
I have a DataGrid Item from the header row of a 1.1 DataGrid. I got it by
saying...
Dim HeaderItem As DataGridItem = mygrid.Controls(0).Controls(0)
Now I'm looping through the Header item cells but first testing each cell as
so....
If HeaderItem.Cells(i).Controls(0) Is Nothing Then ... more >>
Repeatative Code
Posted by rn5a NO[at]SPAM rediffmail.com at 10/13/2006 3:19:13 PM
A VB class file has the following code:
Namespace MyNS
Public Class MyClass
Private sqlConn As New SqlConnection(".....")
Public Function Categorize(ByVal Category As String) As
SqlDataReader
Dim sqlCmd As SqlCommand
Dim sqlReader As SqlDataRead... more >>
Submitting Using Javascript
Posted by Goofy at 10/13/2006 3:19:03 PM
Hi everyone,
My question is related to making a form submit using javascript. Here is my
scenario. I have a form, which includes a user control. The user control
has a search button and a submit button. I have visably hidden th search
button by setting its appearance and added an HTML butt... more >>
Master Page Controls
Posted by Paul Cheetham at 10/13/2006 3:19:00 PM
Hi,
Can anyone tell me how I can access a control on the Master page from a
client page?
I have a user control on my master page in to which I want to put some
common functions etc.
I can't work out how to reference this from one of my pages.
thankyou.
Paul... more >>
Javascript and controls with runat=server?
Posted by Erland at 10/13/2006 3:05:26 PM
Hello everyone,
I am have couple of bad concepts and would like to clear things up. As
I understand ASP.NET server controls contain runat=server tag and they
only run on the server. But I've just seen an example where javascript
can access server side controls. Now javascript is about all thin... more >>
Website->Asp.Net Configuration is missing! in VS2005 Standard Edition
Posted by JP.Gantlin at 10/13/2006 3:00:46 PM
I don't have the tool!
What can I do?
as mentioned in the web.config file:
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
... more >>
page outputcache.... varyByCustom = "Browser"
Posted by Nalaka at 10/13/2006 2:56:50 PM
I had .....
<%@ OutputCache Duration="5000" Location="Server" VaryByParam="none" %>
Then I added "browser"
<%@ OutputCache Duration="5000" Location="Server" VaryByParam="none"
VaryByCustom="browser" %>
After I added browser... it stopped caching pages....
is there an explanation or... ... more >>
Label OnDataBinding
Posted by rn5a NO[at]SPAM rediffmail.com at 10/13/2006 2:49:13 PM
Consider the following code:
<script runat="server">
Sub ShowData(obj As Object, ea As EventArgs)
lblDate.Text = DateTime.Now.ToString("d")
lblDate.DataBind()
End Sub
</script>
<form runat="server">
<asp:Label ID="lblDate" OnDataBinding="ShowData" runat="server"/>
... more >>
Unselectable dates in Calendar
Posted by na at 10/13/2006 2:44:23 PM
I need to make certain date selectable in a calendar control depending
on records found in a database. For example, if the 10/20/2006 and
11/20/2006 records exist in the database, then only enable and
highlight thoese two days in the calendar control. Also, I need to
disable all weekends. Is ... more >>
invoking MSwork\ Excel\ acrobat of the browser and not local resou
Posted by sameer at 10/13/2006 2:22:03 PM
Hi all,
i have at time seen that the browser opens up word or excel or pdf documents
in itself and not invoke the msword or excel or pdf software from the local
machine, how it is possible, does it require to pass a special parameter to
the browser, please suggest.
btw i have seen this beh... more >>
Showing documents stored in the database in the browser
Posted by sameer at 10/13/2006 2:16:02 PM
i am in the process of designing an application that uploads documents to the
webserver from my ASP.net \ winforms application and saved them in the
database. Now i have another page which show hyperlinks points to the
document names that are stored in the database but the question when the us... more >>
execute client code when form submitted
Posted by sklett at 10/13/2006 2:07:18 PM
I would like to show an animated gif and display a message while a form is
being posted. I went to add an onclick handler to the button and realized
there already was one for the postback. I still want my form to post like a
regular asp.net form but I would like to execute some client script... more >>
ITemplate
Posted by Ben Schumacher at 10/13/2006 1:52:41 PM
Ok smart guys and gals ...
I have a GridView control with a dynamically created checkbox column. The
checkbox is created using ITemplate interface. In my class that implements
the ITemplate interface I set the AutoPostBack property of the checkbox to
True. When the checkbox is clicked, I... more >>
gridView sorting
Posted by rodchar at 10/13/2006 1:36:02 PM
hey all,
how do i get the sort value that the gridview is currently sorted on? in the
code-behind that is.
thanks,
rodchar... more >>
Daylight saving time calculation
Posted by mazdotnet at 10/13/2006 1:31:17 PM
Hi guys,
I have to make a event signup page for our company that would display
the event time/date in 3 different time zones (Eastern - New York,
Central - Chicago, and Pacific - San Francisco). To do this. I convert
the inputed date from local time zone and convert it into UTC and store
it ... more >>
Uploaded document security in ASP.net
Posted by sameer at 10/13/2006 12:46:02 PM
Hi all,
my asp.net page lets the users uploads documents up to a folder on the
webserver and then shows hyperlinks on a page pointing to these documents so
that the user can click them open and all this is only for users logged in
only. But the problem is that ones the user sees the name an... more >>
DataTable.Select filterexpression
Posted by Kevin Attard at 10/13/2006 12:43:56 PM
Hi
Is it possible to use multiple conditions in the filterexpression of the
DataTable's Select method?
eg:
ds.Tables["TableName"].Select("Type = 1 AND Name = "Joseph");
... more >>
Inner Repeater without dataset relationships... is it possible?
Posted by Big Charles at 10/13/2006 12:22:42 PM
I have inner Repeater2 inside Repeater1.
Problem is that I can't show the data of Repeater2 properly
What is shown on Screen is:
Line_1 Of Repeater_2
Line_2 Of Repeater_2
Line_3 Of Repeater_2
Line_1 Of Repeater_1
Line_2 Of Repeater_1
Line_3 Of Repeater_1
It should be:
Line_1 Of R... more >>
Backspace and F5
Posted by Herb at 10/13/2006 11:51:02 AM
Can I disable or remap these keys in my asp.net website?... more >>
Goto URL after login
Posted by Tor Inge Rislaa at 10/13/2006 11:47:54 AM
Goto URL after login
I have a login page on my site (login.aspx with .NET 2.0 login control). Is
it possible to automatic direct the user to a new page (e.g news.aspx)
within the site after a successfully login? (I am sure it is possible, but
what would be the best way to go?)
TI... more >>
How to return data to the client as though it were a file?
Posted by polaris431 NO[at]SPAM gmail.com at 10/13/2006 11:30:52 AM
In my ASP.NET app, I would like to return data back to the client in
such a way that it appears to the client that a file is being returned.
As you know, when you click on a link on some web pages that have a
hyperlink to a file such as a zip file, a dialog pops up in the
client's browser asking... more >>
How to screen scrape with no cache.
Posted by soul_chicken NO[at]SPAM hotmail.com at 10/13/2006 11:25:18 AM
I'm working on a simple image upload project using the asp:FileUpload
control. I read the file in and stick it into a clients content
management system. The problem is that once I redirect back to a view
page, the cached copy of the image from the content management system
is being returned. H... more >>
Default Button
Posted by JJ at 10/13/2006 11:18:32 AM
What trouble I'm having setting default buttons on a page (with a master
page).
I got around doing it on a page basis by calling the
SetWizardDefaultButton() routine [see below] from page load. Notice how
messy it looks because I could not find the required button any other way
but by usi... more >>
XHTML and Framesets
Posted by Mark Rae at 10/13/2006 11:18:19 AM
Hi,
Firstly, I have not the slightest intention of using framesets - the reason
for this post is merely to ask for assistance in furthering my understanding
of XHTML.
I was under the impression that XHTML fully supports framesets, hence the
Frameset document type. Therefore, can anyone p... more >>
dataset/GridView calculation
Posted by igotyourdotnet at 10/13/2006 11:14:01 AM
I have a dataset that is populating my gridview, but I have a data in the
dataset coming out like .011 and showing in the gridView as .011%. I need to
calculate that so it shows as 1.1% and not .011%. How can I do that and still
bind it to my gridView without having to make that calculation on... more >>
How to create the Profile object of user??
Posted by Jeff at 10/13/2006 10:48:43 AM
Hey
ASP.NET 2.0
I'm developing a web portal where users must login to. As far as I know all
users are accessible from the MembershipUserCollection. I know that current
user is also accessible via the Profile object in the webpage, but I want to
access the properties of one of the other u... more >>
How can I print the content of an ASP.NET page (C#)?
Posted by Steve Kershaw at 10/13/2006 10:46:47 AM
Hello,
I have a web page with a coupon that I would like to print when the
user clicks on the "print" button. How can I do this in C#?
Thanks
Steve
... more >>
High Utilization ASP.NET Application - IMMEDIATE HELP!
Posted by dm3281 at 10/13/2006 10:18:22 AM
Hello, all.
I have 4 web servers in a farm using network load balancing service.
All the web applications (there are about 50+ per server) are using ASP.NET
1.1.
I have two apppools setup with most of our apps in a custom app pool to
recycle memory every 800MB.
The server is running... more >>
Source Control Recommendations
Posted by Charlie NO[at]SPAM CBFC at 10/13/2006 10:05:06 AM
Hi:
I'm calaborating on a project with a few people. We need source control
that can be connected to over the web. In addition to VSS, can anyone
recommend cheaper alternatives?
Thanks,
Charlie
... more >>
Master Pages and content pages in subfolder
Posted by vikramp at 10/13/2006 9:43:05 AM
Hi,
I am still new to ASP.NET 2.0 and trying to develope something using
Master pages.
My problem is:
I have a master page that contains Logo image and a navigation menu at
the top of the page so that this will be displayed on all the content
pages automatically.
This works fine for the c... more >>
making a table invisible
Posted by Carlos at 10/13/2006 9:38:48 AM
Hi all,
I have a table that I would like to make it invsible depending on the
validity of data retrieved. The problem is that within the code behind
the reference to the table is not understood. (i.e. it says that the
html control that I reference with its ID is not declared). How can I
ref... more >>
asp.net calendar control highlighting special days
Posted by jobs at webdos at 10/13/2006 9:07:23 AM
Does anybody have a simple vb.net example where you select dates from a
table and highlight them in an asp.net 2.0 calendar?
... more >>
Skins in Asp.Net
Posted by shapper at 10/13/2006 9:04:58 AM
Hello,
Can't I use other control tags in my Asp.Net skin files?
Thanks,
Miguel
... more >>
Creating aspx pages on the fly
Posted by VB Programmer at 10/13/2006 9:00:23 AM
My client wants to be able to have unlimited pages in his website and I'm
making an "admin interface" for him to add and remove pages. (He will use
Macromedia Contribute to modify the content of these new pages.) I would
use straight HTML pages, but I need to use the "Master Page" for the
... more >>
.html data file inside an asp.net page?
Posted by jobs at webdos at 10/13/2006 8:26:20 AM
I have a bunch of html pages and a database table with links to them.
I want to dynamically display those pages inside a set location on an
exsisting asp.net 2.0 page when a link is selected, but I don't want to
change the html pages which will contain a duplicate set of <html>
tags.
What'... more >>
Server Side ASP button
Posted by Shaqman at 10/13/2006 7:51:53 AM
I have a server side asp button that submits a form after completion and a
postback to acknowledgement. I need to disable the button after the user
clicks on this once to prevent duplication. There is a slight delay in the
process (business rules) between the submit button and the postback.
... more >>
"Publish Web Site" Network Login? VS2005
Posted by cider123 NO[at]SPAM hotmail.com at 10/13/2006 7:29:50 AM
I don't know what our Server Admins changed, or if it's something else.
I'm in the Administrator group on this Server, so I don't know what
else they may need.
When I attempt to publish to a Remote Server on our WAN, I get prompted
with a Network Login dialog.
I key in the correct credenti... more >>
Bad web reference proxy code
Posted by jjoy at 10/13/2006 7:11:23 AM
After moving to 2.0, one of our web references stopped working.
The issue is an enumerated type is defined and then used in several
classes within the proxy code (Reference.cs). This type's values are
now no longer getting set, they're always null.
The classes that use this type define it as nul... more >>
print preview page question
Posted by igotyourdotnet at 10/13/2006 5:42:01 AM
I need to create a print preview page BUT my page I need to print has a grid
and in the grid I have 2 or 3 columns that have links I want to hide the
columns with the links on my print preview page so they don't print. Is that
possible to do and if so can someone point me somewhere or show my ... more >>
Convert WebControls.Unit to String
Posted by shapper at 10/13/2006 4:20:15 AM
Hello,
In a custom control property I have the following:
If CStr(ViewState("InfoWidth")) Is Nothing Then ...
I am getting the error:
Conversion from type 'Unit' to type 'String' is not valid.
Can someone tell me how can I convert the InfoWidth (Type =
WebControls.Unit) to a stri... more >>
Augsutus Gloop 2.0
Posted by mark.norgate NO[at]SPAM gmail.com at 10/13/2006 3:58:39 AM
In Wikipedia, how few links does it take to get from "Web 2.0"
(http://en.wikipedia.org/wiki/Web_2.0) to "Augsutus Gloop"
(http://en.wikipedia.org/wiki/Augustus_Gloop)?
So far, I can only get it down to 17.
Mark
... more >>
Data files in the App_Data Folder
Posted by wwwmike NO[at]SPAM gmx.ch at 10/13/2006 3:49:24 AM
I have an asp.net 2.0 application where I move about 200,000 text files
daily in and out.
When using VS 2005 to debug my application everything works find if
only a few files are in the folder. (The folder is locaed within the
project file). Yesterday I did a stress test were I placed 200,000
... more >>
Ambiguous In Mamespace?
Posted by rn5a NO[at]SPAM rediffmail.com at 10/13/2006 2:52:40 AM
Consider the following code in a VB class file:
Namespace LoginUserFetchDB
Public Class ZForZebra : Inherits SoapHeader
Public UserName As String
Public Password As String
End Class
Public Class GetDBRecords : Inherits WebService
Private sqlCmd As SqlCo... more >>
Presentation layer has reference to data layer
Posted by Ily at 10/13/2006 1:21:25 AM
Hi all
I am using Visual studio 2005.
Im my project I have a presentation layer, a business layer and a data
access layer. From my business layer i have a reference to my data
layer. I also have a refeence to my business layer from my presentation
layer.
Now the weird thing is, I can cre... more >>
|