|
I have a calendar popup that I use as well. Here is the code behind.
<br />
<br />
public partial class UserControls_CalendarPopUp : System.Web.UI.Page<br />
{<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if (Request.QueryString["DefaultDate"] != "")<br />
{<br />
this.Cal.SelectedDate = DateTime.Parse(Request.QueryString["DefaultDate"].ToString());<br />
}<br />
}<br />
protected void Cal_SelectionChanged(object sender, EventArgs e)<br />
{<br />
string StrTB;<br />
string StrJs;<br />
<br />
StrTB = Request.QueryString["TB"].ToString();<br />
StrJs = "<script> opener.window.document.getElementById('" + StrTB + "').value = '" + this.Cal.SelectedDate.ToShortDateString() + "' ; window.close(); </script>";<br />
this.ClientScript.RegisterClientScriptBlock(this.Page.GetType(), @"<script type=""text/javascript"">UpdateOpener();</script>", StrJs);<br />
}<br />
}<br />
<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if (!IsPostBack)<br />
{<br />
this.imgCalIcon.Style.Add("Cursor", "pointer");<br />
this.imgCalIcon.Attributes.Add("onclick", @"popupCal('" + this.TxtDate.ClientID.ToString() + @"', '" + sDefaultDate+@"');");<br />
}<br />
<br />
}<br />
<br />
<br />
<br />
Finall the javascript on the page with the image<br />
<br />
function popupCal(TextBox, DefaultDate)<br />
{<br />
settings=<br />
"toolbar=no,location=no,directories=no,"+<br />
"status=no,menubar=no,scrollbars=no,"+<br />
"resizable=no,width=230,height=186;"<br />
MyNewWindow= open("../UserControls/DateTextBox/PopUpCalendar/CalendarPopUp.aspx?TB="+TextBox+"&DefaultDate="+DefaultDate,"CalFrom",settings);<br />
}<br />
<br />
One more thing don't forget to change the link to the CalendarPopUp.aspx. It will have to point to the directory where you put the calendar page.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
|
Hi All,
Is Microsoft Obseleting the VB 6 support ??
Plz discuss, or give Valid links about this Topic.
Thanks in advance
Sajjad
|
|
|
|
|
|
thanx Mike
|
|
|
|
|
Here i have a dropdwnlist and when i do some changes with the list in dropdwnlist,that should be reflected in dropdownlist,for me it si reflecting in database only.
when i clickon refresh buttom from the main menu it should be reflected in the listitems also.give me a solution
kissy
|
|
|
|
|
Sounds like you need to rebind your list after you change the items.
|
|
|
|
|
ya i need to get the same.how to do this in update button event raised
kissy
|
|
|
|
|
When you update the database with the new value just after that rebind the dropdownlist.
Best Regards,
Apurva Kaushal
|
|
|
|
|
myListBox.DataSource = myNewlyUpdatedDataSource
myListBox.DataBind()
|
|
|
|
|
Hi, good day.
I face a problem when i need to update the edited data in datagrid.
An server error occur when i click "update" button in datagrid.The error like below:
< Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
Line 670: UnitPrice = CType(objItem.Cells(4).Text, Double).ToString >
For the "UnitPrice" is the edited column in datagrid. Can anyone explain why this error happen? Thank.
Best Regards,
Pei Sun
|
|
|
|
|
Debug into this, make sure that objItem.Cells(4).Text is the right cell. The runtime is having problem converting whatever is in this cell to a double...
|
|
|
|
|
Hi,
I want to designing a project based on Neural Networks.
Can anyone please help me in finding out an article or site which can be a guide to me for learning and implementing neural networks?
Also can anyone help me picking up a good project for the same?
[that's,am designing the project for my sake only.So i need a suitable subject for implementing the concept..like,we can use it for finding flaws in a picture...or any other subjects...)
Thanks....
|
|
|
|
|
|
Hi...
Could anyone please suggest on which subject/topic i can implement this concept?
Thanks
|
|
|
|
|
Create a subject/topic chooser.
|
|
|
|
|
yes...that could be a good project too...
Any other topics...
|
|
|
|
|
I would like to suggest u, go thr the url given to u, its really good one to implement neural logic.
Try to implement basic fundamentals first.
It will be helpful to u in the future
Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000
|
|
|
|
|
Hi..
I went through it and implemented.
But i have a doubt.When i executed the code,i loaded some of the bmp files for Pattern Detection and trained it for 1000 times.
But it throws error while detection that
"Invalid input Image?Number of inputs doesnot match the number of neurons in the input layer".
Also there they have asked to give ascii value for the image.If i have selected the portrait of a flower,what could be its ascii value?
How many patterns i have to load?
please help me....
|
|
|
|
|
Hi,
In connection string in Ado.Net, if we give servername as "server=(local)/ISM" what it means? can anybody tell the meaning for that. Thanks in Advance
Thanks and Regards
Venkat
|
|
|
|
|
It means to use the local database server, i.e. the machine the application using this connection string is running on, and the instance of the RDMS.
Using SQL Server the default instance, the first one installed has the name of the machine, which can be refered to by using (local) or the machine name. If you install another copy of SQL Server it must be installed with an instance name, such as ISM in your case.
only two letters away from being an asset
|
|
|
|
|
hi,
i want to save unicode characters in sql.im using asp.net1.1 and c#.
please anybody help me.
with regards,
susa
|
|
|
|
|
What database are you using?
To save text as unicde in the database you have to use a unicode field type. In MS SQL Server, for an example, the unicode types are named nvarchar and ntext.
---
b { font-weight: normal; }
|
|
|
|
|
|
hello i want to have
mouse cursor should be placed automatically when Button_click event is raised.
I tried for TextBox.Focus() in the button_click function
but it is not working.
Give me a solution
|
|
|
|