|
|
Hi, i have to globalize a web site in ASP.NET.But i have some problems.If it's (the site)in English everything is ok but when i change to another language (Vietnamese)some texts in website do not fit the cell of the table.For example in the menu i have a text "Contact us",if i change it to Vietnamese it will be "Lien he voi chung toi" .It's a long text and not enough space for next texts .If so it has to be redesigned to fit the text.How to overcome this problem?Thanks for reading.
|
|
|
|
|
Unless you want to create a control that scrolls the text to be able to show more text than there is room for, there is no easy way out.
If the text doesn't fit, it doesn't fit. Make the text shorter, or redesign.
---
b { font-weight: normal; }
|
|
|
|
|
I want to upload a photo and voice, video chapters in my web site...
how must I treat with that in HTML code and the C# code behind in .net..
and thx
|
|
|
|
|
I was watching a video on Atlas. The instructor created DAL using DataSet under App_Code folder. Now, I know it was just a demonstration of Atlas goodies and features etc. but my question is:
1-a: How big of an industry practice is it to create DAL using DataSets mainly through GUI?
1-b: In real world, is it common to create DAL under App_Code folder? If not, then what approach is usually taken to accomplish this?
2: In real-world what is the common use for App_Code folder?
Thanks in advance.
|
|
|
|
|
I never have used DataSets they way they did in that video. I, and all the developers in my company, use Microsoft's Enterprise Library for a DAL.
I use App_Code for the business logic layer.
|
|
|
|
|
1-a: A very common practice. The tool was created for ease of use in creating DataSets, why not use it
1-b: App_Code is one place to put it. However, if you are designing to maximize code reuse (which you should be) then the DAL should be in a seperate assembly.
2: App_Code is where code is placed that you want to make use of in your site. It is compiled at runtime, unless you precompile your site.
|
|
|
|
|
I decided to dust off my asp books and take a swing at web programming again, but the very first thing that happens is I get an error for using <% Option Explicit %>
I have it as my second line of code behind <% Language = "VBScript" %>. Works fine if I take the declaration out...??
This is the error:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30024: Statement is not valid inside a method.
Source Error:
Line 1: <%@ Language="VBScript" %>
Line 2: <% Option Explicit %>
Line 3:
Line 4: <% Dim arrDays(6), iIndex
Source File: c:\inetpub\wwwroot\arrayreference.aspx Line: 2
I am using IIS, and tried both ASP 1.1 and 2.0
I am at a loss...
Thanx in Advance
Jude
-- modified at 13:46 Wednesday 12th July, 2006
|
|
|
|
|
I'm no vb jockey and I don't have much experience with classic asp, but I do know that asp.net really is nothing like classic asp and thats probably the problem. Or maybe you meant you dusted off your asp.net books and I'm just a fool :p
|
|
|
|
|
You are trying to use ASP code in an ASP.NET page.
---
b { font-weight: normal; }
|
|
|
|
|
|
Hello.
I have a WebService (VS2005) constructed from some DLLs.
Each DLL has its own settings (these DLLs are services used in various applications and tasks so I can't have the settings paramaters in one single file).
When I use the DLLs with a Form applications or Console applications everything works fine. when I try them out under a web service is get an error stating that the settings parameters can't be "User-Scoped". I can't have the settings under Application-Scope as I need them to be changed at run-time.
How do I set up setting parameters so they are still read\write for the single instace of the webservice (the webservice is run as a singleton) ?
thanks.
Gilad.
|
|
|
|
|
I have an older project that I updated to .NET 2.0 and there are only two bugs, but I think they are related. As this was a .NET 1.1 site it using forms authentication rather than the membership provider.
Before the update the check box for "remember me" worked and dropped a cookie for 30 days, now this does not work at all. Here is the code:
<br />
Context.User = newUser;<br />
FormsAuthentication.SetAuthCookie(tbUserName.Text, cbRememberMe.Checked);<br />
<br />
if (cbRememberMe.Checked)<br />
{<br />
HttpCookie cookie = Response.Cookies[FormsAuthentication.FormsCookieName];<br />
cookie.Expires = DateTime.Now + new TimeSpan(30, 0, 0, 0, 0);<br />
}<br />
The second problem was just reported to me today. I don't really believe it, but the user claims its true. They say that before the update they could be logged into the site in one IE window then open a new IE window and log into the site as a different user and was able to work with both windows as two different users. In other words each browser started a new session. This no longer happens and honestly I thought that was how it always worked.
Any suggestions would be of great help.
|
|
|
|
|
Well I redid the code in a way that makes sense (with FormsAuthenticationTicket with the expire set) and that changes the time properly, but the cookie does not persist after the window is closed even though it is set true.
|
|
|
|
|
Hello
How I can create a Pascals triangle in aspx
I've done it in ASP (vbscript)
<html>
<head>
<body>
<form methot="GET">
<INPUT type=text value="<%=Request.QueryString("i")%>" name="i">
<input type="submit" name="btnSubmit" value="OK">
</form>
<table border="1" cellspacing="2">
<%
dim tabl(5000,5000)
dim i, j
' Initialisation
For i=0 to Request.QueryString("i")
tabl(i,0)=i
tabl(0,i)=i
Next
' Calcul
For i=0 to Request.QueryString("i")
For j=1 to i
tabl(i,j)=tabl(i,j-1)+tabl(i-1,j)
tabl(j,i)=tabl(i,j-1)+tabl(i-1,j)
Next
Next
' Affichage
For i=0 to Request.QueryString("i")
response.write "<tr>"
For j=0 to Request.QueryString("i")
response.write "<td>" & tabl(i,j) & "</td>"
Next
response.write "</tr>"
Next
%>
</body>
</html>
Thanx.
Yushkoya
|
|
|
|
|
Have you tried pasting this into an aspx? Did it give you errors? Are you trying to use a code-behind and a table control? It would be nice if you gave a specific question.
Logifusion[^]
|
|
|
|
|
It gives me 58 errors...
It was completly different language =(
Can you help me to write this triangle?
Thanx
|
|
|
|
|
Situation:
I have a web user control (.ascx) that consists of several text boxes with validators attached.
If I place this web user control into a View container inside the MultiView control no one validation handler is called and page is always Valid. Investigation shows that validation events simply are not fired by ASP.NET.
If I place the same web user control on the .aspx page it works perfectly.
Documentation does not say of any special behavior of validation inside the MultiView.
Any clues, explanations, tips?
Alexander Turlov
Software development consultant, MCSD.NET
|
|
|
|
|
If your question is still, then I could help if you post your code snippets. Perhaps, my example is simple enough and it's working me when I staticly declare a user control in a View of the MultiView control in the web page .aspx.
|
|
|
|
|
Hi, thanks for the answer, but frankly I don't understand what you mean by "staticly declare a user control in a View". Could you give me an example of the code of such a declaration, please?
As per my code it's mostly an asp.net markup which simply declares all the controls. Because I use standard validation controls there is almost no code behind. Do you want to see a markup?
Thanks in advance.
Alexander Turlov
Software development consultant, MCSD.NET
|
|
|
|
|
I am using Multiview control for displaying tab on my page . here I am writing the code for validation of each tab on my page
I have menu item control as well( i.e TabMenu) to display the tab. on clicking the tab it will validate the current tab
protected void TabMenu_MenuItemClick(object sender, MenuEventArgs e)
{
int nextTabIndex = Int32.Parse(e.Item.Value);
// here TabMultiView is my multiview control
for (int index = 0; index < TabMultiView.Views.Count; index++)
{
TabMultiView.ActiveViewIndex = index;
if (index != nextTabIndex)
{
// here ValidationGroup is the name of validationgroup in my validation control ex: <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Login_x0020_Name" ValidationGroup="ValidationGroup" ErrorMessage="Enter Value"></asp:RequiredFieldValidator>
Page.Validate("ValidationGroup");
if (!Page.IsValid) { return; }
}
}
}
its working perfect
if you have any query regarding this blog please let me know..
Cheers Guys....
Life to Set Hai Boss.......
Shukraj Khadse
Software Engg
Datamatics Global Services
Andheri, Mumbai
|
|
|
|
|
hi,
Can anybody help me in exporting data from datagrid to excel with proper text formatting.
i dont have any problem in exporting data to excel or in number formatting,but my problem is in text formatting
plesae help me.
Bhaskar Sarma
|
|
|
|
|
You don't need to ask if you may ask a question. Just explain your problem, and anybody who knows the solution can reply.
---
b { font-weight: normal; }
|
|
|
|
|
i wanna retrieve data from datagrid column which is filled dynamically by writing code.
The column is filled by writing code
2.i often get the data is used by another user u need permission to acces the data. when i use the database as MSAccess. and oledbdataadapter.
plz any one help me regarding this problems
ashok kumar
|
|
|
|
|
I think it sounds like you have an open connection which you aren't closing somewhere...
|
|
|
|