|
Sorry!
Here is a more acurate statement.
Website projets do not create a single DLL. By default, each page file has it's own DLL and the names are random. You can tell it to create a reproduceable name for each DLL, and using a website deployment project, you can tell it to create one dll, named whatever you want it to be
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
I am developing a Web Application in which I have included User Authentication.But the Session is not ending up even after logging out from the Application.That is,When Click Logout Hyperlink,It gets redirected to Logout.aspx.But when I click on the Back button of the explorer page it takes to my previous page with all the datas.How can I correct this?
FYI,
I am using
Session.Abandon()-To end the session
And I maintain a Session variable "Username" which is needed to be displayed in every page of my application.
Kindly help me out to secure my application...Thanks in Advance!!
Happy Programming!!!
|
|
|
|
|
SrividhyaS wrote: That is,When Click Logout Hyperlink,It gets redirected to Logout.aspx.But when I click on the Back button of the explorer page it takes to my previous page with all the datas
Your session is ending properly. But what you are seeing after pressing back button is browser cached version of your page. There are some techniques to avoid caching, but none worked correctly for me.
You need to check session in each page_load and if session not exist, redirect to login page. So when pressing back button, user can see the page, but he/she won't be able to continue with any operations. When page gets loaded, your session check function will redirect you to login page if it not exist.
|
|
|
|
|
Hi there, well is quite a lil problem as i also phase with same.
as u state that after logging out the page come with data on doing back... this is true as this page comes from the existing cache which already contains that page with all the data previously accessed, now if u do cntrl+F5 you didnt found any of the data on that page as now page get loads again....
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Hi
I have a textbox, for that i want to validate using Regular expresson validator, i should accept only,
the numerics 0 to 9, after decimal only 2 digits, and also i should restrict a maximum of 7 digits like 1234567
if i use range and regular exp validator, while entering ',' both the validators are displaying error message,
so please guide me o achieve all the three validations in regularexpression validator
Thanks in advance
-
|
|
|
|
|
What code do you wrote for this?
What error it shows?
SSK.
|
|
|
|
|
|
Hi Nice,
I have a regular exppression to check price of product:
"[0-9]{1,3}(\,[0-9]{3})*(\.[0-9]+)?$|^[0-9]+(\.[0-9]+)?$"
This is expression accept number such as:
1.450,45.
5.120
45,26
...
Hope that help you.
vtkiet05
|
|
|
|
|
Hi All,
I need your help, i have 3 html pages and one aspx page.After
visiting the aspx page it creates one session variable this variable i
want to access in all my html pages thru anyway.
How can i access, give some idea is it possible or not.
Regards,
Madhuri.
|
|
|
|
|
First get the session variable via JavaScript (var u ="<%=Session("UserName")%>") on load page event and then show on HTML page.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Hi all,
I m executing my project in ie6. some times i use to execute my project in ie7
Here my problem is:
i m getting images well and good when i run it on the ie6 (my images are stored in my project in one folder) and in ie7 i m not able to get the images on my aspx page even though if the images are there on my image folder.But some times the images will disply on ie7.
plz any one can help..
Regards,
dharani.
|
|
|
|
|
hi ..
try to check wether ur img comes in run time or not so u should use alt property in ur code for ex
ur img name is log.gif means
|
|
|
|
|
how can i call excel into my website?
|
|
|
|
|
I have a problem, i hope that you help me to find the solutions:
I have a shopping cart to buy wines(assume url is www.winery.com). I allow user to register to create him store on my site to buy and introduce wines. when user registered successfully, he will open him site using url: www.winery.com/<registeredname>.
root url: www.winery.com
user1: www.winery.com/user1
user2: www.winery.com/user2
....
How can you help me?
Thank you and best regards
vtkiet05
-- modified at 0:27 Thursday 23rd August, 2007
|
|
|
|
|
very easily u can do it using System.IO, directory.Create("complete_path")
you must use MapPath to find the base path then append <registeredname> then call Directory.Create method
Nobody is perfect i'm Nobody
|
|
|
|
|
thank saifigr8, you mean after user registered, i must copy some template to folder has just created by user, because if i do not copy template to that folder, when user clicked url such as: www.winery.com/user1 the website will show.
Is that right?
vtkiet05
|
|
|
|
|
Hello Guys,
I need your help desprately! I have this DetailsView that has a DropDownList (as templated field). The DropDownList raises a postback event (onSelectedIndexChanged) and its handler performs a conditional operation that changes the HeaderText in one of the DetailView's fields.
I wrote the code, nothing special, then when I tested it worked only half the time! Sometimes the postback ocures but nothing changes on the DetailsView and the new value of the DropDownList does not show up. Can someone explain to me why this is happening??
Thank you
Grapes
|
|
|
|
|
When I tried to deploy web service MSI on development server, got the following error.
"The specified path http://sample/wstest is unavailable. The internet information server might not be running or the path exists and is redirected to another machine. please check the status of this virtual directory in the internet services manager"
But I could deploy other MSIs on the same web server.
Appreciate help on this.
Thx
Deepthi V
|
|
|
|
|
Hi Deepthi,
We recently had the same error installing an msi for a web.
"The specified path '' is unavailable. The Internet Information Server
might not be running or the path exists and is redirected to another
machine. Please check the status of this virtual directory in the
Internet Services Manager."
The error happened during the same WEBCA_EvaluateURLsMB action.
In the log it was specified
TARGETURL = http://SERVER2003/WebOPAC.
On the time of the installation the server (SERVER2003) was
disconnected from network and IIS wasn't able to resolve SERVER2003
name(even it is the local name of the server) to IP address.
After connecting to network we were able to install successfully.
SSK.
|
|
|
|
|
Hi,
I'm new to .net membership, roles, and profile stuff but i'm trying to create an administrator web page for my application. I've managed to list users and change roles etc but i'm having problems listing the profile information for users other than the current user. Does anybody know how i do this? I'm trying to give each user a department string which i can set as adminstrator but as of yet i've not found out how i can access profile information for any user other than me (as i'm the one logged on).
For example i'm logged in as administrator and i want to change the profile information for a user called bob.
C# examples would help a lot
Thanks
no one ever said they wished they would have worked more on their death bed.
|
|
|
|
|
i am trying to implement Profile on my web app so that it is possible to have personalization in it. I learned that in order to make use of the Profile class, i will need to use the login controls provided in asp.net in order to secure the authenticated user in th HTTPContext.current so that the userprofile called when using Profile represents the logged in user.
I already have my own authentication implemented and i hope not to change it. Is there any way i can retrieve a profile, and set it as the current profile without letter ASP setting it automatically in HTTPContext.current?
|
|
|
|
|
Hello ;;
I want to make gridView to be autoupdated so any change happend in DB
the gridView records Will be changed without user press the refresh....
Iam thinking to put the Gridview in update panel(Ajax 1.0) and make timer every 15 seconds will be autorefresh the datasource....
any other idea or any topics can be heplp....
aj123
|
|
|
|
|
If you want partial update then ASP.NET Ajax Update Panel and Ajax Timer are the best choice (in my opinion ).
other way might be auto-refreshing the whole page by using meta tag. actually, it's very old way.. so, I think the way you are using is good.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi All,
I am creating dynamic row when the user wants to add more info into the grid view.
I have set my last column in the grid view with Update, Cancel button.
I have added click event to the button. But still it is not hitting the click event method.
I am new bee for ASP.NET. Tell me If i have done something wrong.
cell = new TableCell();
Button link1 = new Button();
link1.Text = "Update";
link1.ID = "btnUpdate";
link1.Click += new System.EventHandler(btnUpdate_Click);
link1.ID = "btnUpdate";
cell.Controls.Add(link1);
link1 = new Button();
link1.Text = "Cancel";
link1.Click += new System.EventHandler(OnCancelClicked);
cell.Controls.Add(link1);
-- modified at 14:54 Tuesday 21st August, 2007
|
|
|
|
|
atimpoo wrote: I have added click event to the button. But still it is not hitting the click event method.
I don't think that click event of button within GridView will be invoked. maybe. you should set the commandname for that button. and if you click that button, the itemcommand event of GridView will be fired. get the commandname to know which button you clicked if you have more than one button..
Normally, you should create Template Column in GridView. Put the button in the template column of GridView. then, you have to set the CommandName (let's say "mycmd") in button. If you click this button, the itemcommand event of GridView will be fired. then, check the command name to know which button has been clicked.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|