|
What calendar control are you using, the nasty built in one, or a javascrpt one ?
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 )
|
|
|
|
|
its abuiltin one calender its a webapplication i am using c#.net
|
|
|
|
|
I'd recommend looking for a free javascript one, which will be so much nicer, and will do what you're describing.
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 )
|
|
|
|
|
ok can u tell me how can i do it in javascript
|
|
|
|
|
There are tons of free controls on the web, you just need to google, choose one and integrate it in your project.
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 already got it thanks for u r support
|
|
|
|
|
How can i convert date into 1st,2nd,3rd date format
Thks
|
|
|
|
|
DateTime.ToString can be passed a format strng.
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 )
|
|
|
|
|
There is no such date format, you have to create it yourself.
Get the day of month using the Day property of the DateTime value. Use modulo 10 (% 10 or Mod 10) to get the last digit, and check if it's 1, 2, 3 or anything else to determine what to write after the number.
-- modified at 7:14 Thursday 25th October, 2007
You also have to check for values 11, 12 and 13.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
|
I created a database with named personal.mdf.and in that db i created a table named login .how i apply form based authentication using the database connection that datas stored in login table
|
|
|
|
|
|
Hi,
I am using master page and i inherited a aspx page and wrote html code inside asp:Content. I wrote a javascript code to get a textbox value for validation
document.getElementById("txt_Amount").value, but i could not retrieve the value. Can any one say what i am doing wrong.
|
|
|
|
|
Almost certainly you do not have a control called txt_Amount. That may be the ID on the server, but a more complex name is generated on the client. The way to access it is to insert script along the lines of:
var txtAmountId = '<%=txt_Amount.ClientID%>';
in your ASPX, and then do
document.getElementById(txtAmountId)
I'd still regard it as poor form to tack the .value on the end without first checking if the call returned something.
The quick way here is to look at your page source to see what the Id is, then you'd see where the problem lies.
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
|
|
|
|
|
Where is your textbox ? in master page or content page ? Take view source of the page and check provided textbox name is correct.
|
|
|
|
|
Textbox is in content page only, i tried this code too but not working. I saw view source i noticed the name change so i took and tried with that name.
function check_user()
{
var str = document.getElementById('ctl00_ContentPlaceHolder1_txtUsername').value;
}
|
|
|
|
|
Did you read my reply ?
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 )
|
|
|
|
|
This is how i have declared my textbox
asp:TextBox ID="txtUsername" runat="server" CssClass="textBox" Width="200px"
-- modified at 6:41 Thursday 25th October, 2007
|
|
|
|
|
OK, I take that to mean you didn't read my reply. The name of your textbox is irrelevant, my solution will work whatever you call it.
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 )
|
|
|
|
|
So is it working ? Christian's suggestion is the good one than this
|
|
|
|
|
|
I have to primary Keys that define a record in a gridview how can I change 1 of those keys?
ie:
I have a recipe and the ingredients each recipe has many ingredients the primary keys are the recipe and the ingredient how can I change the ingredient in the edit mode of the gridview template.
BiG RaLpH
|
|
|
|
|
Hi,
I want to display a Bubble tooltip for a label.
Please help me out.
|
|
|
|
|
Ok now take one div tag on the top of the page and give position as absolute.
like as
div id="div_tooltip" runat="server" style="position:absolute;disply:none;">This is Lable</div
Now on page load event,Add attribute to lable
Label.Attributes.Add("onmouseover","ToolTipOver();");
Label.Attributes.Add("onmouseout","ToolTipOut();");
Javascript:
function ToolTipOver()
{
document.getElementById('div_tooltip').style.left=event.clientX;
document.getElementById('div_tooltip').style.top=event.clientY;
document.getElementById('div_tooltip').style.display="block";
}
function ToolTipOut()
{
document.getElementById('div_tooltip').style.display="none";
}
best Regard
pAthan
-- modified at 6:03 Thursday 25th October, 2007
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi pathan,
Thanks For your help.I got the bubbled tooltip now.
|
|
|
|