|
No idea why it is setting all other controls to disabled state.How ever if you dont want the validation conrol go get in to action when the cancel button is clicked then set the CausesValidation property of the cancel button to false.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
use cause validation in the button that sorted it for me
|
|
|
|
|
|
would selecteditem not be the better option
|
|
|
|
|
a-+s-+p-+ wrote: would selecteditem not be the better option
no handler for selectedItem changes
Mohamed Gouda
Egypt
|
|
|
|
|
Its very simple... just add a button column with command name="select"
and then write ur code in the selected index changed event...
When you fail to plan, you are planning to fail.
|
|
|
|
|
Thanks .. it works
But there is noway to select the row from any field like the Desktop Datagrid ?? this is very strange !!!
Mohamed Gouda
Egypt
|
|
|
|
|
Hi,
I have to generate Report in MS excel from my ASP.Net/C# Application.
How i should proceed. Any suggestion,Tutorial,link would be great help.
Thanks
|
|
|
|
|
|
Hi
in page load i am binding data to gridview control . i have button in that same page while clicking this button i want that
grid view data to be downloaded to the client side in .txt format . now i did how to convert that gridview data to txt format .
but it saving in server machine(i gave server.mappath for path) . it should downloadad to client machine . how to do that ?
|
|
|
|
|
Some thing Quick...
In the button click write like this.
Response.Write("");
Response.Write("window.open('"+ Server.Mappath(path) + "');");
Response.Write("");
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Response.Redirect(Server.Mappath(path))
Mohamed Gouda
Egypt
|
|
|
|
|
I have a lot of experience using C#. I want to design a website with roles and users. Im looking for a free pdf book that can get me started, including setting up visual studio (the server) and also how I can use my dasktop pc to run as a server aswell for running the site during development.
If u knw of a good book that covers my problems....
Is this chair taken
|
|
|
|
|
I would look on the web for this sort of info, its bound to be more up to date and wide ranging then one book
|
|
|
|
|
I have taken a div to show or hide the calendar in Master Page's content page but it's not working. But if i put the code in the simple web page then that's working .....
And also it's showing a object required error on page
|
|
|
|
|
check all the controls are the same in master then in your normal page
post you code if that doesnt work
|
|
|
|
|
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
|
|
|
|