Click here to Skip to main content
       

ASP.NET

 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 22 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid

You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: online payment PinmemberRahul Rajat Singh17 Aug '12 - 19:40 
GeneralRe: online payment Pinmemberashjassi18 Aug '12 - 18:26 
GeneralRe: online payment Pinmemberashjassi17 Aug '12 - 0:11 
AnswerRe: online payment PinmemberRahul Rajat Singh17 Aug '12 - 0:34 
GeneralRe: online payment Pinmemberashjassi17 Aug '12 - 1:28 
GeneralRe: online payment Pinmemberjkirkerx17 Aug '12 - 19:27 
AnswerRe: online payment PinmemberRahul Rajat Singh17 Aug '12 - 19:37 
Almost all of them are used equally. But recent trends and e commerce success stories seems to portray that billdesk is the best.
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.

GeneralRe: online payment Pinmemberjkirkerx17 Aug '12 - 20:43 
QuestionHow to create Shipment project container planning using ASP.NET PinmemberSubiyaPalanisamy16 Aug '12 - 1:22 

Good Evening..
 
i m doing mini project topic is Dispatch Automation(Container Planning)..
pls give the details about modules in ASP.NET and back end is Sqlserver2008

AnswerRe: How to create Shipment project container planning using ASP.NET Pinmemberashjassi16 Aug '12 - 1:30 
QuestionCascading dropdown selected value Pinmembernitin_ion15 Aug '12 - 23:05 
I have a dropdown and a cascading dropdpwn.
 
They work fine. My dropdown fills according to parentid. But i also want to set the selected value of target dropdown.
 
<td class="style1">
 <asp:DropDownList ID="drpDefaultHandler" runat="server" DataTextField="UserName" DataValueField="UserName" Width="200px" />
 
 <asp:DropDownList runat="server" ID="drpMill" DataTextField="MillName" DataValueField="MillName" AutoPostBack="true" />
 <ajaxToolkit:CascadingDropDown ID="csdDefaultHandler" runat="server" Category="Header" Enabled="true" TargetControlID="drpDefaultHandler" ParentControlID="drpMill" ServiceMethod="GetDefaultHandlersByMill" ServicePath="~/Services/AjaxServices.asmx" />
</td>
 
For this is have done autopostback=true even this is dirty but this works. however there is one issue. when changing it show [Method Error 0] in drpDefaultHandler before setting the selected value.
 
how can i solve this issue or is there a better solution to this.
AnswerRe: Cascading dropdown selected value PinmemberRahul Rajat Singh16 Aug '12 - 18:14 
Questionmaintain scrollbar position Pinmembersc steinhayse15 Aug '12 - 11:55 
In a C# 2010 web form application, I want to maintain the scroll bar position in Panel1 listeb below. According to the following
link: http://gnidesign.blogspot.com/2011/06/how-to-maintain-page-scroll-on-postback.html, the javascript code that I supplied below
should work. My problem is there is not a 'head' html tag for me to embed the javascript code into.
 
Thus can you tell me what is wrong with the Javascript code I have below? Do I have the code in the wrong postion of the *.aspx
page?
Can you tell me how to maintain the scrollbar position of panel1?
 
