|
Hi
I am again in need of the professionals on this form. Thanks for the help in past.
I have freetextbox,a dropdownlist and a button in my application. when ever user selects a value in dropdownlist and presses button that particular value should be inserted on the cursor location in the freetextbox. if any one have any sample code or any idea as to how to achieve this please reply.
Thanks
|
|
|
|
|
I suggest you click reply to my post, then view source. Have a look at the javascript that is run when you click 'quote selected text' on this page. Assuming it's in the page, and not an external js file, but, you know you can type the path to those js files into the browser, in order to view them.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
thanks christian
is there any way to do the same in code behind using c#.
|
|
|
|
|
Well, yes, but of course, if you do that, the person is going to see their page disappear and refresh, so that's not really as nice a solution. C# code obviously only runs on postback, unless you use AJAX, and why would you use AJAX to do somethign you can do on the client ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I am using freetextbox which does not provide onclientclick event. so how to call client side events for freetextbox like onkeyup, onkeydown etc and also I am unable to find javascript in the view source of the reply page
thanks for your reply. Hope u will soon reply with my requirement.
Thanks again
|
|
|
|
|
hi all
i am facing format problem of date as my client has two server and i am using the date format dd/MM/yyyy. this format works on server but not working of second server. if is use mmddyyyy then this work on second server but not in first one.
i dont know to check the format of date
|
|
|
|
|
Check the culture settings of the second server.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Hi guys
I am working on content page and using java script code on code behind page
on page load
but that is not working
my code is
Private Const CrLf As String = Microsoft.VisualBasic.Constants.vbCrLf
Dim sb As System.Text.StringBuilder
sb = New System.Text.StringBuilder()
sb.Append(CrLf)
sb.Append("")
sb.Append(CrLf)
sb.Append("javascript:window.history.forward(-1);")
sb.Append(CrLf)
sb.Append("")
' Register script with page
Me.ClientScript.RegisterStartupScript(Me.GetType(), "onLoadCall", sb.ToString())
any one can help me
krishna veer singh
|
|
|
|
|
Please check whether you have used Ajax or Not??
Cheers!!
Brij
|
|
|
|
|
ya on that page i am using ajax tool kit
krishna veer singh
|
|
|
|
|
That's why you are facing problem.Please Register the code like this
ScriptManager.RegisterStartupScript(this, this.GetType(),"Sample", strPopupScript, true);
Cheers!!
Brij
|
|
|
|
|
As Brij, Says, are you using Ajax , the use ScriptManager insted of ClientScript.
|
|
|
|
|
Hi,
I am using outlook APIs in my .net application.I am able to fetch contacts and mails from inbox of my account (xyz@mpcs.co.in)., now I want to show the mails and contacts of different user (abc@mpcs.co.in).
Don't say to configure outlook for abc@mpcs.co.in.. )
Can we set this emailId through code....any idea.
Thanks,
Nagraj.
|
|
|
|
|
What does this have to do with ASP.NET ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi,
I want to give mailing facility to user along with that user should able to see mails from his outlook inbox and contacts from outlook.
|
|
|
|
|
i m new to asp validator controll. what i want i have one text box for email and i have to validate it for it should not be blank and it should be valid for that i have taken RequiredFieldValidator and RegularExpressionValidator but the problem is that it is showing space where i have put these controll. i have email text box below that in new row i have these controll and in next row i have one other text box but it is showing space between these two text box how to remove that one?
|
|
|
|
|
you can try to make a JavaScript function for validation. For extra protection you can make one other validation test on server side.
|
|
|
|
|
Does anyone know any free web hosting for asp.net?
The Developer - CEH
|
|
|
|
|
You want a lot for free, don't you? Including others to do your work for you.
TANSTAAFL.
|
|
|
|
|
and what are you doing here in CP
The Developer - CEH
|
|
|
|
|
And once again you aer asking a question you could quite easily find the answer to yourself.
I may not be the most prolific helper on CP, but I do from time to time, when I have the time and someone has asked a sensible quesiton. More to the point though, I don't try to leech off others; I don't ask questions without first putting in a good effort at solving them myself; and I will certainly never ask such a general question as "How to add data to Datalist by code" - if you need to ask that, you are wasting everyone's time, including your own.
|
|
|
|
|
This is not an answer change ur tag to joke
The Developer - CEH
|
|
|
|
|
If you get dyndns or similar, you can host your own site.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Free Hosting[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi,
i am using master page.
i use page using master page in this page there are two content place holder one for datagrid and second for panel add,edit,delete, info. and in datagrid there are info, edit, delete image button. when i click on edit image button than open edit panel which exists in second content place holder and fill that from database previous values. when i edit on fields and than click on save button i want that page will not refresh and value is edited in database and also in gridview. how i can do this?
update panel cant place outside the both content place holder because this page is from mater page.
I will do my best?
|
|
|
|