|
|
Hi
I already have gone through it.Okay I will try ti again. Thank u for the help
Regards,
Uma
|
|
|
|
|
Hi,
u can use session for this
page_load
{
if(Session["user_id"]==null)
{
Response.Redirect("login.aspx");
}
}
(store session value in login.aspx page)
Session.Add("user_id",userid.text);
Regard
|
|
|
|
|
Hi Uma,
You can define different roles and users on the web.config file, then specific roles can be redirected to specific pages, this is called role base authentication. Try this out...
http://aspnet.4guysfromrolla.com/articles/082703-1.aspx
Ram
|
|
|
|
|
Hi,
Iam basically from C# background and very new to ASP.Net. I was trying to understand Cookie management in ASP.Net. I have a doubt in this regard. How will the client(the web browser) maintains so many cookies and how exactly it resolves the appropriate cookie to be sent along with the request message?
Thanks in advance
Vivek
|
|
|
|
|
The cookies are maintained separately for each domain name. The browser will send back all the cookies for the domain name in each request to the server.
As all the cookies are sent every time, you should of course keep them at a minimum. The browser also has a limit on the total size of the cookies per domain name, and different browsers have different limits. A typical value for the limit is 4 kb, but it may be more or less. If you are in danger of reaching the limit, you are of course using way too many cookies.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for the reply. But this raises another question.If i have 2 instance of the web application running on my system,then will the cookies of one instance be over written by the cookies of another instance? If no, how exactly will the browser resolve the cookie associated with the webpage.
Thanks
|
|
|
|
|
If you have two web applications on your system, they will have different domain names, or you can't reach them individually. If you for an example use the built-in server in Visual Studio, it will use different port numbers for the instances, so localhost:6474 and localhost:3466 will be separate domain names.
---
b { font-weight: normal; }
|
|
|
|
|
I am using .Net 2.0. Is is posibble to customise our own create account control? I wish not to include email, secret question and security answer.
So basically to create account, user just need to enter username and password and the confirm password.
thanks in advance. Much appreciated.
|
|
|
|
|
Is it possible to have 2 sites[virtuals dir] running on IIS 5.0 [Server 2000] incase one site is ASP.NET 1.1 application, and another ASP.NET 2.0 application?
Appreciate your help.
- ashish
|
|
|
|
|
Yes, if the sites are separate applications. Also, they have to run in separate AppDomains. Copy the default AppDomain to create a new identical one, and name it to show what version it will be running.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks Guffa.
Could you be able to tell me how to create/copy AppDomain in server 2000 IIS 5.0 application
Appreciate your help.
- ashish
|
|
|
|
|
AshishBasran wrote: Could you be able to tell me how to create/copy AppDomain in server 2000 IIS 5.0 application
No, I am afraid that I can't. I have only done this on Server 2003, so I am not really sure how it applies to Server 2000.
Why don't you try by specifying different ASP.NET versions for the applications and try to browse to the sites. If there is a conflict, the error message should give you some information on where it is.
---
b { font-weight: normal; }
|
|
|
|
|
All you have to do is create different sites or virtual directories and set the asp.net version in the properties window.
|
|
|
|
|
My question is ,How to set the ASP.NET version in the properties window.
Note: I am using Windows server 2000 and IIS 5.0
- ashish
|
|
|
|
|
I agree with you. We can create differetn application pools and assigne for different versions of .NET in IIS 6.0
But my pain is, I have to use IIS 5.0 as I cannot have 6.0 on Server 2000.
Guffa wrote: Why don't you try by specifying different ASP.NET versions for the applications and try to browse to the sites. If there is a conflict, the error message should give you some information on where it is.
How to specify different ASP.NET versions for the applications?
- ashish
|
|
|
|
|
AshishBasran wrote: How to specify different ASP.NET versions for the applications?
In the properties for the web site you should find the ASP.NET tab. There you can select what version of the framework the application uses.
---
b { font-weight: normal; }
|
|
|
|
|
I do not see TAB saying ASP.NET on server 2000. Though i do see the TAB on the IIS which is running on XP.
- ashish
|
|
|
|
|
Then ASP.NET is not correctly registered in IIS. Register ASP.NET using:
aspnet_regiis -i
---
b { font-weight: normal; }
|
|
|
|
|
I have registered ASP.NET using aspnet_regiis -i, still I cannot see the ASP.NET TAB in properties
By doing same I can see on the development machine but when I do same on server, the ASP.NET tab does not show up.
- ashish
|
|
|
|
|
Here is a datalist in the page, which has one columen checkbox and some databind grids.
After users click the checkbox in browser, the program should get the content of the grids.
I use the Datalist.Items[index] property, but get a string with multi grids and with html format.
How to get the text only of each item?
Thanks!
|
|
|
|
|
Hi,
I need move data from a access database to a sql 2005 database, using ado.net and VB.net
Basically, the user will select which access database to move to sql 2005, choosing from a select box on a webpage. I use an <asp:fileupload> tag to let the user select an access database(MDB file), to convert to sql 2005 database.
At the moment I can get all the data from the access database into a dataset using OleDbConnection. I just dont know how to move this information in the dataset to the sql database, in one function.
Does anyone know if there is code out there that does this, of know where I can find info on this?
Really appreciate the help.
Thanks
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
I have found error with asp.net textbox with property multiple, when i type some thing like this ' " i get error I want to catch it.
thanks
................
|
|
|
|
|
Is it the TextMode.MultiLine property that you mean?
Standard question #2:
What error message do you get?
Standard question #3:
What does your code look like?
---
b { font-weight: normal; }
|
|
|
|