all groups > asp.net > march 2008 > threads for monday march 17
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
How to trap "Input String is not in Correct format" Exceptions while Databinding Gridview?
Posted by Anjan Bhowmik at 3/17/2008 11:15:25 PM
I am getting this exception while binding data to Gridview. I have a control
parameter that accepts a integer value from a TextBox. If i provide a
invalid value, i get that exception. But can't handle it anywhere. I tried
the ObjectDataSource's Selecting method handler, but failed.
How do i... more >>
ASP.NET Mix Authentication?
Posted by coconet at 3/17/2008 11:11:00 PM
I have an ASP.NET 3.5 site. I want to steup a Forms Authentication
page, but if the browser is an IE Intranet browser I want the
credentials to automatically post and authenticate. How can I do that?
Thanks.
... more >>
Hiding/Showing Elements with javascript
Posted by Jonathan Wood at 3/17/2008 11:02:34 PM
I'm having some more problems with javascript.
I needed some script to hide and show elements of my page in response to
certain actions. So my script uses document.getElementById and sets
style.display='none' to hide the element, and sets style.display='block' to
display it.
This seemed ... more >>
Parrallel Page Async Tasks not running in parrallel
Posted by Norm at 3/17/2008 4:36:23 PM
Hi,
I have an page that accesses a lot of different tables in a database.
I am upgrading this page to use async tasks to increase performance.
The problem is that through tracing, I see that the callbacks are
running on different threads, but they are not running in parrallel.
Here is an exam... more >>
The name 'Container' does not exist in the current context
Posted by Peter Morris at 3/17/2008 4:27:50 PM
I have an ASP:Repeater which shows Title, DateCreated, State
In addition I want two extra columns in my table
01: Modify (this works)
02: Publish or Withdraw depending on Item.CanPublish or Item.CanWithdraw
<tr class="DataListStyle">
<td><%# Html.Encode((string)DataBinder.Eval(Cont... more >>
Strongly Typed Collections
Posted by Dave T at 3/17/2008 2:42:02 PM
I'm writing a web service that I want to return a strongly typed collection.
If I inherit System.collections.generic.list(of T) it returns an ArrayOfT.
If I inherit CollectionsBase, it also returns an ArrayOf. I want the root
xml element to just be of the class itself (if that makes any sen... more >>
Invalid Viewstate
Posted by jmatviak at 3/17/2008 2:10:00 PM
I have a web application that is in a "web farm" but has the load balancer
configured to stay with the ip address it was initially assigned to. However,
we added machineKey information in our web config file to assure that even if
we did jump servers (which has happened), we would not get this... more >>
Please explain ApplicationID of aspnetdb
Posted by Dan at 3/17/2008 1:29:01 PM
Could someone please explain the relationship between ApplicationID and a
Web site? For example, what and when generates application ID?
Any pointers to on-line docs would also be appreciated.
Thanks,
Dan
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Gridview paging and SELECT with no Where clause
Posted by rbrowning1958 at 3/17/2008 1:13:52 PM
Hello,
I wonder whether someone can explain to me how data is fetched from a
database server when using ASP.NET 2.0's gridview with paging enabled?
My SQL DataSource has a simple "select * from customers" - no where
clause. Using SQL Server's Profiler I can see this same statement is
executed... more >>
Website deployment vs2008
Posted by james page at 3/17/2008 12:42:51 PM
Hi all - a general 'best practice' query:
I have a asp.net 3.5 website using Ajax, sql2005 and vb.net designed in
vs2008 running on iis6. All runs happily on the testing server.
if I copy all of the files (everything) from the testing to production
server again all works fine.
If I publi... more >>
"Porting" a desktop app to a web application - best practices ?
Posted by (2b|!2b)==? at 3/17/2008 12:14:55 PM
I have a (3-tier) desktop application that I developed entirely in C++,
comprising mostly of Win32 DLLs as well as some ATL COM objects.
Since my existing architecture is 3-tier, moving to N-tier should be
theoretically "doable", although, I am not quite sure (from a
practical/programming p... more >>
Prevent GridView from Scrolling to top??
Posted by Tina at 3/17/2008 12:07:34 PM
I have this page containing a gridview working well with AJAX. However I
have a GridView in a scrollable Div. If the user has the gird scrolled down
halfway and makes an update to a row, the grid scrolls back up when I do a
databind. How can I keep it in place to preserve the cool AJAX look... more >>
Scrolling to a specific control.
Posted by Mufasa at 3/17/2008 11:53:21 AM
I have a control on a page that appears when there's something somebody
needs to enter. No problem - part of a panel and when they need to enter
into it, I set the focus for the control. Problem is, it's not on the page.
How can I get the control to be on the page when the page reloads?
TIA... more >>
Aspnetdb: Can an administrator be limited to users he/she created?
Posted by Bogdan at 3/17/2008 11:42:27 AM
Using built-in membership, is there a way to make sure that an administrator
(assuming that a site has multiple administrators) can delete/edit only
users that he/she created?
Any suggestions will be appreciated.
Thanks,
Bogdan
... more >>
different values by changing server
Posted by Thomas Weiler at 3/17/2008 9:54:04 AM
Hello,
I have a C# Application that runs on a IIS6. On the first machine I get
with the command:
Request.ServerVariables["AUTH_USER"]
the authorized user like MillerSte.
Now I put the hole application to another machine with the same System
(Windows 2003 Server) and also IIS. On the ... more >>
Hosting controls in a custom server control
Posted by jbeckh2@gmail.com at 3/17/2008 8:24:31 AM
Hi,
I am trying to create a custom server control that contains several
dropdownlists. The control looks like this:
Dim pnlHeader As New Panel
Protected Overrides Sub RenderContents(ByVal writer as HtmlTextWriter)
pnlHeader.RenderControl(writer)
End Sub
Public Sub Setup_Control(... more >>
Breakpoint in jscript not being hit
Posted by teddysnips@hotmail.com at 3/17/2008 8:08:31 AM
In the past I've used the "debugger;" statement with great effect to
debug client-side JScipt.
Since I moved to Vista I've been having problems. The project is
VS2003 so I've got a dual-boot XP, which I'm currently running.
However, when I put the "debugger;" into my code, the breakpoint is
... more >>
Controls state
Posted by MarcusStudentum at 3/17/2008 7:41:07 AM
Hello there i was using the control state because we have disabled Viewstate
on a particular page. And i noticed that SaveControlState() is called twice.
If you put a trace.warn in SaveControlState you will see it too. It happens
on Visual 2005 and Vs 2008. I tested it on a totally clean page... more >>
Convert "Nothing" to an empty string?
Posted by Larry Bud at 3/17/2008 6:47:01 AM
Using XML serializer, if an XML field is missing, then the value in
the object is Nothing.
Is there a slick way of converting a "Nothing" to an empty string
without doing is
if x is nothing then...... more >>
Extending DataPager
Posted by shapper at 3/17/2008 6:23:12 AM
Hello,
I am trying to extend DataPager control to have predefined template
fields.
Public Class WebPager
Inherits DataPager
Protected Overloads Overrides Sub OnInit(ByVal e As
EventArgs)
MyBase.OnInit(e)
Dim field As New TemplatePagerField
field.PagerTempla... more >>
Enum
Posted by shapper at 3/17/2008 5:46:32 AM
Hello,
I have a class property of type enum. The enum name is TemplateType:
Private _Type As TemplateType
< _
Bindable(True), _
DefaultValue(""), _
> _
Public Property Type() As TemplateType
Get
Return _Type
End Get
Set(ByVal value As ... more >>
ASP.NET 2.0 aspx Page
Posted by deepak at 3/17/2008 5:41:01 AM
Hi All,
I am working on asp.net 2. 0 Application using MS Visual Studio 2005.
When I am trying to debug the code on the server (my server name is
esealvm087), it's redirecting to http://localhost:2908/attachmenthandler
instead of http://esealvm087/attachmenthandler.
I don’t quite under... more >>
ASP.Net 2.0 Startup time
Posted by Wannabe at 3/17/2008 5:12:01 AM
Is it typical for an 2.0 application take 15 - 20 seconds to start up, after
a long period of inactivity? If not, what can I look at to get it to start
quicker, the first time it is used?... more >>
Bold Text In Datgrid Row If strResult="Purchased"
Posted by Jonathan at 3/17/2008 4:48:22 AM
What code would I need to add below to make the text in datagrid rows bold
when the value of one of the fields, "strResult" equals "Purchased"?
Function bolPopulateDataGrid() as Boolean
Dim oConn As OleDbConnection
Dim oComm As OleDbDataAdapter
Dim sConn As String
Dim sComm As Stri... more >>
Showing The Download Dialog Box?
Posted by Husam at 3/17/2008 3:12:01 AM
Hi EveryBody:
I was downloading a lot of file by using the following code:
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename)
response.BinaryWrite(buffer() as byte)
but I discover for large data this will be a problem because every time I
tried to down... more >>
|