Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

sandeep kumar pundhir

@sandeep kumar pundhir
About
Posts
55
Topics
48
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Uncheck "Automatically Detect Settings"optionin IE
    S sandeep kumar pundhir

    Yeah, It is in Registry only. I mean how to do that by some exe and which key is that.

    C# csharp help question

  • Uncheck "Automatically Detect Settings" checkbox in IE
    S sandeep kumar pundhir

    Hi, I need to create an executable in c# which unchecks the "Automatically Detect Settings" checkbox in Internet Explorer Options, LAN Settngs. Any Help? Thanks

    Windows Forms csharp help question

  • Uncheck "Automatically Detect Settings"optionin IE
    S sandeep kumar pundhir

    Hi, I need to create an executable in c# which unchecks the "Automatically Detect Settings" checkbox in Internet Explorer Options, LAN Settngs. Any Help? Thanks

    C# csharp help question

  • Disabling main page while pop up window is there.
    S sandeep kumar pundhir

    Hi, I have a page1.aspx , there i have a link button on click of which i opens a pop up window. My requirement is that when my pop up window is opened then the user should not be able to perform any action on the page1.aspx I used a modular window for this, but again i have a linkbutton on that modular window, clicking on it opens a new url in new window.But i want it to be in same modular window. So any of the thing can resolve my problem 1> A pop up window where user cannot perform any action on page1.aspx 2> A modular window, having link button , clicking on it should open the new page in it self Is there any way to make the Page1.aspx disabled (fade color with)when pop up window is active. thanx

    ASP.NET help

  • Display / visible method in Javascript
    S sandeep kumar pundhir

    Thanx for ur reply. But now wat is hapening.... The textbox1 becomes visible for a second after clicking the button, it again disappears

    ASP.NET javascript

  • Display / visible method in Javascript
    S sandeep kumar pundhir

    Hi, I m using javascript to make a textbox visible, which is set to style=display:none at the page load.But when i click the button (On which javascript is method is called), the textbox doesnot makes it visible. I m doing protected void Page_Load(object sender, EventArgs e) { string str = "function radio()" + "{" + "if(document.getElementById('radio1').Checked!=true)" + "{" + "document.getElementById('" + TextBox1.ClientID + "').visible;" + "alert('sandeep');" + "}" + "}"; this.RegisterClientScriptBlock("clientScript", str); Button1.Attributes.Add("onClick", "radio()"); } Where i am going wrong... Thanx

    ASP.NET javascript

  • Remembering Password in Asp.net
    S sandeep kumar pundhir

    Hi, I have a login page in asp.net accepting username as email and password,using form authentication. And a checkbox to make password persistent or non -persistent. My requirement is that when i log out, then again when i open the url , and puts the same emailid then its password should automalically come in password textbox. Is there anyother way to achieve this. Thanx

    ASP.NET csharp asp-net security

  • Form Authentication cookie
    S sandeep kumar pundhir

    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

    ASP.NET question csharp asp-net security help

  • Form authentication
    S sandeep kumar pundhir

    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

    Web Development question csharp asp-net security help

  • Single sign on in two websites
    S sandeep kumar pundhir

    Yep, i implemented the things like that, but the problem is that, then i keep the same cookie name for the two sites , it works, but i need to have different names for the cookies for each sites.Then it do not works, any solution to this please

    ASP.NET csharp asp-net com security

  • Single sign on in two websites
    S sandeep kumar pundhir

    hi, i have to realted queries 1> i have two websites, www.main.com and www.second.com in asp.net i want that when anyone signs in www.main.com and clicks a link to www.second.com then user shud redirect to the requested page without showing the login page of www.second.com 2> how i can see/edit the content of the authentication cookie generated. Any code / reply / reference welcome thnx

    ASP.NET csharp asp-net com security

  • Dockable window in asp.net
    S sandeep kumar pundhir

    Hi, i need to create a dockable window in asp.net 2.0.showing the controls of a webpage,it should get opened on a button click . how it can be done? Any references / code please thanx

    ASP.NET csharp asp-net question

  • Single sign on for application in different domain using different validation keyss
    S sandeep kumar pundhir

    Hi, i have three asp.net applications in different domains say www.domain1.com and www.domain2.com and www.domain3.aspx. Two pages are there in each applications .First LogIn.aspx and other MyPage.aspx. In mypage of www.domain1.com, i have a link to mypage.aspx of www.domain2.aspx and www.domain3.aspx. now my requiremets are: 1> when user login in www.domain1.aspx, and clicks any link on MyPage.aspx, say he clicks www.domain2.aspx, then he shud be redirected to Mypage.aspx of www.domain2.aspx. it shud not show him its login page .same for www.domain3.aspx.i have to use forms authentication. Its basicly a single sign on. The problem i am facing excatly is that, i acieved this using same machinekey,validationkey for all in web.config like decryptionKey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902F8D923AC" validation="SHA1" /> But i need that the validation keys should be different for different applicatons in there web.config ,and when i click the links from www.domain1.aspx then anyways i save it in the formauthetication cookie and also i want to add some more information in formauthentication cookie. Please help me in this. Its urgent.Any other way to get this functionality achieved ia also welcome thx

    ASP.NET help csharp asp-net com security

  • Single sign on for application in different domain using different validation keys
    S sandeep kumar pundhir

    Hi, i have three asp.net applications in different domains say www.domain1.com and www.domain2.com and www.domain3.aspx. Two pages are there in each applications .First LogIn.aspx and other MyPage.aspx. In mypage of www.domain1.com, i have a link to mypage.aspx of www.domain2.aspx and www.domain3.aspx. now my requiremets are: 1> when user login in www.domain1.aspx, and clicks any link on MyPage.aspx, say he clicks www.domain2.aspx, then he shud be redirected to Mypage.aspx of www.domain2.aspx. it shud not show him its login page .same for www.domain3.aspx.i have to use forms authentication. Its basicly a single sign on. The problem i am facing excatly is that, i acieved this using same machinekey,validationkey for all in web.config like But i need that the validation keys should be different for different applicatons in there web.config ,and when i click the links from www.domain1.aspx then anyways i save it in the formauthetication cookie and also i want to add some more information in formauthentication cookie. Please help me in this. Its urgent.Any other way to get this functionality achieved ia also welcome thx

    ASP.NET help csharp asp-net com security

  • Single Sign On for two sites of different domains.
    S sandeep kumar pundhir

    Hi I have two different sites say www.domain1.com & www.domain2.com developed in asp.net 2.0. I want that user logs in www.domain1.com , and then clicks the hyperlink to www.domain2.com, then he should not be shown the login page of www.domain2.com. some sample code will be of great help to me. thanx sandy

    ASP.NET csharp asp-net com help

  • Protecting Applicatin DLL (dot net)
    S sandeep kumar pundhir

    Hi all, I want that the dll of my application which are on the client machine after deployment should be protected that no one can see the code and logic using some deassembler tool. How should i protect this??? i tested a third party tool to read a dll of some trial version application from internet. Its opens the code easily, but when i tried the same tool with some system32 dll, the dll showed to be locked. I want this to be in my dll also. How is it possible ??? Sample Code, Suggestion, References welcom ........ Thanx sandeep

    .NET (Core and Framework) sysadmin question announcement

  • Protecting application DLL [c#]
    S sandeep kumar pundhir

    Hi all, I want that the dll of my application which are on the client machine after deployment should be protected that no one can see the code and logic using some deassembler tool. How should i protect this??? i tested a third party tool to read a dll of some trial version application from internet. Its opens the code easily, but when i tried the same tool with some system32 dll, the dll showed to be locked. I want this to be in my dll also. How is it possible ??? Sample Code, Suggestion, References welcom ........ Thanx sandeep

    C# csharp sysadmin question announcement

  • Syncronise the system Date through c# code
    S sandeep kumar pundhir

    Hi All, I have to syncronise the system Date through c# code. The scenerio is like whenever User sign In, I have to check the current system date,and compare with the date i have written in Registery, so that he can not use the appication beyond the trial period date. The Problem is that the User can Manipulate his system date and can sign in n number of times. If anyone have the code then Please help me out in my problem. Thanx Sandeep

    C# help csharp

  • Problem inserting xml string into temp table (inserting only a part of string not complete)
    S sandeep kumar pundhir

    Yes SPLIT is a User Defined Function set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER FUNCTION [dbo].[Split](@String nvarchar(4000), @Delimiter char(1)) RETURNS @Results TABLE (Items nvarchar(4000)) AS BEGIN DECLARE @INDEX INT DECLARE @SLICE nvarchar(4000) -- HAVE TO SET TO 1 SO IT DOESNT EQUAL Z -- ERO FIRST TIME IN LOOP SELECT @INDEX = 1 -- following line added 10/06/04 as null -- values cause issues IF @String IS NULL RETURN WHILE @INDEX !=0 BEGIN -- GET THE INDEX OF THE FIRST OCCURENCE OF THE SPLIT CHARACTER SELECT @INDEX = CHARINDEX(@Delimiter,@STRING) -- NOW PUSH EVERYTHING TO THE LEFT OF IT INTO THE SLICE VARIABLE IF @INDEX !=0 SELECT @SLICE = LEFT(@STRING,@INDEX - 1) ELSE SELECT @SLICE = @STRING -- PUT THE ITEM INTO THE RESULTS SET INSERT INTO @Results(Items) VALUES(@SLICE) -- CHOP THE ITEM REMOVED OFF THE MAIN STRING SELECT @STRING = RIGHT(@STRING,LEN(@STRING) - @INDEX) -- BREAK OUT IF WE ARE DONE IF LEN(@STRING) = 0 BREAK END RETURN END

    Database help database xml

  • FileUpload not working with Ajax
    S sandeep kumar pundhir

    Hi I m using Atlas for asynchronous refreshing the page, and i have a fileupload control on the page. when i use ATLAS the opload control doesnot work > It shows FileUpload.FileName="" , though i browse a file in it. can any one help me so that both the things works together thnx sandeep

    Web Development help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups