|
I wanna know what exactly way behind the pre class of CP. I mean if we resize the browser then pre tag also resize plus if the text inside it is bigger then it get hori-scrollbars too.
I'm trying the same but scrollbars never appears
pre
{
overflow: auto;
background-color: #666666;
width : 100%
}
any idea ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hello,
I am trying to display in a Dynamic Data app, a custom property added to the partial class of an ADO.NET Entity Framework entity class.
For example, where Person is a entity in a ADO.NET Entity Framework model, I would add:
public partial class Person
{
public string FullName { get { return FirstName + " " + LastName; } }
}
However, with Dynamic Data, it uses the internal System.Web.DynamicData.ModelProviders.EFTableProvider for generating its columns collection which only allows properties defined in the entity model to be displayed - as in only the database columns, not custom added ones.
Does anyone know any work arounds to this, or is it possible and I am missing something obvious.
Seems silly I can't do this. LINQ to SQL with Dynamic Data can do this easy as it uses reflection in its DLinqTableProvider to find all properties in the object, not just those with mappings to database fields.
EFTableProvider's enumerator to create its columns for Dynamic Data:
foreach (EdmMember member in entityType.get_Members()) // only entity DB mapped fields are returned in the Members property
DLinqTableProvider's enumerator to create its columns for Dynamic Data:
IEnumerator<PropertyInfo> enumerator = this.GetOrderedProperties(rowType.get_Type()).GetEnumerator()
where GetOrderedProperties returns a list of properties based on reflection:
PropertyInfo[] properties = type.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly);
Anyone have any thoughts on how to do this effectively?
I need the many-to-many relationship management that Entity Framework provides - otherwise I would stick with LINQ to SQL.
Thanks for any help!
Cheers,
kris
|
|
|
|
|
Why are you adding the custom property? If it is to use in the DisplayColumn metadata attribute, you can override ToString on your entity to return the full name, and remove the DisplayColumn attribute, and the ToString value will be used instead for FK displays.
|
|
|
|
|
I am trying to acheive the same goal. However, when I try and access one of the properties from the entity model that I have configured I get the following error message:
Server Error in '/' Application.
--------------------------------------------------------------------------------
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: CS1061: 'Contracts.CONTRACT_PERIOD' does not contain a definition for 'start_date' and no extension method 'start_date' accepting a first argument of type 'Contracts.CONTRACT_PERIOD' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 39: StringBuilder sb = new StringBuilder();
Line 40: sb.Append("(");
Line 41: sb.Append(this.start_date.ToShortDateString());
Line 42: sb.Append(" - ");
Line 43: sb.Append(this.end_date.ToShortDateString());
Source File: c:\Documents and Settings\...\My Documents\Visual Studio 2010\Projects\...\Contracts\App_Code\Metadata.cs Line: 41
|
|
|
|
|
Hey! Same problem here... Can't believe adding calculated properties can be so hard or even not supported...
Found any solution to this?
Martin
|
|
|
|
|
Hi freinds
I want to implement rating in my project.
in which i want to allow user to give rating for particular user.
my problem is that i want to allow half(50) rating selection to user.
if i m using asp.net ajax control then it will not allow me to select
half star?
so is their other way or other rating control which allow half star selection?
if yer please let me know?
thanks
Regards
Keyur Satyadev
|
|
|
|
|
|
hi
i want to use half rating in image for rate and also showing half image for showing rating.
i know your asp.net ajax rating control but it not allow half rating.
so please refer question and then reply.
ok
Regards
Keyur Satyadev
|
|
|
|
|
keyur satyadev wrote: so please refer question and then reply.
What more do you want? Do you want someone to write it for you? Read the damn articles! Do something for yourself.
only two letters away from being an asset
|
|
|
|
|
i am not telling u that give me the code. just want to know how can we able to implement this.
so thier is no question of writing the code. :
by the way thanks.
Regards
Keyur Satyadev
modified on Thursday, June 18, 2009 9:27 AM
|
|
|
|
|
|
it will not allow user to give half rating for particular user.
thanks for reply.
Regards
Keyur Satyadev
|
|
|
|
|
What is it that you want? This, and the other examples provided to you, do allow half ratings.
Stop asking and start doing!
only two letters away from being an asset
|
|
|
|
|
set count star to 10 and when you give 5 then it will be half.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
keyur satyadev wrote: it will not allow user to give half rating for particular user
Did you read this article?
|
|
|
|
|
Hi,
How to check a session is null?
Thankyou
YPKI
|
|
|
|
|
if (Session["XYZ"] == null)
{
}
himanshu
|
|
|
|
|
Or in VB.Net
If Session("XYZ")=Nothing Then
End If
CC26
|
|
|
|
|
C#
---------------------------
if (Session["user"] == null)<br />
{<br />
<br />
}
living none stoping.
|
|
|
|
|
Hi,
I'm having a problem with session state being lost in the live environment when using Internet Explorer Versions 6,7 or 8.
The application I am working on is www.rugbyroundup.com[^]. The behaviour should be that when a user selects a country they get a different country based page, with different Fixtures and Results available. Then, when clicking on the various Leagues, they should stay with that country. For instance, if you were to select England, followed by National 1 you would still see the England Bar after selecting the National 1 League.
This is happening correctly in Mozilla Firefox. However, in Internet Explorer, after clicking the League, the Country setting returns to international!!! (this can be seen by the change of the flags towards the top of the page).
What is equally infuriating is that when testing against my local development version, it functions perfectly on both browsers!!!
I've done a bit of investigation into the problem. As the page is using IFRAMES I had a look at the article Session variables are lost if you use FRAMESET in Internet Explorer 6[^] but after giving the various resources the appropriate HTTP Headers the problem is still occurring.
I also looked at the Trace when the pages are being run - here is a summary:
LIVE
====
Mozilla
Browse to index
index fires twice with same session variables
select country
index fires twice with same session variables
Got to League
Fires twice with same session variables
IE
Browse to Index
index fires once with correct session variables.
Select country
index fires twice, Second time, the Country code is changed, almost reset
Local
=====
Mozilla
Browse to index
index fires twice with same session variables
select country
index fires twice with same session variables
Got to League
Fires at least once --- does fire twice - page load occurred twice, thread stack was overflown...
IE
Browse to Index
index fires once with correct session variables.
Select country
index fires once with correct session variables
Select League
league.aspx fires once with correct session variables.
I would be grateful for any help with this problem
modified on Thursday, June 18, 2009 10:06 AM
|
|
|
|
|
Respected Sir
This is laxman I have one query please give reply to me that is
How to Set the Size of the textbox According to the Size Of The
Data Plese Send me Reply
Thank u sir
Lakshman
|
|
|
|
|
What do you mean?
Textboxes are generally used to input data from the user.
You want to set the size of the textbox while user types something to the textbox. This is weird.
If this is so, then what size means, you mean width of the textbox. You can set width using javascript.
|
|
|
|
|
|
This will solve your problem to some extent:
<pre>
<asp:TextBox ID="TextBox1" runat="server" onkeypress="return dWd(this);" onkeyup="return dWd2(this);" onkeydown="return dWd2(this);" Width="20"></asp:TextBox>
<script language="javascript">
function dWd(e)
{
var wt=parseInt(e.style.width);
wt+=10;
e.style.width=wt + "px";
}
function dWd2(e)
{
if(event.keyCode==8)
{
if(parseInt(e.style.width)>20)
{
var wt=parseInt(e.style.width);
wt-=10;
e.style.width=wt + "px";
}
}
}
</script>
</pre>
CC26
|
|
|
|
|
Hi im actually working on a project. Actually its about storing and retrieving student details from the data base. I hav totally designed 3 webforms.
1st webform has a login form
2nd webform has 3 buttons in it
3rd webform has the grid view which displays the student records frm DB
Now heres the problem actually when i click button1 in my 2nd webform it must disable the edit and delete option of my grid view in the 3rd webform and wen i click button2 in 2nd webform it must enable the edit and delete option in my gridview in the 3rd webform. the edit and delete are link buttons.
Can anyone plzzz help me its bit urgent...
Thashif
|
|
|
|