Jump to content

pr.nimbalkar

Members
  • Posts

    54
  • Joined

  • Last visited

Posts posted by pr.nimbalkar

  1. Hi Friends, I am working on login page with MSSQL in back end. I have to maintain case sensitivity in both User Name & password.How do i that with MSSQL? May u help me.Regards,Prashant.......

  2. Dear Friends, I write this code to set cookie. it works fine in IE , but not works in Mozilla. May u help me?This is my code.Imports System.DataImports System.Security.CryptographyImports System.Web.SecurityImports System.Data.SqlClientImports System.Web.SessionStatePartial Class _Default Inherits System.Web.UI.Page Dim myCookie As New HttpCookie("TestCookie") Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Request.Cookies("TestCookie") Is Nothing Then txtLogin.Text = Request.Cookies("TestCookie")("LoginName") End If End Sub Private Function Encrypt(ByVal val) Return FormsAuthentication.HashPasswordForStoringInConfigFile(val, "MD5") End Function Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click If Me.checkLogin(txtLogin.Text, Encrypt(txtPass.Text)) > 0 Then Response.Cookies.Clear() myCookie.Values.Add("LoginName", txtLogin.Text) myCookie.Expires = Now.Date.AddDays(1) Response.Cookies.Add(myCookie) End If End Sub Private Function checkLogin(ByVal login, ByVal password) As Integer Dim sqlParam As New SqlParameter Dim count As Integer With sqlParam .DbType = Data.DbType.Int32 .Direction = Data.ParameterDirection.Output .ParameterName = "@Count" End With SqlHelper.ExecuteScalar(Tools.GetConnectString, CommandType.StoredProcedure, "up_CheckLogin", New SqlParameter("@Login", login), New SqlParameter("@Pass", password), sqlParam) count = Convert.ToInt32(sqlParam.Value) Return count End FunctionEnd Class

  3. Hi , this is my codeIf (objResources.CheckProjectResourcesExists() > 0) Then Response.Write("<script>alert('This record is already exist.'); "</script>") Else objResources.Save() End If

  4. Hi Friends, I face one problem. I am alerting a message(Javascript Alert) while there is duplicate entry. But when i click on 'ok' of javascript alert , my title's font-size changes , it becomes more than previous one. Why do this happen? May u help me.Regards,Prashant

  5. Dear Friends, if i use '#' in QueryString , why does it terminate parameter of QueryString after '#'?Like add.aspx?user=xyz&password=1254#12&mob=98541523. Then it terminate value & parameter after '#'.Why does it happen?MAy u help me?Regards,Prashant N

  6. Hi friends, i hv 2 textboxes of login & password & submit button. when i put password in textbox & press 'enter' key , the form is not submitted in the mozilla. How do i fix this bug? I used this script :onkeyup event of password textboxfunction setFoc(obj){ var keyValue = obj.keyCode; if(keyValue == 13){ document.getElementById("butLogin").focus(); //document.getElementById("butLogin").click(); // document.form1.submit(); return true; }}

  7. Hi friends, function changeVal(obj,val){ var i = val.indexOf("."); var l = val.substring(i,val.length); if(l.length > 2) { alert("There should be only one numeric value after the decimal point"); setTimeout('obj.focus();',1); return false; } }This script gives an error 'obj' not defined.How to fix this bug?

  8. hi....whenever i redirect my one php page to other and then when i run the page the back button on internet explore doesn't work............i cannt go back to the previous page then...........is there any solution or any alternative to this.
    You may use javascript for navigation like:window.location = "example.php"; or self.location = "example.php";got?
  9. I am trying to bulid the API for creating new email account in Plesk(Windows 7.6.1). I write this script :<packet version="1.4.1.1"> <mail> <create> <filter> <domain_id>35</domain_id> <mailname> <name>prashant</name> <password>password</password> </mailname> </filter> </create> </mail></packet>But it gives an error :<?xml version="1.0" ?> - <packet version="1.4.1.1">- <mail>- <create>- <result> <status>error</status> <errcode>1017</errcode> <errtext>operator mail is not supported</errtext> </result> </create> </mail> </packet>Can any one help me for fixing this error?

  10. You hv to use 'AJAX' for that , read abt AJAX , it will solve ur problem . I hv used AJAX for Drop down :)

    Hi thereI have more then one dorp down lists in a page which fill by data connecting and they are interconectingmean when I slect a item in first list then data in second list changed but at the same time page become disappear and appear instantly just like refresh.I dont want disapear or refreshplease visit "www.zoozu.com" and chek it thanks

  11. i m writing a code to format a html page so that it fits a mobile screen size.all text or image or table, frames etc should be within that screen size.can u gv me an idea what logic should i use! if i use CSS thn what changes should be applied. i m writing a code in C,either i can use an external style sheet or by just reading the html code ad making some changes n then again    writing the whole content into another file will do . plz suggest me any logic.thanx a lot,

    Hi , I am Prashant, hv u ever use AJAX?If yes , may u help me how to integrate AJAX in .net?Awaiting..Prashant..
  12. the variabel you are using as your datascource is not declared (dtrclassification) and ther is no where in your code that the command gets executed.Did you just leave that piece of code out of your post??? If so please post the entire page thanks.

    Hello , you are not executed the Sql command , that's why u are not getting value in Combo.Regards,Prashant...
  13. Hi,I Have 2 Text Box And 2 Buttons(Save, Search).Now if I click on Save Button Then Requirefieldvalidator for both the Text Boxes shoould work, but when I click on Search button validator for the text fields should not work.Is it Possible??It can be done using javascript, but can we do it only with .NETI m using ASP.NET with language VB

    Hello Siddhesh, Plz see the 'cause validation' property of the 'Search' button. I think , it may false.If yes, make it true ; ur validation will fire.Cheers..Prashant..
×
×
  • Create New...