all groups > asp.net > november 2007 > threads for tuesday november 27
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
How to create an instance of user control in a class(simple) file not in Page class file?
Posted by chandan at 11/27/2007 11:21:58 PM
Hi,
How to create an instance of user control in a class(simple) file not
in Page class file? As I tried I can do it in page class file but not
in simple class file.
Let me know the solution!!
Thanks,
Chandan kumar... more >>
Gridview access from Javascript
Posted by marksommerville@yahoo.com at 11/27/2007 8:59:49 PM
I have a few questions regarding accessing a gridview control from
Javascript which I would really appreciate some help with.
1. The gridview contains a column of checkboxes as a template field. I
have onclick Javascript on the checkbox but can't figure out how to
determine the row number of t... more >>
How to Get Number of Users in Membership Role
Posted by Jonathan Wood at 11/27/2007 7:29:17 PM
Greetings,
I'm using ASP.NET membership and I'd like to query the number of users in a
particular role.
I don't want the overhead of returning a dataset and then getting the number
of items in it. I'd like to create a stored procedure for maximum efficiency
that returns the number of use... more >>
Alternative to Crystal Reports
Posted by Rob at 11/27/2007 6:57:23 PM
I've used Crystal Reports for years and whilst it's been a love-hate
relationship, it does it job. But I think it's become rather bloated over
time and I have one big issue with it - the installation on a web server
requires installation of a huge MSI which puts stuff all over the web
server... more >>
Enabling Radiobuttonlist in Javascript
Posted by KA Kueh at 11/27/2007 6:41:51 PM
Dear all,
I am trying to enable the radiobuttonlist which is initally disabled via
javascript and could not get it to work. But if the radiobuttonlist is not
disabled initially then the javascript will work. Is this a feature by
design? What is the best way around this issue? Thanks.
... more >>
Javascript with IE 7
Posted by KA Kueh at 11/27/2007 5:18:17 PM
Dear all,
I am having problems with "document.getElementsById " in IE7 where it will
throw an error. The same piece of code works perfectly in IE 6 and Firefox
2. Sample code as shown below. What can be done? Thanks.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestForm1.aspx... more >>
RadioButtonList does not allow you to select a ListItem other than the first one that has a specified value
Posted by Nathan Sokalski at 11/27/2007 5:00:35 PM
I have a RadioButtonList with more than one ListItem that has a certain
Value. If I select a ListItem with that Value, the one that is selected is
the first ListItem with that Value. For example, if I had the following
ListItems:
<asp:ListItem Text="Boardgames" Value="12.00"/>
... more >>
custom server control event before Page_Load fired
Posted by Michal Valent at 11/27/2007 5:00:25 PM
Hello,
I have noticed,
that some custom server controls are able fire its own events e.g.
someGrid_PageIndexChanged
before the Page_load event.
Can anybody explain how is it possible ?
According to the Microsoft .. Page Life Cycle articles,
Page events follows the order :
..
..
..
Pa... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
unable to start debugging on the web server, access is denied!
Posted by Paul at 11/27/2007 3:57:00 PM
Hi I have both vs 2003 and vs 2005 runing on a machine that has windows xp on
it with iis 5.1. Everything works except I can not debug a 2003 web
application. I looked in IIS and it is using framework 1.4 it also runs fine
outside of debug mode.
The 2005 web applications run fine both in de... more >>
Strange behaviour in Production environnement
Posted by Smith at 11/27/2007 3:30:37 PM
Hello experts,
I have the following peice of code in my Global.asax
void Application_Error(object sender, EventArgs e)
{
//get reference to the source of the exception chain
Log log = new Log();
Exception ex = Server.GetLastError();
log.AddLogEntry(Request, ex);
log.SaveDat... more >>
help configuring SQL 2005 user for asp app conneciton
Posted by Scott at 11/27/2007 2:58:58 PM
Hi,
My aspx app connects to sql 2005 db via web.config conneciton string. I have
a user name in the string but need to configure the users security
prilevelges and dont know where to start.
This user needs to run store procesdues with select, insert, update, delete
and execute commands.
... more >>
Need help, get error "Object does not match target type" in one instance of an app, when others work
Posted by Lasse_Vågsæther_Karlsen at 11/27/2007 2:48:25 PM
I get the above error in some of the ASP.NET web applications on a
server, and I need some help figuring out how to deal with it.
This is a rather long post, and I hope I have enough details that
someone who bothers to read all of it have some pointers.
Note, I have posted the stack trace ... more >>
System.Security.SecurityException: That assembly does not allow partially trusted callers.
Posted by John G at 11/27/2007 2:21:20 PM
I have created an ActiveX control that does word automation. Once I
creat an instance of work I get the following message
System.Security.SecurityException: That assembly does not allow
partially trusted callers.
I am using .net 2. I have a key and use the regasm tool after it the
dll is ... more >>
Access JavaApplet through DOM
Posted by BJ at 11/27/2007 1:49:42 PM
Hi,
I am running a JavaApplet call ViewOne ro on my web page. The
documentation states I can execute methods of that applet by accessing
the objectname.methodname:
i.e. v1Pro.ZoomIn()
I am hosting the applet in a webbrowser control on a desk top
application. I can access the Parent obje... more >>
DetailViewHoldPagePostion
Posted by gh at 11/27/2007 1:42:34 PM
I have a detailview with a link, the user clicks to open another web
page from. When the user closes web page 2 and I redirect back to the
first page, the detailview resets the page index to the first record. I
would like to have the detailview page index stay where it was, before
the user... more >>
Best way to handle dates in a gridview?
Posted by trevi at 11/27/2007 12:08:02 PM
hi,
I've got a gridviw that has fields that relate to datefields, actually I
only care about the time in these fields. I display them as drop-down lists
so user can change the date when in edit mode. My problem is that sometimes,
the user does not have to fill in a time. In this case, I am ... more >>
User Profile Data
Posted by Scott M. at 11/27/2007 12:00:35 PM
When profile data is stored in ASP .NET, where is the user data persisted?
For how long is it persisted: is it session persisted or permanent (like a
cookie)?
... more >>
Using aspx page like this: <script src="ASPXPageHere.aspx"></scrip
Posted by Mike at 11/27/2007 10:29:00 AM
Hi. I have an HTML file CallingPage.html shown below. It contains a script
with a source from an aspx page named Default.aspx.
<body>
<script language="JavaScript" src="Default.aspx"></script>
</body>
</html>
-------------------
The only line of html I have for Default.aspx is the followi... more >>
SessionID -> UserId Insert and View
Posted by Jim at 11/27/2007 9:34:24 AM
Using either EW or VSE2008, I want to have a GridView that will:
- Insert the logged in user's UserId from either the User table or the
membership table when the user inserts a record.
- When the user views the GridView, only their records are shown. I don't
want to use a query string that us... more >>
Unexplained Whitespace
Posted by cfps.Christian at 11/27/2007 9:08:00 AM
I'm not too terribly efficient in HTML or ASP.NET but I know enough to
get into trouble
<table id="tblImgAlign" runat="server" width="100%" cellspacing="0"
style="border-style:none" cellpadding="0">
<tr>
<th style="width:179px; border-style:none">
<asp:Image ID=... more >>
Prevent TreeView PostBack When Click the Little Plus Sign (expand)
Posted by pbd22 at 11/27/2007 8:12:20 AM
Hi.
Can somebody tell me how to prevent a postback
when I click on the little "plus" sign next to the
treenode's root folder? It postbacks and I have to
restart a video stream coming to the page via an
iframe.
I have tried javascript:void(0) and that doesn't work.
anybody?
thanks.... more >>
Preloading images in a MasterPage
Posted by Charlie@CBFC at 11/27/2007 7:26:25 AM
Hi:
Before MasterPage, I preloaded images for rollovers in HEAD section no
problem. Doesn't seem to work with MasterPage. Using same code, images
never load. Always pulled from disk. Am I missing something?
Thanks,
Charlie
... more >>
how to run a web project using http://
Posted by sajit at 11/27/2007 7:13:12 AM
hi friends,
I am using asp.net with c# to create a web site. earlier I tried my
hand with local file system mode in vs.net to run my web projects. It
worked fine but when I switched to http mode it started giving me
errors like "unable to start debugging on web server. The web server
is not c... more >>
Best practice for streaming fairly large files from server to clie
Posted by Phil Johnson at 11/27/2007 7:07:05 AM
Hello,
I have an issue with some code I am updating:
An entire file is loaded into a memory stream then that memory stream uses
its WriteTo method to write to the responses output stream. With larger
files (250 mb) I get a system out of memory exception because the whole file
is loaded ... more >>
Using Event on Custom WebControl
Posted by Alhambra Eidos Kiquenet at 11/27/2007 4:56:01 AM
Hi all, misters,
I have a custom web control, and I want use it in my main user control ASCX.
My webcontrol has one event, see source code above
/// <summary>Control DropDownExtender para Ordenacion</summary>
[DefaultProperty("TargetControlID"), ToolboxItem(true),
ToolboxData("<{0}:D... more >>
adding values into a drop down list
Posted by Claudia Fong at 11/27/2007 4:10:04 AM
Hi,
Is there a way to add dynamic values into a drop down list?
I mean, I will do a query to count how many items I have and then add
that number into the ddl.
For example if the query result is 9, then I will add item 1 to 9 into
drop down list. If is 8, I will add 1 to 8.. and so on.. t... more >>
Email using ASP.net
Posted by srinivas at 11/27/2007 3:34:03 AM
Hi All,
I have created an ASP.net application(.net framework v1.1) in which I am
using System.web.mail namespace for sending the emails.
If the email ID is wrong or if the destination mail box is full then ASP.net
is not throwing any error.My application is still executing .
But the failure ... more >>
|