|
As far as I know there should not be any case for not working the same code from virtual directory if it works from visual studio.
Are you sure you set the correct path while configuring the virtual directory?
|
|
|
|
|
Perhaps providing us some error messages from your application can help us to figure out what the problem is.
|
|
|
|
|
Error when using virtual Directory is:
Exception Details: System.FormatException: String was not recognized as a valid DateTime.
Source Error:
Line 298: if (str.ToString().Trim().Length > 0)
Line 299: {
Line 300: result = "'" + Convert.ToDateTime(str).ToString("MM/dd/yyyy") + "'";
Line 301: }
Line 302: else
But it is ok from Visual Studio.
|
|
|
|
|
|
Are you sure the current culture is the same between IIS and Visual Studio...?
Try outputting System.Globalization.CultureInfo.CurrentCulture.ToString() on both sites and see if there are any differences.
If this is different, then Convert.ToDateTime(str) will complain.
modified on Tuesday, June 8, 2010 4:16 AM
|
|
|
|
|
This problem is solved after changing Globalization setting in Web.Config File. Previously i had used en_US culture, Now it is changed to en_GB then problem is solved.
Thank you all for yours remarkable helps.
|
|
|
|
|
This might be a culture problem
Try Converting using those 2 options
result = Left(Convert.ToString(CDate(pstr), New CultureInfo("ja-JP")), 10)
or
if your date in Dd/MM/YYYY format then try using very basic method like
result = Strings.Right(pstr, 4) & "-" & Strings.Right(Strings.Left(pstr, 5), 2) & "-" & Strings.Left(pstr, 2)
|
|
|
|
|
hi iam using asp.net with c#
in my client form iam using tabcontainer control with update pannel
in tab container iam having dropdownlist ,onsectedindex changed event i have to visble and unvisble the text box control for that iam getting erroe can you correct my code
<cc1:TabContainer ID="infotab" runat="server" ActiveTabIndex="1" >
<cc1:TabPanel ID="TabBranchpanel" runat="server">
<HeaderTemplate> معلومات الفرع</HeaderTemplate>
<ContentTemplate>
<fieldset><legend> معلومات الفرع</legend>
<table><tr><td>العقد رقم:</td><td><asp:TextBox ID="txtcontractno" runat="server" TabIndex="15"></asp:TextBox></td><td><asp:RequiredFieldValidator ID="reqcontractno" runat="server" ControlToValidate="txtcontractno" ErrorMessage="عقد لا يمكن لا يكون فارغا">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="cccontractno" runat="server" TargetControlID="reqcontractno" Enabled="True" ></cc1:ValidatorCalloutExtender><cc1:TextBoxWatermarkExtender ID="wwcontractno" runat="server" TargetControlID="txtcontractno" WatermarkText="أدخل رقم العقد" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td style="width: 103px; height: 38px;">منطقة:</td><td style="height: 38px"><asp:DropDownList ID="ddlRegions" runat="server"><asp:ListItem Value="Central">مركزي</asp:ListItem>
<asp:ListItem Value="Western">الغربي</asp:ListItem>
<asp:ListItem Value="Eastern">الشرقية</asp:ListItem>
<asp:ListItem Value="Northern">شمالي</asp:ListItem>
<asp:ListItem Value="Southern">جنوبي</asp:ListItem>
</asp:DropDownList></td></tr>
<tr><td style="width: 103px; height: 12px;">مدينة:</td><td style="height: 12px"><asp:TextBox ID="txtcity" runat="server" TabIndex="5"></asp:TextBox></td><td style="height: 12px"><cc1:TextBoxWatermarkExtender ID="wwcity" runat="server" TargetControlID="txtcity" WatermarkText="أدخل مدينة" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td style="width: 103px">منطقة:</td><td><asp:TextBox ID="txtarea" runat="server" TabIndex="6"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwarea" runat="server" TargetControlID="txtarea" WatermarkText="دخول منطقة" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td style="width: 103px">ملاحظات:</td><td><asp:TextBox ID="txtaddress" runat="server" TextMode="MultiLine" TabIndex="8"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwaddress" runat="server" TargetControlID="txtaddress" WatermarkText=" ملاحظات" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td style="height: 96px">تاريخ البدء:</td><td style="height: 96px"><asp:TextBox ID="txtstartdate1" runat="server" TabIndex="18"></asp:TextBox></td><td style="height: 96px"><cc1:CalendarExtender ID="calstartdate" runat="server" Enabled="True" TargetControlID="txtstartdate1"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="wwstartdate" runat="server" TargetControlID="txtstartdate1" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender><asp:RequiredFieldValidator ID="reqfildstart1" runat="server" ErrorMessage="تاريخ البدء لا يمكن أن تكون فارغة" ControlToValidate="txtstartdate1">*</asp:RequiredFieldValidator></td><td>نهاية التاريخe:</td><td><asp:TextBox ID="txtEnd" runat="server" TabIndex="19"></asp:TextBox></td><td><cc1:CalendarExtender ID="Calenddate" runat="server" Enabled="True" TargetControlID="txtEnd"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="wwwenddate" runat="server" TargetControlID="txtEnd" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender><asp:RequiredFieldValidator ID="Reqenddate" runat="server" ErrorMessage="يمكن أن لا تكون نهاية التاريخ فارغ" ControlToValidate="txtEnd">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="ccbranch" runat="server" TargetControlID="reqfildstart1" Enabled="True"></cc1:ValidatorCalloutExtender><cc1:ValidatorCalloutExtender ID="Validatorenddate" runat="server" TargetControlID="Reqenddate" Enabled="True"></cc1:ValidatorCalloutExtender></td><td>تذكير</td><td><asp:DropDownList ID="ddlcontractreminder" runat="server" TabIndex="20">
<asp:ListItem Value="5">5 days</asp:ListItem>
<asp:ListItem Value="10">10 days</asp:ListItem>
<asp:ListItem Value="15">15 days</asp:ListItem>
</asp:DropDownList></td><td style="width: 103px; height: 12px;">نوع تذكير:</td><td><asp:DropDownList ID="ddlremindertype" runat="server">
<asp:ListItem Value="1">PerMonth</asp:ListItem>
<asp:ListItem Value="3">3 Months</asp:ListItem>
<asp:ListItem Value="6">6 Months</asp:ListItem>
<asp:ListItem Value="12">Annually</asp:ListItem>
</asp:DropDownList></td></tr>
<tr><td>Picture:</td><td><asp:Image ID="branchpicture" runat="server" AlternateText="BranchPicture" /></td></tr>
<tr><td><asp:FileUpload ID="FileUpload1" runat="server" /></td></tr>
<tr><td >البريد الإلكتروني:</td><td><asp:TextBox ID="txtemail12" runat="server" TabIndex="17" TextMode="MultiLine"></asp:TextBox></td><td><asp:RequiredFieldValidator ID="reqemail12" runat="server" ControlToValidate="txtemail12" ErrorMessage="يمكن أن البريد الإلكتروني لا يمكن فارغة">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="cccmail" runat="server" TargetControlID="reqemail12" Enabled="True"></cc1:ValidatorCalloutExtender><cc1:TextBoxWatermarkExtender ID="wwmail" runat="server" TargetControlID="txtemail12" WatermarkText="أدخل معرف البريد الإلكتروني" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>دفع المبلغ</td><td><asp:TextBox ID="txtpayamount" runat="server"></asp:TextBox></td><td><asp:RequiredFieldValidator ID="reqpayamount" runat="server" ControlToValidate="txtpayamount" ErrorMessage="يمكن دفع المبلغ لا يكون فارغا">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="cccpayment" runat="server" TargetControlID="reqpayamount" Enabled="True"></cc1:ValidatorCalloutExtender><cc1:TextBoxWatermarkExtender ID="wwwpayment" runat="server" TargetControlID="txtpayamount" WatermarkText="أدخل المبلغ" WatermarkCssClass="textcss" Enabled="True"></cc1:TextBoxWatermarkExtender></td><td>شركة تأجير:</td><td><asp:TextBox ID="txtrentingcompany" runat="server" TabIndex="16"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwwrentingco" runat="server" WatermarkText="دخول شركة تأجير" TargetControlID="txtrentingcompany" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
</table>
</fieldset>
</ContentTemplate>
</cc1:TabPanel>
<asp:UpdatePanel ID="pnlbranch" runat="server"><ContentTemplate>
<cc1:TabPanel ID="tabitinfo" runat="server">
<HeaderTemplate>تقنية المعلومات</HeaderTemplate>
<ContentTemplate>
<fieldset><legend>تقنية المعلومات</legend>
<table><tr><td>اتصال:</td><td><asp:DropDownList ID="ddlconnectivity" runat="server" AutoPostBack="false" OnSelectedIndexChanged="ddlconnectivity_SelectedIndexChanged"><asp:ListItem Value="DSL">DSL</asp:ListItem><asp:ListItem Value="Connect">Connect</asp:ListItem><asp:ListItem Value="Not Available">Not Available</asp:ListItem><asp:ListItem Value="Others">Others</asp:ListItem></asp:DropDownList>
</td></tr>
<tr><td>حساب:</td><td><asp:TextBox ID="txtconnectaccount" runat="server" TabIndex="1"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtconnectaccount" WatermarkText="أدخل معلومات الاتصال" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td colspan="3" style="height: 167px">
<fieldset><legend>نقاط البيع</legend>
<table><tr><td>أجهزة الكمبيوتر:</td><td><asp:TextBox ID="txtcomputers" runat="server" TabIndex="1"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtcomputers" WatermarkText="أدخل أي من أجهزة الكمبيوتر" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>الشاشة:</td><td><asp:TextBox ID="txtmonitors" runat="server" TabIndex="1"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="txtmonitors" WatermarkText=" الشاشة" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td>طابعات:</td><td><asp:TextBox ID="txtprinters" runat="server" TabIndex="1"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="txtprinters" WatermarkText="أدخل أي من الطابعات" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>الماسح الضوئي:</td><td><asp:TextBox ID="txtscanner" runat="server" TabIndex="1"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender5" runat="server" TargetControlID="txtscanner" WatermarkText="أدخل أي من الماسحات الضوئية" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
</table>
</fieldset></td></tr>
</table>
</fieldset>
</ContentTemplate>
</cc1:TabPanel>
</ContentTemplate>
<Triggers >
<asp:AsyncPostBackTrigger ControlID="ddlconnectivity" EventName="SelectedIndexChanged"/>
</Triggers>
</asp:UpdatePanel>
<cc1:TabPanel ID="tablicence" runat="server">
<HeaderTemplate>الترخيص</HeaderTemplate>
<ContentTemplate>
<fieldset><legend>معلومات الترخيص</legend>
<table>
<tr><td> رخصة:</td><td><asp:TextBox ID="txtlicence" runat="server" TabIndex="23"></asp:TextBox></td><td><asp:RequiredFieldValidator ID="reqlicence" runat="server" ControlToValidate="txtlicence" ErrorMessage="الرخصة لا يمكن لا يكون فارغا">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="cclicence" runat="server" TargetControlID="reqlicence" Enabled="True" ></cc1:ValidatorCalloutExtender><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender6" runat="server" TargetControlID="txtlicence" WatermarkText="أدخل رقم الترخيص" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>البريد الإلكتروني هوية:</td><td><asp:TextBox ID="txtlicenceemail" runat="server" TabIndex="24" TextMode="MultiLine"></asp:TextBox></td><td><asp:RequiredFieldValidator ID="reqlicencemail" runat="server" ControlToValidate="txtlicenceemail" ErrorMessage="يمكن أن البريد الإلكتروني معرف لا تكون فارغة">*</asp:RequiredFieldValidator><cc1:ValidatorCalloutExtender ID="Calloutlicencemail" runat="server" TargetControlID="reqlicencemail" Enabled="True"></cc1:ValidatorCalloutExtender><cc1:TextBoxWatermarkExtender ID="wwlicenceemail" runat="server" TargetControlID="txtlicenceemail" WatermarkText="أدخل معرف البريد الإلكتروني" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td style="height: 40px">تاريخ البدء:</td><td style="height: 40px"><asp:TextBox ID="txtlicstartdate" runat="server" TabIndex="25"></asp:TextBox></td><td style="height: 40px"><cc1:CalendarExtender ID="cclicstartdate" runat="server" Enabled="True" TargetControlID="txtlicstartdate"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="wwlicstartdate" runat="server" TargetControlID="txtlicstartdate" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender><asp:RequiredFieldValidator ID="reqlicsdate" runat="server" ErrorMessage="يمكن الترخيص تاريخ البدء لا تكون فارغة" ControlToValidate="txtlicstartdate">*</asp:RequiredFieldValidator></td><td>نهاية التاريخ:</td><td><asp:TextBox ID="txtlicenddate" runat="server" TabIndex="27"></asp:TextBox></td><td><cc1:CalendarExtender ID="ccclicenddate" runat="server" Enabled="True" TargetControlID="txtlicenddate"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="wwlicenddate" runat="server" TargetControlID="txtlicenddate" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender><cc1:ValidatorCalloutExtender ID="ccclicend" runat="server" TargetControlID="reqlicsdate" Enabled="True"></cc1:ValidatorCalloutExtender><cc1:ValidatorCalloutExtender ID="Validatorlicenenddate" runat="server" TargetControlID="reqlicenddate" Enabled="True"></cc1:ValidatorCalloutExtender><asp:RequiredFieldValidator ID="reqlicenddate" runat="server" ControlToValidate="txtlicenddate" ErrorMessage="يمكن الترخيص نهاية التاريخ لا يمكن فارغة">*</asp:RequiredFieldValidator></td><td>تذكير:</td><td><asp:DropDownList ID="ddllicence" runat="server" TabIndex="28">
<asp:ListItem Value="5">5 days</asp:ListItem>
<asp:ListItem Value="10">10 days</asp:ListItem>
<asp:ListItem Value="15">15 days</asp:ListItem>
</asp:DropDownList></td></tr>
</table>
</fieldset>
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel ID="tabsubcontract" runat="server">
<HeaderTemplate>معلومات العقد الفرعي</HeaderTemplate>
<ContentTemplate><fieldset><legend>معلومات شبه العقد</legend>
<table>
<tr><td> العقود الفرعية:</td><td><asp:TextBox ID="txtsubcontractno" runat="server" TabIndex="30"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwwsubcontract" runat="server" TargetControlID="txtsubcontractno" WatermarkText="أدخل عدد الباطن" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td >البريد الإلكتروني:</td><td><asp:TextBox ID="txtsubcontractmail" runat="server" TabIndex="31" TextMode="MultiLine"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwsubcontractmail" runat="server" TargetControlID="txtsubcontractmail" WatermarkText="أدخل معرف البريد الإلكتروني" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td>تاريخ البدء:</td><td><asp:TextBox ID="txtsubstartdate" runat="server" TabIndex="32"></asp:TextBox></td><td><cc1:CalendarExtender ID="cccsubstartdate" runat="server" Enabled="True" TargetControlID="txtsubstartdate"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="wwwsubcontractstartdate" runat="server" TargetControlID="txtsubstartdate" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>نهاية التاريخ:</td><td><asp:TextBox ID="txtsubenddate" runat="server" TabIndex="33"></asp:TextBox></td><td><cc1:CalendarExtender ID="CalendarExtender2" runat="server" Enabled="True" TargetControlID="txtsubenddate"></cc1:CalendarExtender><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender7" runat="server" TargetControlID="txtsubenddate" WatermarkText="حدد التاريخ..." Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td>تذكير:</td><td><asp:DropDownList ID="ddlsubcontractreminder" runat="server" TabIndex="34">
<asp:ListItem Value="5">5 days</asp:ListItem>
<asp:ListItem Value="10">10 days</asp:ListItem>
<asp:ListItem Value="15">15 days</asp:ListItem>
</asp:DropDownList></td></tr>
</table>
</fieldset></ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel ID="tabcontactinfo" runat="server">
<HeaderTemplate>معلومات الاتصال</HeaderTemplate>
<ContentTemplate>
<fieldset><legend>معلومات الاتصال</legend>
<table>
<tr><td style="width: 103px">مدير فرع:</td><td><asp:TextBox ID="txtbranchmanager" runat="server" TabIndex="4"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwmanager" runat="server" TargetControlID="txtbranchmanager" WatermarkText="أدخل اسم المدير" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td style="width: 103px">رقم الهاتف:</td><td><asp:TextBox ID="txtphoneno123" runat="server" TabIndex="9"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwphone1" runat="server" TargetControlID="txtphoneno123" WatermarkText="أدخل رقم الهاتف" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
<tr><td style="width: 103px">رقم الجوال:</td><td><asp:TextBox ID="txtmobileno12" runat="server" TabIndex="10"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="wwmobile1" runat="server" TargetControlID="txtmobileno12" WatermarkText="أدخل رقم الجوال" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td><td >البريد الإلكتروني هوية:</td><td><asp:TextBox ID="txtbranchmanageremail" runat="server" TabIndex="17" TextMode="MultiLine"></asp:TextBox></td><td><cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender8" runat="server" TargetControlID="txtbranchmanageremail" WatermarkText="أدخل معرف البريد الإلكتروني" Enabled="True" WatermarkCssClass="textcss"></cc1:TextBoxWatermarkExtender></td></tr>
</table>
</fieldset>
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
|
|
|
|
|
Can you specify the exception that you are getting?
Regards,
Jamil
|
|
|
|
|
Hi,
I love to learn about HTTP as much as possible. From a long time, I am hearing that, I should use SSL when passing sensitive data. Because, a man in the middle can capture the plain text sensitive data while I am sending the data from my browser to a website. Ok, but I did not find any article talking about how those 'man in the middle' people capture the data !! I searched in google, did not find any! Looks like I am protecting my data using SSL against a mechanism of attack and the mechanism is not available to public. I am highly curious to know about it. Can anyone please give me some links / articles about this ?
By the way, it is just for learning intention. Should it be rude or indecent to discuss about this topic or if it is a sensitive matter, then, you wont have to tell me. But please at least tell me that if it is legal or illegal to learn about it !!
|
|
|
|
|
|
Dear Adam,
Thanks a lot for your reply. I understood the point. So, someone learned this technology and causing a threat for us who worry about protecting our website from them using SSL. But, how that 'someone' learned this technique as there is no article about it anywhere !! For example, if I want to make a software or technology to protect against 'Man in the middle', I will need to learn about it first!, right ? So, even for a honest intension, this technology is not available for public! Is it something like, I will need to experiment about HTTP a lot in my lab and after spending years, I will understand what and how !! If I want to make a software to protect from this attack, I need to go thru all of this 'RE INVENTING THE WHEEL' ? Just because, no one will tell me how this attacks are happening !!
Anyway, thanks agian. The topic is very interesting for me to discuss. I would love to hear more replies about it.
|
|
|
|
|
I think you might be missunderstanding the actual issue.
The issue is that someone has infected either the client machine, a 'man in the middle' server or the actual server itself.
There really isnt much you can do to prevent that as these are things that happen far beyond the control of your server side code.
The reason that people are telling you to implement SSL to avoid the *potential* for this type of attack is because SSL simply encrypts the data before it is sent from the client machine to the server and then it is decrypted on the server side for your code to use.
So long story short, there is nothing you can do aside from enabling SSL on your server which is something you should do anyways if you are dealing with sensitive information.
If you really just want to learn more about that type of attack i would suggest Wikipedia or something of the sort, but im pretty sure your not going to get a bunch of web developers to tell you how to intercept their data
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
Hi
I am implementing Routing in my ASp.NET Web Form Application (.NET 4.0). I guess, Routing always consider the same protocol where the request is coming form. I mean, if my browsing page has url as 'https://www.myDomain.com/login.aspx' and if I have a link in this page which points to a Route, then, my application will redirect to the routing page (by clicking the link) which will be of 'https' protocol. (right ?), in that case, how can I enforce my application to use 'http' protocol in the redirected page using Routing ?
I want to generate the routing url from my code. I learned GetRouteUrl(string routename, routeparameters) will generate the url for me, but how can I get absolute url with http or https for a route ?
Please help!
|
|
|
|
|
Hi
I have a listview inside a DIV which shows the scroll bars. At one time, let's say, 10 rows can be seen. I scroll down and click Edit on 25 row. To my surprise, the scroll goes to the first row (although if I go back to 25th row, the row is in edit mode)
My issue, how I can make sure that the scroll bar maintains its position to 25th row after clicking on Edit button?
Please advise. Thanks
AJ
<style>
.StopScroll1{
Z-INDEX: 20; POSITION: relative;left:-1px; TOP: expression(document.getElementById("divGrid1").scrollTop);
}
</style>
<div id="div1" style="position: relative; width: 100%; width: 700px; height: 200px;
margin: 0px; padding: 0px; overflow: auto; overflow-x: scroll; overflow-y: scroll">
<asp:ListView ID="ListView1" runat="server
OnSorting="Sorting"
OnItemEditing=" EditList"
>
<LayoutTemplate>
<table class="TableReleative TableFH" style="width: 97.5%;" cellspacing="0" cellpadding="0"
runat="server" id="tblGrid">
<tr style="height: 20px;" class="StopScrollTL" runat="server" id="thGrid">
<th style="text-align: center;">
</th>
</tr>
<tr id="itemPlaceholder" runat="server">
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
.....
</ItemTemplate>
<EditItemTemplate>
.....
</EditItemTemplate>
</asp:ListView>
</div>
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
Looks like you page gets a postback when you click the edit link.
If so, try to set the Page.MaintainScrollPositionOnPostBack Property to true to return the user to the same position in the client browser after postback. (i.e. enabling smart navigation, see if it works!)
If not, you will have to use javascripts in order to restore the scrolls. For that, before postback, you need to store the scroll position in a variable and then after page reloads, set it back.
|
|
|
|
|
Hi ,
I am make simple application that send mail automatically after ending week .... so i don't know where i write my code ... what i do i am write my code in button and when i click on button , message sent to all members but i want this done automatically without admin clicks ... just sets date and message sent .
|
|
|
|
|
You want a Windows Service.
Make a Windows Service and just deploy it on a server. It's just that you need to connect to the same database that your application is connecting. It's the database content or configuration settings done in Windows Service that will act a trigger for emails and not application.
You need to communicate with DB using same connection string as you used in your application for saving/reading data.
There will be no manual steps involved. You will be able send email automatically every week.
|
|
|
|
|
you need to create a windows service and deploy it to the server once done you can schedule this windows service to send mails as per your requirments
Regards,
Jamil
Check my latest article
|
|
|
|
|
You can solve your issue by using two methods.
1> you have to create window service, deploy it and install it on server
2> you have to create SQL Job n upload it on server
Hope this solution will help you
|
|
|
|
|
|
Yes, it is called Google.
|
|
|
|
|
Hi all!
I need code upload Video by ASP Classic. Plase help me
Hello
|
|
|
|
|
|