CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 10/9/2007 3:53:13 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 15 Views: 106 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
16 Items, 1 Pages 1 |< << Go >> >|
chohoo
Asp.Net User
How to minimize Calendar?10/9/2007 3:53:13 AM

0/0

Hi, nice to meet you all. Is it can hide the calendar until user go to display calendar and choose the date from calendar? Or any good idea to minimize the calendar?

I try to use panel to hide the calendar, but it can't return date from calendar to textbox, and also try to use web part zone, it can't put beside textbox... Please help me...

Thank you

kipo
Asp.Net User
Re: How to minimize Calendar?10/9/2007 7:16:59 AM

0/0

If you're using AJAX try with Calendar control: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx

chohoo
Asp.Net User
Re: How to minimize Calendar?10/9/2007 7:35:00 AM

0/0

Thank You So Much, AJAX also good idea to develop, but i can't include this to this project becoz they don't have the system and maybe in future, but not now. However Thank You a Lot.Smile

kipo
Asp.Net User
Re: How to minimize Calendar?10/9/2007 7:55:37 AM

0/0

If you can't use AJAX, try with DaintyDate. First download it here: http://rapidshare.com/files/61295035/DaintyDate.rar.html Unzip it, and in Visual Studio (or Visual Web Developer) right mouse click on Toolbox -> Choose Items... -> Browse... -> DaintyDate/bin/Debug/CustomControlFreak.dll. After that, on your Toolbox, there will show up 2 new items which you can use like any other control (just drag and drop DaintyDate on your page).

chohoo
Asp.Net User
Re: How to minimize Calendar?10/9/2007 9:38:39 AM

0/0

Thank You Very Much!!! I already try to put it in my project and it's really works, just can't adjust the size and need to know how to pass value to stored procedure... Thank You In Advance.

kipo
Asp.Net User
Re: How to minimize Calendar?10/9/2007 9:42:54 AM

0/0

What size would you like to adjust? And from where are you trying to pass value (from GridView, FormView...)?

chohoo
Asp.Net User
Re: How to minimize Calendar?10/9/2007 9:49:59 AM

0/0

Actually I use css(someone make it, must follow) to adjust the size, and it is like:

.normalTextBox

{

background-color: #FFFFFF;

font: normal 10px Verdana;

text-decoration:none;border: 1px solid #999999;

 

}

and from DaintyDate1.selecteddate to GridView to select and display data. Thank You becoz help me a lot

kipo
Asp.Net User
Re: How to minimize Calendar?10/9/2007 1:54:39 PM

0/0

Youll have to change that version of DaintyDate with this one which I modified to support using css classes: http://rapidshare.com/files/61373924/DaintyDate.rar.html
First in Toolbox right click on DaintyDate item -> Delete and then unzip this file and again in Visual Studio (or Visual Web Developer) right mouse click on Toolbox -> Choose Items... -> Browse... -> DaintyDate/bin/Debug/CustomControlFreak.dll. After you do that, add TextBoxCss="normalTextBox" inside DaintyDate control.
And about selecting the date, I'm not sure I understood what are you trying to achieve. Is DaintyDate inside GridView and you need to enter value from it inside database while you edit GridView, or you first want to select date in DaintyDate and according to that value pull some data from the database?

chohoo
Asp.Net User
Re: How to minimize Calendar?10/9/2007 11:51:34 PM

0/0

Sorry that reply late and Thank You too For Ur Help. I already include it into my project, thank a lot for your help and support material. Actually I wan to pass the date into stored procedure to search the date from sql database and display all data (follow the date) in GridView1. I'm sorry that maybe I didn't explain as well and make u misunderstanding.

 If i wan to pass the date to sqldatasource1 to get data from database, is it got anyway or different way to do? Thank in Advance Smile

chohoo
Asp.Net User
Re: How to minimize Calendar?10/10/2007 12:29:15 AM

0/0

I got problem here.... I select the date from DaintyDate1 and pass to label1.text first and then use label1.text to sqldatasource1... problem is it reset the date back to Jan 2007 when autopost active.... Thank and sorry to get u problems 

kipo
Asp.Net User
Re: How to minimize Calendar?10/10/2007 6:18:45 AM

0/0

Can you post your code and stored procedure?

chohoo
Asp.Net User
Re: How to minimize Calendar?10/10/2007 6:38:38 AM

0/0

Sub SubmitButton_Click(ByVal Sender As Object, ByVal E As EventArgs)

DateSelected.Text = DaintyDate1.Text

If DateSelected.Text = "" Or ItemsName.Text = "" Or ItemsSelect.SelectedValue = "" Then

Alert2.ForeColor = Drawing.Color.Red

Alert2.Text = "Please Select Date From Calendar And Fill All Fields Before Search Existing Transaction."

Else

returnv.Text = ""

