|
The sub is for chemical text and stuff like that
H2O
What is top left, it can mean many things to me.
Besides, that an HTML question, really has nothing to do with asp.net
|
|
|
|
|
Haven't you tried
<sup> This tag defines superscript text.
Example,
<p><sup>23</sup>text contains <sub>4</sub></p>
Output is : 23text contains 4
I guess this what you mean by "top and left of each td". thanks
|
|
|
|
|
thanks you save my life with this good solution 
|
|
|
|
|
Hi
Probably you want to show data in this notation
1 Data 1
Then try with following code
<table>
<tr>
<td border="1"><sup>1</sup> test1 <sub>1</sub> </td>
<td border="1"><sup>2</sup> test2 <sub>2</sub> </td>
</tr>
</table>
|
|
|
|
|
You can use sup tag
<table>
<tr>
<td style border=1><sup>2</sup> test <sub>1</sub> </td>
<td style border=1><sup>3</sup> test2 <sub>2</sub> </td>
</tr>
</table>
|
|
|
|
|
Good Day All
I hope someone can help me. i have a Asp.net web application that is running on 4.51 , When the User login Successfully i return an Object that has info for that user and store this in a Static object. Now my problem is the i
User 1 Login (Welcome James)
and
User 2 Login (WelCome Daniel)
and User 1 refreshes the Page (Welcome Daniel)
My user sessions override each other. i did mess around with the IIS Session before , i just noticed this now. Can anyone help.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
Vuyiswa Maseko wrote: store this in a Static object.
There's your problem - static fields are shared between all threads for all requests to your application. When another user logs in, you replace the value of the static field, and all users will see the information for the last user to log in.
Use the user's Session[^] instead:
public static class UserInfoFacade
{
private const string UserInfoKey = "Some-Unique-Key-Here";
public static UserInfo GetUserInfo(this HttpContext context)
{
if (context == null) throw new ArgumentNullException("context");
HttpSessionState session = context.Session;
if (session == null) return null;
return (UserInfo)session[UserInfoKey];
}
public static void SetUserInfo(this HttpContext context, UserInfo info)
{
if (context == null) throw new ArgumentNullException("context");
HttpSessionState session = context.Session;
if (session == null || session.IsReadOnly)
{
throw new InvalidOperationException("Session is not enabled, or is read-only.");
}
session[UserInfoKey] = info;
}
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Lucky it was not in many places. so i changed the Static Objects to Session . i think i got comfortable with Silverlight model of Dev that uses Cookies and Static objects. All is resolved.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
hello guys! Can anyone help me on this error I'm receiving this error message. The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add to the system.web/httpHandlers section of the web.config file, or add to the system.webServer/handlers section for Internet Information Services 7 or later.
These settings of handlers are already exists in my asp.net project web config I can't understand why this error keeps showing though these settings is already in my web config.
Im using VS2012 and SQL 2008 - Thanks
|
|
|
|
|
Hi,
Have you already done the following ?
Add the following to <system.web> => <httpHandlers> section.
<add verb = "*" path = "Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
And,
Add the following to <system.webServer> => <handlers> section.
<add name = "ReportViewerWebControlHandler" preCondition = "integratedMode" verb = "*" path = "Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Also check this :
Report Viewer Configuration Error[^]
|
|
|
|
|
Yes these settings is already exists in my web config from system.web and system.webserver. I tried also installing the reportviewer redistributed 2012 but still no luck.
your suggestions will be big help. I'm already stuck on this issue for 3 days. : ( need a solution or alternative way to display mg SSRS. tnx
|
|
|
|
|
i got this error
after executing the below code
, newNum1_<%# Eval("ID")%>.value,newNum2_<%# Eval("ID")%>.value,newNum3_<%# Eval("ID")%>)" >update
[AjaxPro.AjaxMethod]
public bool UpdateCoupons(int ID, int CouponsNo,int TripsNo ,int GPSNo)
{
if (CouponsNo == null) CouponsNo = 0;
if (TripsNo == null) TripsNo = 0;
if (GPSNo == null) GPSNo = 0;
try
{
using (Model.NadafaEntities context = new Model.NadafaEntities())
{
context.cap_ChangeCoupons2(ID, CouponsNo, TripsNo, GPSNo, HttpContext.Current.User.Identity.Name.ToLower());
}
return true;
}
catch (Exception ex)
{
return false ;
}
}
i need your help
|
|
|
|
|
Something is wrong with your question!
There is no error message and the code you posted has nothing to do with JavaScript...
Please fix it...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
when click update button , i receive (microsoft jscript runtime error out of memory) message
without updating data
|
|
|
|
|
Your issue is most likely in context.cap_ChangeCoupons2(). Without that code there's not much that can be said about it.
|
|
|
|
|
I am working on a WPF 4.0 app that calls to the back end via an MVC 4 Web API.
I have a view called Injuries. I have an InjuryEntity which contains an ObservableCollection of DocumentEntity.
I'm using an ObservableCollection because the WPF UI is bound as such:
<DataGrid Grid.Row="1"
Grid.Column="0"
Background="White"
ItemsSource="{Binding SelectedInjury.Documents}"
SelectedItem="{Binding SelectedDocument}"
AutoGenerateColumns="False"
FontSize="12"
FontWeight="Normal"
FontStyle="Normal"
IsReadOnly="True"
TabIndex="1200"
Height="130"
Margin="3">
When I call
InjuryEntity.Documents.Add()
everything works fine. I am able to save the data to the DB with no problem.
Now, when I call back into the API to get the Injuries, I get back null. The ENTIRE Injury entity is null, not just the documents.
If I make the ObservableCollection into List<>, then the data comes back fine.
I'm using ObservableCollection because in injury entity's Documents collection makes use of the Collection_Changed event so that I can do:
Documents = new List<InjuryDocumentsEntity>();
Documents.CollectionChanged += Documents_CollectionChanged;
private void Documents_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{
RaisePropertyChanged("Documents");
}
This allows the data grid and other UI elements the be refreshed as soon as a collection item changes.
So, the problem appears to be that MVC 4 doesn't like ObservableCollection.
I've been Googling, but I'm not finding much help.
Can anyone shed some light on this?
Thanks
If it's not broken, fix it until it is
|
|
|
|
|
Have you debug you API method? It may have some logical problems that prevent it to return anything?
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
I think your issue might be that you're trying to use a stateful collection in a stateless context. You can use it for event handling on your UX, but it should be immaterial on the WebAPI. Have you tried setting your expected parameter as Collection<t> or ICollection?
|
|
|
|
|
HOW TO WRITE CODE FOR SELECT MULTIPLE PRODUCTS AT A TIME IN E-COMMERCE WEB APPLICATION BY USING CHECK BOX OR RADIO BUTTONS.
10570172
|
|
|
|
|
|
|
how can I declare Public Enum with strings?
Public Class ImplementationHelper
Public Enum ExcelSheetName
"High Level Benefits"
"Benefits"
End Enum
|
|
|
|
|
You can't. What exactly are you trying to do? Perhaps use Strings in a static class instead.
If these are Excel sheet names you can always do ExcelSheetName.Benefits.ToString() to get the actual string value.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I am trying to declare string which I can use in the project
|
|
|
|
|
You can use CONST
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|