|
Now we are developing a dotnet system wich follows forms authentication with three type of roles. Now we are in a postion to restict the each role to invade others modules...
means for example The master pages sould be available for admin peoples only, if any other users who held other roles such as clients should not be allowed to browse them.
If possible send me your idea in that...
Also i wish to know how to restict a username being used for multiple login at the same time with the different mechines....
Also we require to count the number of users logged in purticular time and their detail. I humbly request you to send me the ideas to develope them in our project...
JuliusM
|
|
|
|
|
Hi julius
3. Add a field in your database having boolean type. so when a user logon its value will be true otherwise false. so count all true etries to get no. of users logged in particular time and their detail.
2. You also can restrict a username being used for multiple login by checking this boolean variable value, an user can only login if variable's value is false.
1. Add an field in your database named userType (eg. admin or user) and check at the time of login.
If there is some dougth then send your ques on my email add : sumitprakash_sharma@yahoo.com
|
|
|
|
|
I have a UC for editing users (EditUsers.ascx).
The data is loaded into EditUsers.ascx with (plain) AJAX.
EdiUsers.ascx consists of editing form, close btn and submit button (Save)...
Because I have three different types of users (with small differences between them), I have copied (to save time) the code from one UC to another and set it to be special to that type of users.
I have created (double click) event handler for Save button:
<asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
And in code behind:
protected void btnSave_Click(object sender, EventArgs e)
{
}
And this doesn't seem to work...
I submit a form and nothing happens, no save function call.
I also tried this:
protected override void OnInit(EventArgs e)
{
btnSave.Click += new EventHandler(btnSave_Click);
}
protected void btnSave_Click(object sender, EventArgs e)
{
}
And this doesn't work either.
Can anyone tell me what is the problem and am I missing something?
|
|
|
|
|
Checked <%@Page CodeFile="" Inherits="" %> ,maybe these properties don't correct.
|
|
|
|
|
VS.net has generated this and I didn't modify this and namespace is ePoslovi.Module and EditUsers is a class inherited from UserControl how it should be.
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditUsers.ascx.cs" Inherits="ePoslovi.Module.EditUsers" %>
Any clue?
|
|
|
|
|
Debugger says that, when I click on submit button, Page.IsPostBack is false?!
Hows that possible?
I even add a new button, and tried with it and same thing.
|
|
|
|
|
Hi everybody
I have a webapplication project.I make URLFriendly for it as
you writing url on the addressbar like WebSite/JavaScript you will see
WebSite/weblearn.aspx?article=javascript.
It is right in the VS.Net (debug mode),but when publish the webapplication
on the localhost or server application it don't right.
I don't understand problem it.
please help me for it.
Thanks.
|
|
|
|
|
reza toorani wrote: it don't right
Could you be a bit more specific?
In what way is it not right?
What happens, and how does that differ from what you expect?
Do you get any error message?
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi
When you use urlfriendly like website\javascript on the localhost or server application you will see message "The page cannot be found
".where as use it when runtime of the webapplication you don't see message error and everything is ok.
I used Application_BeginRequest event in the Global.asax file ,i give
the Request.Path and mapping by url in the site,it is correct in the debug mode,but not correct the publish version.
I think never fire Application_BeginRequest event in the publish version.
I don't understand why don't fire event.
|
|
|
|
|
HI All, How can i develop Message Board in ASP.Net? plz send me Demo project with Code.
Message Board like http://www.atifaslam.com.....
plz relpy as soon as possible... i am waiting
Ramakant Singh
|
|
|
|
|
|
hi,
using C# i did a user control that i want to use from web page.
when i tried the control using windows application it works ok.
when i add it as object to the web page it is never loaded.
this control uses a special dll which is needed for its operation.
could it be the reason for the problem?
how can i add external dll's so they will be installed on the client side?
thanks
|
|
|
|
|
Hi!
How do i connect to a Linux Computer using ASP.Net?
I want to make use of the Mysql which was already installed in that computer so that i could store data.
Thanks in advance for reply
Regards,
Jose
Experience is the best teacher
|
|
|
|
|
ASP.NET doesn't handle that side of things at all. If MySQL on Linux is able to advertise itself to your ASP.NET server PC, then you would connect to it using a connection string that identifies the PC on the network, and the database server on the PC.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
ASP .NET coud use MySQL database throu ODBC Drivers or Connectors. (Both are avaible on MySql.Com)
ASP .NET is a part of larger library .NET Framework. Built by Microsoft, so in other words, It Wont run on linux.
There is 3rd party .NET Platform (I Think it is called Grasshopper) for linux. But i doubt to woud work
¸1
|
|
|
|
|
What choice do i have, to be able to use this MySql on Linux Computer.??
thanks again!!
Joe
Experience is the best teacher
|
|
|
|
|
http://dev.mysql.com/downloads/connector/
And chose either ODBC or .NET
Edit:
If you want to easly use dataset then chose ODBC. .NET Connector is for Hard Coded Pegeamers. In this connector you woud have to use Datareader and to display in Datagrid you can't simply bind, but you woud have to write programaticly.
For ODBC: If you think to change servers (From MySQL to MSSQL) chose this.
And if you chose Datareader (Avaible in both) you woud have sugnificent performence boost.
|
|
|
|
|
Thanks,
Say am in my ASP.Net IDE, I have an ODBC Connector to MySQL, I want to Search for Data using say "ID", How would i specify in code to get that data?
Any sample??
Thanks again!!
Joe
Experience is the best teacher
|
|
|
|
|
Hi i have a prob,
I dont know how to retrive application Path in traditional asp.
its very urgent could you please help me out.
thanks a lot.
clife.
-- modified at 2:15 Sunday 28th October, 2007
chandu
|
|
|
|
|
I think you can make it by using Server.MapPath() combined with a bit of string operation.
Please let me also know if you got the better solution.
Thanks.
|
|
|
|
|
I erase some code in the source file in Visual Studio. (For example in Default.aspx.cs) And I save the file and close the Visual Studio 2005 IDE. How can I get back to erased code. Undo action is not working.
|
|
|
|
|
Is your project Connected to VSS(Visual Source Safe ), Files stored and organized in the VSS? If not then you can't rollback the changes.
Regards - J O H N -
|
|
|
|
|
I've Googled this question to death but can't seem to find an answer, but how can I get hold the the raw html response just before it gets sent to the client? The idea being that I want to do something with the final rendered HTML then send it to the client browser, such as compact it, or transform it with an XSLT etc. Can I also do the same thing with css style sheet files and JavaScript files?
|
|
|
|
|
See how Scott Mitchell emails the rendered output.
as for the css have the css text file points to an aspx instead of a css.
key words to search for "Stream Render Response"
clickity http://aspnet.4guysfromrolla.com/articles/091102-1.aspx[^]
Cheers.
/*
Ghazi Hadi Al Wadi, PMP, ASQ SSGB, DBA
*/
|
|
|
|
|
Hi,
I'm new to ASP.NET but not to C#. I'm re-using some classes i wrote for a windows app that have some Trace messages in. I want to be able to view them in DebugView (http://www.microsoft.com/technet/sysinternals/utilities/debugview.mspx)
I've made it so the Page.Trace messages get chucked out to DebugView by adding:
<trace enabled="true" requestlimit="20" writetodiagnosticstrace="true ">to the Web.config file, but the question is, how do i make it so the Diag.Trace messages are also picked up by DebugView.
Regards,
Gareth.
|
|
|
|