Here is the code I am referring to:
<%@ Page Title="" Language="C#" MasterPageFile="~/App.Master" AutoEventWireup="true" MaintainScrollPositionOnPostback="true"
    CodeBehind="Atts.aspx.cs" Inherits="RpcSupport.Atts" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TopMenu" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ReportForm" runat="server">
   <ajx:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true">
    </ajx:ToolkitScriptManager>
    <asp:UpdatePanel ID="AttUploadUpdatePanel" runat="server">
        <ContentTemplate>  
            <table style="width: 100%;">
                <tr>
                    <td>
                        <table style="width: 50%;">
                            <tr>
                                <td width="100px" rowspan="5">
                                </td>
                            </tr>
                        </table>
                    </td>
                    <asp:Table ID="uploadAtttb" runat="server" Height="35px" HorizontalAlign="Center"
                        Width="50%">
                        <asp:TableRow ID="trTitle" runat="server" HorizontalAlign="Center">
                            <asp:TableCell ID="TableCell1" runat="server" RowSpan="1" ColumnSpan="5" VerticalAlign="Top" HorizontalAlign="Center">
                                <asp:Label ID="Label1" runat="server" CssClass="RptPageTitle" Text="Att Entry" />
                            </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow1" runat="server">
                            <asp:TableCell ID="TableCell2" runat="server" RowSpan="1" ColumnSpan="5" VerticalAlign="Top" HorizontalAlign="Center">
                                <asp:Label ID="lblResultMsg" runat="server" CssClass="msgStyle" />
                                <asp:Label ID="lblErrorMsg" runat="server" CssClass="errorStyle" />
                            </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRow2" runat="server">
                            <asp:TableCell ID="TableCell3" runat="server" HorizontalAlign="Right">
                                <asp:Label ID="Lable2" runat="server" Text="Org Name" CssClass="RptFormLabel" />
                            </asp:TableCell><asp:TableCell ID="TableCell4" runat="server" HorizontalAlign="Left" AutoPostBack="true">
                                <asp:TextBox ID="txtOrgID" Visible="false" Enabled="true" runat="server" Width="100"
                                    MaxLength="10" />
                                <asp:TextBox ID="txtOrgName" runat="server" Width="250" CssClass="TextBoxStyle" OnTextChanged="FindOrg"
                                    AutoPostBack="true" MaxLength="100" /> 
                            <ajx:AutoCompleteExtender ID="AutoCompleteAtt" runat="server" CompletionListCssClass="AjaxListStyle"
                                    TargetControlID="txtOrgName" ServiceMethod="GetOrgAttList" ServicePath="Atts.aspx"
                                    MinimumPrefixLength="1" CompletionInterval="200" CompletionSetCount="50">
                                </ajx:AutoCompleteExtender>   
                            </asp:TableCell></asp:TableRow><asp:TableRow ID="TableRowa" runat="server" Visible="true">
                        </asp:TableRow>
                        <asp:TableRow ID="TableRowb" runat="server" Visible="true">
                            <asp:TableCell ID="TableCell5" runat="server" HorizontalAlign="right">
                            </asp:TableCell><asp:TableCell ID="TableCell5a" runat="server" HorizontalAlign="left">
                                <asp:Panel ID="Panel2" runat="server" CssClass="TextBoxStyle" GroupingText="Compoany Number and Name">
                                    <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Height="130px" Width="455" 
                                        CssClass="TextBoxStyle">
                                        <asp:CheckBoxList ID="ChkBoxLstPlan" runat="server" >
                                        </asp:CheckBoxList>
                                    </asp:Panel>
                                </asp:Panel>
                            
                               <div>
                                    <asp:RequiredFieldValidator CssClass="errorStyle" ID="reqVal1" Display="Dynamic"
                                        runat="server" ControlToValidate="txtOrgName" ErrorMessage="'Organization Name' is a required field." />
                                </div>
                                
                            </asp:TableCell></asp:TableRow></asp:Table></tr></table></ContentTemplate>
                       </asp:UpdatePanel></asp:Content><asp:Content ID="Content5" ContentPlaceHolderID="ReportBody" runat="server">
<script type="text/javascript">
    window.scrollTo = function () { }
</script>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Footer" runat="server">
</asp:Content> 

AnswerRe: maintain scrollbar position Pinmemberjkirkerx15 Aug '12 - 17:44 
GeneralRe: maintain scrollbar position Pinmembersc steinhayse16 Aug '12 - 3:46 
GeneralRe: maintain scrollbar position Pinmemberjkirkerx16 Aug '12 - 9:13 
Questionregular expression validator Pinmembersc steinhayse15 Aug '12 - 10:02 
In a C# 2010 web application, I have a regular expression validator that validates if a date is in mm/dd/yyyy format. The control works fine however the message quickly appears when the user enters the date and goes away. The message also appears when the user clicks the next button. I only want the message to appear when the user clicks the 'next' button.
The following is my code:
<div>     <asp:RegularExpressionValidator ID="RegExpresValdate" runat="server" ControlToValidate="txtDate"   CssClass="errorStyle"
   ValidationExpression="^(0[1-9]|1[012])[/](0[1-9]|[12][0-9]|3[01])[/](19|20)\d\d$"
                                  ErrorMessage="Please enter date in valid format (mm/dd/yyyy).">
                                   </asp:RegularExpressionValidator>
                                 </div>
 
