|
Hello!
I need help!
How can I validate my ListBox control?
I need validate selected items in ListBox.
if( selected <=3 )
validate=true;
else
validate=false;
HELP.
PLS!!!
Hello from Ukraine!
|
|
|
|
|
<br />
int count = 0;<br />
foreach (ListItem li in ListBox1.Items)<br />
{<br />
if (li.Selected)<br />
count++<br />
}<br />
<br />
return count <= 3;<br />
-- modified at 15:11 Friday 7th July, 2006
Forgot a semicolon.
|
|
|
|
|
I have a class in which I want to write out the trace if there is an error. I added System.Web to the class and I have System.Web referenced in my project. However, the compiler is not recognizing "Trace." I also set the trace to true in my web.config file.
Trace.Write ("Unable to update!");
I can't find any documentation on what else I might be missing here.
|
|
|
|
|
Take a look at this article - toward the bottom is information on ASP.NET tracing.
http://www.15seconds.com/issue/020910.htm[^]
Do you need System.Diagnostics referenced as well?
Does the call need to be Page.Trace.Write()?
|
|
|
|
|
Looks like I did need the System.Diagnostics; it's compiling now. Thanks!
|
|
|
|
|
Can anyone point me to their favorite references / websites for learning the (apparently) dark and mysterious art of laying out asp.net application pages and components. I.E. I want to create some fairly complex and sophisticated pages for an application.
I'm just not getting the layout methodology because I'm setting some controls to 100% and they only extend partway down a single screen full in my browser window, others extend mysteriously way beyond the size of my window even though there is no data in them below a third of a window.
It's like a circus or whack a mole, every change I make seemingly logically sends the whole layout into a mess of unrelated consequences.
Everything I try short of setting an explicit size in pixels seems to go weird on me and I know enough to know that setting an explicit size is wrong.
I think I need a guide for developers that is more web oriented than .net oriented. I want my pages to appear as nicely and usefully as possible on as wide a range of browser window sizes as possible within reasonable limits.
I have no books on the subject so aside from online material if you have any good ref's for books I would appreciate it. (I don't need to learn to program, I just need to learn how to get asp.net pages and components to layout properly and usefully.)
|
|
|
|
|
There are many resources downloadable from the internet however as far as printed books are concerned consider these (and many otyhers):
1. HTML & XHTML: The Definitive Guide, 4th edition published by O'Reilly. ISBN: 0-596-00026-X
2. VB.NET Fundamentals By: Paul D. Sheriff & Ken Getz This is a downloadable PDF E-book available from http://www.pdsa.com[^] This book includes ASP.net
Anyhow, you can always download the free Express Edition Microsoft Visual Web Developer, register the product, and download the PDF tutorial "Build a Website"
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Hi Richard, I'm sorry I should have been more clear, I have a pretty good grasp of html and a full MSDN subscription with all the tools I need. I'm not exactly starting out from complete scratch, I'm just a little out of date on the xhtml stuff but learning rapidly.
What I'm lacking in is a good guide to doing layouting reliably on different browsers I guess is what it comes down to. I've found some info on "Jello mold" layouts that looks promising:
http://www.positioniseverything.net/articles/jello-expo.html[^]
Cheers!
|
|
|
|
|
My apologies for misunderstanding you.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Well, the era of laying out with tables is almost gone. Google for tutorials on CSS, and DIV layouts.
|
|
|
|
|
hi friends
I want to start doing mobile application can u teel we how to start.
and how many types of mobile programming are there.
Thank you
|
|
|
|
|
constantinejones wrote: how to start
Read documentation/book
|
|
|
|
|
Here is a post again with source code
Hi, I am using xml file to create a menu bar in my web page,
I want a horizontal menu bar display, but I get get verticle menudisaplay strating with root element. If I dont add root element, I get error in xml compilation. Can anyone please guide me how can I achieve horizontal display for different menu items?
xml code is:
<?xml version="1.0" encoding="utf-8" ?>
<MenuItem Text="Start" Value="H" Enabled="false" Url="">
<MenuItem Text="My Copyprint" Value="0" Enabled="false" Url="">
<MenuItem Text="Anmelden" Url="~/Register.aspx" Value="0"/>
<MenuItem Text="Kundenkonto ändern" Url="~/CustomerData.aspx" Value="0"/>
<MenuItem Text="Kontakt" Url="~/Contact.aspx" Value="0"/>
<MenuItem Text="Adressen" Url="~/Adresses.aspx" Value="0"/>
<MenuItem Text="AGBs" Url="~/Conditions.aspx" Value="0"/>
</MenuItem>
<MenuItem Text="Visitenkarten" Value="0" Enabled="false" Url="">
<MenuItem Text="Datei hochladen und bestellen" Url="~/ProductUpload.aspx" Value="2"/>
<MenuItem Text="Layout selber gestalten" Url="~/ProductLayout.aspx" Value="2"/>
</MenuItem>
<MenuItem Text="Postkarten" Value="1" Enabled="false" Url="">
<MenuItem Text="Datei hochladen und bestellen" Url="~/ProductUpload.aspx" Value="3"/>
<MenuItem Text="Layout selber gestalten" Url="~/ProductLayout.aspx" Value="3"/>
</MenuItem>
<MenuItem>
and ASP.Net source is
<asp:XmlDataSource runat="server" ID="XmlMenuSource" DataFile="menu.xml" />
<asp:Menu ID="MainMenu" runat="server" DynamicHorizontalOffset="5" Orientation="Horizontal" Height="26px"
Font-Names="Verdana" Font-Size="11pt" ForeColor="#404040" StaticSubMenuIndent="10px" BorderWidth="0px"
OnMenuItemClick="Menu1_MenuItemClick" BorderStyle="None" Font-Bold="True" StaticPopOutImageTextFormatString="Zeige {0}"
DataSourceID="XmlMenuSource" Width="160px" >
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" BackColor="White" />
<DynamicHoverStyle BackColor="#E0E0E0" ForeColor="Red" Width="150px" Font-Size="10pt" />
<DynamicMenuStyle BackColor="White" Width="120px" />
<StaticSelectedStyle BackColor="White" ForeColor="Red" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" Font-Size="10pt" BackColor="White" Width="150px"/>
<StaticHoverStyle BackColor="#E0E0E0" ForeColor="Red" />
<StaticMenuStyle BackColor="Black" Height="22px" />
<DataBindings>
<asp:MenuItemBinding DataMember="MenuItem" Depth="0" TextField="Text" ValueField="Value" SelectableField="Enabled" />
<asp:MenuItemBinding DataMember="MenuItem" Depth="1" TextField="Text" ValueField="Value" NavigateUrlField="Url"/>
<asp:MenuItemBinding DataMember="MenuItem" Depth="2" TextField="Text" ValueField="Value" NavigateUrlField="Url"/>
</DataBindings>
</asp:Menu>
|
|
|
|
|
Hi, I am using xml file to create a menu bar in my web page,
I want a horizontal menu bar display, but I get get verticle menudisaplay strating with root element. If I dont add root element, I get error in xml compilation. Can anyone please guide me how can I achieve horizontal display for different menu items?
xml code is:
<br />
<?xml version="1.0" encoding="utf-8" ?><br />
<MenuItem Text="Start" Value="H" Enabled="false" Url=""><br />
<MenuItem Text="My Copyprint" Value="0" Enabled="false" Url=""><br />
<MenuItem Text="Anmelden" Url="~/Register.aspx" Value="0"/><br />
<MenuItem Text="Kundenkonto ändern" Url="~/CustomerData.aspx" Value="0"/><br />
<MenuItem Text="Kontakt" Url="~/Contact.aspx" Value="0"/><br />
<MenuItem Text="Adressen" Url="~/Adresses.aspx" Value="0"/><br />
<MenuItem Text="AGBs" Url="~/Conditions.aspx" Value="0"/><br />
</MenuItem><br />
<MenuItem Text="Visitenkarten" Value="0" Enabled="false" Url=""><br />
<MenuItem Text="Datei hochladen und bestellen" Url="~/ProductUpload.aspx" Value="2"/><br />
<MenuItem Text="Layout selber gestalten" Url="~/ProductLayout.aspx" Value="2"/><br />
</MenuItem><br />
<MenuItem Text="Postkarten" Value="1" Enabled="false" Url=""><br />
<MenuItem Text="Datei hochladen und bestellen" Url="~/ProductUpload.aspx" Value="3"/><br />
<MenuItem Text="Layout selber gestalten" Url="~/ProductLayout.aspx" Value="3"/><br />
</MenuItem><br />
</MenuItem><br />
and the Asp.net
<br />
<asp:XmlDataSource runat="server" ID="XmlMenuSource" DataFile="menu.xml" /><br />
<asp:Menu ID="MainMenu" runat="server" DynamicHorizontalOffset="5" Orientation="Horizontal" Height="26px"<br />
Font-Names="Verdana" Font-Size="11pt" ForeColor="#404040" StaticSubMenuIndent="10px" BorderWidth="0px" <br />
OnMenuItemClick="Menu1_MenuItemClick" BorderStyle="None" Font-Bold="True" StaticPopOutImageTextFormatString="Zeige {0}"<br />
DataSourceID="XmlMenuSource" Width="160px" > <br />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" BackColor="White" /><br />
<DynamicHoverStyle BackColor="#E0E0E0" ForeColor="Red" Width="150px" Font-Size="10pt" /><br />
<DynamicMenuStyle BackColor="White" Width="120px" /><br />
<StaticSelectedStyle BackColor="White" ForeColor="Red" /><br />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" Font-Size="10pt" BackColor="White" Width="150px"/><br />
<StaticHoverStyle BackColor="#E0E0E0" ForeColor="Red" /><br />
<StaticMenuStyle BackColor="Black" Height="22px" /><br />
<DataBindings> <br />
<asp:MenuItemBinding DataMember="MenuItem" Depth="0" TextField="Text" ValueField="Value" SelectableField="Enabled" /><br />
<asp:MenuItemBinding DataMember="MenuItem" Depth="1" TextField="Text" ValueField="Value" NavigateUrlField="Url"/><br />
<asp:MenuItemBinding DataMember="MenuItem" Depth="2" TextField="Text" ValueField="Value" NavigateUrlField="Url"/><br />
</DataBindings><br />
</asp:Menu><br />
Thanks in advance.
|
|
|
|
|
Hello Friends
I hope all of you will be doing fine there,
i am working on a project where i need to use google earth features.
can any body tell me how can i integrate it in my website.
i am using ASP.net 2.0
do send me link to any project
take care
bye
Ahsan Ullah
|
|
|
|
|
i think the only info you can get is Google Earth KML which works with google earth client use XML as feed.
Nav.
|
|
|
|
|
GOOGLE it. First try linking GEARTH COM object.
|
|
|
|
|
IF you just want to display map data, then using GE is probably not the best way to do it - you'd need to spawn the objects, it would need to be installed on the client etc..etc...
Try using Google MAPS instead...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Can anyone help me sending articles r suggestions in implementing a simple chat as a part of the website with authorization of the user
|
|
|
|
|
you can use cute chat. A third party tool
http://cutesoft.net
|
|
|
|
|
any free engine ?? would really help anyways
|
|
|
|
|
Hi all,
I am using sqlserver 2000.I want to fetch Billdate from billmaster table I get Billdate in datetime format (2/2/2006 11:11:00AM) But i want only date part of it.
I mean I want to fetch only date and not time.
I hope you help me.
Regards,
Nagraj
|
|
|
|
|
when u write the select statement
write as
Nagraj Naik wrote: select convert(varchar,fieldname,101) from billmaster
select convert(varchar,fieldname,101) from billmaster
Vipin
|
|
|
|
|
Hi Vipin,
It's working.
It's nice to meet you.
Thanks for help.
Best Regards,
Nagraj
|
|
|
|
|
Hi folks. This is selvaraj.I have a Datagrid ItemTemplate with DropDownList and also have an another ItemTemplates called HtmlInputText control.Initially the HtmlInputText control is disabled=true in all DataGrid rows.My requirement is when I going to be choosed the DropDownList value 5,that time only i need to disabled=false the HtmlInputText control. If any know about my issues please give some idea or code to me..
Thanks in advance
Selvaraj S.Kaliyappan.
|
|
|
|