|
Look this code.it shows on label1 which item s selected in dropdownlist.Change dropdownlist autopostback property enable
Label1.Text = DropDownList1.SelectedItem.Text;
|
|
|
|
|
I'm willing to bet $5000 that this is not what the OP wanted.
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.
|
|
|
|
|
how to stop user logging on more than once
ahmed eldeghedy
|
|
|
|
|
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.
|
|
|
|
|