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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

ash04

@ash04
About
Posts
19
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • connection string for medium trust level
    A ash04

    thanks for reply, but it is not the case, i have permission. it is related with medium trust level security.

    DAsh04

    ASP.NET help hosting security announcement workspace

  • connection string for medium trust level
    A ash04

    Any one can please help me... i have medium trust level for our dot net application from hosting. I am using the connection string as : "Provider=SQLOLEDB;User ID=user1;Password=****; Data Source=;Initial Catalog=mynewdb" I am getting error as : Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, failed. do I need to change provider or what in the connection string, please suggest. Thanks in advance

    DAsh04

    ASP.NET help hosting security announcement workspace

  • HttpContext.Current.Session is getting null
    A ash04

    yes it is like this: #region Web Form Designer generated code override protected void OnInit(EventArgs e) { InitializeComponent(); base.OnInit(e); } private void InitializeComponent() { } #endregion

    DAsh04

    ASP.NET help csharp asp-net design

  • Javascript error
    A ash04

    use it function MyFunction() { alert(<%=radpnlBarItems.ClientID%> ); //document.getElementById("<%=radpnlBarItems.ClientID%>;").style.color = "#000066"; }

    DAsh04

    ASP.NET help javascript

  • HttpContext.Current.Session is getting null
    A ash04

    My full base page code namespace DD { using System; using System.Data; using System.Configuration; using System.Web; using System.Web.SessionState; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; /// <summary> /// Summary description for DWPage /// </summary> public class DD_AdmBasePage : System.Web.UI.Page { private string LoginUser="" ; public DD_AdmBasePage() { LoginCheck(); } protected string PageName { get { return HttpContext.Current.Request.Url.Segments[HttpContext.Current.Request.Url.Segments.Length-1]; } } public string LoggedInUser { get { return LoginUser; } } protected void CheckLogin() { if (HttpContext.Current.Session["LoginUser"]!=null) { LoginUser= HttpContext.Current.Session["LoginUser"].ToString(); } else { HttpContext.Current.Response.Redirect("~/login.aspx"); } } protected override void OnInit(EventArgs e) { base.OnInit(e); } } }

    DAsh04

    ASP.NET help csharp asp-net design

  • Javascript error
    A ash04

    it is may be because value of the code : radpnlBarItems.ClientID is not comming properly.

    DAsh04

    ASP.NET help javascript

  • HttpContext.Current.Session is getting null
    A ash04

    thanks navaneeth for participating, I tried but it is not solved my problem. When I checked i found : protected override void OnInit(EventArgs e) { base.OnInit(e); } this function is not called.

    DAsh04

    ASP.NET help csharp asp-net design

  • HttpContext.Current.Session is getting null
    A ash04

    Hi All, I am using basepage in my ASP.Net code but in base page I am not getting session. My code is as follows: public class DD_AdmBasePage : System.Web.UI.Page { public string LoginUser; public DD_AdmBasePage() { LoginCheck(); } protected void LoginCheck() { if (HttpContext.Current.Session["LoginUser"]!=null) { LoginUser= HttpContext.Current.Session["LoginUser"].ToString(); } else { HttpContext.Current.Response.Redirect("~/login.aspx"); } } } please help me, I am getting error in following line: if (HttpContext.Current.Session["LoginUser"]!=null) error: object reference not set to an Insatance. and when i am checking HttpContext.Current.Session, it is showing that it is null. I cant understand why it is null. Please help me. Thanks in advance

    DAsh04

    ASP.NET help csharp asp-net design

  • [Message Deleted]
    A ash04

    no not solved still

    DAsh04

    ASP.NET

  • [Message Deleted]
    A ash04

    Thanks for replying. I used that too but it has same problem. Please help me.

    DAsh04

    ASP.NET

  • [Message Deleted]
    A ash04

    [Message Deleted]

    ASP.NET

  • Help ME, This is the second day today but still i get answer..
    A ash04

    Hi Hemant, I think, it is not possible without java script. But it can be easily done by Java script. If possible, dont use panel, use div for it.

    Ash

    ASP.NET javascript help

  • how to take image path into variable
    A ash04

    string ppath=k + "//sample//" + m + "//.jpg";

    DAsh04

    ASP.NET csharp asp-net help tutorial

  • data formatting expression
    A ash04

    Hi, Format does not cause error like this. Please check the variables' value after statement like Dim GTotal As Decimal = Val(MainGRD.Cells(3).Text) Dim BonusAmt As Decimal = Val(MainGRD.Cells(5).Text) and check your stored procedure "BonusAdd" and its parameter type and width.

    DAsh04

    ASP.NET tutorial question

  • how to take image path into variable
    A ash04

    string ppath=k + "/sample/" + m + "/.jpg";

    DAsh04

    ASP.NET csharp asp-net help tutorial

  • data formatting expression
    A ash04

    Hi, have you checked what is being stored in the variables "GTotal" and "BonusAmt" during the program execution.

    DAsh04

    ASP.NET tutorial question

  • how to access listbox items filled by javascript, on code behind
    A ash04

    Hi, As I know that any thing you change through the Javascript, is not saved in the view state. Hence you can get it in the postback. Yoy can get only selected value through request.form(name of the list control). If you require all the inserted item you need to do it logically.

    ASP.NET help javascript database tutorial

  • executing procedure via ODBC Connection
    A ash04

    use this insert into #abc(ssn) select isnull(phone,'') from tbl_users

    DAsh04

    Database database sysadmin

  • data formatting expression
    A ash04

    Using the data formatting expression does not cause the problem like this. I think it is related with your Database code. Please check it or give the details about the method you are using to save the data into database.

    DAsh04

    ASP.NET tutorial question
  • Login

  • Don't have an account? Register

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