Can you tell me what I can do to have the message only display when the user clicks the next button?
AnswerMessage Removed PinmemberSusan Rich15 Aug '12 - 10:24 
GeneralRe: regular expression validator Pinmembersc steinhayse15 Aug '12 - 11:57 
Questionbring footer to bottom Pinmemberjrahma15 Aug '12 - 9:00 
i want to know how can I make the footer row at the bottom of the page even if the content is less? I tried this code but the footer is still not coming the bottom?
 
<asp:Table ID="Table1" runat="server" BorderWidth="1" CellPadding="5" Width="960px" Height="100%" HorizontalAlign="Center">
<asp:TableRow>
    <asp:TableCell HorizontalAlign="Center"><uc1:website_header ID="websiteHeader" runat="server" /></asp:TableCell>
</asp:TableRow>
<asp:TableRow>
    <asp:TableCell><uc1:main_menu ID="mnuMain" runat="server" /></asp:TableCell>
</asp:TableRow>
<asp:TableRow>
    <asp:TableCell><asp:ContentPlaceHolder ID="MainContent" runat="server"/></asp:TableCell>
</asp:TableRow>
<asp:TableRow>
    <asp:TableCell HorizontalAlign="Center" bottom:0px;"><uc1:Website_footer ID="Website_footer" runat="server" /></asp:TableCell>
</asp:TableRow>
</asp:Table>

QuestionASP.Net Routing by routes.MapPageRoute with routeURL and physicalFile is not available in route registration Pinmembermilad137715 Aug '12 - 7:14 
how to register ASP.Net webform route when the url pattern and physical file is not available in registeration time. What I need to do is get the site url and check the database to find the physical file and the query string.
 
If I use routes.MapPageRoute("AllURLs", "{*page}", destinationUrl) I don't know how to get the destinationUrl from database for the requested url?
 
I hope this is clear. Please help me.
AnswerRe: ASP.Net Routing by routes.MapPageRoute with routeURL and physicalFile is not available in route registration Pinmemberjkirkerx15 Aug '12 - 8:15 
QuestionASP.Net 4 Routing with runtime routeURL and physicalFile Pinmembermilad137715 Aug '12 - 6:51 
Please help me on my issue below;
 
I am working on an application to replace URLRewrite with ASP.Net 4 Routing. The requirement is to get the context.Request.RawURL runtime and check the URL in the database to find the physical file (ASPX form) and render that page.
 
This is what I have done but not sure how to render the page without redirection.
 

public class WebFormRouteHandler : IRouteHandler
{
public System.Web.IHttpHandler GetHttpHandler(RequestContext requestContext)
{
return new WebFormHandler();
}
}
 

public class WebFormHandler : IHttpHandler
{
 
public bool IsReusable
{
get { return true; }
}
 
public void ProcessRequest(HttpContext context)
{
string url = context.Request.RawUrl;
 
var destinationURL = GetFromDatabase(url);

context.Response.StatusCode = 301;
context.Response.AppendHeader("Location", destinationUrl);
return;
}
}
 

And In global.asax.cs :
 
public static void RegisterRoutes(RouteCollection routes)
{
var route = new Route("{language}/{*page}", new WebFormRouteHandler());
 
routes.Add(name, route);
 
return route;
}
 
So I want to get the requested URL and look at the database to get the physical file. The physical file may come with query strings. The way I have done above is not good because I am redirecting and mainly it doesn't work.
 
Please help.
QuestionSending SMS through ASP.NET Pinmemberkomalridda14 Aug '12 - 20:00 
I want to send sms through asp.net. Can anybody give me working code please.I want it urgent:(
AnswerRe: Sending SMS through ASP.NET PinmemberAlluvialDeposit14 Aug '12 - 21:05