all groups > asp.net > february 2007 > threads for wednesday february 21
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
impersonate in new thread
Posted by phil at 2/21/2007 11:15:21 PM
My ASP.NET application sets up impersonate in the config file:
<identity impersonate="true" userName="m1\aspuser" password="xyz" /
>
Later, within my application, I create a thread:
x= New processor
Dim ts As New ThreadStart(AddressOf x.start)
Di... more >>
string
Posted by Eugene Anthony at 2/21/2007 10:15:15 PM
Lets say in a string variable I have stored around 100 characters. Now I
would like to only display 20 characters from the 100 characters stored
in the variable. How is it done using asp.net 2.0 with C#?
Regards
Eugene Anthony
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Several Recordsets...Close the Connection Each Time?
Posted by Bob at 2/21/2007 9:30:00 PM
I need to get several recordset for which I'm opening a datareader
like so...
OleDbCommand rsA = new OleDbCommand("Select * from Authors",cnAccess);
OleDbDataReader drA = rsA.ExecuteReader();
while(drA.Read())
{
sbL.Append("<tr><td>"+drA["Name"].ToString()+"</td></tr>");
}
This works fin... more >>
OT Reporting Services
Posted by Chris at 2/21/2007 9:06:39 PM
Does anyone here have experience of using the sql report server web service
to create reports in an aspx pages. Specifically how to do so in a acessible
and standards compliant way. The output is HTML 4.0 and won't even get past
a XHTML validator. Regards, Chris.
... more >>
Are Master Pages Really Worth The Effort ?
Posted by Just Me at 2/21/2007 8:18:26 PM
I can see master pages being useful if one wants some fragil or complex web
design which one does not want to have altered, but thats were it stops as
far as I can see.
Master Pages Plus
1.) Consistent Design.
Master Pages Minus
1.) Makes it difficult to access properties or functi... more >>
Changed controls IDs when using a MasterPage
Posted by WT at 2/21/2007 7:14:40 PM
Hello,
It seems that when a control is set into a ContentPlaceHolder in a page
using a MasterPage, it's id is change and FindControl(ID) no more works, is
it normal, how to override this or retrieve the controls OnInit handler with
a FindControl ?
Thanks again for help.
CS
... more >>
menu tabs
Posted by Bret at 2/21/2007 7:02:15 PM
Many different websites have very professional looking tabs or menu tabs
horizontally across the top for navigation. The tabs appearance range from a
3d look, faded coloring, rounded corners, etc etc. I am new to Visual Web
Developer and ASP.net and would like to duplicate this eye-pleasing ... more >>
CMS > Files
Posted by shapper at 2/21/2007 6:23:25 PM
Hello,
I am creating a simple CMS for a web site.
The web site will hold many documents and for that I created Documents
table which holds information on each document such as:
Title, Description, Author, Url, ...
I would need to create the following functionalities:
1. Create a docu... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Event Handler that creates adds another event handler
Posted by kaczmar2 NO[at]SPAM gmail.com at 2/21/2007 6:00:10 PM
I have an ASP.NET page where controls are created dynamically, and I
have an issue where one event handler creates another set of controls,
and then adds event handlers to those controls. The problem comes in
where I need to raise the event in the second control - the event does
not fire. I ha... more >>
async pages and redirect
Posted by pb at 2/21/2007 5:36:13 PM
I am having trouble doing a redirect in an async asp.net implemention.
Most of the time it works, but when it doesn't it just "hangs", the browser
never gets any return page. If I run it under the debugger, it works fine,
though every so often I get a HttpException.
System.Web.HttpExcepti... more >>
How to start/stop windows service on a remote machine?
Posted by Goran Djuranovic at 2/21/2007 4:35:41 PM
Hi all,
I have a web app running on a local PC that can start and stop windows =
service on a remote machine, but only when I browse to it locally. If I =
browse to it from my other PC and try to start/stop the service, it =
gives me "Cannot open Service Control Manager on computer =
'xxx.xxx.x... more >>
Custom Validator checking for dulicates in database from gridview
Posted by Hawk at 2/21/2007 4:01:08 PM
Hello,
I have been trying to get a duplicate field checker to work within my
gridview using a custom validator. However with the code I have I am getting
an error
error: Object reference not set to an instance of an object
here is my code:
Protected Sub CustomValidator1_ServerVali... more >>
securityTrimmingEnabled and Windows authentication
Posted by Nick nkw at 2/21/2007 3:52:34 PM
I am using Windows authentication and I want to hide some menu items if
the user has no permission on folders/aspx files. I tried add the
following in web.config and it hide all menu items.
<siteMap defaultProvider="default">
<providers>
<clear />
<add name="d... more >>
Getting Started in ASP.Net
Posted by Jerry Spence1 at 2/21/2007 2:30:16 PM
I've written my first asp.net program using VB2005. It has a textbox with
"Hello World". When I run it from the IDE, it comes up OK. I then did a
"publish web" to my local IIS folder and ran the default.aspx file and it
came up with the following:
XML Parsing Error: not well-formed
Locatio... more >>
.Net 2.0 / AJAX / Dynamically adding controls to the page
Posted by Rob Meade at 2/21/2007 1:59:06 PM
Hi all,
I played with my first bit of AJAX the other week and was pleasantly
surprised that I achieved my goal..now I'd like to try something else..
Question...
If I have an updatePanel, and lets say I have a button as a trigger which
runs a function in my code behind to add a textbox t... more >>
ObjectDataSource - missed the mark ?
Posted by gerry at 2/21/2007 1:37:00 PM
I started looking into the ObjectDataSource and I really like it.
It does seem to me though that they really missed the mark in one respect -
The designers went through the trouble to allow the use of
DataObjectTypeName to have custom objects passed to your dal methods.
So why did they then t... more >>
Export GridView to Excel Error
Posted by manika02 at 2/21/2007 1:21:23 PM
Hi,
I have a GridView control in page called eventslisting which is inheriting
from a MasterPage. The normal code to export to GridView does not work and
gives me an error - "Control of type GridView must be placed inside form tag
with runat = server". I understand that this is because my ... more >>
Authentication with WorkGroup
Posted by ruca at 2/21/2007 12:59:54 PM
Hi,
How can I use authentication with Work Groups and not Domains. What is the
configuration (in Web.config and IIS) to work with this?
Basically I have a webapplication that use WindowsIdentity to login in my
clients. Recently one of this clients change server and will be working with... more >>
Display 2 Columns from a datasource in a DropDownList
Posted by news-server.maine.rr.com at 2/21/2007 11:46:33 AM
Hi,
Is it possible to DISPLAY 2 columns somehow in a dropdownlist?
For example:
DataField Value = bound to ProductId
DataField Display = Product Name and Product Number
Thanks for any tips.
Frank
... more >>
Check if user is authenticated and get its profile. Thank you.
Posted by shapper at 2/21/2007 11:38:07 AM
Hello,
I need to check if the current user is authenticated and get its
profile.
For authentication checking I got the following options:
Request.IsAuthenticated.ToString
My.User.IsAuthenticated.ToString
User.Identity.IsAuthenticated.ToString
Which one should I use?
And how can I get t... more >>
Publish website is extremely slow
Posted by tmb NO[at]SPAM grislygrotto.com at 2/21/2007 11:23:21 AM
When publishing a website the process is excrutiatingly slow - we are
talking 3-4 minutes from when the actual transfer to the site has
begun to completion. Apparently i'm not the only one experiencing this
and searching on the net i found a possible solution:
http://blog.n-technologies.be/Com... more >>
Why do we have to modify default IE cookie settings here?
Posted by Andrew at 2/21/2007 10:58:08 AM
Hello, friends,
We developed a web site using asp.net 1.1 and Form Authentication. It works
ok.
However, when our users log into our website through internet, it requires
users to reset their IE cookie settings. For example, for IE 6.0 users, a
user will have to
(1) Click on Tools/In... more >>
default pages in ASP.Net + not displaying page names in browser ... How?
Posted by Bit Byte at 2/21/2007 10:53:30 AM
Is it possible to not display a page name in the browser - i.e. not show
the ".aspx" extensions in the browser ?.
Typically, a link on an ASP.Net website would look something like this:
http://www.thewebsite.com/folder1/page.aspx
I want to drop the page name completely, so the above link ... more >>
Random selection of records
Posted by Eugene Anthony at 2/21/2007 8:19:12 AM
How can I randomly select a single record from my ms sql database using
asp.net 2.0?
Your help is kindly appreciated.
Regards
Eugene Anthony
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Show Gridview ONLY on Postback
Posted by Larry Bud at 2/21/2007 7:26:36 AM
What's the best way to only show a gridview on a postback? The reason
is that I have a simple search page with a couple of fields, and I
want those fields to be chosen before displaying every row of data.
The Gridview is displayed on the same page as the search fields.
I realize I can wrap th... more >>
Error while connecting to SQL 2005 from ASP.Net 2.0
Posted by Sriram Mallajyosula at 2/21/2007 6:51:30 AM
Hi,
I am not sure whether this is the correct newsgroup where I need to post my
question. Let me know where I need to post for a quick response.
I get the following error when I try to connect to SQL 2005 from my ASP.Net
2.0 application.
System.Web.Services.Protocols.SoapException: Serv... more >>
Off-Page Rendering of Server Controls with events
Posted by Bob Jones at 2/21/2007 6:15:28 AM
Hey everyone. I have another problem. I have an aspx web page that
contains an event. When the event is fired it creates an instance of a
server control that contains an event of its own. I would like to be
able to render the contents of the server control (HTML w/ event
JavaScript code) and sto... more >>
Casting
Posted by Jon at 2/21/2007 6:09:05 AM
Hello all,
I have an object of type B that inherits from an object of type A.
I create a new instace of B, but I need to cast/convert it to an object of
type A in order to call a particular method. I've tried all sorts of ways to
cast it as A but it always stays as an object of type B. The... more >>
How to configure IIS to use pre-compiled website?
Posted by yashgt NO[at]SPAM gmail.com at 2/21/2007 6:02:00 AM
Hi,
We have a virtual directory MyApp that uses ASP .NET v2.0.50727, under
which we have kept the source code(aspx, ascx and vb), as well as a
bin directory in which we have the pre-compiled DLLs obtained from
aspnet_compiler. When we access pages from the application, we still
see cached fil... more >>
Publish a website without deleting a folder
Posted by Paolo Niccolò Giubelli [Axettone] at 2/21/2007 2:32:50 AM
I have a website with a public folder (users can upload images into it) so
I'm wondering if it's possible to avoid the deletion of this folder when I
re-publish the website from visual studio. Do I have to set particular
permissions on the server?
Thank you in advance!
Paolo... more >>
Varying the contents of a Dropdown within a Gridview
Posted by servernet1997 NO[at]SPAM hotmail.com at 2/21/2007 1:55:40 AM
I have a gridview with 4 columns. Two of the columns are read-only and
two are editable. The two editable columns are listboxes leveraging an
ObjectDataSource. The first listbox is populated from a table of
static information, the second listbox is more problematic.
If the contents of the firs... more >>
Gridview use question
Posted by Paul at 2/21/2007 1:23:43 AM
Hi all,
I'm attempting to build a private message system into a site i'm
developing. The page which houses the private message code consists of
a multiview. The multiview contains a view of inbox, compose, reply
and read - these are switched between depending on the users actions -
and the act... more >>
how to convert an sByte array to byte array
Posted by reju at 2/21/2007 12:54:51 AM
I have to convert an sByte array to byte array.
This sbyte array contains some signed values due to this .net
converting functions will throw an exception.any work around for this?
is there any way to pass sbyte array to stream classes eg: memory
stream?
... more >>
Problem on running clickonce applications in Firefox
Posted by James Wong at 2/21/2007 12:00:00 AM
Hi,
When I run the application in Firefox 2.0 using clickonce, it need to save
the setup.exe and click open this file.
How to skin this steps?
Thanks.
James
... more >>
Microsoft AJAX error? Bad Request (Invalid Verb)
Posted by jb at 2/21/2007 12:00:00 AM
Hi there,
After installing and using MSAJAX 1.0 in one of my servers and websites,
sometimes, I get the next error surfing the site:
Bad Request (Invalid Verb)
Somebody knows what does it mean, where does this problem come? and how to
solve it?
Xus
PD: Sorry, my english is so po... more >>
Update even Datagrid shows no values
Posted by (eric.dehaan NO[at]SPAM gmail.com) at 2/21/2007 12:00:00 AM
Hello.
I have a Gridview on my webpage. To this gridview, I bind a
datatable. The results are correctly displayed. But after I edit
some values and trigger the [GridView1_RowUpdating] event, the
values [e.NewValues] & [e.OldValues] are empty. What am I doing
wrong? The columns Visible pro... more >>
|