|
you put those radiobuttons or drop down in a placeholder and on button click use placeholder1.findcontrol("controlname") to find the required control.
|
|
|
|
|
Hi All,
I am not kidding but finding very difficult to disable a buton after clicking once so that user should not click same button multiple times.
I tried Javsacript , jquery ...
Its disabling the button but then form is not getting submitted
Help really appreciated
One more thing its ASP.NET MVC application.Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Hi there
I'm using VS2008, sql2005, my web has a few controls, I don't know esacty when it's happen, the aspnet_wp.exe is using a lot of memory, my workstation has 3 Giga ram.
And the real problem is this: a clic butoon take over 2 minutes, this mean the postback is takin 2 minutes.
I've desactivate all conextions with DB, even has a Ajax controls(toolkit).
I've put some brackpoints but between on clic and the first code line take that time.
Help me please I'm COUNTDOWN TO RELEASE
http://i.imagehost.org/view/0011/cachco
|
|
|
|
|
You can track the issue with performance counters.
|
|
|
|
|
Can you tell me how do that?
so, when I got that, what is the next move?
tx U
|
|
|
|
|
There are several Business Databases i.e. BusinessDB1, BusinessDB2, etc... and a LoginDB.
The LoginDB is used by the login control. i.e. To register and authenticate a user.
On registering a new user, I would like to be able to assign a BusinessDB to s/he so that when they try to log in, then the system uses s/he BusinessDB.
Question:
How can I assign a user to a BusinessDB?
Thanks
|
|
|
|
|
select which connectionstring to use from a value stored together with the user in the LoginDB. My postings are a natural product. The slight variations in spelling and grammar enhance their individual character and beauty and are in no way to be considered flaws or defects.
|
|
|
|
|
But how can I add this connectionstring t othe LoginDB?
rememeber that the LoginDB is to do with the login control and I do not know how to interfere with it's tables...
Thanks
|
|
|
|
|
Well, you obviously need to have access to the logindb to be able to store data in it. My postings are a natural product. The slight variations in spelling and grammar enhance their individual character and beauty and are in no way to be considered flaws or defects.
|
|
|
|
|
|
Hi all,
As per the requirement my machine language settings are set to Italian language.
while generating reports in my application i am facing a problem that
i have a column called timespent lets say eg: 1.5 units
We are showing the report in excel formate.
Note:- In Italian formate "1.5" should be display as "1,5"
------
I am applying following style to out put record set of "TIME_SPENT" but i am getting the out put '1.5 but required Output is "1,5"
sbrHTML.Append("<style>.timespend { mso-number-format:@;} .premium { mso-number-format:$\\#\\,\\#\\#0\\.00;} .ogDate {mso-ignore:padding;mso-generic-font-family:auto;mso-font-charset ;mso-number-format:yyyy-MM-dd;mso-background-source:auto;mso-pattern:auto;} </style>");
sbrHTML.Append("<td class=timeSpent>" + sqlDatareader["TIME_SPENT"].ToString() + "</td>");
out put:'1.5
Please can any can help on this.
Thanks in advance,
subbu.
|
|
|
|
|
Excel does not support decimal, which means it's exported as string instead.
Try converting to double before exporting. Or converting to string yourself using the correct locale before exporting.My postings are a natural product. The slight variations in spelling and grammar enhance their individual character and beauty and are in no way to be considered flaws or defects.
|
|
|
|
|
Thanks alot as per you suggestion i did its working fine.
Regards,
Subbu.
|
|
|
|
|
You're welcome My postings are a natural product. The slight variations in spelling and grammar enhance their individual character and beauty and are in no way to be considered flaws or defects.
|
|
|
|
|
Hi everyone,
I have the following web method as shown below. Can anyone tell me how can i call this web method in an asp.net webpage? The result that i want to obtain from calling this web method would redirect me to another web page. thanks in advance.
[WebMethod]
public int DoIT()
{
// Get the hostname
string myHost = System.Net.Dns.GetHostName();
string connect = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=C:\\inetpub\\wwwroot\\Request\\App_Data\\TV.mdb";
string query = "SELECT COUNT(IPAddress) FROM Request WHERE IPAddress = ?";
int result = 0;
using (OleDbConnection conn = new OleDbConnection(connect))
{
using (OleDbCommand cmd = new OleDbCommand(query, conn))
{
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddWithValue("IPAddress", myHost);
conn.Open();
result = (int)cmd.ExecuteScalar();
}
}
return result;
}
|
|
|
|
|
If you want to call the WebService from the client then you can use ASP.NET AJAX for this, check this links:
http://www.asp.net/ajax/
http://www.asp.net/ajax/documentation/live/
http://www.asp.net/AJAX/Documentation/Live/tutorials/ASPNETAJAXWebServicesTutorials.aspx
|
|
|
|
|
Use AJAX PageMethods to access them.
|
|
|
|
|
Hi, I have an web application. I am lossing sessions and static variables become null if i use the following code in my application.
public string _xmlfilepath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Code\\Culture.xml");
public string _userfilepath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Users");
Even when i am using this code...the sessions are lost
_userfilepath = Request.PhysicalApplicationPath + "Users\\";
_xmlfilepath = Request.PhysicalApplicationPath + "App_Code\\Culture.xml";
If i use this code then its working fine.
Adding paths in web.config
<add key="UserPath" value="F:\MyFolder\Users\" />
<add key="CultureXML" value="F:\MyFolder\Admin\Culture.xml" />
Later i am retirving those paths in application
public string _userfilepath = ConfigurationManager.AppSettings["UserPath"];
public string _xmlfilepath = ConfigurationManager.AppSettings["CultureXML"];
But I dont know the drive names etc at client location to place my application. If i use the appdomain code then where ever this code placed the files will create in that directory itself. But the problem is i am loosing sessions and static variables becoming null. Due to this exceptions are arising.
How can i overcome this issue?G. Satish
|
|
|
|
|
|
Yes. I tried now by using Server.MapPath(). But still same problem loosing sessions and static variables becoming null. G. Satish
|
|
|
|
|
Dear Experts
I have gridview with bound with objectDatasource. I want to order by all the results with date. I can not see the property of objectdatasource that can order the result by date. I am waiting for your help please
My code is give as
<asp:ObjectDataSource id="odsCaseMovement" runat="server" OldValuesParameterFormatString="original_{0}"
TypeName="Atlas.Core.ObjectDataSource.odsV_CaseEnquiry" SelectMethod="odsLoadCaseByBarCode" OnSelected="odsCaseMovement_Selected">
<SelectParameters>
<asp:ControlParameter ControlID="txtCaseBarcode" Name="par_caseBarcode" PropertyName="Text"
Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
The gridview is
<acc:AtlasGrid id="grvCaseMovement" runat="server" Width="98%" CssClass="GridTable" DataSourceID="odsCaseMovement" PageSize="20"
AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" OnRowDataBound="grvCaseMovement_RowDataBound">
<RowStyle CssClass="list_row" />
<PagerTemplate>
<div style="width: 100%; text-align: center;">
<asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
Style="color: black"><< First</asp:LinkButton>
<asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="LinkButton2" runat="server"
Style="color: black">< Prev</asp:LinkButton>
[Records
<%= grvCaseMovement.PageIndex * grvCaseMovement.PageSize + 1%>
-
<%= grvCaseMovement.PageIndex * grvCaseMovement.PageSize + grvCaseMovement.Rows.Count%>
Of
<%= Atlas.Core.ObjectDataSource.odsV_CaseEnquiry.rowCount%>
]
<asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
Style="color: black">Next ></asp:LinkButton>
<asp:LinkButton CommandName="Page" CommandArgument="Last" ID="LinkButton4" runat="server"
Style="color: black">Last >></asp:LinkButton>
</div>
</PagerTemplate>
<Columns>
<asp:BoundField DataField="ID" HeaderText="Case ID" Visible="False" />
<asp:BoundField DataField="Barcode" HeaderText="Case Barcode" SortExpression="Barcode" />
<asp:BoundField DataField="OriginalDate" HeaderText="Date Generated" SortExpression="OriginalDate" DataFormatString="{0:dd/MM/yyyy}" />
<asp:BoundField DataField="Date" HeaderText="Delivery Date" DataFormatString="{0:dd/MM/yyyy}" />
<asp:BoundField DataField="AccountName" HeaderText="Account Name" />
<asp:BoundField DataField="AccountNumber" HeaderText="Account Number" />
<asp:BoundField DataField="Loaded" HeaderText="Date & Time Loaded" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" />
<asp:BoundField DataField="POD" HeaderText="Date & Time Delivered" SortExpression="POD" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" />
<asp:BoundField DataField="State" HeaderText="Status" SortExpression="State" />
<asp:BoundField DataField="Name" HeaderText="Drop Point" SortExpression="Name" />
<asp:BoundField DataField="RouteNumber" HeaderText="Route Number" SortExpression="RouteNumber" />
<%--<asp:BoundField DataField="Returning" HeaderText="Job Type" SortExpression="Returning" /> --%>
<asp:TemplateField HeaderText="Job Type">
<ItemTemplate>
<asp:Label ID="lblJobType" runat="server" Text='<%# Eval("Returning")%>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Asset">
<ItemTemplate>
<asp:Label id="LabAsset" runat="server" Text='<%# Eval("AssetID") %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="AssetType">
<ItemTemplate>
<asp:Label id="LabAssetType" runat="server" Text='<%# Eval("AssetTypeID") %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Warehouse Poistion" ItemStyle-Wrap="false" SortExpression="WarehousePosID">
<ItemTemplate>
<asp:Label ID="lblWarePos" runat="server" Text ='<%# Eval("WarehousePosID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerStyle CssClass="GridTablePagging" />
<HeaderStyle CssClass="GridTableHeader" />
</acc:AtlasGrid>
|
|
|
|
|
|
It is most like the code you refer.
But in my case sorting is working fine, As you have already noticed I am using AtlasGrid.
I want to load data sorted by DeliveryDate on PageLoad.
Thanks for you intrest in my problem
|
|
|
|
|
So why not just sort as: select [Column1], [Column2],... from [Table} order by [Column] in the underlying sql?Tychotics: take us back to the moon
"Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars."
H. G. Wells
|
|
|
|
|
Actually I am using EasyObject and I do not have access to EasyObject Code and Database server. I have to order it by date in HTML code or code behind
|
|
|
|