|
I recommend reading the guide on how to post. Everyone here wants some help.
You need to track who is logged in, if you don't do that, what's the use of a login ? Then, add a timeout for people who turn off the browser without logging out.
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
You can do one thing:
When a user login first time, make a entry for the same in database and when logout delete that entry.Now after login once if user try again check the entry in database if found then show a message.
Cheers!!
Brij
|
|
|
|
|
That's kind of what I said, except just doing what you said, only works if the users ALWAYS explicitly log out.
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
Hello
I'm sure this question had been done to death.
But which should I use, vb or c#?
Joe
|
|
|
|
|
Based on what criteria ? They both compile to MSIL, so if you like retarded syntax, use VB, if your background is in a C style language, use C#. The end result will run just the same, esp in ASP.NET, which is always going to be more rigidly defined than the different things a winforms app can do.
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
It is just upto your convenience but generally C# is preferred.
Cheers!!
Brij
|
|
|
|
|
Depends on your preference or what the project calls for. ASP.NET development in both C# or VB.NET is no different, other than language syntax.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Jooooe wrote: But which should I use, vb or c#?
Neither, use ASM.
|
|
|
|
|
hai.
currently i m using asp.net with c# (.net 2005, framework 2.0)
switch (dropdownlist1.SelectedItem.Value)
{
case "1":
Process1("Tab1", "Assessment1");
break;
}
switch (dropdownlist1.SelectedItem.Value)
{
case "1":
Process2("Tab1", "Assessment1");
break;
}
switch (dropdownlist1.SelectedItem.Value)
{
case "1":
Process3("Tab1", "Assessment1");
break;
}
There are three switch cases as like above. INSTEAD OF THE ABOVE BLOCKS i thought to process as....
protected void Process_Record(string parameter_values)
{
switch (dropdownlist1.SelectedItem.Value)
{
case "1":
parameter_values("Tab1", "Assessment1");
break;
}
}
so that if this Process_Record function is process with appropriate parameter_values the switch can be processed. but i m getting the error 'parameter_values' is a 'variable' but is used like a 'method'
how to overcome it... help me plz. - KARAN
|
|
|
|
|
Looks to me like you don't really know much C#. parameter_values is indeed a variable, you passed it in. Your code is therefore wrong. You can't name a method the same as a variable, the compiler plain won't know what to do. I don't understand the core question - you had three switch statements in a row ? Why on earth would you do that ? Either call your three methods in the one switch, or write a method that calls all three, if this is appropriate.
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
Hi!
As mentioned by Christian, your intent is not clear, however you should look at delegates / Multicast delegates to try and solve your problem.
Maybe if you provided a better example of your intention and hurdles are, it might make it easier to provide assistance.
Hope this helps
www.fuzzelogicSolutions.com
modified on Saturday, November 8, 2008 8:09 AM
|
|
|
|
|
i sorry i have forgoten that i want to show images like matris.4 calumns 10 lines.i wish i could explain aims.
|
|
|
|
|
1 - the site has an edit post button, so you don't need to double post
2 - the easiest way to do this is with a repeater, and a data source containing URLs to your images. A repeater gives you lots of control in writing code to generate a table with the number of rows and columns you desire, where each cell contains the same data, that is, where your data source doesn't create columns for you automatically.
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
i m new in ASP.net and it like a huge ocean really .is there any sample videos or sample codes about this subject?Sorry for sending same subject two times
|
|
|
|
|
You said you were not new below?
A repeater just emits html, according to your template. I'd write a template that calls code behind and uses a counter to work out when to emit a tr to start a new row. I am sure that samples exist, did you look for articles on repeaters on this site ?
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
|
OK, so as I've told you to do it using repeaters, reading up on them is probably your next step, right ?
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
Hi to everyone.i want to do like this site:
i have 4 or 5 catgegories in my main page.when people click one of this cathegory i want to show images about this cathegory.i want to show images paged.i mean in each of my cathegory can be 100 images.How i want to do like this site?i want to use database in this project.i m not so new in asp.net.i had tried to make site but i was tired of cause i was trying it by myself.
|
|
|
|
|
See above.
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
Christian Graus wrote: See above.
Gee, you got downvoted. I guess it is because you are so unhelpful.
Jon
Smith & Wesson: The original point and click interface
|
|
|
|
|
I have txt file which save n numbers of records.
e.g http://134.17.0.1/WebAPP/Internet/E/Y/U/try & g/HomePage.htm" />
when i convert txt file into xml file create error.
xml file can not support & operator. how resolved this probleam.
|
|
|
|
|
|
Hi..
I'm using master page and added script manager in master page and in pages m adding scriptmanagerproxy. Now while m using updatepanel in pages then asynchronous postback is working in firefox but its not working in ie7.
please let me know what could be the reason.
thanx..
krishna veer singh
|
|
|
|
|
Hi all,
My issue is that I want to add a new group of server controls after clicking a A button, a the remove the last one after clicking B button. Could I do it with javascript and How can I validate a new group of controls after adding?
If there is no ways with javascript, please give me any other suggestions to solve my problem.
Please give me some ideas or related topics if existing.
Thanks for your supports
Banana
|
|
|
|
|
Yes you can create using javascript, but you will be responsible to maintain there viewstate during the postbacks
Have a look to this
http://aspdotnetcodebook.blogspot.com/2008/03/how-to-create-textbox-dynamically-using.html[^]
Performing validation that should be at server side ...
using javascript is complex to write but it increased the performance as reduced the hits to server.
Instead of javascript you can use AJAX or simple postbacks to add controls dynamically at server side. this way is very simple to implement
but will need to hit server for adding the controls
So all think depend on you Just google you will get n number of examples for each one
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|