 |
|
 |
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
|
|
|
|
 |
|
 |
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 "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- 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 into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- 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
|
|
|
|
 |
|
 |
Hi,
I have created a simple ASP.NET web application project in VS2010
Now I am just trying to add a web control but getting this error:
Could not find part of the path.....
Kindly Help...
|
|
|
|
 |
|
 |
i am designing share trading application in C# using asp.net framework, i wnna know how i should start it and which areas it must cover.kindly answer...!
|
|
|
|
 |
|
 |
You need to talk to someone who knows the domain and then ask him for advice on what to put into your application.
|
|
|
|
 |
|
 |
You could start with this[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
 |
|
 |
Hi,
Our application receives datas from 2 application and it is stored in SQL database.
Some times in a table the column may be there or may not be there.Some times row may or may not be there.
How to handle such situation in asp.net?
I had used dataset and datatable,but it throws exception if column is not there in the Stored procedures.
Guhananth.S
|
|
|
|
 |
|
 |
Did you check for number of columns and number of rows?
e.g.
DataTable dtData= YourClass.GetDataTable("select * from yourtableName");
if(dtData.Columns.Count==0){return;}
if(dtData.Rows.Count ==0){return;}
I Love T-SQL
"VB.NET is developed with C#.NET"
If my post helps you kindly save my time by voting my post.
|
|
|
|
 |
|
 |
Hi, after all the searches I managed to create a bread crumb using the link http://www.codeguru.com/vb/vb_internet/aspnet/article.php/c6851 but the bread crumb information gets lost on postback. I dont know how to store the information in page level so I could maintain it. could someone please give me some direction as to how I can solve it.
|
|
|
|
 |
|
 |
Please help me out here this is the link of the website www.tippyclothing.com, where i want to incorporate this payment gateway. if anyone will help me here i would be really thankful.
|
|
|
|
 |
|
|
 |
|
 |
Hi
I am currently using Comm100 to chat with site's visitors but i want to ask if there is a better & free chat system to integrate with an asp.net website?
Thanks,
Jassim
|
|
|
|
 |
|
 |
I have 6 user controls on .aspx page and i have a button on .aspx page and all the user controls in update panel with updatemode conditional and each user control in Update panel, when i click on button , i need to referesh fisrst usercontrol.
Regards,
Vishnu.
|
|
|
|
 |
|
 |
I think the best to do that, expose a public method like Refresh/Reload etc in user controls and when user click on button then call that method. Other way is, call put each control in separate Update Panel then call like UpdatePanel1.Update().
Please let me know if you have other concern/requirement.
Parwej Ahamad
|
|
|
|
 |
|
 |
Programmatically from within the application that is.
I know how to check it manually.
|
|
|
|
 |
|
 |
Are you using IIS 7 (or greater)? If so, you can use the Microsoft.Web.Administration namespace to get direct access to IIS.
|
|
|
|
 |
|
 |
Pete O'Hanlon wrote: Are you using IIS 7
Not necessarily, but probably in most cases. So that's a good starter.
|
|
|
|
 |
|
 |
This is the New Development for our product. our requirement is, DAL -- can be Ms Acccess or sql server [later may be cloud(azue db)] How can i swich between this db based on web.config so please suggest best method , I can check in BLL , Is this a right method? Ramkumar ("When you build bridges you can keep crossing them. ") http://ramkumarishere.blogspot.com
|
|
|
|
 |
|
 |
Having multiple connections in your configuration file is easy -
<connections>
<connection id="FirstConnection">
<databasename>A</databasename>
<servername>SERVER1</servername>
<integratedSecurity>True</integratedSecurity>
</connection>
<connection id="SecondConnection">
<databasename>A</databasename>
<servername>SERVER1</servername>
<integratedSecurity>True</integratedSecurity>
</connection>
</connections>
You can make the choice of connections in the DAL or the BAL layer.
I would think DAL is better because then the BAL is completely free from the decision of which database to connect to - which is the way it should be.
A pattern called the Enterprise Library supports multiple types of databases via some patterns.
|
|
|
|
 |
|
 |
While debugging my slow application, I found the culprit is
Roles.IsUserInRole
It take from 3 sec to 9 second to execute. I found the reason it through the entire user list and calls other function, but it shouldn't be that slow to what I understand.
My question is can it be made faster?
|
|
|
|
 |
|
 |
Your could implement a custom Role Provider[^] - I do - and then the responsibility is yours. Mine works by using a enum in the user info, so it is one access to the DB at most (normally none since the user profile is already downloaded).
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
 |
|
 |
Are you trying to determine if the current logged in user is in a role, i.e. for customising a page view?
Have you tried using User.IsInRole against Roles.IsUserInRole?
Don't know what you are doing, but the User. method should not need to iterate the entire user list (unless the inner working of the membership provides end up doing the same thing).
|
|
|
|
 |
|
 |
I am checking if the user in in role, he is allowed access to the page. If he is not, he is shown the error message.
I have not trie User.IsInRole, somewhere I read, it give different result.
|
|
|
|
 |
|
 |
From what you are saying, then the User.IsInRole is what you want, as the user is already logged into the system.
|
|
|
|
 |
|
 |
Is User.IsInRole faster and less expensive than Roles.IsUserInRole
|
|
|
|
 |