all groups > asp.net > february 2008 > threads for saturday february 23
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
'Gridview1' fired event Sorting which wasn't handled
Posted by Vincent at 2/23/2008 10:50:31 PM
Hi,
I created a gridview bound to the roles tables with this code:
rolesArray = Roles.GetAllRoles()
Gridview1.DataSource = rolesArray
Gridview1.DataBind()
The gridview has following classic properties:
<asp:GridView runat="server" id="Gridview1" AllowPaging="True"
AllowSorting="true"
pa... more >>
Performance problem with multiple choice questions
Posted by Night Air at 2/23/2008 8:54:14 PM
I'm working with a website that presents a series of multiple choice
questions to users.
The problem at hand is that the pages with the questions take some time load
and the users are under a time limit to answer the questions.
Would you know if there is a way to "download" the question bi... more >>
Are We Still Supposed to Use GridView?
Posted by Jonathan Wood at 2/23/2008 7:06:45 PM
I'm just starting to get up to speed with ASP.NET. Based on what I've read,
I use the GridView control to display tables of data from a database. And,
using ObjectDataSource, I've found examples of how to implement efficient
paging in the GridView control.
But all my books are for .NET 2.0.... more >>
Copy/Paste HTMl code
Posted by shapper at 2/23/2008 5:43:48 PM
Hello,
I am creating an ASP.NET web site which inserts data in a SQL database
using LINQ.
One table column will hold HTML code. I am using a simple TextBox to
input the data.
I would like to create my text in my computer and then copy/paste the
HTML code to my TextBox and insert in the d... more >>
getting UserId of newly created user by CreateUserWizard
Posted by Adam Right at 2/23/2008 5:04:51 PM
Hi All,
I can find UserId of an Authenticated user over the ProviderUserKey of
MembershipUser , like that:
if(Page.User.Identity.IsAuthenticated)
{
MembershipUser usr = Membership.GetUser(Page.User.Identity.Name);
Label1.text = usr.ProviderUserKey.ToString();
}
But, is it possible to... more >>
Custom DataPager. How?
Posted by shapper at 2/23/2008 5:02:36 PM
Hello,
I am using a DataPager with a ListView. I am creating everything at
runtime.
I need to create a custom DataPager so that the numbers and the next
previous symbols will be inside a list (ul > li).
How can I do this?
Thanks,
Miguel... more >>
Override Css Class
Posted by shapper at 2/23/2008 4:41:13 PM
Hello,
I have two custom controls Parent and Child, both inherit from
Composite Control. Child controls are added to parent.
Parent has a property named ChildControlCssClass.
I want ChildControlCssClass to be applied to all Child controls added
to Parent.
However, if I define the CssCl... more >>
how to validate 3 text boxes together
Posted by Keith G Hicks at 2/23/2008 2:43:58 PM
asp.net 2.0
I'm stumped. I have a page that is used for updating user information. If
the user is logged in and they navigate to that page, then they see text
boxes for UserName, FirstName, Email, Old Password, New Password, Confirm
New Password. Since the user is logged in, I'm populating the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
password type textboxes - I don't want them cleared during validation
Posted by Keith G Hicks at 2/23/2008 2:30:43 PM
asp.net 2.0
I have several text boxes and set one of them as a password type and put a
validator on it and some other text boxes. When I enter data into the boxes
violating the validators intentionally. Then I click my submit button. The
validators show what's missing or incorrect but my passw... more >>
Convert DataTable to Xml string variable...
Posted by Matthew Wells at 2/23/2008 2:20:40 PM
Hello,
I'm using C# behind an aspx file. I'm trying to find a way to convert a
datatable to xml and assign that to a string variable without saving to a
file. Obviously I don't want to slow down the process by writing to disk,
but all the methods I've found so far (datatable.writexml)... more >>
Define parameter value
Posted by shapper at 2/23/2008 10:01:28 AM
Hello,
I am using a ListView connected with an ObjectDataSource.
I am creating everything at runtime by implementing the ListView
ITemplate.
I know I get a one way bind so I need to define my parameters values
by accessing the controls inside the template.
Where should I define the paramat... more >>
Read ASP 3 Session Data
Posted by Thom Little at 2/23/2008 7:49:01 AM
I create session data in ASP 3 using ...
Session("sample") = "test"
I can extract the value on any ASP 3 page using ...
Demo = Session("sample")
.... until the session is terminated.
How do I extract the information in an .ASPX page using C#?
string Demo = Session["sample"] ;
.... is no... more >>
Property is empty. Why?
Posted by shapper at 2/23/2008 7:34:09 AM
Hello,
I am creating a custom control, named Form, which inherits from
CompositeControl.
I am adding child custom controls, named Section, to the Form through
the following property:
Private _Sections As New List(Of FormSection)
Public Property Sections() As List(Of FormSection)
... more >>
Expression Expected Error in Visual Web Developer 2008.NET whereas works fine in 2005.NET
Posted by Anand Ganesh at 2/23/2008 12:14:52 AM
Hello Everybody,
I have a line in a Javascript function as follows
<%=ServerSideVariable%>;
This works fine in 2005.NET
But in 2008.NET Visual Web Developer this gives as warning saying
"Expression Expected" and during runtime throws syntax error.
Any suggestions please.
I use th... more >>
|