all groups > asp.net > july 2007
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
shared session between asp and asp.net
Posted by Sergio E. at 7/31/2007 11:00:15 PM
hi, i need to know how I can access a session variable in an asp page if the
session was created in asp.net and the inverse case
thank you
--
greetings,
Sergio E.
... more >>
Calling a windows application from inside the browser
Posted by Tamer Ibrahim at 7/31/2007 9:31:20 PM
Hello,
Can I call, run, a windows application from my web application when the user
fires a certain event ?
Thank You.
... more >>
Error occurs when clicking after 15 minutes
Posted by Nathan Sokalski at 7/31/2007 7:49:50 PM
When I click after about 15 minutes on a page I wrote I recieve the
following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Validation of viewstate MAC failed. If this application is hosted by a Web
Farm or cluster... more >>
memory leak in asp 2.0
Posted by Aleks Kleyn at 7/31/2007 7:46:37 PM
I wrote application on asp.net 2.0 using dataset. One dataset I put in
session collection and other (which is small and common for other users) I
put in application. I expected that it will get some amount of memory,
however I expected that this amount of memory will be fixed and will depend
... more >>
physical path to virtual path under virtual directory
Posted by Jeff Beem at 7/31/2007 7:18:04 PM
Best way I can think to describe this is through an example. I have a
virtual directory, let's call it "MyVirtualDirectory" that maps to
\\MyServer\Shared.
I have a path that is \\MyServer\Shared\SomeDirectory\SomeFile.txt.
I need to convert this path to a virtual path with the virtual ... more >>
Session.Timeout
Posted by Nathan Sokalski at 7/31/2007 6:50:08 PM
I have a page that uses Session variables when generating the SQL statements
used to submit and retrieve data from a database. However, because I don't
know how long the user will be on the page, setting the Session.Timeout
property doesn't help me avoid errors (I can obviously set the value t... more >>
Ent Library Application blocks
Posted by GaryDean at 7/31/2007 6:18:31 PM
I have just been through the docs on the Data Access Application blocks and
it seems that they complicate things more than make things simple. To me it
seems that there is nothing more simple and straight forward than writing
simple stored procedures and executing them from .net code using ea... more >>
How to debug
Posted by Thomas H. Lanier at 7/31/2007 5:14:31 PM
I'm trying to learn a little about VS 2008 and ASP.Net.
In trying to duplicate some of Scott Guthrie's examples using the new
LinqDataSource, I'm getting an error.
Input string was not in a correct format.
How would one go about debugging errors that occur with components such as
the LinqDa... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
find the first thursday from a given month
Posted by Paul at 7/31/2007 4:46:01 PM
HI I have a stored procedure that returns data with a date field in the form
of a DateTime type. I need to place data in variables based on days of the
week starting with the first thursday of the month. So the week would be
week 1= (first thursday of the month through the next wed). So for... more >>
AJAX call Javascript function from Update Panel Postback
Posted by gabe at 7/31/2007 4:20:28 PM
How do you call a client side javascript callback method after an
update panel has posted back to the server?
I have two update panels (A + B) with a gridview in each panel.
GridView B has a Trigger to listen when GridView A posts back from a
Select button. This works fine. I can get the Pos... more >>
DataList--is it wrong to do this? If so, what's the correct way?
Posted by Homer J. Simpson at 7/31/2007 4:20:07 PM
I feel I'm not doing things correctly.
I have a <asp:DataList> embedded in a <asp:Panel> with its ScrollBars
property set to Auto. Essentially, I want to format a bunch of records as a
list in an area of the screen with a fixed size, so I want a scrollbar to
appear if I have a lot of recor... more >>
xml nodes and getting random node
Posted by pelegk1 at 7/31/2007 3:22:03 PM
i have an xml for example:
<xml>
<data>
<var>xxx</var>
</data>
<tip>
<tips active="1">345</tips>
<tips active="1">retertert</tips>
<tips active="1">fdgdfg</tips>
<tips active="0">ert435345</tips>
<tips active="1">fdgdf</tips>
<tips active="1">dfgdfg</tips>
<tips active="0">gdfgdfg</tips>... more >>
problem with linbutton in edit mode
Posted by Mark at 7/31/2007 2:39:51 PM
Hi,
i want to perform several things (like checking and correcting automatically
the lenght of a multiline textbox in order to avoid Truncate error, removing
automatically "<" and "'" to avoid "potential danger" error etc ..) with
javascript on a gridview.
If i take in the aspx file this... more >>
using System.Web.Mail ?
Posted by at 7/31/2007 1:29:53 PM
I received an unhandles exception in my email form as follows
Dim mo As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage
mo.Body = "test"
mo.To = femi@yahoo.com
Dim a As System.Web.Mail.SmtpMail
a.Send(mo)
Line 8: mo.To = "femi@yahoo.co.uk"
Line 9: Dim a As System.Web.Mail.... more >>
Authentication using Active Directory
Posted by GaryDean at 7/31/2007 12:28:22 PM
Are there any actual examples on how to authenticate against Active
Directory using DirectoryServices? I've combed the docs but haven't found
much in the way of examples.
I found....
Imports System.DirectoryServices
Dim myDirectoryEntry As DirectoryEntry
myDirectoryEntry = New DirectoryEn... more >>
Multi Tier Sample
Posted by jack at 7/31/2007 9:42:40 AM
Hi All,
Im searching for 3 tier example, but couldn't find one..
I would be glad if come one suggest some site from where any of such
sample project could be downloaded....
Thanks for providing me this information...
... more >>
Create WSDL at each request (ASP.net 2.0)
Posted by Jay Douglas at 7/31/2007 9:41:23 AM
Using a SoapExtensionReflector I'm making some adjustments to some the wsdl
document auto generated by asp.net. It seems as the wsdl is being cached
thus only showing the original modifications.
How do I disable any caching that asp.net is using for generation of the
wsdl documents? I need t... more >>
Image Based Website
Posted by Helter Skelter at 7/31/2007 9:06:02 AM
Hello all,
I have decided that I want to try and make a website entirely out of images,
using several images as the main body. it struck me, however, that suck a
website might get reuced in size due to the way the browser works. you know,
it'll reduce the size of the graphic so that it fits o... more >>
Way to manipulate Flash Video (FLV) files with .NET code?
Posted by noneya22 NO[at]SPAM excite.com at 7/31/2007 9:02:17 AM
I am building an asp.net 2.0 application and I need to be able to
convert existing FLV files on the server. Specifically, I need to be
able to take an FLV file and convert it to another, smaller/scaled
down FLV file. I'm trying to create a small, preview of the original
FLV file. Is there a .... more >>
XML Node to XML Document
Posted by Dave T at 7/31/2007 8:32:03 AM
I have a web service method that returns an XMLDocument. When I call it from
an aspx page, the intellisense says that the method is of type XMLNode, so
when I try, stupidly, to get the results of the web service call into an
XMLDocument in the client, it fails with the error
System.Web.Ser... more >>
Content-Disposition attatchment question
Posted by Martin at 7/31/2007 7:13:58 AM
I have a link in a page that allows the user to download a dynamically
created XLS file. I add these headers and everything works correctly -
as long as the .xls file is in the "home" folder.
AddHeader("Content-Disposition", "attachment; filename=MyFile.xls")
AddHeader("Content-type", "applicati... more >>
Everything stops when a Thread is running on the server
Posted by Amrit Kohli at 7/31/2007 7:08:02 AM
Hello,
I have a button that starts up a Thread and runs it in the background.
While the Thread is running, all the Ajax controls, including the events
fired by the PageRequestManager, stop firing until the Thread exits. So, I
have no way of updating the page while this Thread is running, ... more >>
Casting a Variable to User control
Posted by Dinu at 7/31/2007 4:58:33 AM
How to Cast a Variable to User control in ASP.NET using vb.net as code-
behind
... more >>
Dynamically program User controls in a Master page from a content page
Posted by Dinu at 7/31/2007 2:39:19 AM
How to Dynamically program User controls in a Master page from a
content page
Thanks
... more >>
Is there a way to highlight variable in vs2005 like what eclipse do?
Posted by chenhong at 7/31/2007 12:00:00 AM
Is there a way to highlight variable in vs2005 like what eclipse do?
... more >>
problem with dropdownlists in gridview
Posted by Mark at 7/30/2007 10:05:44 PM
Hi,
There are two dropdownlists in two EditItemTemplates of a gridview. They are
populated programmatically (see code below). This works.
But now, the selected value of the first ddl (dropdownlist1) takes always
the selected value of the second ddl (dropdownlist2) , and the new value
cho... more >>
Problem with ImageButton.OnClientClick when DataBinding
Posted by Nathan Sokalski at 7/30/2007 9:07:30 PM
I have the following tag in one of my DataList's ItemTemplates:
<asp:ImageButton ID="btnViewQuestion" runat="server" BorderWidth="0"
ImageUrl="images/qmark.gif" Height="27px" Width="26px"
OnClientClick="window.open(<%#
DataBinder.Eval(Container.DataItem,"questionid","'viewquestion.aspx?ques... more >>
page_load fires with ajax call
Posted by Dica at 7/30/2007 8:38:56 PM
i've got a script that takes about 10 seconds to complete with page_load.
for that reason, i turned to ajax for additional dynamic updates i needed to
do on the page without having to force the user through that 10 second
delay, but it looks like page_load still gets called with an ajax submit... more >>
Url not working correctly in DataGrid
Posted by tshad at 7/30/2007 8:21:45 PM
I have a page that is loading a control from another folder. I want the
references to be from current folder not the folder the control came from.
And that has been working fine in most cases. But not for this one.
This is DataGrid with a Hyperlink column. The page
www.ft.com/jobseeker/test... more >>
2nd Chance Exception System.NullReferenceException: Object reference not set to an instance of an object.
Posted by Abstract Labs at 7/30/2007 7:57:27 PM
We have recently deployed our application with the addition of
AJAX.net for the last two weeks we have been suffering deadlock issues
with the application pool. We are in a farmed environment and our
application uses impersionation on a domain security account. We are
using a state server all ap... more >>
Getting a "normal" HTML form to work inside the server-side form tag
Posted by Deane at 7/30/2007 7:46:09 PM
I've run into this problem on many occasions --
I need to have the server side form tag on my Web form, of course.
But I also need to have *another* form on the page that posts to a URL
totally out of my control. I can think of three situations off the
top of my head.
In one case, it was... more >>
ObjectDataSource and DropDownList
Posted by Bill Gower at 7/30/2007 6:06:58 PM
I have a asp.net page that has a DDL tied to a ObjectDataSource. I want the
DDL to display a blank in the list when the page is first displayed and let
the user select the entry they want. I have tried
CategoryList.SelectedIndex = -1
and
CategoryList.SelectedValue = ""
Neither clea... more >>
For certain directories, protecting files from direct access that match a naming pattern OR mediating http access through my app
Posted by Ken Fine at 7/30/2007 5:49:13 PM
Short version: I want to know how in ASP.NET I could bar direct http access
to some files in a directory that match a pattern, but not others. An
alternate solution would be to bar all direct http access to files and
require that any access of the files be mediated by my web application. In
... more >>
controls are all null at page_load()
Posted by kevin at 7/30/2007 4:36:00 PM
using VS2005
My masterpage has two panels and two hyperlinks. The initial content aspx
page is blank.
The page_load event of the masterpage hides one of the panels based on
SESSION variables.
When I press one particular link all controls are null, thus throwing an
error. The other h... more >>
ASP.Net ReportingServices & CPU Usage
Posted by Blasting Cap at 7/30/2007 4:23:45 PM
I have a report (stored procedure) that I have set up in SQL 2005
Reporting Services. In a web app, I put a Reportviewer control on the
page, and call the report. After a lot of trial & error, it appears to
work.
Sort of.
What happens is when I open it on that tab (I am using AJAX Tab ... more >>
Unable to FindControl in a Dynamically loaded control
Posted by tshad at 7/30/2007 4:22:22 PM
I am trying to access a control (PlaceHolder Control) that is in a
dynamically loaded control. I know it is there as I can see it in my trace.
It may be that it isn't actually loaded yet - but not sure.
In the following page, I am loading a page called "page.aspx" into a control
called pag... more >>
question about UpdateParameters.Add
Posted by Justin at 7/30/2007 4:11:35 PM
Hi,
this code updates a table with the new values with the event RowUpdating of
a gridview.
Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles
GridView1.RowUpdating
Dim vlgn As Int16
vlgn = e.NewValues("vl... more >>
Multiple Placeholders or One to load controls
Posted by tshad at 7/30/2007 3:19:57 PM
I am using asp.net 1.1 and am creating my pages with different looks and
using controls for each part of the page (top, bottom, navigation etc)
The way I have it set up is the following where I have 4 different controls
(one for each page part). I am looking at a couple other ways of doing t... more >>
DetailView
Posted by viktor at 7/30/2007 3:18:45 PM
I am having a problem cahnging default mode in the code.What i am trying to
do is: on page load event:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
If Page.IsPostBack Then
itemview.DefaultMode = DetailsViewMode.ReadOnly
Else
itemview.D... more >>
Directory permission for disk I/O from web service
Posted by Milop at 7/30/2007 2:47:57 PM
Hello.
I have an ASP.Net 2.0 web service on Win2003 server that needs to write to a
shared directory on the same machine.
The web.config file is using "None" as the authentication mode.
I am referencing the directory using UNC naming (\\WEBSERVER\Folder\.....)
I thought the web service... more >>
HTTP POST only knowing server IP and port number
Posted by Vesna Sarajevo at 7/30/2007 1:41:41 PM
Hi all!
I have to pass a SOAP message to a server, and I know only server IP
and
the port number. I was gonna do it from a form, using WebRequest Class
and
StreamWriter to fetch the result. What I don't know is how to pass
this port and
server IP instead of URL?
Should I do this some oth... more >>
GridView Control - Disable/Enable Row Editing
Posted by Mel at 7/30/2007 1:24:13 PM
I want to disable the editing of a row in my gvParts GridView
control. How? I need to evaluate the value of one Template Field to
determine if the record should be edited or not but the template field
always returns an empty string. Any ideas?
... more >>
TreeView "onmouseover"
Posted by Steve at 7/30/2007 12:55:36 PM
Hello!
How can I realize, that when the Cursor is over an TreeNode, that the
TreeNode will be underlined.
I think the code must be in the "TreeNodeDataBound" Event, or?
Regards
Steve
... more >>
Globalization
Posted by hardieca NO[at]SPAM hotmail.com at 7/30/2007 12:48:12 PM
Hi,
I'm working on a multilingual CMS. I have a number of controls and
labels that are generated based on the number of languages the CMS
supports (ie. for the section management portion of the app, we could
have dynamically generated control labels "English Section Name",
"French Section Nam... more >>
Where to put Form tag
Posted by tshad at 7/30/2007 11:48:44 AM
I have pages that are identical except for the middle of the page to the
right where I do all my work.
<html>
<head>
</head>
<body>
<table>
<tr>
<td>
<table>
<tr>
<td>
<form>
<asp:...>
... more >>
Web site for mobile phones
Posted by JJ at 7/30/2007 11:46:15 AM
I need to build a simple web site which is viewable by mobile phones. This
is a new area for me. Can someone point in the direction of some useful
information on using Visual Studio 2005 to create such a site?
Thanks,
JJ
... more >>
asp labels -- how to avoid a databind() call?
Posted by Steve Hershoff at 7/30/2007 11:26:41 AM
Hi everybody,
I have a question about asp.net's labels and the DataBind method. I have a
method in a code-behind page (this is VisualStudio 2003 btw) that
(simplified) looks like this:
public string GetName()
{
string sName = "";
if(Session["ds"] != null)
sName = Sessi... more >>
Loading Controls dynamically
Posted by tshad at 7/30/2007 11:21:19 AM
I am using asp.net 1.1 and am creating my pages with different looks where
the middle right is where my actual changing content will go.
It seems to work pretty well except for some strange behavior and this seems
to be caused from the placement of the my Panel objects. I am using Panels
a... more >>
Question on Ajax vs. plain javascript
Posted by Bill Gower at 7/30/2007 10:01:03 AM
I have a asp.net form where if the user checks a check box I need to disable
some of the fields. I don't need to make a trip to the server for anything
at this point so is this is a case of using javascript to disable the fields
or should I be using Ajax do that? As probably can be seen from... more >>
Access denied javascript error
Posted by Jeremy at 7/30/2007 9:57:30 AM
I'm getting an access denied error from a line of Javascript which I think
comes from some of the ajax plumbing. I debug it in visual studio and the
code is in the ScriptResource.axd file of my application. I've included the
code below, and the access denied error is happening when trying to... more >>
|