|
how to implement the Ajax in ASP.Net1.0,
is it possible? if possible pls send example to me
|
|
|
|
|
Read a book, read one of the many articles on CodeProject[^], search google or take a course.
But please don't post a question until you've tried finding some information yourself.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Hi,
i am using Form Authentication in my asp.net appication. It creates a persistent cookie named Cookie1 in cookies folder at my system. I want to change/set the Name of this cookie to Cookie2 on the click of a button from page.How can i do that ? (Q: Does form authentication always created persistent cookie, how can i change it so that when i close the browser , the coookie also goes off ?)
Alternatly, if i can create a new form authentication cookie at the same place with the name Cookie2. i am using following code.But cannot see my cookie2 in the folder
protected void LinkButton2_Click(object sender, EventArgs e)
{
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, "username", DateTime.Now, DateTime.Now.AddMinutes(30), true, FormsAuthentication.FormsCookiePath);
string encryptedTicket = FormsAuthentication.Encrypt(ticket);
HttpCookie authCookie = new HttpCookie("cookie2", encryptedTicket);
authCookie.Expires = System.DateTime.Now.AddMinutes(30);
authCookie.Secure = true;
Response.Cookies.Add(authCookie);
}
Any code support will be of great help.
Thx
|
|
|
|
|
Hi,
maybe this link can help you
Regards,
Tomi
|
|
|
|
|
hi,
im posting my requirements here,your suggestions are very much appreciated .
since im new to ajax tool kit im not much familiar about most of the controls,could anyone can suggest me to use appropriate controls for my query?
in my system i have nearly 100+ forms,and different categories of users.normally once new user is created,admin have to give access rights for the forms to new user.now the admin doing this by using a form which got list of all the forms in my projects witha check box,so admin have to manually check the appropriate name of the form for diff catagories of user and save it.
now the problem starts here,wen user create new forms then this access rights page need to be modified to add check control with new form name and data base need to modify to add new form name and access rights, how can i make it automatically,meaning once i create new form,the form related info must add to acceess right page with chk box, and also in data base
The Best performance for good work tomorrow is to do good work Today
|
|
|
|
|
tweety@net wrote: how can i make it automatically,meaning once i create new form,the form related info must add to acceess right page with chk box, and also in data base
You will need to maintain a table which would store the form names and load the access rights page with data from that table. Create a gridview or datagrid with a checkbox column, set the checked property of the checkbox based on the data from the user's access rights table.
|
|
|
|
|
I developed a web application, which has two sections
Client Section: that is visible to local users
Control Panel: allows admin of the site to control the contents of the web application.
I created a cpanel folder on the root of the web application, and all the pages and functionality of Control Panel section goes there. The sample structure of the files is as in below section:
/Default.aspx 'Client Side File
/contactUs.aspx 'Client Side File
/Aboutus.aspx 'Client Side File
/Web.config 'Main Configuration file ( admin section uses connectionstring from
'the same web.config file
/AppCode/DAL/Classes.vb ' Contains all the classes used in both client and cpanel section
/CPanel/Default.aspx ' Admin side File
/Cpanel/UpdateContactus.aspx ' Admin Side File
/Cpanel/UpdateAboutus.aspx ' Admin Side File
Now problem is that, i need to Secure Pages in CPANEL by adding Authenticating process, now if i add the authentication information in
/Web.Config /Main configuration file
then it will apply on both client side and Cpanel side as well... but i need this authentication only in CPanel side, so what i did is add a new configuration file with appropriate instructions and a Login Page, where person trying to open CPanel will be redirected if he/she has not logged in using proper username and password.
here i added those files at place
/CPanel/Web.Config
/CPanel/Login.aspx
but when i try to open any page, it gives me an error message
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS
---- The code for Web.config -----
<forms loginurl="Login.aspx" name="realestate" path="/" protection="All" timeout="30">
Any Solution?
1- Can we merge two different projects with different web.config files with each others?
:- Rashid Ali -:
|
|
|
|
|
Please don't cross post
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
All you need to do is select the folder in IIS manager and choose to make the subdirectory an Application by clicking the Create button down beside the application textbox.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi frndz,
In my company, we have an intranet, many didnt have acces to internet. But our server has the access to website. i want to have some contents of the internet to be available for my intranet users.
Is there any way i can do them.
Im thinking....
1. can we get website in the form of XML and from that can we again convert to web page.
2. can we scrap a portion of web page data and save as html file
anticipating ur answers....
Regards,
Bala | HeroITes | India
|
|
|
|
|
|
When I goto a page which requires SSL I should get at 403.4 error. What I'm getting instead is the following...
Secure Channel Required
This Virtual Directory requires a browser that supports the configured encryption options.
This is accompanied with a 401 error.
I need to get the 403.4 error so I can handle it. It works fine on other servers but no where on this server will it work.
Thanks for any help.
|
|
|
|
|
So I fixed my issue. Seems my IUSR account was in my Guest group. The error was actually being thrown from my redirectorion page.
|
|
|
|
|
|
Stop posting the same question in all the forums. Read the guidelines.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Yeah, but we still don't have a 'software I want to steal' forum. I keep asking Chris, but....
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
sonarat wrote: tell me how to crack maya
Sorry, not into priating other people's work
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
After some tour through trolling menace, now we have to deal with hackers-n-crackers. Interesting experience anyway.
|
|
|
|
|
You would ask a group of developers to help you steal from developers ? That's very amusing.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi everybody,
I am not able to focus a textbox when i am running the application in ff.Its working fine in IE.
when i am using setTimeOut() it is giving some other type of problem.
Please help!!
|
|
|
|
|
remove and set it again
narat
I don't know how to tell you but I like IT and Designingas well as Graphic
|
|
|
|
|
It is not working.....
the actual scenario is i have a textbox for DOB and submit button.
On Blur() i check for valid date and donot allow the user to leave with a wrong date.
|
|
|
|
|
My sites is getting very big, a bit too big for my shared hosting environment. Therefore, I am looking at splitting it across subdomains, eg.
www.myapp.com
blogging.myapp.com
etc.
I use a cookie to authenticate in www. Will the cookie be guaranteed to "survive" when transitioning between www and blogging sub-domains?
|
|
|
|
|
I think path/domain (Need to check) should be set to myapp.com right? Then it should seamlessly work across all domains.
But again, it WILL NOT work for https:// and http:// since you can not dynamically toggle SECURE attribute in both the cases right?
|
|
|
|
|
That's what I'm inclined to think.
I just would like it confirmed before I buy the web space!
No problems with http/https at this stage.
|
|
|
|