all groups > asp.net > december 2004 > threads for saturday december 4
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
Setting column header text of datagrid in PreRender... Do You know how to do it?
Posted by Adam Boczek at 12/4/2004 11:59:57 PM
I've a dropdownlist control to change language on my page. Because of page
lifetime, I have to set all my labels, texts etc. from ResourceManager in
prerender handler to be sure that culture change has been done. But I can't
set HeaderText property of DataGridColumn in prerender because it is ... more >>
How do I format html to be most suitable for printing?
Posted by Raymond Du at 12/4/2004 10:04:23 PM
Hi,
I have serveral web forms used by users, these users often use IE browser
print function to print out the form, the problems I have is what users see
on the screen is usually different from what's being printed. Somtimes it
looks good on screen, but it wraps differently in printing. How do... more >>
Panel control is quite enough ?
Posted by Raghu Raman at 12/4/2004 8:39:17 PM
Hi,
am a biginner in .net designing.Does the panel control is enough to act
as a container .Because if , i design my controls in textboxes rows&
cols , i heared that the aclignment won't change in run time across the
browsers.
is it true? if the panel provides guaruntee that it keeps the c... more >>
Arrays in MS SQL table
Posted by Justin at 12/4/2004 7:31:02 PM
I am creating an application for booking events. Each event has several dates
and each date has a fixed amount of available seats.
Currently in the events table I have a field for the number of available
seats and a field for the string of dates that are later parsed into a
listbox control... more >>
how to program the <div> element?
Posted by Daves at 12/4/2004 7:07:34 PM
I find this odd;
to create a DIV (html) element I use the HTMLGeneric control;
<div ID="myDiv" runat=server ...
This has no .Text property such as
myDiv.Text = "testing";
So I am forced to use the Label control instead but that one results in a
<span> element for which many style attri... more >>
automatic databinding?
Posted by Davids at 12/4/2004 5:19:36 PM
I have an AccessDataSource control and a DataList control and databinding to
display the database results. Although there is no Page.DataBind() in my
codebehind code it obviously is there somewhere, do the controls do it or is
it by default done in the page building sequence?
How can I contro... more >>
SelectedItemTemplate does not show in datalist
Posted by Raymond Du at 12/4/2004 5:01:46 PM
Hi,
I have the following templates inside a datalist:
<SelectedItemTemplate>
<%# Container.DataItem("Title") %>
</SelectedItemTemplate>
<ItemTemplate>
<asp:LinkButton id="lnkAction" runat="server" cssClass="OtherTabs"><%#
Container.DataItem("Title") %></asp:LinkButton>
</Item... more >>
IIS, ASP.Net Development and Norton Internet Security 2005
Posted by TC at 12/4/2004 4:39:36 PM
Hello All,
I have recently had the pleasure of installing Norton Internet Security 2005
and finding that I can no longer create or open a web-based application in
Visual Studio .Net. The IDE just freezes. I tried fiddling with the
configuration settings of the Norton Firewall but was not ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
validator limitations
Posted by Roman at 12/4/2004 3:13:51 PM
Hi,
I am relatively new to dotnet and have heard great things about form
validation and how easy it is. While I can see some improvements compared
with classic asp I am a bit disappointed at how inflexible it seems.
The requirement I have is that when form fields contain invalid data, ie no... more >>
Modify Datalist standard itemtemplate output
Posted by Martman at 12/4/2004 1:49:56 PM
First here is my goal:
When a datalist is rendered to a page and you use the <itemtemplate> the
datalist automatically prints a <tr> <td> start and end tags. Now this
may not be too bad but I have run into a situation repeatedly with the
designing factor of a datalist.
Most of the time w... more >>
HtmlTextWriter output varies with browser?
Posted by Jeff Evans at 12/4/2004 1:23:09 PM
OK, this one has me totally baffled. Please go to:
http://www.uiucsingles.com/
Notice the left div (class="navDiv"). For some reason the control that
renders this section of the page is outputting different tags to different
browsers, when using HtmlTextWriterAttribute and
HtmlTextWrite... more >>
Inserting a dynamic URL in to a MAILTO: tag
Posted by 35th Ave Media at 12/4/2004 12:55:36 PM
Hello,
I have about 60+ pages that I need to insert a MAILTO: tag so people can
email the page using their email client. The body of the message is
going to be the URL of that page. Using ASP, how can I insert the page
URL in the email body without having to manually enter each URL for each... more >>
Bind with a condition
Posted by Marcelo_HernĂ¡n_Ruiz at 12/4/2004 11:41:16 AM
I want to do show this:
<asp:Panel id="Panel1" runat="server">
<div>Product dimensions: <%# DataBinder.Eval(Product, "Dimensions") %></div>
</asp:Panel>
Only if "Dimensions" field is not empty.
Is there any way?
The best I think is to do this in the DataBinding Event of the panel
if (... more >>
SelectedIndexChanged event of a DropDownList sometimes not firing
Posted by Lew Barnesson at 12/4/2004 11:23:06 AM
Hi All,
I have looked and looked for an answer to the following problem (without
success), and would be very grateful for a solution. The problem:
The SelectedIndexChanged event code of an Asp.Net DropDownList changes text
in an adjacent TextBox by either concatenating SelectedItem.Text (... more >>
DataList.Visible property
Posted by Daves at 12/4/2004 11:13:29 AM
now if I in my codebehind set the Visible property to false for a DataList
control which is bound to a database query (AccessDataSource control to be
exact) - will it be skipped completely in runtime or is the database still
accessed and the results iterated although nothing is visible?
... more >>
ViewState Variable Vs. Session Variable
Posted by Arpan at 12/4/2004 10:27:54 AM
This is a multi-part message in MIME format.
------=_NextPart_000_000C_01C4D9EB.EA1D7EC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Consider the following ASPX code snippet:
<script language=3DVB runat=3Dserver>
Sub Page_Load(obj As Objec... more >>
form doesn't submit
Posted by GlobalDeveloper at 12/4/2004 7:35:02 AM
The following simple code which is supposed to enumerate the
form and query variables does work in IE6 and FireFox but NOT
in IE5. Could anyone advice me on this one???
I think the issue has to do with the javascript line
document.forms[0].submit();
in the TestVar function but I just cannot... more >>
Send Email
Posted by Jay at 12/4/2004 6:19:38 AM
How can I send an email in a windows form like I can with asp.net using
System.Web.Mail or by some other way.
Thanks.
Jay
... more >>
Code behind problem
Posted by Kenneth P at 12/4/2004 3:59:03 AM
Hi,
I have a .aspx file named testConnStr.aspx witin a try, catch, finally
block that works just very nice, shows the data in a datagrid. I have one
header saying "test ConnStr" and two server objects, a label and a datagrid.
So I decided to do it with code behind.
What happens?
Ev... more >>
vs 2002 version 7.0.9466 and .NET 1.1.4322
Posted by greg at 12/4/2004 1:55:27 AM
will VS 2002 still work if I upgrade from .NET 1.0?
... more >>
StreamWrite / Problem?
Posted by Leon at 12/4/2004 1:49:22 AM
I wrote an custom error handler that works, but why the ErrorLog.txt file is
being created/written in the root web instead of the folder within my web
application?
Root web = C:\Inetpub\wwwroot -&- Web Application Folder =
C:\Inetpub\wwwroot\MySite
See code:
Public Shared Sub LogError(ByVa... more >>
" or ' in control syntax?
Posted by Davids at 12/4/2004 12:29:10 AM
please can you save me hours of Googling by telling me the difference
between using ' or " in a control's parameters eg:
<asp:Label ID="BlogCategoryLabel" Runat="server" Text='<%#
Eval("BlogCategory") %>'/>
where these two are intermixed...
... more >>
Is this the best or even right way to hide some text?
Posted by Miguel Dias Moura at 12/4/2004 12:09:36 AM
Hello,
I want to display 6 database fields in this way:
{name}
{address}
Phone: {phone} | Fax: {fax}
URL: {url} | Email: {email}
Of course if {phone} field is empty I need to hide "Phone: {phone} | "
I came up with something like this (to hide the address line):
<table runat="serve... more >>
|