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
J

Jain Vijay

@Jain Vijay
About
Posts
40
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • html contents into plain text
    J Jain Vijay

    var nonHTMLcontent = document.getElementById(ControlIdContainsHTMLContent).contentWindow.document.execCommand("RemoveFormat",false,null)

    Here

    ControlIdContainsHTMLContent

    contains HTML content. In

    nonHTMLcontent

    variable you will get content after removing formatting. Hope this will help.

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET javascript html tutorial

  • Problem in filling drop down list
    J Jain Vijay

    sorry.... i forgot to copy that line in my code... but i have already do that...

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET help csharp

  • Problem in filling drop down list
    J Jain Vijay

    thax for reply.... but

    obj.MasterBranch\_FetchByZoneId\_DataSet(ZoneId);
    

    returning value to the dataset... my problem is that

    clsDropDownList obj = new clsDropDownList();
    ddlBranch = obj.Bind_DdlBranch(3);

    is not binding data to the physical dropdownlist. where

    obj.Bind_DdlBranch(3);

    is returning the dropdownlist

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET help csharp

  • Checking if New or Not?
    J Jain Vijay

    If Not Existes(Select fieldname From tablename Where fieldname=yourvale)
    Begin
    --data NOT exists
    End
    Else
    Begin
    --data ALREADY exists
    End

    hope this will help

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET database tutorial question

  • Problem in filling drop down list
    J Jain Vijay

    Hi, i m trying to fill my dropdownlist from dropdown object. in my class

    public DropDownList Bind_DdlBranch(int ZoneId)
    {
    DropDownList ddl = new DropDownList();
    clsMasterBranch obj = new clsMasterBranch();
    ddl.DataTextField = "testfieldname";
    ddl.DataValueField = "valuefieldname";
    ddl.DataSource = obj.MasterBranch_FetchByZoneId_DataSet(ZoneId);
    ddl.DataBind();

        return ddl;
    }
    

    here i m getting value in ddl object. but while i m trying to bind the ddl object to dropdownlist in my c# code

        clsDropDownList obj = new clsDropDownList();
        ddlBranch = obj.Bind\_DdlBranch(3);
    

    page was build with no error but drop down ddlBranch is empty... Plz guyz help me to find out the mistek.... thanx is advance....

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET help csharp

  • How to Disable back button
    J Jain Vijay

    Your welcome

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET javascript tools tutorial

  • How to Disable back button
    J Jain Vijay

    This code has to be used on previous page. Means, if you want's to disable the "back" button of page "zxc.aspx", so you have to put this code in previous page of "zxc.aspx", from which you have come to "zxc.aspx". i.e. if you have come from "test.aspx" (on click of any link) to "zxc.aspx", then you have to put this code on "test.aspx" page. Try this. This will definitely work in all browsers.

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET javascript tools tutorial

  • How to Disable back button
    J Jain Vijay

    you can put this code on above the HTML tag of your .aspx page.

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET javascript tools tutorial

  • How to Disable back button
    J Jain Vijay

    As I think, the best way to disable the back button is "don't create the history of the page". Because may be in some browser's, disable code will not work. Here is the code to remove the history of a particular page:- <% Response.Expires = 0 Response.ExpiresAbsolute = DateTime.Now.AddDays(-1) Response.AddHeader("cache-control", "private") Response.CacheControl = "no-cache" %> Hope this will help you......

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET javascript tools tutorial

  • cellspacing not worked in Opera browser
    J Jain Vijay

    Hi there, I have a problem that applied cellspacing is not working in Opera browser. It's working fine in IE, Firefox, Chrome and Safari. Here is my code where i m using cellspacing.... tbl = New Table tbl.Style.Add("background-color", "#FFFFFF") tbl.BorderWidth = "0" tbl.CellPadding = "0" tbl.CellSpacing = "1" Plz let me know the solution if you have.

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET help

  • How can we add dynamic control to Data table
    J Jain Vijay

    I m trying to use a modal popup extender, dynamically in my code in event calendar. And event calendar is a 3rd party tool, I only have dll for that. So I have to paas all data in data table to add in event calendar. That's why I m trying to do this.

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET design question

  • How can we add dynamic control to Data table
    J Jain Vijay

    Hi, I am trying to add dynamic link button to data table. But get an full link class name.i.e.
    System.Web.UI.WebControls.LinkButton
    can any one tell me the way to do this?
    Here is my code:
    Dim dt As New DataTable() Dim dr As DataRow dt.Columns.Add("EventDate", Type.[GetType]("System.DateTime")) dt.Columns.Add("EventHeader", Type.[GetType]("System.String")) Dim lnk As New LinkButton lnk.ID = InteractionClickId lnk.Text = objDal.Name dr = dt.NewRow() dr("EventDate") = objDal.Date1 dr("EventHeader") = lnk dt.Rows.Add(dr)

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET design question

  • Upload file permission denied
    J Jain Vijay

    Hi Abhijit,                here is s web.config block... <system.web>       <identity impersonate="true"/> </system.web>

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET help asp-net sysadmin csharp com

  • Upload file permission denied
    J Jain Vijay

    Hi Abhijit, Problem is resolved. In web.config file, under tag was needed. After add this tag, now code is working fine on server.

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET help asp-net sysadmin csharp com

  • Upload file permission denied
    J Jain Vijay

    Hi Abhijit, thnx for your reply. Further, on folder full access is already given. Also i am able to upload file in same folder from ASP application. but not be able from asp.net application. My server is shared server and i have no permission to create application pool. Is there any other way to set this issue? Thanx...

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET help asp-net sysadmin csharp com

  • Upload file permission denied
    J Jain Vijay

    Hi all, I m trying to upload file on sever through upload control. code is working fine in local environment. also i have test code in asp. But when i have deployed the same asp.net code on server, getting this error.... Access to the path 'e:\Inetpub\herddealers.com\wwwroot\admin\resources\Book1.xls' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access to the path 'e:\Inetpub\xyz.com\wwwroot\admin\resources\Book1.xls' is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access. code in asp to upload file in same folder is working fine but not in asp.net. can any 1 know the reason... plz help me to resolve this issue...

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET help asp-net sysadmin csharp com

  • Problem in inserting "Hindi" Text in MySql5.0 using ASP.Net
    J Jain Vijay

    actually i have never worked on 5.1 version. but no problem, i will try this and let u know. also if in database it shows encrypte data, then try to fetch it by query. It will return the result, as same as inserted.

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET csharp help asp-net database visual-studio

  • Problem in inserting "Hindi" Text in MySql5.0 using ASP.Net
    J Jain Vijay

    to do this, u can change data type of your table field to nVarchar. Then u will be able to insert & fetch the text of any language in database.

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET csharp help asp-net database visual-studio

  • In HTML Editor how can we find cursor position or selected text ?
    J Jain Vijay

    Hi All, can you tell me that how can we find cursor position or selected text in HTML editor? There can be 3 possibilities: 1. We can find the position of cursor. 2. We can find the starting and Ending position of selected text. 3. We can find the complete selected text. I have done 2nd and 3rd task for IE but could not succeeded for Firefox. Plz help me to find out the solution that can work in both IE and Firefox. Further, I will explain that I am creating rich text box editor in asp.net. So I am trying to find the cursor position in content window(html page) of iframe. Thanx for any kind of help...

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET csharp html asp-net help question

  • Image loading problem....
    J Jain Vijay

    Hi, can you paste your code here. So that I can view and help you to solve your problem

    Regards... Vijay Jain :)

    "One thing you can't recycle is wasted time."

    ASP.NET help html 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