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
A

Albert83

@Albert83
About
Posts
80
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • HttpContext values are lost during AJAX call after Adding masterpage
    A Albert83

    Thanks for responding. That was the issue.

    ASP.NET javascript help html design

  • HttpContext values are lost during AJAX call after Adding masterpage
    A Albert83

    it's been several days since I am trying to resolve this issue. I have a page that is a mail inbox in the website. You can send messages to your friends from the list like on facebook. It has AJAX code in a js file, 2 ashx files, and aspx, aspx.cs files. I was using facebox pop up when a user wanted to send a message to a friend. Now I changed the UI removed facebox and added a masterpage so that now the page is like any other page on the site. But after adding a masterpage to messages.aspx page the values of HttpContext become null after I click on send message. They are working fine when the page first loads that shows friends list and previous messages. It's when I fire a js function to save the message entered by clicking send that it's lost. in message.aspx page I use 3 hidden fields: function SavePostedMessage() { var SenderAccountID = $("#hdnSenderID").val(); var ReceiverAccountID = $("#hdnReceiverID").val(); var Days = $("#hdnDays").val(); var body = GetmessageData(); if (body != null || body != "") SaveMessageInDatabase(SenderAccountID, ReceiverAccountID, body, Days); }

    Send In messages.aspx.cs I put in page_load the code to register a js function: ScriptManager.RegisterStartupScript(this, typeof(string), "Play", "javascript:GetMessageConversation('" + Request.QueryString["AccountID"] + "','" + _userSession.CurrentUser.AccountID + "','7');", true); In Ajax.js I defined function GetMessageConversation(SenderAccountID, ReceiverAccountID, Days) { $("#hdnSenderID").val(SenderAccountID); $("#hdnReceiverID").val(ReceiverAccountID); $("#hdnDays").val(Days); $("#divPostComment").show(); setSelected("trUser" + ReceiverAccountID); $.ajax({ type: "POST", url: "/MessageFacebox/GetMessageConversation.ashx", data: 'SenderAccountID=' + SenderAccountID + "&ReceiverAccountID=" + ReceiverAccountID + "&Days=" + Days, success: function (data) { $('#messageconversationdata').html(data); Scrollbottom(); }, error: function (errordata) { alert('Sorry some error occurred');

    ASP.NET javascript help html design

  • Can't figure out how to covnert this XML to XSL for a gridview
    A Albert83

    Hi, I am trying to bind a XML file to a grdiview and get an error: The data source for GridView with id 'gvPhotos' did not have any properties or attributes from which to generate columns. Ensure that your data source has content. I found out that I have to make and xsl format to solve this issue. Here is the original XML file. What's the correct XSL format for it ? Thanks for the time and effort. <gallery> <settings> <imagesFolder>friedmans-admin/Photos/</imagesFolder> <bgImage alpha="100" source="images/bg.jpg"/> <image align="center" cornerRadius="0" scaleMode="fill" transitionEffect="fade" useShadow="true"/> <thumbnail width="60" height="40" cornerRadius="0" alpha="70" outlineColor="0xFFFFFF" outlineColorOnRollOver="0xFFFFFF" outlineColorOnClick="0x8B0000" useShadow="true" usePreview="true"/> <thumbBar scrollSpeed="10" position="bottom"/> <preview alpha="100" width="200" height="100" outlineColor="0xFFFFFF" useShadow="true" cornerRadius="0"/> <caption position="bottom" visibleMode="onRollOver" bgAlpha="30" color="0xFFFFFF" bgColor="0x000000" fontName="Verdana" fontSize="12"/> <slideshow start="false" delay="3" loop="true" stopAutoOnClick="true"/> <preloader alpha="100" usePreloader="true" /> <buttons fullScreenButton="true" navigationButtons="true" slideshowButton="true" /> <sounds onRollOver="sounds/over.mp3" onClick="" /> <picasa user="" albumID="" /> </settings> <items> <item source="1.jpg" thumb="" description="Image 1" link="http://flash-gallery.com" target="_blank"/> </items> </gallery>

    ASP.NET xml help com adobe tutorial

  • Spent hours, can't figure out. Javascript dynamic form variable with asp.net
    A Albert83

    Thanks that worked!

    ASP.NET help csharp javascript asp-net sysadmin

  • Spent hours, can't figure out. Javascript dynamic form variable with asp.net
    A Albert83

    Thanks. This is the code I have used: var fieldIs = document.getElementByID(fieldName).value; And I have added id as follows: Is that how it should be?

    ASP.NET help csharp javascript asp-net sysadmin

  • Spent hours, can't figure out. Javascript dynamic form variable with asp.net
    A Albert83

    Thanks for the response. I am getting an error in firefox: Error: document.getElementByID is not a function

    ASP.NET help csharp javascript asp-net sysadmin

  • Spent hours, can't figure out. Javascript dynamic form variable with asp.net
    A Albert83

    Hi I have a form with text fields that I am trying to validate. I get this error and validation fails. Firefox error Console shows: Error: document.Registring.elements.fieldName is undefined It doesn't recognize fieldName as variable. Without runat="server" I think the issue disappears. How to fix this? Thank you. Here is the snippet: function checkform(fieldName) { var fieldIs = document.Registring.elements[fieldName].value; if (fieldIs == "") return false; else return true; } function ValidateFields() { var errorMessage = ""; var returnResult = true; //Personal Information if (!checkform('FirstName')) { errorMessage += "First Name is a required field \n"; returnResult = false; } if (!validateInputType('FirstName', "letters")) { errorMessage += "First Name should contain letters only \n"; returnResult = false; } } function validateInputType(fieldName, inputType) { if (inputType == "digits") { var isNumber = document.Registring.elements[fieldName].value; //digits only if (isNumber.match(/^\d+$/)) return true; else return false; } else if (inputType == "letters") { var isLetter = document.Registring.elements[fieldName].value; //letters only if (isLetter.match(/[a-zA-Z]/)) return true; else return false; } } Reservations

    PERSONAL INFORMATION

    ASP.NET help csharp javascript asp-net sysadmin

  • Login fails with ASP.NET membership
    A Albert83

    Actually the data was in the tables. The application name in web.config should match the applicaion name in the asp_applications table.

    ASP.NET database csharp asp-net sql-server sysadmin

  • Login fails with ASP.NET membership
    A Albert83

    Thanks for the answer.

    ASP.NET database csharp asp-net sql-server sysadmin

  • Login fails with ASP.NET membership
    A Albert83

    The initial response was correct the asp membership data was not transferred. It was another table that showed the error.

    ASP.NET database csharp asp-net sql-server sysadmin

  • Login fails with ASP.NET membership
    A Albert83

    This was resolved. Thanks.

    ASP.NET database csharp asp-net sql-server sysadmin

  • Login fails with ASP.NET membership
    A Albert83

    The username is in the database. That's the thing. I checked it. When I try to register same user it throws a duplicate record error for the username. That's a confirmation that it's in the db.

    ASP.NET database csharp asp-net sql-server sysadmin

  • Login fails with ASP.NET membership
    A Albert83

    Hi, I am using asp.net built in membership mechanism for registration and login in. I recently transferred a website to a different hosting including the sql server database. After transferring the website all the previous user who registered now can't login with their user name and password. Password recovery says that the user name doesn't exist. However, new account registration works and there is no problem logging in with the new account. Does anyone know what the problem is? Thank you for the time.

    ASP.NET database csharp asp-net sql-server sysadmin

  • Ad Rotator Error when using link parameters
    A Albert83

    I posted, in the question...there is a query string parameter there.

    ASP.NET question help

  • Ad Rotator Error when using link parameters
    A Albert83

    the way you use it works fine. if you add a querystring parameters it stops working.

    ASP.NET question help

  • Ad Rotator Error when using link parameters
    A Albert83

    Hi and thanks for your interest. I am trying to use an ad rotator and as soon as I use parameters in the link it shows an error. If I remove the parameters it works. How can I use parameters in the link? Thank you. http://www.flamingo.ru/bannerad/showban.asp?action=show&campaign=12345 http://www.flamingo.ru/bannerad/showban.asp?action=redir&campaign=12345 50

    ASP.NET question help

  • How to make a custom datalist control
    A Albert83

    Ok. I will try seems to be pretty simple. Thanks.

    ASP.NET help tutorial question

  • How to make a custom datalist control
    A Albert83

    Thanks. But how would I embed a general datalist inside the table? and then reuse it. The datalist id and contents will be different on various pages. The table is the same.

    ASP.NET help tutorial question

  • How to make a custom datalist control
    A Albert83

    Hi, I have datalist which is inside a rounded cornered table. How can I reuse the table for multiple datalists without recreating the table every time..i.e table, tr, td..... I was thinking about a custom datalist control but I don't know how to do it. Any help appreciated. Thank you.

    ASP.NET help tutorial question

  • Need assistance with DataList Databinding! Don't know how to do it.
    A Albert83

    I have a datalist which has a label in the template header. The label's visibility is false initially. After that I have the ItemTemplate It contains a label for a date which has visible = false initially after that I have a linkbutton for a category name. So when the page loads it will list categories vertically header = false, date= false. Each category is click able. When the user clicks on a category the category name will show in the header. The label's visibility in the header is set to true. Below it will be the subcategories. The label for sub category date visibility = true and the link button is replaced with clickable sub categories instead of the main categories. How can I achieve this functionality? I would appreciate as many details as possible to achieve this. Thank you for reading.

    ASP.NET question tutorial
  • Login

  • Don't have an account? Register

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