Dim myConnection As SqlConnectionmyConnection = New SqlConnection("Data Source=xx.xx.xx.xx;Initial Catalog=Ds;User ID=sa;Password=XXXX")

myConnection.Open()

Dim CMD As SqlCommand = New SqlCommand("usp_RetrieveData", myConnection)

CMD.CommandType = CommandType.StoredProcedure

Dim param1 As SqlParameter = New SqlParameter()

param1.ParameterName = "@SearchingCriteria"

param1.SqlDbType = SqlDbType.VarChar

param1.Direction = ParameterDirection.Input

param1.Value = ItemsSelect.Text

Dim param2 As SqlParameter = New SqlParameter()

param2.ParameterName = "@SearchingColumn"

param2.SqlDbType = SqlDbType.VarChar

param2.Direction = ParameterDirection.Input

param2.Value = ItemsName.Text

Dim param3 As SqlParameter = New SqlParameter()

param3.ParameterName = "@SearchingDate"

param3.SqlDbType = SqlDbType.VarChar

param3.Direction = ParameterDirection.Input

param3.Value = DateSelected.Text

Dim paramReturnValue As SqlParameter = New SqlParameter()

paramReturnValue.ParameterName = "@return_value"

paramReturnValue.SqlDbType = SqlDbType.Int

paramReturnValue.Direction = ParameterDirection.ReturnValue

CMD.Parameters.Add(param1)

CMD.Parameters.Add(param2)

CMD.Parameters.Add(param3)

CMD.Parameters.Add(paramReturnValue)

Dim dr As SqlDataReader = CMD.ExecuteReader()

Dim i As Integer = 1

While dr.Read()

returnv.Text = dr(2).ToString

End While

dr.Close()

myConnection.Close()

If returnv.Text = "" Then

Alert2.ForeColor = Drawing.Color.Red

Alert2.Text = "Message: No Existing Result Dated on " + DateSelected.Text + " Found! Searching is Terminated."

Else

Alert2.ForeColor = Drawing.Color.Green

Alert2.Text = "Search Result Dated on " + DateSelected.Text + ": "

Reset()

End If

End If

DsDataSource.DataBind()

End Sub

 

and my stored procedure is

ALTER PROCEDURE usp_RetrieveData

@SearchingCriteria VARCHAR(10),

@SearchingColumn VARCHAR(30),

@SearchingDate VARCHAR(20)

AS

BEGIN

SET NOCOUNT ON;

 

IF @SearchingCriteria = 'TransNo'

BEGIN

IF EXISTS(SELECT * FROM Ds WHERE TransNo like @SearchingColumn + '%' and TransDate = @searchingdate)

BEGIN

SELECT  * FROM Ds Where TransNo like @SearchingColumn + '%' and TransDate = @searchingdate

ORDER BY TransNo asc

END

ELSE

BEGIN

RETURN

END

END

kipo
Asp.Net User
Re: How to minimize Calendar?10/10/2007 7:46:55 AM

0/0

There are few worng approaches in your code. First, you shouldn't use VARCHAR datatype for date values (you should use DATETIME). Second, instead DaintyDate1.Text you should use DaintyDate1.SelectedDate.Value. And finally, do you want to reset DaintyDate TextBox value, or you want to perserve it after postback?

chohoo
Asp.Net User
Re: How to minimize Calendar?10/10/2007 8:05:45 AM

0/0

O I C, thank you for your comments. But I need to store it as "xx/xx/xxxx" and datetime type can't support this type, so that's why i need to choose nvarchar. Sorry that I forget to make it as DaintyDate1.SelectedDate.Value. I want perserve it after postback...

kipo
Asp.Net User
Re: How to minimize Calendar?10/10/2007 8:28:09 AM

0/0

chohoo:
But I need to store it as "xx/xx/xxxx" and datetime type can't support this type, so that's why i need to choose nvarchar. 
Is it really necessarily that the value is in that way saved in database? You can always save it as datetime and than in process of fetching value from database convert it in any style you want.
chohoo:
I want perserve it after postback...
That's weird, because value is preserved after postback. Can you post your whole code (page and code-behind)?

chohoo
Asp.Net User
Re: How to minimize Calendar?10/10/2007 8:39:27 AM

0/0

Thank You Becoz Help Me a Lot, but actually this project only can show some code outside, and also becoz of secure data inside, i'm sorry that I can't post. Thank You a Lot, I think I can handle the problem. Thank You So Much. Smile

