 |
|
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers, Chris Maunder
The Code Project Co-founder Microsoft C++ MVP
|
| Sign In·View Thread·PermaLink | 4.57/5 (33 votes) |
|
|
|
 |
|
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers, Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
| Sign In·View Thread·PermaLink | 3.72/5 (226 votes) |
|
|
|
 |
|
 |
Hi all,
I have created a masterpage and in that i am not getting the content place holder,so i tried to use drag and drop from the toolbox but,i am getting error as Invalid FORMATETC structure.can any one tell me solution for it.
Thanks in advance.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
This is a patent exception for VS IDE. If you have created any Custom control, you might have come accross with this.
Dont rely on designer, rather write <asp:Content to the page.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi all,
Can anyone tell me how can i block the copy/paste in firefox.
Using javascript i have blocked in IE but how to do in firefox ???
Thanks in advance.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Hi,I am salman. I have 2 separate fields in sql server 2008 for date and time. one field is of type date and the other is time. In .net we have DateTime object but no separate objects for date and time so how to insert date and time in sql server 2008 through c#.net code? remember i can not insert string of date and time coz the data types in database are date,time not string.
Best Regards, Salman Farrukh
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi
I have a button that calls a function but at the same time it calls the event DialogClosed should be called after I push the button to another screen that closes it. After that he needs to call a function.
Could you help me?
I thank Att Luciano Juchem
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
ljuchem wrote: I have a button that calls a function but at the same time it calls the event DialogClosed should be called after I push the button to another screen that closes it.
I didn't get your point. Can you please explain it clearly.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
Thank Abhijit Jana
Well I have a button on a screen that calls another screen that should behave like Dialog and dialog screen has a button that calls a function that closes the dialog. After the main screen I have the DialogClosed function that works if I press the button of the dialog screen if I close the screen will not work. The problem is that the main screen when I press the button that calls the dialog he calls the event DialogCosed what should not happen. This event should only be called after I press on any button or close the screen. The main problem is that when I close the dialog does not call the event.
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hello friends
i have requirement for add Google Ads in site but how can i add it is not known. so please help me for write me code or add it in my site.
|
| Sign In·View Thread·PermaLink | 1.00/5 (2 votes) |
|
|
|
 |
|
|
 |
|
 |
Hi-
i am wondering if there is any way to do the following:
i want the other developers to just create an aspx page...and put some defined tags...lets say something like...
if they put the above tags in their aspx page...and also the container user control (that i created) on the same page....the container user control will retrive the above tags and load appropriate user controls dynamically in the container user control..hope it makes sense
thanks
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
samir80 wrote: i want the other developers to just create an aspx page...and put some defined tags...lets say something like...
I think your post is incomplete. Where is the tag ?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi,
My senario: I have a sign-up form which, amoungst others, has a username textbox. The username textbox has autopostback set to true which, when posted back, checks to see if the entered username already exists in the DB and displays a message if so.
This works fine. But the problem I have is that in the code behind I am setting the focus to a control after doing the username check ( using txtUsername.Focus() ). But doing this causes the page to jump back to the top. This doesn't happen if I don't give a control the focus.
Any ideas how I can solve this?
A little more info about my form just in case it's relevant. The form is in an AJAX Accodion control which is in an AJAX Update Panel.
Thanks 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Wouldn't that set the focus to that particular textbox every time the page was loaded? I need to be able to set the focus to a different textbox depending on the result of the username check, i.e. if the check fails then set focus to txtUsername but if it passes then set focus to txtPassword.
But also, when the page is loaded for the first time then the focus needs to be set to yet a different control. So using Javascript how would I determine which control to give the focus to?
Thanks for help by the way 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Well, if the page is actually posted back, you might consider adding a script block using RegisterScriptBlock to the client page to have the proper textbox focus.
It is not usually great to do focus in server side in case of ASP.NET.
use txtBox.ClientId to get the id on the control to be focus.
But If I was in your situation, I would have invoked an AJAX call to the server, and get if it is available or not. It is really unnecessary to fully postback the page for this.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Abhishek Sur wrote: But If I was in your situation, I would have invoked an AJAX call to the server, and get if it is available or not.
Ah, didn't realise that I could do this (I am a newbie to ASP.NET )
Thanks again for your help.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi developers,
I am having a great challenge in my .aspx pages. I have a .css file for my site layout, but each time I add a page and add a lenghtly contents (i.e a long content), it does stay static and not resized automatically. This does not give me flexibility of page layout that I want (page height resizing dynamically). Although, the #content height was specified in pixels. But if I had not specified the #content height in my css file, the page can be resized dynamically.
Please help.
Tunsten
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
If you specify height in Pixels, it will not automatically resize according to content length. One thing you can do, is you can make overflow:auto to have scrollbar when content length goes greater than the height.
If you remove the setting of height of the element, it will automatically spread itself.
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
 |