|
Here is My Content Page Code given below if you put this code in a simple web form then it works fine........Please let me know what mistake i am making
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript">
function showCalendar(divSelectDate)
{
e=document.getElementById(divSelectDate);
if(e.style.display=="none")
{
e.style.display="block";
}
else
{
e.style.display="none";
}
}
</script>
<a href="#" onclick="showCalendar('divSelectDate');" title="Click Here To Select Start Date">Select</a>
<div id="divSelectDate" runat="server" style="display:none;">
<asp:Calendar ID="selectCalendar" runat="server" BackColor="White" BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" Width="200px">
<SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
<TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="#FFFFCC" />
<OtherMonthDayStyle ForeColor="#808080" />
<NextPrevStyle VerticalAlign="Bottom" />
<DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
</asp:Calendar>
</div>
</asp:Content>
|
|
|
|
|
hi,
how i can retrive the selected items from the listbox at a time?
although i change the selectionmode with the multiple.
protected void ListBox1_SelectedIndexChanged(object sender,
EventArgs e)<br />
{<br />
<br />
TextBox3.Text = "" + ListBox1.SelectedItem;<br />
}
above code retrive the only one item even that i select the more then one items.
|
|
|
|
|
you will have to put in a for loop i think
count all of those selected from the list
|
|
|
|
|
Error 1 'System.Web.UI.WebControls.ListBox' does not contain a definition for 'SelectedItems'
then.........
|
|
|
|
|
i got solution which is as following:
protected void Button7_Click1(object sender, EventArgs e)<br />
{<br />
TextBox4.Text = "";<br />
foreach(ListItem Isitem in CheckBoxList1.Items)<br />
if (Isitem.Selected == true)<br />
{<br />
<br />
TextBox4.Text += "\n" + Isitem.Text;<br />
<br />
}<br />
}
|
|
|
|
|
I am having VS 2005. Now I have installed ajax and ajax control toolkit. After this process, I created a new Ajax enabled website. I have added one simple Label Control and TextBox Control inside the Update panel. While running this page I am getting a javascript error message--"Sys is undefined" . Can any one give a solution ?
Note: My application is running on Apache Web Server
Thanks in advance
|
|
|
|
|
have you got .net on your web server?
|
|
|
|
|
|
i'm not sure off by hand but if you follow a beginners article on the web it might help you if you hgave missed something
couple things:
have you got any ajax controls isside a content tag
is there any ajavscript that is running on your page
|
|
|
|
|
a-+s-+p-+ wrote: i'm not sure off by hand but if you follow a beginners article on the web it might help you if you hgave missed something
Well that's a pretty useless response.
a-+s-+p-+ wrote: is there any ajavscript that is running on your page
Did you notice the mention of an object not found Javascript exception. I think it a safe bet that this isn't being generated by anything else.
only two letters away from being an asset
|
|
|
|
|
Do you include a javascript file?
if so
be sure to add
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
to your script file.
|
|
|
|
|
Try Goggling this subject, there are number of listings with various causes and solutions. Too wide of a variety to list here.
only two letters away from being an asset
|
|
|
|
|
Couple of quick items.
* Verify that you have a ScriptManager in the of your ASPX.
* Also, veridfy that the web.config has all the needed AJAX references, by comparing it to the default version (typically found here - C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\web.config - unless you have 3.5 framework and then the version will be different).
Hope one of those helps.
|
|
|
|
|
I just reinstalled Ajax. And the error has gone!!!
Thank You for all.
|
|
|
|
|
Hi
I have the following:
"a href="EditItem.aspx?qtynewvar=<%# Eval(" qty=") %">"><%# Eval("Qty") %></a>"
How would I add another variable into the ahref?
thanks
|
|
|
|
|
Exactly the same way as you added this one. You can call Eval as often as you like. Am I missing a problem here ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have been given a task to fetch the following information from the ADS server in windows 2003 to my application in asp.net.
The fields to be fetched are,member loginid,login time,logout time.
Where does windows 2003 server save these member information as a log file.
Can anybody help me out for this problem.
Bibhu
|
|
|
|
|
You want to find this information on the server or on the client ? You want logout time, so you want a history of who logged in when, on the server ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I need to fetch the client information from the server.THe client information like client login time,logout time AND OTHER login informations.I got it from somewhere that there are log files that carry the member information.Now the problem is where does this log file of member event viewer exists and how to fetch member data from that.
|
|
|
|
|
hi
can any one help me to give the reference of job portal in asp.net which is available in the net freely
its really urgent
thanks in advance
|
|
|
|
|
Ravi_21 wrote: its really urgent
Of course it is. Why ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have two controls: a.ascx and b.ascx.
In b.ascx I have a gridview and function B that collects data from gridview and builds a datatable for return.
In a.ascx I have b.ascx and function A that calls function B from b.ascx.
On page (aspx) it calls the A function after button was pressed.
The problem:
When I'm checking the gridview in b.ascx it's empty despite of fact that I see the grid in explorer.
P.S.
When I'm using the b.ascx directly on page everything just fine.
modified on Tuesday, March 4, 2008 4:44 AM
|
|
|
|
|
How are you adding these controls to the page? Are they being added dynamically?
|
|
|
|
|
|
You need to drag and drop these controls from sol.n explorer as other controls.If needed you can define some properties and functions for the user controls.These controls can be called both dynamically and statically.
|
|
|
|