all groups > asp.net > april 2005 > threads for wednesday april 20
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
asp.net session problem
Posted by alan at 4/20/2005 11:14:02 PM
Hi, i have some problem in asp.net session problem
in page_load ->
i have
Label1.text = Session("a")
in DataGrid1_sortCommand ->
i have
Session("a") = e.sortExpression
the problem is:
when I click the column header the first time, "label1.text" doesn't show
anything
but when i cli... more >>
page can not be browsed remotely
Posted by Carlos at 4/20/2005 11:09:59 PM
Hi all,
I got this message whe trying to browse to an aspx page I just created. I
have been able to go to other pages,
but for some reason, the last one is causing me problems.
Thanks in advance.
Carlos
Server Error in '/' Application.
---------------------------------------... more >>
Dataset and Web.Config. Help Needed. Thank You.
Posted by Shapper at 4/20/2005 11:07:54 PM
Hello,
I created a dataset in web matrix:
....
Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole
DB Services=-4; Data Source=C:\myDatabase.mdb"
....
I want to place the connection in the Web.Config file:
<appSettings>
<add key="connectionString" value="Provider... more >>
Avoiding the automatic creation of a user in the CreateUserWizard
Posted by Raventhorn at 4/20/2005 10:03:02 PM
I am trying, as I can see many are, to avoid the CreateUserWizard's
CreateUser step from creating the user until I am ready to do it. I have a
rather complex registration because I have various different types of
registration, one for organizations (in which they provide alot of profile
data... more >>
Regular Expression Validator (screen-scrape)
Posted by Sparky Arbuckle at 4/20/2005 9:46:11 PM
I'm trying to scrape the news from a page on my University's server.
The HTML below is what I need to get. The only problem is that I am not
that good with Regular Expressions so I was wondering if someone could
help me by either telling me how to go about figuring it out or
suggesting a good tu... more >>
Rename DLL after it is compiled
Posted by Jed at 4/20/2005 9:31:02 PM
I have a DLL that I compiled to CodeAsset.dll.
The version is 1.1.0.0.
If I rename the file from CodeAsset.dll to CodeAsset.1.1.dll, reference it
in a web project, recompile the web project, and the newly named file is in
the bin directory, shouldn't the web project run fine?
I did th... more >>
I'm looking for free board software (ASP.NET)
Posted by wojti at 4/20/2005 9:06:51 PM
Can You recomend something ???
I want to use in my website.
THX
Wojtek... more >>
Sorting of datagrid column
Posted by alan at 4/20/2005 7:53:02 PM
I set the datagrid to be sortable,
sort expression = "Column1 asc"
but when i click the column name
the datagrid doesn't load anything, did i miss sth. on the sorting? thanks a
lot!!
in Sort_Command event handler
Dim SortView As DataView = DataSet11.Products.DefaultView
SortView.Sort ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Mime Type
Posted by Baren at 4/20/2005 7:29:02 PM
Hi!
Anybody has any idea how to determine the MIME type of a file using
ASP.NET-VB.NET?
Thanks,
Baren... more >>
Assembly resource file not found for non-admin users!
Posted by Jéjé at 4/20/2005 7:26:20 PM
Hi,
I have create some webpart controls to use in sharepoint.
these webparts are in a DLL and I have a resource file for the french
language.
after an IISReset, if the caller is a non-administrator user, then the
language resource file is not loaded.
if an administrator load the page, th... more >>
call LoadControl many times for the same ascx files
Posted by hohans NO[at]SPAM yahoo.com at 4/20/2005 7:01:33 PM
Hi,
First, thanks for viewing my post.
Here is my situation. I want to use a web form to generate something
like shipping labels, e.g. 30 labels in each page. So, I have a
Repeater whose ItemTemplate contains a DataList. DataList's
ItemTemplate contains a PlaceHolder. In that PlaceHolde... more >>
Best choice to optimize datagrid paging and sort ??
Posted by Sachi at 4/20/2005 6:47:01 PM
Hi,
Is there any best choice to eliminate the usage or reduce the usage of
session object when doing paging in datagrid?
Thanks in advance,
Sachi
... more >>
ASP.Net page not including Javascript file.
Posted by Joseph Ferris at 4/20/2005 6:45:34 PM
Hello everyone.
I recently reloaded my system, and I am now having problems getting one
of my client's sites running. I pulled a copy of the development tree
for the project out of subVersion (the source control software we are
using) and placed it into the IIS Web Root. After building and
... more >>
inserting a break in a StringBuilder string
Posted by Justin at 4/20/2005 6:43:02 PM
I have a string built using the stringbuilder class and I need to insert a
break at the end of the string, how do I do that?
Thanks, Justin.... more >>
myProxy.Credentials
Posted by Simon Harris at 4/20/2005 6:38:44 PM
Hi,
I am trying to build a function to output an RSS feed to a dataset. Code
below shows how far I have got.
I am having problems getting past our proxy (ISA). Sorry, cant remember
the
exact error now, but I'm pretty sure I need to be requesting the data as
an
authenticated user.
As yo... more >>
where is __EVENTTARGET ?
Posted by Matthew.DelVecchio NO[at]SPAM CapitalOneAuto.com at 4/20/2005 6:30:33 PM
hello,
i am attempting to get my asp.net form to "remember" scroll position on
post, as written in this short simple article:
http://www.dotnetjunkies.com/Article/E474B0FC-20D2-48B3-93B5-DC4CB3C4A1AB.dcik
....however, my page busts on the server request to
Request.Form["__EVENTTARGET"], s... more >>
Viewstate error problem!
Posted by FabFreddy at 4/20/2005 5:29:29 PM
Hi,
I get the "Unable to validate data". It appears when I do a autopostback!
Can anybody tell me what the problem is?
Thx
... more >>
Any way to determine, via code, the user's Windows Login Name and domain?
Posted by Dave at 4/20/2005 5:25:29 PM
Greetings,
I have a web application that will be hosted on our intranet. I would like
to determine, via code the user's windows login name and domain in the
following format: DOMAIN\loginname
Is this possible? Thanks,
-Dave
... more >>
ASP.NET Book Recommendation
Posted by Amelyan at 4/20/2005 5:21:39 PM
Can anyone recommend a good intermediate to advanced ASP.NET book?
... more >>
Datagrid -> Excel?
Posted by Rob Petersen at 4/20/2005 4:17:18 PM
Can anyone recommend a good, reliable solution or 3rd party component to
send a DataGrid or DataTable's contents to Excel? I've tried the following
code but it does not work reliably with large amounts of data (we have about
50,000 rows).
Server.ScriptTimeout = 1000;
Response.ContentType... more >>
DirectoryNotFoundException
Posted by Jacques Wentworth at 4/20/2005 4:02:25 PM
I'm trying to access a Folder on a different Server using ASP.NET, and
are getting a DirectoryNotFoundException. It works fine when I access
the local drives on the server. I made sure the folder does exist.
I've put my code below to show what I'm trying to do.
Thanks
Jacques Wentworth
... more >>
Using ASP.Net to Get User Information from AD
Posted by Derek Martin at 4/20/2005 3:46:37 PM
(Sorry, cross posted on accident)
Hey list, got this code running in a webform:
Dim DSESearcher As System.DirectoryServices.DirectorySearcher = New
System.DirectoryServices.DirectorySearcher
Dim RootDSE As String = DSESearcher.SearchRoot.Path
RootDSE = RootDSE.Insert(7, "ou=users,ou=myusers... more >>
Printing A Datagrid in WEBFORM
Posted by I'm Home at 4/20/2005 3:21:26 PM
I've read a lot of suggestions including the "javascript:printWindow()"
command ... what I want ... the entire datagrid in printed form using my css
style.
What I get the page displayed on my screen ... about what I'd see with a
screen capture and print.
Does anyone have any idea how to do an... more >>
Finding Hyperlinkcolumn
Posted by tshad at 4/20/2005 3:15:53 PM
I have a Datagrid with a column:
<asp:HyperLinkColumn
DataTextField="JobTitle"
DataNavigateUrlField="PositionID"
DataNavigateUrlFormatString="AddNewPositions.aspx?PositionID={0}"
HeaderText="Job Title"
Visible="True"
SortExpression="JobTitle"... more >>
Header.LinkedStylesheets missing from .NET v2 Beta 2
Posted by gerrod at 4/20/2005 2:52:02 PM
When using a master page In .NET v2.0 Beta 1, you could attach additional
stylesheets to the master page from your content pages, with a call such as:
Header.LinkedStyleSheets.Add("_Styles/Stylesheet.css");
In Beta 2, it seems as though IPageHeader no longer exposes this property.
Doe... more >>
Extended datagrid
Posted by ADavidson at 4/20/2005 2:51:02 PM
Is there a way to add a textbox that is the full length of a datagrid below
the columns of the grid?
Or is there a different control to achieve this?
Basically:
Col1 | Col2 | Col3
Line 1 1 | 2 | 3
line 1 text box.........
Line 2 2 | 2 | 3
... more >>
Left Navigation
Posted by hecsan07 at 4/20/2005 2:49:01 PM
I want to build a left navigation bar using c# based on an XML file. Anybody
has an idea where I can find a semi finished (with code included) control of
this nature? I don't want to start from scratch.
HS... more >>
Change ImageButton visible property in code dynamically
Posted by Andy G at 4/20/2005 2:44:10 PM
I am tring to loop through a dataset to find records that exist. If the
record exists then make the corresponding image visible. So I try to take
the row value and concatenate it onto a string ("imgSession"), so the
resulting control ID name will be imgSessionX. Where X could be a number
... more >>
Datalists and Checkboxes
Posted by Derek at 4/20/2005 2:08:02 PM
I have a Datalist that contains several fields, one of which is a checkbox.
When the user clicks a submit button, I need to be able to determine how many
of the checkboxes in the datalist were checked. I am doing the page in
ASP.NET using VB.
Thanks, in advance, for any assistance any of... more >>
Multiple data-table display in data control
Posted by Trillium at 4/20/2005 2:06:02 PM
I have an application with a list of questions, which are associated with
answers by a questId in a one-to-one relationship. The questions may come
from an XML file or a SQL Server database. The answers data will always come
from a SQL Server database. I am trying to use a DataList (prefera... more >>
Permissions Issues with ASPNET Account
Posted by Yogesh Pancholi at 4/20/2005 1:05:02 PM
For some unexplained reason, I am suddenly unable to browse to a virtual
directory on my laptop. I have a number of sample websites to which I could
happliy browse up until last week. As of Monday, if I browse to any of the
sites, I get an HttpException saying "The directory does not exist or ... more >>
RowFilter on Date field
Posted by Manoj Paramu Das at 4/20/2005 12:56:32 PM
I have loaded an xml file to a dataset and one of the fields being
"UserDate" and has date values like
<UserDate>2005-01-01T00:00:00.0000000-05:00</UserDate>
I am trying to apply a row filter to this field and it doesn't seem to work
dvCMonth.RowFilter = "Month(UserDate)=" & Now().Month
... more >>
how can I call a aspx page wth c sharp class
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 4/20/2005 12:48:59 PM
hi to all
how can I call and send parameter a aspx page with a c
sharp class?
... more >>
how can you call a aspx page and send parameters with a class c#???
Posted by CRISTINA MENA at 4/20/2005 12:42:59 PM
hi to all
how can you call a aspx page and send parameters with a
class c#??? ... more >>
Problems with ASP.Net object and Javascript
Posted by tshad at 4/20/2005 12:10:46 PM
I am trying to set some labels to display calculated values with posting
back to the server. So I am using Javascript to set the values of my
asp:label. The problem is that an asp:lavel renders into a span element.
For example:
function SalaryDisplay(me)
{
var salaryMinLabel = documen... more >>
How to avoid reformatting code ?
Posted by craigkenisston NO[at]SPAM hotmail.com at 4/20/2005 11:56:53 AM
Hi,
While developing in Vs.Net 2003, when I go to the designer and change
something, even small changes, my HTML code gets horrible reformated.
I'd rather would like to Visual Studio just add/change code surrounding
my changes.
Is there anyway to stop this behavior ?
... more >>
Search DropDownList
Posted by Andre at 4/20/2005 11:50:48 AM
Hi,
I retrieve data from a SQL Server and put the data on a DropDownList, but
my problem is that sometime i have the same value more than one time, so i
want to search the DDL to see if there's already an item with the same
value.
Is there a way to search the DDL to check that the ... more >>
How do I change current user/password/domain?
Posted by TheBurgerMan at 4/20/2005 11:41:52 AM
I have an ASP.NET/C# web site that the user has logged into using my own
logon page. How do I set the current web request to use the credentials the
user has just provided?
--
Thanks,
TheBurgerMan
at
gmail.com
--
... more >>
Access/Split style combo box
Posted by Dave Bacher at 4/20/2005 11:21:02 AM
I'm looking for a mechanism to do an Access style combo box in ASP.NET.
The data looks something like this:
<data>
<row>
<abbr>ACCT</abbr>
<fulltext>Accounting</fulltext>
</row>
<row>
<abbr>TEST</abbr>
<fulltext>Quality Assurance and Testing</fulltext>
... more >>
Where are my Code Snippets?
Posted by Pat at 4/20/2005 10:58:59 AM
All,
I organized a butt-load of code snippets into a tab called 'Code
Snippets' I created in my 'Toolbox', named them and used them. Then,
they were gone! They were showing up in every application (.sln) no
problem. To my knowledge I did not delete them. I'm using the DotNet
2003 IDE.
Wher... more >>
HtmlTextWriter, Excel, New Window
Posted by Steve Schroeder at 4/20/2005 10:29:20 AM
Using this code, how might I render the results to a new browser window and
leave the original as it? Thanks...
Dim tw As New System.IO.StringWriter()
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Me.EnableViewState = F... more >>
Binding problems to dropdowns
Posted by tshad at 4/20/2005 10:21:15 AM
I have a couple of stored procedures that are being called from my Page_Load
event.
They worked before, but now they are not working.
I am getting the error:
Specified argument was out of the range of valid values. Parameter name:
value
The function called is:
********************... more >>
Unspecified Error - Can't add new webforms
Posted by chuckdfoster at 4/20/2005 8:38:26 AM
When creating a new project or trying to add a web form to an ASP.NET
project I am getting an error that says "unspecified error" and the web form
isn't added. I can however import an existing web form and use it. I have
tried to use the VS.NET CD's and repair it, but that did not work. My nex... more >>
CheckBoxList Readonly
Posted by bernardpace NO[at]SPAM yahoo.com at 4/20/2005 7:52:20 AM
Hi,
I have a checkboxlist and would like to set it as readonly. The
properties that I found for it is the Enabled(true, false). Now when
I am setting it to false, it is becoming as readonly, but is changing
its appearance and does not seems to be so presentable (color becoming
greyish, text... more >>
specifying data grid layout at different resolution?
Posted by Elhanan at 4/20/2005 7:37:48 AM
hi...
i have a scrollable data grid with which is sortable via table control
above that datagrid (i took it from an article somwhere)..
trouble is i can't seem to set the columns width for the table control
to match the ones on datagrid, when i almost did, changing the
resolution messed ev... more >>
Need Help for Exporting Excel from Datagrid
Posted by s_a_ravi at 4/20/2005 6:30:48 AM
hi,
I want to export the data from datagrid and i dont want to wait upt
the users to be prompted for save as dialog box to save the excel. i
should saved in the client [for example c:\downloads].
Pls help me in that.
thanks in advanc
--
s_a_rav
-------------------------------------------... more >>
form post
Posted by guoqi zheng at 4/20/2005 5:10:30 AM
I know in webclient class, there is a possibility to post form data to a
remote url, but how can I not only just post, I need to redirect user to
that page as well.
So what I want is just like a user click submit button of a regular html
form and this form post to a remote URL, user will g... more >>
Setting values of Controls used multiple times on a page
Posted by james.e.coleman NO[at]SPAM gmail.com at 4/20/2005 4:16:50 AM
Hello,
I have created a custom dropdownlist that is used multiple times within
a single page. When trying to set the values of the controls with the
page in which they are being used, they all are set to the value of the
last control. I found this link:
http://www.codecomments.com/archive31... more >>
Simple session code not working - Help!
Posted by Logickle at 4/20/2005 2:50:37 AM
Hi, all. I'm working on an application which requires communicating
session info between separate web apps running on the same web server.
The out of process server method sounded ideal, and very simple to
implement as far as I could tell. So I re-configured my apps'
web.config and machine... more >>
Bug or problem
Posted by Anil Rajan at 4/20/2005 2:43:02 AM
hi,
Bug or problem ?
suppose my page consist of 1 textbox and 1 button(server control) and focus
is on textbox and i press enter key ,in normal circumstances the page should
execute the button_click event .but instead it post_back the page ,but
button_click event is not executed
if my ... more >>
File Write Access Denied with ASP .NET on Domain Controler
Posted by sebnunes NO[at]SPAM hotmail.com at 4/20/2005 2:21:54 AM
Hi All,
I have a web page that tries to write in a xml file but I have an
Access Denied error on the xml file.
The page is working properly on the development computer but not on
test environment.
On the test environment the Web sServer is also PDC so there is no
ASPNET account on this c... more >>
Troubleshooting IIS "Hang" / Postback Not Working
Posted by happyinst at 4/20/2005 12:12:21 AM
I have recently added some code to a web application and now I find it
hanging after I do about 2 or 3 postbacks within the application. It hangs
after
doing different things (I cannot find anything in common) and when I run in
Debug mode, it doesn't even appear to be within my code when it ha... more >>
StackOverflowException after Page.Unload - how to debug?
Posted by Lars-Erik Aabech at 4/20/2005 12:00:00 AM
Hi!
I've got an asp.net page that works for all users except one and that one
user only gets the error with a certain parameter set to a certain value.
(Same value as the others, but for this one it fails). I manage to reproduce
the error on my development computer, but it's completely impo... more >>
Deploye asp.net without IIS
Posted by kids_pro at 4/20/2005 12:00:00 AM
Is it possible to deploy asp.net application without IIS?
I saw an application that could do that but I don't know how?
There is a lanuch.exe file when I double click on the file it create
localhost website with random free port.
http://localhost:<random_port>/app_name/default.aspx
Hmm t... more >>
Access To A Component.SelectedItem in Page_Init
Posted by awalker1 at 4/20/2005 12:00:00 AM
Hi all,
I have a datagrid and a drop down list on my page.
The DataGrid is created dynamically at runtime to contain columns based on
the item that the user has selected from the drop down list. Some of the
columns need to be a ButtonColumn so that the user can click on them to be
taken to... more >>
start at specifed time
Posted by Darko Bazulj at 4/20/2005 12:00:00 AM
Hi,
Is it possible to start some code at specifed time(like scheduled task)?
How to achive that?
I can't use windows service or windows shedule task. I don't have necessary
rights.
I would appreciate if someone has an example or link, anything to point me
in the right direction.
Thank y... more >>
Load Page. VB vs Javascript. Need opinion. Thank You.
Posted by Shapper at 4/20/2005 12:00:00 AM
Hello,
I am working on an ASP.NET/VB web site.
I have several links including menu links.
Considerer a want to load a page named page.aspx.
I can do it using javascript. Or using this code:
Sub loadPage(sender As Object, e As System.EventArgs, pageURL as
String)
Response.Redire... more >>
Cell.Controls.Add( ??? )
Posted by Rob Meade at 4/20/2005 12:00:00 AM
Hi all,
I would like to add more than one object to a table cell using the above, in
this case some text and a hyperlink.
I am writing the table row/cell programitcally and what to have something
like this:
Owner: Rob Meade
Where Rob Meade is a hyperlink.
I've created the hyperlin... more >>
DataGrid Control: Paging Using URI Params?
Posted by Axel Dahmen at 4/20/2005 12:00:00 AM
Hi,
I'm using a DataGrid control to show a table's content with paging. For
navigation through the pages I'm using the DataGrid's intrinsic navigation
section.
My problem: The DataGrid navigation links use JavaScript to jump between
pages. I want them to use standard hyperlinks providing th... more >>
Add to Array in Session with checkbox handler
Posted by gce at 4/20/2005 12:00:00 AM
What happens :
When I first press the button, I get an listbox1 with a,b,c (correct:
because of the
addtoa(1, "a")
addtoa(2, "b")
addtoa(3, "c")
When I check the checkbox, the eventhandler triggers and when I press the
button, the addtoa(4,"d") works fine, becaus... more >>
Download file - Name with special chars
Posted by Alfredo at 4/20/2005 12:00:00 AM
Hi,
I use the following code to allow my users to download files in my site:
Response.ClearContent()
Response.ClearHeaders()
Response.AddHeader("Content-Disposition", "attachment; filename=""" &
Session("sFileName") & """")
Response.ContentType = "application/x-msdownload"
... more >>
Any one who can give me a simple about the shopping cart ?
Posted by Kylin at 4/20/2005 12:00:00 AM
something has wrong when I create a shopping cart in asp.net ,
and any Document about the shopping cart ?
... more >>
Binding Problem when one of the dataset table is empty
Posted by Mirna at 4/20/2005 12:00:00 AM
Hello,
My problem is the following:
If one of the tables in the Dataset is empty, the command "Page.Databind"
is giving me this error :
"INDEX 0 IS NOT NON-NEGATIVE AND BELOW TOTAL ROWS COUNT"
for example:
if i have a textbox bounded to "bnd_field" in the table "tbl_child"
if in the dat... more >>
[Q]can't multiline? on the DetailsView
Posted by podong28 at 4/20/2005 12:00:00 AM
I'm searching multiline on the Detailsview.
asp:boundField can't multiline.
other?
Thanks
@podong28
... more >>
[Q]asp.net 2.0 + Gridview +AccessDataSource
Posted by podong28 at 4/20/2005 12:00:00 AM
I want to connect mdb. not accessDataSource
asp.net 2.0 nothing?
I tried SqlDataSource. I Failed
Thanks
@podong28
... more >>
|