all groups > asp.net > march 2007 > threads for friday march 9
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
Missing asp.net page events (aka lightening bolt)
Posted by Jason at 3/9/2007 10:54:26 PM
A co worker of mine pointed out that we were missing the page level event
properties icon (aka the lightening bolt). This is vs.net 2005 and if I open
a web page in design mode apparently there should be in the Properties
window a lightening bolt representing the page level events that we can ... more >>
HT retrieve values in html table from codebehind
Posted by xzzy at 3/9/2007 10:40:06 PM
I have hit a wall with not being able to enumerate the items collection in a
table row.
given:
<table runat=server id=table1>
<tr>
<td id=AAA>HowToReferenceThisValue</td>
etc...
from code behind, how can I iterate thru / parse the html table to get AAA's
text => 'HowToReferen... more >>
variable scope in a webform only
Posted by Max at 3/9/2007 10:32:06 PM
Please somebody can shed a light...
How can I have a variable visible and modifiable, inside one and only
webform?
I mean , I d like to see that variable from all the Sub of that webform
code, but if I window.open another instance of that webform, that variable
should be independant even if ... more >>
cannot locate associated aspx files for web project
Posted by rosettaservice NO[at]SPAM gmail.com at 3/9/2007 9:41:30 PM
Hi,
I NEED SOME HELP. Whenever i create a web project,
it runs ok on my machine. however, whenever i want to
copy the project folder from the visual studio project folder,
the associated files are not visible, only the .sln file is visible,
so when i copy the folder to run on another machine,... more >>
Unable to start debugging on the web server; VS.net 2002 on XP Pro
Posted by Jeffrey at 3/9/2007 9:10:00 PM
Just started to test a VB.net 2002 project for ASP.net application.
After successfully installed the VS.net 2002 and tested the
IIS 5.1 on XP Pro SP2 for some classical ASP programs, I am starting
to build ASP.net programs now.
For a new ASP.net project, an error message (i.e Unable to start
... more >>
How to send an email with ASP.net 2.0?
Posted by Wells Wang at 3/9/2007 9:06:06 PM
Hi, Everybody:
Sorry to bother you.
I am trying to use the code below to send an email with asp.net2.0& win
XP. But it failed. On my laptop I can use outlook2003 to send email. If
you are avaiable, could you help me figure it out(or test it on you
computer).
I am looking forward to getti... more >>
Error in browsing ASPX pages on Win 2003
Posted by Sathian at 3/9/2007 7:01:07 PM
Dear All,
We are unable to brows any aspx pages on IIS6.0 installed on Windows 2003
server.
What are the possible causes? Earlier the OS was Windows 2000 and it got
upgraded to 2003 recently. After this upgrade we started to get this
problem.
HTML pages accessible even now.
Any help on t... more >>
how to access from code-behind a label into CreateUserWizard control?
Posted by Ben at 3/9/2007 6:23:45 PM
Hi,
i have some problem to access from code-behind a label nested into a
CreateWizard control. I use a html-table for align purpose only.
I try to change the text property of the label with ID="UserNameLabel".
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
<WizardSteps>
<... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
determine if item is in array, how??
Posted by Jeff at 3/9/2007 5:00:26 PM
ASP.NET 2.0
Below are some code from my webproject. What I'm trying to do is create a
MembershipUserCollection which holds users of the role "member"
this line:
string[] role = Roles.GetRolesForUser(user.UserName);
generates an array consisting of the roles belonging to the user. I'm a bit... more >>
Request["__EVENTARGUMENT"]
Posted by RitaG at 3/9/2007 4:10:00 PM
Hello.
I have a bit of a quandry here.
In my aspx.cs code I check the __onPostBack __EVENTARGUMENT.
In the Immediate window when I type in ?Request["__EVENTARGUMENT"] it
returns the value correctly. In the code I have the following statement:
string myString = Request["__EVENTARGUMENT"] ... more >>
MasterPage Behavior
Posted by Jim McGivney at 3/9/2007 4:00:02 PM
In VWD express I have a masterpage. I set the background to myBackground
with the statement
<body background="Images/myBackground.jpg">
All works fine with pages displayed from the main directory. When I display
a page contained in a subdirectory called "Admin Pages" the background no
lon... more >>
IE7 has shows the ppitures differently
Posted by Samuel at 3/9/2007 2:41:26 PM
Hi
I noticed that IE 7 shows the pictures differently they seem smaller or
bigger
Any clue?
Thank you,
Samuel
... more >>
Binary Serialization
Posted by shapper at 3/9/2007 2:35:14 PM
Hello,
I am trying to serialize (binary) a class and save it in a database. I
followed a few examples I found in internet and this is what I came up
with:
1 ' Rows
2 <Serializable()> _
3 Public Class Rows
4 Implements ISerializable
5
6 Private _Rows As New Generic.Lis... more >>
Menu's, menu's, menus.....
Posted by JJ at 3/9/2007 2:29:08 PM
Question: Which controls to use as menus:
=============================
I must be approaching this the wrong way, as it clearly must be possible.
I am writing a very basic CMS. At the top of the page will be a menu 'main
categories' and at the side will be a menu 'sub categories'.
The pa... more >>
Retriving data from some asp.net object to client side javascript
Posted by Ivan S at 3/9/2007 1:50:20 PM
Hello. :)
I'm relatively new in web programing...
Anyway...
How can I, for example, retrive data from Profile object (or what so
ever) to some variable declared in javascript tag on client side?
For example, let's say I have this code in Some_Page.aspx:
....
Profile.Name = "Some Name"... more >>
gridview- more than 1 column
Posted by Mr. SweatyFinger at 3/9/2007 1:27:08 PM
How can accomplish.
Thanks!!!!!
GET TO WORK!!!
... more >>
Why shouldn't I catch general exceptions?
Posted by john_c at 3/9/2007 1:23:45 PM
FxCopy says this about catching general exceptions:
"You should not catch Exception or SystemException.
Catching generic exception types can hide run-time
problems from the library user, and can complicate
debugging. You should catch only those exceptions that
you can handle gracefully."
T... more >>
Multiple page load happens on one ASPX page
Posted by quoclinh at 3/9/2007 12:44:57 PM
I have an aspx page with code behind that has the initial page load
code happens many times as user perform different action on the page,
such as select a drop down list. To be more clear, consider the
following code:
protected override void Page_Load(object sender, EventArgs e)
{
if... more >>
How do I set up SQLExpress 2005 for remote connection?
Posted by Steve Kershaw at 3/9/2007 12:03:52 PM
Hi,
I have to connect to a SQLExpress 2005 database that's on a different
server from my desktop. Does anyone know how to setup SQLExpress to
allow remote connections?
Thanks
Steve
... more >>
Find ItemIndex given DataKey in DataGrid
Posted by Rod at 3/9/2007 11:59:38 AM
While working with a datagrid I have a value for the datakey, from this I
want to find the ItemIndex.
How please?
many thanks in advance.
... more >>
enableEventValidation
Posted by WinDev at 3/9/2007 11:54:06 AM
I have a couple of pages that are throwing the following error:
HTTPUnhandledException and the text of the message is:
Invalid postback or callback argument. Event validation is enabled using
<pages enableEventValidation="true"/> in configuration or <%@ Page
EnableEventValidation="true" %... more >>
Switching from ASP.NET Development server to IIS
Posted by llevity NO[at]SPAM gmail.com at 3/9/2007 11:31:47 AM
I have a project in progress, and for various reasons, need to switch
it from using the integrated ASP.NET development server to IIS. The
problem is, I cannot figure out how.
After many searches, I've come across a couple of examples that show
how to change it through the project properties. ... more >>
Preload images returned by an HttpHandler
Posted by Caspa at 3/9/2007 11:31:40 AM
Is there any way to preload an image returned by an HTTP Handler?
My image HTTP handler is generating some thumbnails that I want to preload.
thanks
Caspa
... more >>
Revised daylight savings time impact on code
Posted by Taps at 3/9/2007 11:25:17 AM
Hi,
There is this high-priority update from Microsoft regarding a revised
Daylight Saving Time savings which kicks in on March 11, 2007. Wanted
to know what kind of effect this will have in a typical web project -
on the client and the web-server. Was interested also on client side
javascript... more >>
Dlinq (Orcas March 2007) - Compilation Errors in Designer.cs
Posted by dejavue82 NO[at]SPAM yahoo.com at 3/9/2007 11:21:18 AM
Does anybody know how to resolve the following errors? They were
caused by the designer.cs file that was auto-generated by the LINQ to
SQL designer. I am using the March 2007 Orcas CTP version of Visual
Studio.
Error 1 The type or namespace name 'Linq' does not exist in the
namespace 'Sys... more >>
what do i do if it's null
Posted by rodchar at 3/9/2007 11:06:00 AM
hey all,
Byte[] imageData =
(Byte[])(((DataRowView)fvEmployeeMaster.DataItem).Row.ItemArray.GetValue(21));
If the record coming in is null i get the following error message:
Unable to cast object of type 'System.DBNull' to type 'System.Byte[]'.
is there a shorthand or what conditional... more >>
How to get XmlNode "value"? Concept?
Posted by david at 3/9/2007 10:59:00 AM
I have a simple XML file which is loaded into a XmlDocument, xDom. What the
number 1 after each element, for example <PA>, is called in XML concept? What
kind of C# function can be used to get this number? by GetValue? Thanks
David
<PA>1
<ST>1
<SE>1
<IM>1</IM>
<IM>2</IM>
... more >>
Force An OnClick Event
Posted by RitaG at 3/9/2007 10:42:05 AM
Hello.
On a form how can I programtically (jscript) click a LinkButton which will
force the onClick event for that LinkButton to fire?
TIA,
Rita... more >>
Insert into instead of add to the HttpModules pipeline
Posted by Noremac at 3/9/2007 10:38:02 AM
Hi,
We are writing a Web SSO service for all of our websites through Forms
Authentication. We also want to provide our websites with the ability to
protect different parts of their website and redirect to different
registration pages. We are also required to centrally audit authorization
... more >>
Unique ID of CreateUserWizard Create User button
Posted by oozy at 3/9/2007 10:36:25 AM
Hi,
I'm currently using
Page.Form.DefaultButton = ChangePassword1.FindControl("xx").UniqueID
to set my DefaultButtons in a form that has multiple wizards(each in
it's own panel). I can find the ID of every wizard I am using except
the "Create User" button of the Create User Wizard. I've... more >>
onClick Event Not Firing
Posted by RitaG at 3/9/2007 10:35:08 AM
I posted this question in the C# discussion group but am posting it here
also since ASP is involved.
I'm new to C# and need some help regarding an onClick event not firing.
I have a data grid that I add a cell to programatically. The cell is a
hyperlink and the onClick is set to _doPostBa... more >>
opens a form into another form
Posted by Archana at 3/9/2007 10:18:59 AM
hey!.
My question is i have a Web Form with some textboxex and one button(server side).
As soon as i click on this button,it performs some server side calculations.As soon as it finishes,i want to open an another web form into this first(already opened form)without closing first form.
How c... more >>
Online Exams
Posted by Archana at 3/9/2007 10:15:34 AM
Hey!
We People are creating Online Exams Module just like any other site.We have stored Question and answers in Database.
My problem is that Questions and answers can be as long as they can be.
What controls(server side)i must use that they can resize themself according to the length of the q... more >>
Javascript alerts - work on some pages but not on others
Posted by thatsMaBoy at 3/9/2007 9:07:04 AM
Hi,
I am attempting to display a simple Javascript alert when a webpage
loads. It works on some pages but not on others. For example, the
following code does not produce an alert:
Code in webpage1 (note, this is the only VB code in the ASPNET
webpage, in other words, the rest is all HTML)... more >>
Can't send email outside of the network
Posted by chieko at 3/9/2007 8:41:10 AM
Hello,
I have Asp.net 2.0 app that needs to send an email. It works fine when the
app tries to send inside of the network, but I can’t send email outside.
Does anyone know how I can resolve the problem? My code is as follows:
Dim objMail As New System.Net.Mail.MailMessage
'p... more >>
Serializable
Posted by shapper at 3/9/2007 8:38:55 AM
Hello,
I have a class with various properties: strings, integers, controls,
etc.
I made this class serializable using:
[Serializable]
public class Employee
....
My question is:
Can I do this when I have properties of type control?
What data types can my class properties have?
... more >>
Web Service export enum to consumer
Posted by bsma1 NO[at]SPAM hotmail.com at 3/9/2007 8:25:22 AM
I building a web service that has an enum I want the consuming
application to be able to use.
I have the enum declared in the web service as:
public enum myEnum
{
ONE = 1,
TWO = 2,
};
I want to be able to access these from the consuming application such
as: myConsumer.localhost.myEnum... more >>
Best File Upload Control (httpModule)
Posted by daokfella at 3/9/2007 8:22:14 AM
With the vast amount of large file upload controls out there, which
one do you feel is the best?
My site needs to support frequent large file uploads (up to 100Mb).
I'd also like to be able to query the upload to give the user real-
time status info on the upload preferably via AJAX. What are th... more >>
Please help!
Posted by rcoco at 3/9/2007 7:25:07 AM
Hi everyone,
I'm having trouble with a datagrid that is supposed to insert data.
But one row has to insert data in the data base using Radio button. So
I created two buttons one of Bad Mood then the other one is Good mood.
when one is selected, the data is to be inserted into the database.
this... more >>
change gridview color on mouse out
Posted by fredd00 at 3/9/2007 7:18:26 AM
how can i change the back color on mouse out to the color specified in
the grid view declaration
in the gridview declaration
<AlternatingRowStyle BackColor="#CECECE" />
<RowStyle BackColor="#DEDEDE" />
the RowDataBound (i don't want to have to specify the color cod... more >>
Binding the database to the datagrid while loading the page
Posted by yasodhai NO[at]SPAM gmail.com at 3/9/2007 6:40:41 AM
Hi,
I have to bind the database to the datagrid control.
string secid=Session["SID"].ToString();
int sid=Convert.ToInt32(secid);
//Adding the records in the Fielddet table to the datagrid
string Fld = "select * from fielddet where sectionID=@SecID";
SqlCommand FldCmd= new SqlCommand... more >>
buttoncolumn doesn't fire event
Posted by nipe at 3/9/2007 6:28:22 AM
Hello,
I'm having problem with my custom datagrid control can't fire
itemcommand event.
The fact is that I have to make fully cutom user control so I can't do
any scripting to .aspx file.
There are two classes that has something to do with this: datagrid
class which has 2 buttoncolumns and pan... more >>
Get GridView Bound Field value
Posted by shapper at 3/9/2007 6:07:47 AM
Hello,
I have looping through a GridView rows as follows:
For Each gvrLevel As GridViewRow In gvLevels.Rows
...
Next gvrLevel
How can I get the value of a BoundField named "Description" in each
row?
Thanks,
Miguel
... more >>
button hyperlink
Posted by bob8000 at 3/9/2007 5:52:33 AM
Hi everyone
Could someone tell me how to solve the following problem within Visual
Web Developer (ASP.NET and VB.NET)
I have a datalist with an embedded repeater to display the item and
it's price
how do I include a single linkbutton with each item that would be for
linking to the item's... more >>
Ajax Update Panel
Posted by C at 3/9/2007 4:22:00 AM
Hi,
I have a gridiew with a series of textboxes.
When my user tabs out of the textbox i do some calculations.
My gridview is on an ascx and my ascx is inside an UpdatePanel on my aspx.
After the calculations are complete the focus is lost from the last textbox
that the user was in. I w... more >>
Problem with retrieving the selected value in a dropdown list
Posted by yasodhai NO[at]SPAM gmail.com at 3/9/2007 1:22:04 AM
Hi,
I used a dropdown control bind to a datagrid.
<EditItemTemplate>
<asp:DropDownList ID="FldType_edit" Runat="server" DataSource='<
%#GetFieldType()%>' DataTextField="Type" />
</EditItemTemplate>
The values for the datagrid are retrieved from the database using the
GetFieldType function... more >>
Brain dumps, cheat sheets for exams like mcse ccna.
Posted by jeff101 at 3/9/2007 12:49:20 AM
Exam Prep site [url]www.examcheets.com[/url] is providing 30% to 50%
exam questions, brain dumps, cheat sheets as a free sample and is
helpful for the people who can’t spend money on the exam prep for ccna
mcse and other certifications.
--
jeff101
--------------------------------------... more >>
passing parameters from source page to destination page via URL
Posted by a.mustaq NO[at]SPAM gmail.com at 3/9/2007 12:33:05 AM
Hi All,
I want to send the values of ID and Password from
souce page to Destination page via URL.How can this will be
achieve.Please help me.
Thank & Regards
A.Mustaq Ahmed
... more >>
Converting image to byte array
Posted by Bjorn Sagbakken at 3/9/2007 12:13:35 AM
Hi.
This story is about uploading jpg's, then resize them to fixed width or
height and storing them to an SQL table.
The only way I have found so far is to read the uploaded file to an
image-variable, then using the method of creating thumbnails for the
resizing. Next, I write this to a te... more >>
problem with GridView layout
Posted by Jeff at 3/9/2007 12:00:00 AM
ASP.NET 2.0
I've got problems with the right column in my GridView. The GridView consist
of 2 columns, the problem column is the column on the right side.
The problem is that it looks like there is a huge space between the 2
columns, see the huge grey space between the 2 columns. I want th... more >>
"Build Web Site" always does a complete build
Posted by nospam NO[at]SPAM nospam.sss at 3/9/2007 12:00:00 AM
The "Build Web Site" build option seems to do a complete build even when no
changes have been made. Is there a way to do a build only when a source
file has changed? This is a web site app.
John Dalberg... more >>
Where are the references stored for web site projects?
Posted by nospam NO[at]SPAM nospam.sss at 3/9/2007 12:00:00 AM
I have a web site application (no solution or project files). I did a
search on the site's folder to find where any of the references are stored
and nothing came up. Where are the app's references stored?
John Dalberg... more >>
|