all groups > asp.net > september 2006 > threads for wednesday september 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
Repeaters and SiteMapDataSources
Posted by Tarun Mistry at 9/13/2006 11:12:24 PM
Hi guys,
im trying to do something which I feel isn't that difficult. I'm just a
little lost in the .net framework. Here goes...
I have a repeater which is using a SiteMapDataSource to bind to. I am trying
to make my own custom navigation system. All in all it works fine. I simply
create... more >>
How to change database name on the fly?
Posted by craigkenisston NO[at]SPAM hotmail.com at 9/13/2006 9:58:54 PM
How to change database name on the fly?
I have an asp.net application in which a user connects to a sql server,
where there's a centralized database with the users table and general
settings.
Then, each user also has a database in which his particular information
is stored. There will be a fe... more >>
How to skip some items of a repeater
Posted by Julien Sobrier at 9/13/2006 8:28:59 PM
Hello,
I would like to skip the display of some items of a repeater. I think I
need to do something like this:
<asp:Repeater ...>
<ItemTemplate>
<% if (a == b) { %>
...
<% } %>
</ItemTemplate>
</asp:Repeater>
But I can't find out the exact syntax, or if there is a bette... more >>
[newbie question] IIS5.1 & ASP2.0
Posted by Simon Smith at 9/13/2006 7:44:23 PM
Please forgive me if this is an obvious question, but my programming
experience is VB6 and old fashioned languages. Forth anyone?
Anyway I am now trying to learn ASP2.0, via Microsoft Visual Web
Developer 2005 Express, and so far so good. But I now want to deploy an
initial website to test ... more >>
Visibility of servercontrols thrue javascript
Posted by Dahab at 9/13/2006 7:42:01 PM
Hi,
Anyone know if it's possible to set the visibilty of a servercontrol thru
javascript.
Think it would go something like this, but its not working:
document.forms[0]['TextBox1'].style.visibility == 'hidden'
Thanks
T.
---------
Diving the blue deep.
... more >>
Masterpage title
Posted by Pitaridis Aristotelis at 9/13/2006 6:51:24 PM
Does anyone knows how to change the title of the page when someone uses a
masterpage?
Aristotelis
... more >>
What is the best practice to have a user control placed multiple times on a page?
Posted by Gummy at 9/13/2006 5:45:58 PM
Hello,
I created a user control that has a ListBox and a RadioButtonList (and other
stuff). The idea is that I put the user control on the ASPX page multiple
times and each user control will load with different data (locations,
departments, etc.).
When I click the RadioButtonList th... more >>
Any Reason to Use Session Object?
Posted by Jonathan Wood at 9/13/2006 5:42:08 PM
I was just wondering if anyone had any good reasons to use the Session
object when the newer Profile object is now available.
Thanks.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Npgsql problem
Posted by mr.Hyde at 9/13/2006 4:57:34 PM
Hi,
Did enybody know what happens?
My ASP application works fine until today. I didnt change anything
in iis or code or postgresql. The efect is:
- veery slow executesqlcommand
- after sqlcommand IE hangs for 2 minuts then returns no error
I haven't idea. Please Help
mr. Hyde
I'm pro... more >>
Sending Email from ASPX page
Posted by Hardy Wang at 9/13/2006 4:40:05 PM
I got error message "Asynchronous operations are not allowed in this
context. Page starting an asynchronous operation has to have the Async
attribute set to true and an asynchronous operation can only be started on a
page prior to PreRenderComplete event."
--
WWW: http://www.imagestation.... more >>
applets problem
Posted by harish.kurra at 9/13/2006 3:59:11 PM
Hi All,
I need small help on this formus, actuallly i have a problem with my applet
application, i developed the applet application on the jre 1.4. version, if
the same applicaiton in another system i mean in the client machine the
application not running, its showing blank page bec in the cli... more >>
How to use ConfigurationManager with ASP.NET
Posted by SR at 9/13/2006 3:35:40 PM
I have created a ConfigurationSection class in VB.NET. I tested my class
using a windows application. Now I need to move it into my ASP.NET project.
I get an error stating that I need to specify the exePath. In the windows
application I was using the ConfigurationLevel.None. I tried settin... more >>
Unusual error web application
Posted by VMI at 9/13/2006 3:24:46 PM
Hi,
I can only give you a general description behavior of the web app error
since it was written by someone else (using some type of code
generator) and now he's gone.
Our site was built using asp.net 1.1, and it connects to a DB and does
a simple query to display data. The first few static ... more >>
Custom login will not work
Posted by Jakob Lithner at 9/13/2006 2:19:02 PM
When I started a new ASP project I was eager to use the login facilities
offered in Framework 2.0/VS 2005.
I wanted:
- A custom principal that could hold my integer UserID from the database
- An easy way to classify different pages as either Admin, Member or Public,
where login is necessary... more >>
MsgBox
Posted by Jim in Arizona at 9/13/2006 2:00:07 PM
I wanted to make a pop up box to verify a choice to delete a database
record, so I tried this code:
Dim Result As MsgBoxResult
Result = MsgBox("Are You Sure?", MsgBoxStyle.OkCancel, "Sure?")
If Result = MsgBoxResult.Ok Then
Else
End If
The error I got was:
Showing a modal dialog box o... more >>
Object reference not set to an instance of an object
Posted by pj at 9/13/2006 1:57:06 PM
Can anyone help? I getting this error on line 17:
Object reference not set to an instance of an object.
Line 15: Dim UserGUID As Object = User.ProviderUserKey
Line 16:
Line 17: DataSource.InsertParameters.Add("UserID",
UserGUID.ToString())
Line 18: DataSource.Inser... more >>
How to ge the IP address of my web server
Posted by nikolayds NO[at]SPAM gmail.com at 9/13/2006 1:23:16 PM
I need to get the IP address when my web server listen to in ASP.NET
application.
C# is teh language. My Server has a multiple installation of my
application and I need to show the IP in one message box.
Any ideas?
thx
... more >>
return keys being clicked
Posted by JJ at 9/13/2006 1:12:41 PM
I have a createuserwizard control on my web form. When the user registration
fields are filled out correctly, and the user then presses the return key
instead of clicking the 'create user' button, the browser seems to default
to the first asp control on the web page instead of having the same... more >>
Having a hard time trying to open a text file
Posted by Tony Girgenti at 9/13/2006 12:49:07 PM
Hello.
I developed a web consuming windows application/form program with VS.NET
2003, VB, .Net Framework 1.1.4322, ASP.NET 1.1.4322, IIS 5.1.
Using this code to open a simple text file. If i get an error in my program
after the file has been opened once, it gives me a message saying
"Sy... more >>
Thread Abort?
Posted by Chip at 9/13/2006 12:27:56 PM
I need to have an asynch thread abort itself. Something akin to a STOP. The
thread that spawned it cannot access it so it must done within the thread.
Chip
... more >>
master page - reload/flickering
Posted by igotyourdotnet at 9/13/2006 11:08:02 AM
Is there a way to prevent the master page to reload every time the user makes
a selection off of the menu? I want to give it a "Frame" like appearance were
only the content section changes with a menu selection.... more >>
Max characters in datareader/dataset?
Posted by MRW at 9/13/2006 10:57:35 AM
Does anybody know anything about a default limit of 249 characters to a
datareader/dataset field?
I'm trying to pull off a 200 word record from an Access MEMO field in a
GridView and the reader and dataset used to get it only displays the
first 249 characters.
Any help would greatly be appr... more >>
MultiView control
Posted by DougS at 9/13/2006 10:44:53 AM
We're writing a small survey app in ASP.Net 2.0. We're dynamically adding
Views to a MultiView control for each question stored in a database. We are
considering displaying three to five questions at a time. Is it possible to
'page' through a MulitView control and display more than one View at... more >>
META Tags
Posted by Vai2000 at 9/13/2006 10:40:10 AM
How can I add meta tags to web forms if they are being derived out of master
page??
If I add this snippet to foo.aspx it throws exception
<head runat=server>
<meta name="description" content="Foo">
</head>
TIA
... more >>
Add Page Directives Programmatically?
Posted by xeroxero at 9/13/2006 10:24:51 AM
I would like to set the following Page directives in my C# code-behind
for ASP.NET 2.0 Web Application Project and also in a ASP.NET 2.0 Web
Site. What event should I hook and what should the code look like?
MaintainScrollPositionOnPostback
ViewStateEncryptionMode
LinePragmas
Title
Th... more >>
Cannot find a part of the path Error
Posted by Arthur at 9/13/2006 9:58:54 AM
Hi All,
I know there have been previous posts with this topic but the issue for
most seems to be the security permissions on the shared drive. My
scenario is as follows :
I have IIS on local machine, I have code on a mapped drive in the
network.
I tried writing to a folder on the mapped drive ... more >>
vs2k5 equiv.
Posted by rodchar at 9/13/2006 9:53:01 AM
hey all,
in vs2k3 i could loop thru all the elements in the document like the
following:
function getscrollvalue(){
elm=document.Form1.elements;
for(i=0;i<elm.length;i++)
if(elm[i].type=="text" && elm[i].name.match("scrollvalue")!=null){
a=elm[i];
a.value=(a.value=="")?0:a.v... more >>
Element TABLE cannot be nested within element 'p'
Posted by Fred Flintstone at 9/13/2006 9:33:44 AM
Why not? Why can't I put a table within paragraph tags?
Also:
"Element DIV cannot be nested within element 'u'."
I can't underline something within div tags? Why not?
Thanks! :)
... more >>
'Random' does not contain a definition for 'Next'
Posted by ssims at 9/13/2006 9:25:28 AM
I've got this code for a random GDI+ chart generator, and the demo
works, but when I try to run it on my local machine I get a compiler
error: Compiler Error Message: CS0117: 'Random' does not contain a
definition for 'Next'
Here's the code:
using System;
using System.Collections;
using Sy... more >>
ASP.net 2.0 DropdownList bound to SQLDataSource and setting SelectedIndex
Posted by Jason Wilson at 9/13/2006 9:15:03 AM
I have two dropdownlists that are bound to the same datasource and I
have a couple of questions:
1) Because they are bound to the same datasource, I am assuming that
they only make 1 round trip to the DB server -- is that correct?
2) On a user's click of a button, one of the actions in the... more >>
w3wp memory usage
Posted by Jeremy Chapman at 9/13/2006 9:06:43 AM
Last night I noticed a bunch of our web apps were getting out of memory
exceptions. I checked task manager on the server and the w3wp.exe process
had eaten up about 780 megs of memory. I did an IIS reset and it has solved
(temporarily probably) the issue. Memory usage dropped to about 50 me... more >>
Poor NG Support....
Posted by JeffP NO[at]SPAM Work at 9/13/2006 8:41:19 AM
Is this a holiday week?
There are way too many unanswered posts!
I dont' care if the person asked a dumb or un-comprehensible question, they
deserve a response even if it is to clarify or re-state their question and
offer a suggestion.
Hang in there posters, hopefully our questions will... more >>
Viewing Word/PDF/Other in Master Pages (or ASP.NET at all)
Posted by pagates at 9/13/2006 8:36:02 AM
Hello All,
This is a newbie follow-up to my previous newbie question....
Is there a way to view a Word document (or a PDF, or a text file, or any
other file) as content for a Master Page?
Previously, I had an HTML file that used frames, with a "table of contents"
in the left frame, and ... more >>
precompile
Posted by chaz at 9/13/2006 8:35:01 AM
Hi,
I've a couple questions regarding in-place pre-compiling .
As I understand it from ms documentation - precompiling a site in place
effectively performs the same compilation that occurs when users request
pages from your site. Therefore, the primary performance improvement is that
pag... more >>
master page - reload/flickering
Posted by CSharpguy at 9/13/2006 8:24:02 AM
Is there a way to prevent the master page to reload every time the user makes
a selection off of the menu? I want to give it a "Frame" like appearance were
only the content section changes with a menu selection.... more >>
url creation problem
Posted by ^MisterJingo^ at 9/13/2006 8:12:47 AM
Hi all,
I've created an app which allows a directory to be browsed. If a file
is clicked, I use ResolveUrl() to convert the directory path to a url
path. I then attach the file name to the end of it.
This works perfectly for all files but one. The name of the file is
"lead ECG B&W.pdf" It se... more >>
gridview pagersettings
Posted by cruster at 9/13/2006 7:45:00 AM
Hello,
I'd like to know whether there is a setting which would enable me to
show all 4 paging links (first-previous-next-last) in all cases. The
standard behaviour is not to show first and previous on the first page.
That's logical, but I'd prefer to show disabled links there except of
nothing.... more >>
Unable to cast object
Posted by Jim in Arizona at 9/13/2006 7:33:24 AM
I get this error:
Unable to cast object of type 'System.Web.UI.HtmlControls.HtmlInputText'
to type 'System.Web.UI.WebControls.TextBox'.
Using this code:
Dim test3 As TextBox
test3 = CType(e.Item.FindControl("edit_name"), TextBox)
Dim SQL As String
... more >>
App Architecture: Typed Datasets, EntLib, Performance
Posted by Karch at 9/13/2006 7:26:18 AM
I have a web application that I have partitioned into 4 assemblies: web
application (presentation), business entities (typed datasets), business
objects (business logic), and data access (using DAAB). The two areas that
where I have read conflicting information are the use of typed datasets an... more >>
Object reference not set to an instance of an object.
Posted by Jim in Arizona at 9/13/2006 6:52:21 AM
I get the error: Object reference not set to an instance of an object
With this code:
Dim test3 As New TextBox
test3 = CType(e.Item.FindControl("name"), TextBox)
Dim name As String = test3.Text
The specific line is:
Dim name As String = test3.Text
... more >>
Increase SQL timeout with Enterprise Library
Posted by ujjc001 at 9/13/2006 6:38:06 AM
Hello all-
I'm using the enterprise library for my data calls. I have a sql query
that takes a long time to run and would like to increase the timeout
for that one single call. If I step into the ent lib code I can get at
the connection timeout property and increase that, but I can't get at
i... more >>
Overhead converting .htm files to .aspx
Posted by mwhite NO[at]SPAM mbasys.co.uk at 9/13/2006 6:21:33 AM
Hi, I have an old .htm site that I need to protect with Forms
Authentication.
I know that I can change the filetype of all these files to .aspx, and
this lets the Forms Authentication protect them, however I saw on
msdn.microsoft.com that this incurs some additional overhead. Does
anyone know h... more >>
OS Requirements
Posted by Charles Parker at 9/13/2006 6:08:57 AM
Does Windows XP Media Center Edition support installation of IIS and ASP.NET
or do you need Windows XP Pro or Server series? I installed on Media Center
and I get errors is the reason I am asking. My previous use was on XP Pro
and never had any problems. If XP Pro is required I will just have ... more >>
ASP.NET 2.0 TreeView control postback on checkChanged
Posted by japi at 9/13/2006 4:38:53 AM
Hi all,
I have a TreeView control in my ASP.NET 2.0 Web application with
checkboxes enabled.
I would like to generate a postback when a user ticks or unticks a
checkbox. As far as i know, this is not possible out of the box.
Does anyone have a solution/workaround/hack for this?
Cheers,... more >>
Get GridView's datasource after Post Back
Posted by phil.a.jenkins NO[at]SPAM gmail.com at 9/13/2006 2:27:07 AM
Hello
I have a GridView which is bound to a standard DataSet on Page_Load.
E.g
Grid.DataSource = dataSet;
Grid.DataBind();
I have added columns manually in the aspx source, and one of them is a
ButtonField, which is hooked up to a _RowCommand event handler.
What I need to do is t... more >>
Strnge characters causing compilation error
Posted by tom_burrow NO[at]SPAM umbro.co.uk at 9/13/2006 1:45:42 AM
hi,
i am hoping that someone may be able to help me... i have been writing
vb.net pages using visual web developer. they all work fine locally
however when i upload to the server i get the following error:
Compiler Error Message: BC30037: Character is not valid.
it looks as if some stra... more >>
Forms authentication not working
Posted by mwhite NO[at]SPAM mbasys.co.uk at 9/13/2006 1:18:29 AM
Hi, I'm adding a security layer to a companies intranet pages. I have
created a login page, using the Asp.Net 2 login control, and am using
Forms Authentication. I have set the <forms> timeout attribute to
5mins, as they don't want anyone to be able to view the secure pages
without logging in. I... more >>
windows controls on asp.net pages
Posted by Uwe Thiemann at 9/13/2006 12:00:00 AM
hi,
is it possible to put a windows control on an asp.net page? I need a windows
listbox on an asp.net page to store objects in it. the listbox control of
asp.net can't store objects (only strings).
thank you very much
uwe from germany
(sorry for my bad english)
... more >>
How to improve database controls in ASP
Posted by James at 9/13/2006 12:00:00 AM
Hello all
I have not experience in this kind of issues...
My problem is that I create a little application in VB that uses a DataBase
(SQL-Server) and each time that I add a dataset or a SqlDataSource the
application becomes slower...
I don't know how can I optimize this website.
Please, cou... more >>
input == null ? "" : input
Posted by Jeff at 9/13/2006 12:00:00 AM
Hey
I've bought the book "ASP.NET 2.0 website programming, Problem, Design,
Solution" and some of its code examples is this code:
protected static string ConvertNullToEmptyString(string input)
{
return (input == null ? "" : input);
}
I have problem understanding this line: (input ==... more >>
How to display GridView when Data is empty
Posted by ad at 9/13/2006 12:00:00 AM
I use GridView in a Web Form.
When the data is empty, it only who the EmptyDataText or EmptyDataTempate,
and all the field is invisible
How can I show all the field when the data is empty?
... more >>
Changing Datalist items at run time
Posted by sanju at 9/13/2006 12:00:00 AM
Hi ,
I am displaying 5 photos of a user(getting image path from database) and
binding them to hyperlink control and adding that Hyperlink control to
Datalist container in code behind file.
Now I want to change last 2 photos of user with another image while loading
the page.
My situati... more >>
sending mail giving an exception
Posted by kamal at 9/13/2006 12:00:00 AM
hi ,
When i tried to send mails by using smtp authentication it was giving an
exception
"Could not access 'CDO.Message' object.". can any body help me.
string smtpServer = "smtp.domain.com";
string userName = "userid";
string password = "password";
int cdoBasic = 1;
int cdoSendU... more >>
|