16 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Outlook 2007 All-in-One Desk Reference For Dummies Authors: Jennifer Fulton, Karen S. Fredricks, Pages: 816, Published: 2007
Drafting Limited Liability Company Operating Agreements Authors: John M. Cunningham, Pages: 950, Published: 1998
Risk Transfer: Derivatives in Theory and Practice Authors: Christopher L. Culp, Pages: 448, Published: 2004
Options for the Beginner and Beyond: Unlock the Opportunities and Minimize the Risks Authors: W. Edward Olmstead, Pages: 230, Published: 2006
Grassroots Initiatives: Shape an International Movement : United Ways Since 1876 Authors: Richard N. Aft, Mary Lu Aft, Pages: 252, Published: 2004
Alan Simpson's Windows Vista Bible Authors: Alan Simpson, Todd Meister, Pages: 1176, Published: 2007
Planning Smarter: Creating Blueprint-Quality Software Specifications Authors: Tyson Gill, Pages: 224, Published: 2002
If It's Raining in Brazil, Buy Starbucks: The Investor's Guide to Profiting from News and Other Market-moving Events Authors: Peter Navarro, Navarro Peter, Pages: 256, Published: 2004
Human-Computer Interaction - Interact 2005: INTERACT 2005 : IFIP TC13 International Conference, Rome, Italy, September 12-16, 2005 : Proceedings Authors: Maria Francesca Costabile, Fabio Paternò, International Federation for Information Processing, Pages: 1158, Published: 2005

Web:
How to minimize Calendar? - ASP.NET Forums Is it can hide the calendar until user go to display calendar and choose the date from calendar? Or any good idea to minimize the calendar? ...
Sunbird/Calendar - Minimize to tray • mozillaZine Forums 2) I'm unable to minimize the calendar. If i double click on that green icon in my system tray nothing happens, if I minimize the calendar with the little ...
Google, I suggest...: Minimize Google Talk and Gmail interruptions ... Minimize Google Talk and Gmail interruptions with Google Calendar. I and many others use Google Calendar to book our appointments, organize and join ...
Tea Calendar Download - A simple program for google calendar ... Tea Calendar download page. A simple program for google calendar.Minimize google calendar to system tray.
FACTS Tech Blog » Blog Archive » Minimize Temperature Rate of ... Minimize Temperature Rate of Change on Calendar Rolls · Calendering 09.08.2008. Limit the temperature rate of change at all times to a maximum of 3 degrees ...
Outlook. To-do-bar - maximize in calendar view, minimize in mail view Outlook Forum. Outlook. Current discussion: To-do-bar - maximize in calendar view, minimize in mail view.
Sunbird Minimize to Tray => SunTray Mozilla Sunbird - The standalone version of the calendar program ... It is now not possible to start up 2 copies of suntray, and if Calendar is already ...
Sunbird/Calendar - Minimize to tray • mozillaZine Forums On your web-page you say that all I have to do is minimize Sunbird to have it minimize to tray. But minimizing Sunbird (using "_" button in upper right) ...
Minimize Risk with Better Calendar Management Minimize Risk with Better Calendar Management. Joseph C. Scott is an attorney and vice president/general manager of. CompuLaw, LLC, and Deadlines On Demand, ...
Suntray or Minimize to tray? - netscape.public.mozilla.calendar ... Newsgroups: netscape.public.mozilla.calendar ... Minimize to Tray extension with Sunbird. I shut down Suntray, installed MtT ...

Videos:
The 56 Trillion Dollar Deficit | Bill Maher Interviews Fmr. Comptroller General David Walker Bill Maher Interviews Fmr. Comptroller General David Walker about the huge deficit in America. (CNN) -- The Emergency Economic Stabilization Act co...
Cool terminal codes Going over my favorite terminal codes. emacs then press esc x type either pong, tetris, snake, life, doctor to play game defaults write com.apple....
Lanzamiento de IMC-U Este es el vídeo del lanzamiento de IMC-U en Puerto Rico. IMC-U es un sistema de educación corporativa diseñado para mejorar la calidad de adiestram...
IMC-U: Introducción En este vídeo les presento a IMC-University y cómo nuestro servicio le puede ayudar a su empresa a reducir costos a la vez que ofrecen más y mejores ...
Santa Monica Council Meeting Santa Monica Council Meeting
Long Beach City Council Meeting Long Beach City Council Meeting
Long Beach City Council Meeting Long Beach City Council Meeting
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










question for box

copy project / copy website disabled

switch from design view to source view

item templates

file auto highlighted in solution explorer

debugging problems with web application

piping output from a web deployment project

i need help regarding inheritence

vsts 2005 branching issues

install vs2005

weird behavior from the properties panl in vs 2005 pro

setting asp.net version number using install projects

dynamically inserting webresources

cannot view html source in script explorer

bulk comment not implemented for stored procedures in vs editor

change default web application icon

how to pass parameter in batch file

unable to change startup object for an application in visual c#

whidbey pdc disc

vs2005 is renaming my usercontrol classes!

setfocus master's program

webproject reference in class lib

vs2005 userinput denied

upgrading

metadata file 'c:\windows\microsoft.net\framework\v2.0.50727\temporary asp.net dll' could not be found

add class library project to web site project?

how to use vss?

visual studio could not copy a support file to this location

publish error

keyboard shortcuts

  Privacy | Contact Us
All Times Are GMT