all groups > asp.net > february 2005 > threads for monday 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
Repeater control with Arraylist
Posted by fix at 2/14/2005 11:57:31 PM
Hi all,
I am trying to bind some data I got in an ArrayList, how is that possible? I
see no example in the help.
The code behind to bind is simple:
rptItems.DataSource = alist
rptItems.DataBind()
But I just don't know what to write in the ItemTemplate in the HTML.
Please help.
fix.
... more >>
Need to add a CSS to a link button
Posted by Maziar Aflatoun at 2/14/2005 10:18:21 PM
Hi,
Does anyone know how I can add a css to the following link button. I want to
add it so that Update, Cancel and Edit have the css in the form of <a
href="" class="">Update</a>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update"
CancelText="Cancel" EditText="Edit"></asp:EditC... more >>
Sessions between asp and asp.net and ASCX
Posted by news.bellatlantic.net at 2/14/2005 9:55:55 PM
Two questions:
I know that ASP can't see ASP.NET sessions and vice versa. I have an
existing ASP intranet site that requires a user to login and session so we
can control the permissions of the user. Now I created a new site in ASP.NET
with C#. This will be a subdirectory off the main site like ... more >>
Error after making a folder an application
Posted by Andy Sutorius at 2/14/2005 9:23:00 PM
Hi,
I have been working on creating an administrative section of a website. I
have been using MS KB Article 301240. I created a root/test2 folder and
placed all of the files inside of test2. I went to
http://localhost/psyche/test2 to see the login page but instead received an
error: "It is an... more >>
'Controls' is not a member of 'Microsoft.Web.UI.WebControls.TreeNode'
Posted by Patrick Olurotimi Ige at 2/14/2005 9:07:29 PM
When compiling this VB code below i get error:-
'Controls' is not a member of 'Microsoft.Web.UI.WebControls.TreeNode'
Any ideas what i'm doing wrong..if i use Controls in C# it works!!
Dim lnk As HyperLink = New HyperLink
lnk.NavigateUrl = rowProd("ProductName")
... more >>
Listbox loses values
Posted by Janaka at 2/14/2005 5:54:52 PM
Help! I have two ListBox controls on my web form. The first one gets
populated on entry with values from the DB. I then use JavaScript to copy
options from this ListBox to my second one. (I have also tried changing the
second ListBox to an HtmlSelect control) using bog standard JavaScript ... more >>
more than one page needs connection to DB
Posted by Carlos at 2/14/2005 5:40:10 PM
Hi all,
I am currently working on a project that needs to
maintain the connection to the DB throughout the
pages that the user navigates. I have already validated
my DB connection and some operations on the start-up page, but I am not sure
how to make the same persist
in the code behind for... more >>
situation with need to update dropdown on another page
Posted by Chris at 2/14/2005 4:59:03 PM
I pop up a Modal form on a web page that allows the user to update the
selections of a dropdownlist via adding a new item to the db (Sql Server).The
only thing is this list is on the page beneath it. So when the user updates
the db with a new selection, and then closes the form, the page below... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Response.Redirect in Application_Start & Session_Start
Posted by csn at 2/14/2005 4:56:07 PM
Is it possible to have a Response.Redirect in Global.asax in the
Application_Start and Session_Start events?
We have code in both events, with try-catch blocks, and if an exception is
caught, we wanted to redirect to an error page. But, this doesn't seem to
work.
So, another question is, i... more >>
Tables and column sizes
Posted by Iams at 2/14/2005 4:20:22 PM
What do I have to do to get a column in a table to stay the same size no
matter what is in the other tables?
I've tried setting the width in px, in percentages, and nothing seems to
work; for example, the columns that are colored #cccccc I want to stay the
size of the menu control, which doesn... more >>
Calendar Control - SelectedDate problem
Posted by 00_CuMPe3WaR3D12 at 2/14/2005 4:05:17 PM
In my Page_Load, I have this:
uiStartDateCalendar.SelectedDate = Convert.ToDateTime("8/15/2005");
When it shows up in the ASPX page, it doesn't go to August page directly, it
stays on Feburary 2005 (which is today's month). However, the canendar
control highlights the selected date in August... more >>
How to create lines in a datagrid
Posted by Dexter at 2/14/2005 3:52:59 PM
Hello all,
I need to create lines in my datagrid programatically.
After databinding my datagrid have 5 lines, and
programatically i need to create plus 5 white lines.
Somebody have a ideia about how to know this?
Thanks Dexter
... more >>
Re-authenticate prior to server.transfer
Posted by Alfred Salton at 2/14/2005 3:52:22 PM
I am posting a form with data which has timed-out and forced a login. I
assumed that the following code would re-authenticate the session
(assuming the supplied userName and password are correct) but it does
not. Can anyone suggest the solution?
if FormsAuthentication.Authenticate(tbUser... more >>
Calendar-control
Posted by Bart Schelkens at 2/14/2005 3:37:55 PM
Hi,
i'm using the calendar-control in my website.
Now I would like dropdown where the user can select the desired month, and
then the calendar should go and display that month.
I've been trying it but I can't get it to do that.
Can anyone help me out ?
thanks in advance.
... more >>
Newbie question
Posted by Mantorok at 2/14/2005 3:09:59 PM
Hi
I have an ASPX with a member that references a server generated control (in
this case a ListBox).
When the client submits the form I want to check the selected value of the
listbox, however the reference to the generated control returns null.
How can I query the value of the control?... more >>
Export to Word
Posted by Arvind P Rangan at 2/14/2005 3:06:08 PM
Hi all,
Have you worked on any project or example where in we can export data to
Word Format with Page Brakes and Header & Footer Template.
This is very important for my assignment.
Thanks
Arvind
... more >>
Simple page won't maintain state
Posted by Tom wilson at 2/14/2005 2:50:22 PM
I have created a very simple example that doesn't work. Form1
contains a textbox and a button:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Response.Redirect("login.aspx")
End Sub
Very simple. Forget what logi... more >>
Container.DataItem Question
Posted by Sparky Arbuckle at 2/14/2005 2:42:29 PM
My SQL statement is as follows:
Dim strSQL = "SELECT tblDescription.ASIN, tblDescription.strTitle,
tblDescription.strArtist, tblDescription.strReview,
tblDescription.strImageDir, tblStyleASIN.StyleID, tblStyleASIN.ASIN " &
_
"FROM tblStyles INNER JOIN (tblDescription INNER JOIN
... more >>
re: Javascript.
Posted by Irfan Akram at 2/14/2005 2:35:20 PM
Hi,
I was advised to use the following code in order to display a confirmation
box, on click of a button.
<asp:button id="btnRemoveStudent" style="Z-INDEX: 128; LEFT: 376px;
POSITION: absolute; TOP: 328px" runat="server" onclick = "return confirm('Are
you sure you want to do this?');" Wi... more >>
Hyperlink help...
Posted by hecsan07 at 2/14/2005 2:17:01 PM
I am a novice programmer.
I want to have a hyperlink that looks like so: www.mycoolsite.com?a=21132.
On click I want to extract the query string and use it to query a table
within a DB (SQL Server). The stored procedure takes the query string as a
parameter and returns the actual URL the page... more >>
odp.net
Posted by SK at 2/14/2005 2:07:38 PM
Hello,
I have a asp.net project, where I am using the ODP.NET
provider. I am referening to the dll direcly in the
program files folder. Now when I compile the project
shouldnt it create the dll for the odp.net in the bin
folder or do I have to copy it there?
Thanks... more >>
DateTime Format
Posted by Mohamed Zaki at 2/14/2005 2:01:42 PM
Dear All,
I'm using the object model of Microsoft CRM to reteive the cases from an
asp.net application however the datetime fields are returned in the
resultset in this format "2005-02-10T04:54:17+02:00"
how can i convert it to the normal format dd-MMM-yyyy time ?
Thank you for you help.... more >>
jaggie fonts on server, but not on local host
Posted by MikeB at 2/14/2005 2:01:03 PM
Hi all,
I have written an Ecard application which takes text input from the
user on one .aspx page and renders the message to a template .jpg and
displays the results on a 2nd .aspx page. The trouble is that my fonts
render fine on my local host machine but very jaggie on the server. IIS
... more >>
quick help needed on regular expression validator
Posted by David Cho at 2/14/2005 1:43:05 PM
I am looking to use the input in the text box in the IN SQL clause (for
example, "WHERE studentID in (233, 3422, 43232)")
So I need the validator to validate
number, number, number, number
So acceptable
343435, 2232, 333, 3434
Not acceptable
- ,343,3434,3434, (nos comma before the str... more >>
clearing form/page cache
Posted by Chris at 2/14/2005 1:43:03 PM
In asp we have "Response.Expires = 0" and I've tried:
HttpResponse.RemoveOutputCacheItem("page location")
But I can't get the page to display new. This is a problem if the data is
changed and the page is revisted. I find it hard to believe that adding a
bogus random value to the url is the onl... more >>
DataView Sort Bug
Posted by Mike Kline at 2/14/2005 1:40:01 PM
Hi All!
I've this strange DataView sort bug and i can't do any sorting
activities! Below is my code...
---VB.NET Code---
dvFinal = New DataView(objDataSet.Tables(CON_FinalTable))
Dim strSort As String = drpOrderBy.Text & " " & drpOrderStyle.Text
dvFinal.Sort = strSort
Response.Writ... more >>
Deploy without Frontpage extesion?
Posted by SK at 2/14/2005 1:21:41 PM
Hello,
how can I deploy my asp.net project created with VS.NET
to the server without having frontpage extension installed
there?
Thanks... more >>
Null Reference Exception When Using Sesssion State
Posted by Matt at 2/14/2005 1:11:06 PM
Hi all,
I'm having a very strange problem. The third line in the following code
gives me a null reference exception when used in an ASP.Net web page. The
code is called on the click of a button.
Public Overridable Property SDSVarsSetup() As Boolean
Get
If Not IsNothing(Sess... more >>
Javascript confirmation boxes..
Posted by Irfan Akram at 2/14/2005 1:03:03 PM
Hi People,
Wondering how we display confirmation boxes to the user in order to confirm
his action, before we can proceed. How do we get back the value from the
user's action, i.e. if he selects yes, or he selected no, in to our code in
c#.net, so we can take the appropriate action. I'm not ... more >>
CheckBox control in a datagrid
Posted by Jennyfer J Barco at 2/14/2005 12:52:56 PM
Hello, I have a datagrid that brings some information from a query. I need
to have a checkbox in each row so the user can select the rows he wants to
reprint. Is it possible to have a checkbox control in a datagrid? Now I
have a Select column but the problem is that the user needs to select more... more >>
ListBox control
Posted by Irfan Akram at 2/14/2005 12:43:05 PM
Hi Guys,
I have non-unique values in my ListBox control, so whenever I do something
like
if (myList.SelectedIndex == 2) I get wrong results, as it picks out the
wrong index. How can I ammend this problem, so that I get the selected index,
i.e. the exact index selected.
Thanks,
I.A... more >>
replace <br> with NL
Posted by tshad at 2/14/2005 12:35:55 PM
How do I go about this?
I used to know this, but can't find VB.net replace that does this.
Something like
string.replace("<br>",NL)
Thanks,
Tom
... more >>
Retain post data after login redirect
Posted by Alfred Salton at 2/14/2005 12:22:17 PM
I have a dynamic form that is managed entirely on the browser side
(that is fields are added and removed without a postback). The page the
form is on requires a login.
When the user submits the form, the session login may have been lost
due to a timeout - can anyone suggest a mechanism for ... more >>
Quick Question - Newby Question
Posted by Ryan Smith at 2/14/2005 12:17:02 PM
I have a code behind VB app that I have developed and am trying to place in a
subfolder of a website that I have. I run the app on my dev box fine with no
errors but when I upload it to the directory and put the .dll in the root
directory's bin folder I receive the followinng error message. ... more >>
Problem with firefox
Posted by jeff29_b NO[at]SPAM yahoo.com at 2/14/2005 12:06:34 PM
I tried to post this message before but didn't see it. In firefox, an
OnClick event handler for the codebehind class is not being call on an
asp:ImageButton. It works fine in i.e.? Any ideas?
... more >>
Pls tell me how to compile in commandlie ?
Posted by Raghu Raman at 2/14/2005 11:48:14 AM
Hi ,
i want to compile my asp.net app from the commandline window.could you
please tell me how.
With thanks
Drop in the ocean.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Recursive function works on Windows 2000, but not on Win2003 server
Posted by martin NO[at]SPAM holmgaard.com at 2/14/2005 11:38:31 AM
I have written the following function to be used for flood filling in
a bitmap. The function works fine on Windows XP Prof and Windows 2000
server, but on Windows 2003 server it return a stack overflow if the
function runs recursive more than 5495 times. Does anyone know a
solution on the proble... more >>
Problem with Dates
Posted by Lars Netzel at 2/14/2005 11:23:25 AM
On Server1 when running my ASP:NET application and selecting records from an
SQL server the Dates show up in Swedish Format (yyyy-mm-dd) this is good
this is what I want.
Right now we are setting up a new server (Server2) with a SQL server as
well.. here the dates show up in this format (mm... more >>
Passing Info from one page to another
Posted by Irfan Akram at 2/14/2005 11:19:04 AM
Hi People,
Just wondering how we can pass info from one page to another when we enter
Response.Redirect("CertainPage.aspx",false), so that we can observe this
information and display corresponsing info on the screen of the new page.
Will wait for useful responses.
Thanks,
Irfan... more >>
Any way to browse and select a directory on the web server in ASP.NET?
Posted by Eric at 2/14/2005 10:45:07 AM
I'm working on an administrative page for my application and want the
ability to browse and choose a directory, not a file inside a directory. I
can fake it by selecting a file in a directory and then chopping the file
off, but that's a hack. Is there any equivalent to the Win32 directory
... more >>
Web form event handler not firing?
Posted by jeff29_b NO[at]SPAM yahoo.com at 2/14/2005 10:38:44 AM
I am having a strange problem on a web form. I have an image button
with an OnClick event handler. When I click the image the event isn't
being called in the code behind when browsing in firefox. I get the
postback but I never have the event called. It works fine in i.e.
... more >>
Authentication question
Posted by Joe Fallon at 2/14/2005 9:59:46 AM
I use Forms authentication and State Server and Cookies are enabled.
Is this correct?
If the session is set to timeout in 20 minutes that means that if there is
no activity for 20 minutes then the session will expire and the user will
have to log in again. But if they request pages then the ... more >>
Align="Center" dosen't work in the Table on my asp.net page
Posted by ALI-R at 2/14/2005 9:56:14 AM
Hi All,
I have two user controls (header and footer) ,,which I've placed in an HTML
Table in a page.I set the **align="center"** in the table and the table
still is on the left side of the page .How can I get the whole page(Table
and its user controls) aligned in the center of my page?
Than... more >>
Perfmon ASP.NET apps
Posted by MattC at 2/14/2005 9:42:03 AM
I have added all counters for all 'ASP.NET Apps v1.1.4322'. However Every
counter is 0, no matter how many requests are made to the server? Under
ASP.NET applications my web app is not listed there is only _total_.
Is there something I need to do to get perfmon to register my apps existence... more >>
Initializing a variable in C#
Posted by Paul at 2/14/2005 9:25:03 AM
Hi new to C#, I have a simple web app that fills a dropdown list from results
from a stored procedure. I tried to initialize a variable in the
SelectedIndexChanged event for the dropdown list box but get the error,
the name i_user does not exist in class or namespace.
int i_user ;
i_user= t... more >>
Postback not working, Pages not maintaining state
Posted by Tom wilson at 2/14/2005 9:05:23 AM
This is a huge problem. I'm going insane. I've tried to solve this
elsewhere and no one can suggest how to make this work. To me, this
should be a very basic thing to do.
I have an asp.net application that is a survey acceptor. The site is
to display a page of survey questions and accept t... more >>
Dynamic Forms???
Posted by Tim::.. at 2/14/2005 8:13:08 AM
Hi,
Can someone please tell me the best way to create a web form on the fly
according to a users input???
EG: If a user chooses the number 3 from a dropdownlist 3 textbox items are
created... or if they choose 4 for textboxes are created.
Should AI use a repeater or what is the best so... more >>
Datagrid Sorting Question - Deal With Empty Cells
Posted by rhungund NO[at]SPAM gmail.com at 2/14/2005 8:01:08 AM
Hi All. I'm using VB.net in a webform with a datagrid. I need to sort
by column name which is working fine, but i need any row with an empty
result for the sorted column to show up at the end my resultset, not
the beginning. Any ideas??
so instead of: NULL A-Z
I need: A-Z NULL
th... more >>
Q: global variable
Posted by JIM.H. at 2/14/2005 7:57:05 AM
Hello,
What is the life span of public variable defined in the class.
Is there any way to define a global variable in aps.net, and use it in all
the following pages.
Thanks,
Jim.
... more >>
Stored procedure: column or parameter error
Posted by riaz.hasani NO[at]SPAM gmail.com at 2/14/2005 7:15:32 AM
Hi every1, I'm getting this error.
I've checked my db (SQL Server) & that's the type I'm using.
In the db the column's data type is "smalldatetime".
Any suggestion would be highly appreciated.
Thanks
<Error>
Column or parameter #8: Cannot specify a column width on data type
smalldatetime.... more >>
Center controls in web form
Posted by Ricardo Luceac at 2/14/2005 6:47:35 AM
Hi... I have a web form that let the user imput some fields..
It is Always a label and a textbox per line...
But how can I center these 2 controls in a form so that if the user uses
a resolution of 800x600 or 1024x768 it's always in the center of the
screen???
thanks...
*** Sent vi... more >>
Buttons doens't work
Posted by schapopa at 2/14/2005 6:32:36 AM
Hi,
I have application (ASP.net, SQL Server 2000)that I just moved to the
server and now I am testing it on different machines.
I have one machine with Windows 2000 and IE 5.5 where none of the
buttons work. I cannot find reason for that.
I just tested exactly the same machine with the same c... more >>
implementing iteration- and conditional-tags with ASP.NET
Posted by jurujuba NO[at]SPAM gmx-dot-de.no-spam.invalid at 2/14/2005 4:00:01 AM
Hi,
I want to write iteration- and conditional-tags with asp.net, but I
found nothing about it in books, MSDN or online-articels.
Could someone please explain me or post a link to an article where is
described how I can do that ?
Maybe I'm using the wrong expressions. Conditional- and Itera... more >>
HttpContext.Current.Cache configuration?
Posted by Olav Tollefsen at 2/14/2005 12:50:29 AM
I use HttpContext.Current.Cache.Insert to add some items to the cache.
1) How can I configure how much memory that is allocated to the cache?
2) What are the defaults?
3) If I don't specifiy any expiration when calling Insert, how long will
cached elements live?
Olav
... more >>
MS Posting Acceptor
Posted by m at 2/14/2005 12:09:02 AM
Hi All,
I m extremely sorry if this is the wrong place to post it but i just need
some info on the MS Posting Acceptor.
1) Is MS Posting Acceptor available with IIS5.0 and above.
2)If so where can i download the latest version of Posting acceptor?
3)Is it ok to use Posting Acceptor with ASP.Ne... more >>
|