|
Respected Gurus
I m working on asp.net 1.1
I am opening a form through javascript
on this form i have to take two dates from the user.and pass these two dates to the parent page.i m able to pass these dates if i m using textboxes.
but i dont want to use textboxes instead i want to use some calendar
if any one can give some good link for it.
keep in mind that i have to open the window through javascript and those calendars should be on that page itself.
Please suggest me.
|
|
|
|
|
|
thanks for your early response sir
but this does not fulfill my requirement.
my requirement is to open a window from javascript and again open a calendar in that javascript page.Fill the dates and pass these to the parent page.
Ajay
|
|
|
|
|
hi
this is the code <1111a href="javascript:calendar_window=window.open('calendarFORM.aspx?formname=Form1.txtDate','calendar_window','width=154,height=188');calendar_window.focus()">
or
<111a href="javascript:calendar_window=window.open('calendarFORM.aspx?formname=Form1.txtDate','calendar_window','width=154,height=188');calendar_window.focus()"1111/1>
you can try out this code in which txtdate is textbox which will get date from calendar popup
remoove 1111 etc from code
ok...
gs
|
|
|
|
|
hi
i have login form in that i am taking two fields
UserId and Password.
In my sql database i take feilds --
CREATE TABLE tUser
(
UserCode NUMERIC(8) NOT NULL
, UserID VARCHAR(20) NOT NULL
, FirstName VARCHAR(40) NOT NULL
, LastName VARCHAR(40) NOT NULL
, Password VARBINARY(60) NOT NULL
, UserType VARCHAR(20) NOT NULL
, ExpireDays NUMERIC(3) NULL
, WarningDays NUMERIC(3) NULL
, StatusCode VARCHAR(1) NOT NULL
, CreatedBy VARCHAR(10) NOT NULL
, CreateDate DATETIME NOT NULL
, UpdatedBy VARCHAR(10) NULL
, UpdateDate DATETIME NULL
, FullName VARCHAR(60) NOT NULL
)
GO
CREATE UNIQUE CLUSTERED INDEX tUser_idx ON tUser (UserCode)
then how can encrypt the password.
i am new in asp.net so pls give me a code with details.
gayatri
Gayatri
|
|
|
|
|
|
hello
i am chage my code but not yet its runable.
the code is
function openWindow()
> {
> hgt = 600;
> wdth= 760;
> tp= (screen.height/2)-(theHeight/2);
> lt= (screen.width/2)-(theWidth/2);
> ftr=
> 'height='+theHeight+',width='+theWidth+',top='+the Top+',left='+theLeft+",scr
> ollbars=yes";
> open ('page.aspx?','',features);
> }
this is javascript function .
and i called it in codebehind. changeble code is
ControlName.Attributes.Add("OnClick"openWindow(); return false;");
pls help me
Gayatri
Gayatri
|
|
|
|
|
in the openWindow function call the window by window.open(.......)
hope it will work
Tirtha
"A man can ride on your back only when it is bent....."
|
|
|
|
|
hey,
What error u got with this script ? let me know it .
i will works fine.
Regards,
Satips.
|
|
|
|
|
Hi All,
For one of my project, the following is the requirement. A user will upload files and while uploading , he can say for each attachment whether it is viewable by some other user or not. Currently for uploading many files we use the file upload and list box controls.
Now the client has asked for a checkbox adjacent to each list item in the list box. How to place check boxes with in a list box? Please throw some light on this and help me in solving the same.
Thanks in advance.
Regards,
Ram
|
|
|
|
|
dont you know about CheckedListBox ???
Tirtha
"A man can ride on your back only when it is bent....."
|
|
|
|
|
That is what I need. Could u please help me in finding out the same?
|
|
|
|
|
u can use grid view and put check box in gridview. that will be easier and for every uplaod u can store in datagrid. u can specify delete also in gridview.
Thanks,
Sun Rays
|
|
|
|
|
Thanks for your quick reply. I thought of doing that too. Even I thought of dynamically adding checkboxes and labels(for file names) to a table. But the requirement is "ListBox with Checkboxes".
If you find any relevant methods for doing this, please do reply. Thanks once again.
Regards,
Ram
|
|
|
|
|
if you are using vb.net and working on windows application check the CkeckedListBox control......I have already told u about this.....You can easily track/edit/delete items ....
Tirtha
"A man can ride on your back only when it is bent....."
|
|
|
|
|
This is for web application(asp.net)
Regards,
Ram
|
|
|
|
|
Here[^] is the sample for same.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
I need similar type of control for web applications(asp.net)
Regards,
Ram
|
|
|
|
|
rammca wrote: I need similar type of control for web applications(asp.net)
Here[ ^] is the sample which has the class derived from CheckedListBox. You can use this extended class in your web application.
Hope this helps you.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
hope this will help u..
http://support.microsoft.com/kb/145728
Thanks,
Sun Rays
|
|
|
|
|
hello all
i have your code for resizing the webform but its not runable
the code is
function openWindow()
> {
> hgt = 600;
> wdth= 760;
> tp= (screen.height/2)-(theHeight/2);
> lt= (screen.width/2)-(theWidth/2);
> ftr=
> 'height='+theHeight+',width='+theWidth+',top='+the Top+',left='+theLeft+",scr
> ollbars=yes";
> open ('page.aspx?','',features);
> }
this is javascript function .
and i called it in codebehind. that code is
ControlName.Attributes.Add("OnClick","openWindow();");
pls help me
Gayatri
Gayatri
|
|
|
|
|
Change,
wrote: ControlName.Attributes.Add("OnClick","openWindow();");
ControlName.Attributes.Add("OnClick","openWindow(); return false;");
The page will postback when you click the button. May be that would be the problem. return false will stop the Page postback.
|
|
|
|
|
i am adding the controls at runtime. Say textboxes and buttons then how can i get the click event of these buttons.Very urgent
Mohinder Singh
|
|
|
|
|
Here you go...
AddHandler ControlName.EventName, AddressOf Event 'Where you write the statements
|
|
|
|
|
what is the address of the event. i want to write "Response.Redirect("Message.aspx? Qoestion=" & TxtTopic.Text, False)" this statement in button click event.
Mohinder Singh
|
|
|
|