|
Ummm, a web service is one of the tiers.
Once you understand what "n-tier" actually means, you'll understand the previous statement.
Google is your friend.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Dear sir
actually i m working with tier programming with Data Layer,Business Layer,Presentation layer, with asp.net c#,if you have any link of webservices with 3 tier tutorial with small project,please send me
Thanking you
rizvan sivally
|
|
|
|
|
|
Hi,
I have an asp.net application wherein we are suppose to Mail stored items i database to clients at a particular time in a day i have constructed a task that runs when application starts using global.asax application_start function.
the logic works fine when tested on local IIS or using testing server, however when this application is deployed on remote IIS it does not work at all as no mails are send from the remote IIS. I tried below two different technique that worked well on local machine but failed remotely:
Solution 1: Using Threading model where code is as follows (global.asax)
01.
02.Thread SendEmail, CleanOld, MassMailer;
03.
04.void Application_Start(object sender, EventArgs e)
05.{
06. 07. SendEmail = new Thread(ArticleEmailTask);
08. SendEmail.Start();
09.}
10.
11.void ArticleEmailTask()
12.{
13.
14. System.Threading.Thread.Sleep(700000);
15. while (true)
16. {
17. if (DateTime.Now.Hour >= 9 && DateTime.Now.Hour <= 10)
18. {
19.
20. }
21. else
22. {
23.
24. System.Threading.Thread.Sleep(3500000);
25. }
26. }
27.
28.}
Solution 2: Using Caching Background Task where code is as follows (global.asax)
01.protected void Application_Start(object sender, EventArgs e)
02.{
03. AddTask("DoStuff", 120);
04.}
05.private static CacheItemRemovedCallback OnCacheRemove = null;
06.
07.private void AddTask(string name, int seconds)
08.{
09. OnCacheRemove = new CacheItemRemovedCallback(CacheItemRemoved);
10. HttpRuntime.Cache.Insert(name, seconds, null,
11. DateTime.Now.AddSeconds(seconds), Cache.NoSlidingExpiration,
12. CacheItemPriority.NotRemovable, OnCacheRemove);
13.}
14.
15.public void CacheItemRemoved(string k, object v, CacheItemRemovedReason r)
16.{
17.
18.
19. DoSomeFileWritingStuff();
20. AddTask(k, Convert.ToInt32(v));
21.}
22.
23.private void DoSomeFileWritingStuff()
24.{
25. clsMassMailer objMassmailer = new clsMassMailer();
26. objMassmailer.NewMassMailTask();
27.}
Kindly advice as soon as possible,
thanks in advance.
|
|
|
|
|
Add a few log statements to find out which lines of code are executed at which time. That will help to find the place where the problem really happens.
By the way, 5 minutes are 300000 milliseconds, not 700000; one hour is 3600000 milliseconds. And I'd prefer timers instead of Thread.Sleep().
|
|
|
|
|
I am just getting started in asp.net. I Wonder where I can Find Tut's for complete novice like Myself. I can do winforms in vb so I would like to expand upon this with asp.net.
Thanks in advance
Frazzle the name say's it all
|
|
|
|
|
Well, if you try to search on google, you will find a huge results with helpfull links. Like example http://www.asp.net
I Love T-SQL
"VB.NET is developed with C#.NET"
If my post helps you kindly save my time by voting my post.
www.cacttus.com
|
|
|
|
|
I searched on google. I found A few tut's but mostly old version's of asp.net on asp.net i watched the pluralsight videos I am eager to learn more. was hoping some guru knew of more learning sites I'll google some more.
Thank's for the reply.
Frazzle the name say's it all
|
|
|
|
|
Tut tut! Did you not think of searching the CodeProject articles? There are lots of samples to be found, and new ones added almost every day!
|
|
|
|
|
i have built a webpart controle and add it to a page
then i implement a css file to the webpart
all is OK
then i built a MobileAdapter.cs
for mobile users
the problem is that the css wasn't implemented
what can i do
|
|
|
|
|
Don't cross post. Pick one forum and stick with it. Is this related to ASP.NET or SharePoint?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Is it possible to override the default path of /App_Themes for the Page.Theme location? I want to have themes available for different clients and have a directory like /App_Themes/{ClientName}/
Thanks
|
|
|
|
|
hi i am a beginner in asp and my scenario for a online movie reservation project is
if i select the number of tickets i am going to buy for a movie it should show a pictorial representation of position of seats in the theatre and based on the no. of tickets the user should be able to select the seats that he desires to be seated ,also after one user has selected his seats the already allotted seats should not be visible for next user
i have decided to use a table inside list view and for seats i have decided to use image button as table data but i couldnt proceed furthur it would be a great help if someone explain concept along with coding
also i need to display a timer and if the user didnt finish booking tickets before 5 mins his session should expire and automatically log out.
thanks in advance.
When the student is ready, the master appears.
modified on Saturday, August 13, 2011 5:01 AM
|
|
|
|
|
Sounds like a good homework assignment. I'm sure your professor will be pleased when you complete it on your own.
We don't homework here. However, if you have any specific questions, show what you have done and ask for clarification.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
I am using the below code to retrive the excel sheet names.
objConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
But, i am unable to get the hidden sheet names using the above code. Can anyone please guide me how to retrive the name of hidden sheet names?
Note: i cannot use Excel introp since deployment server is not installed with excel.
Your help is highly appreciated.
modified on Friday, August 12, 2011 12:50 AM
|
|
|
|
|
Bad news.
You cannot get the hidden sheet names using GetOleDbSchemaTable .
This is not a bug, it has been designed this way.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
codeprojectforums.com Currently under Testing
-- Modified Thursday, August 11, 2011 7:37 AM
|
|
|
|
|
how to do a comment box to comment for our photos like in facebook comments in asp.
|
|
|
|
|
Use a textbox?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Otherwise textarea if that doesn't do?
Or maybe a Repeater? with necessary asp.net controls e.g. divs, inputs -> text, button, submits
...and the like.
With a repeater, you can bind it with new comments stored somewhere maybe from the database.
|
|
|
|
|
Morgs Morgan wrote: Otherwise textarea if that doesn't do
Umm, a multiline textbox renders as an html textarea.
And, wouldn't it better to respond to the OP?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hi i have used listview to show the previously posted comments but the problem arises when a user tries to update or delete comments
i.e the user should be able to update/delete only his comments and not other user comment
( p.s i have used a login page to store the name of users in database so after logging in he shld be editing his comments only)
When the student is ready, the master appears.
|
|
|
|
|
So you have have an authenticated user and the posts are associated with a valid user. So what is the problem? Are you saying with all of this information you can't find a way to disable an edit or delete button/link?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
table data is
col1 col2 col3 col4
----------------------
1 1a 1b 1c
1 1a 1d 1e
1 1b 1f 1g
2 2a 2b 2c
2 2a 2d 2e
2 2b 2f 2g
2 2b 2h 2i
2 2b 2j 2k
Need to format output as
col1 col2 col3 col4
----------------------
1 1a 1b 1c
1d 1e
1b 1f 1g
2 2a 2b 2c
2d 2e
2b 2f 2g
2h 2i
2j 2k
i.e hiding repeating data.
I am thinking creating a data table object then check for repeating data column,
if repeat then add blank column,
else add same column.
Is there any other way of achieving this ?
what if table contain 10000 rows ?
Any logic/help/link/post will be much helpful.
regards
|
|
|
|
|