Going to delete this post... Because its going on wrong direction other than for what it is. Thanks all.
Ravi Mori
Posts
-
IIS hosting -
IIS hostingGood to see people are checking Quick Answers Posts also... Because i never got suggessions whenever i post there.. Sorry to cross post..Deleted from there.
-
IIS hostingHi friends, i have an application which works fine in IIS6 but not in IIS7. If i enable IIS 6 Management Compatibility, then its working fine in IIS7 also. I don't want to enable that. Is there a way I can modify the Setup Project to produce IIS7 compatible application??
-
Add New Row dynamically to Gridview:laugh: Be specific buddy... Try once and then ask if you get any issues. Anyway checkout following link if it helps you: http://amitpatriwala.wordpress.com/2008/04/18/inserting-new-row-in-gridview-in-aspnet-20/[^]
-
Add New Row dynamically to GridviewHave you tried to find about something what you want in web? Just type search keyword "asp .net gridview add new row" in google, you will get satisfaction that you done without anybodys' help.
-
Fail to do binding Template PropertyCreate property in your code and set Source="{Binding RelativeSource={RelativeSource TemplatedParent},Path=PropertyName}" in Image tag of your control template..
-
Retrive Data from Data SourceHi assuming you are talking about SQL database. Please look into following link: http://www.vbdotnetheaven.com/UploadFile/scottlysle/FilteredSdsVB10052008153450PM/FilteredSdsVB.aspx[^]
-
Binding Question!Try something like this.. IsEnabled="{Binding Content.IsValid, ElementName=WizardHost, Converter={StaticResource textBoolConverter}}"
-
wpf tooltip on datagrid cell. [modified]Hi, i have a gridview and in style of celltemplate i define tooltip equals to whatever content that cell have. So it will display blank tooltip while content equals to null. So what to do for not displaying tooltip if data is not available in cell? Any tricks in datatrigger?? Solved : Done by writing following code : <DataTrigger Value="{x:Null}" Binding="{Binding Content, RelativeSource={RelativeSource Self}}"> <Setter Value="false" Property="ToolTipService.IsEnabled"/> </DataTrigger>
modified on Tuesday, April 20, 2010 6:53 AM
-
WPF - UIElement from binded propertyHi friends, Is there any way to get UIElement from its binded property name in wpf? What i want is to focus the first control on the form which has error(error means invalid information). i am using IDataErrorInfo here. Thanks.
-
Entity framework + IDataErrorInfoHi friends, I am using entity framework. Now what i want is to implement IDataErrorInfo interface in all entities. i find following great article (in vb): http://blogs.msdn.com/bethmassi/archive/2008/02/25/simple-validation-with-linq-to-sql-classes.aspx[^] But i don't want to extend all classes by writing in code behind file of model, that is our linq to sql classes. So is there any other way for validating entities in entity data model.
-
Entity data model with Master-detail scenario [modified]Ohhh really?????? Thanks a lot.
-
Entity data model with Master-detail scenario [modified]Sorry but i can read it from here. Can you tell me which lines of the code you are not able to read?
-
Entity data model with Master-detail scenario [modified]hi, I am using entity data model and i have master-detail scenario.(Patient-PatientAddresses) Everything is going on fine if i am updating any data either in master table or detail table. But when i am going to insert a new detail record while updating master entity, it gives me following error : "An object with the same key already exists in the ObjectStateManager. The ObjectStateManager cannot track multiple objects with the same key." I googled so much, but not getting proper idea. Here is my code :
using (var context = new Entities())
{
try
{
var record = (from p in context.Patient.Include("PatientAddress")
where p.PatientId == patient.PatientId
select p).FirstOrDefault();if (record == null) { context.AddToPatient(patient); } else { foreach (var item in patient.PatientAddress) { if (item.EntityKey == null) { context.AddToPatientAddress(item); // <--Throws Exception here. continue; } context.ApplyPropertyChanges("PatientAddress", item); } context.ApplyPropertyChanges("Patient", patient); } context.SaveChanges(); return true; } catch { return false; } }
Any suggessions is appreciated.
modified on Wednesday, February 3, 2010 9:55 AM
-
Ado .net entity data model with My Sql database [Solved]Hi friends.. I used entity data model with Microsoft Sql database since 6 months. But today i use MySql database and generate model for that database. I got error when i insert a record in a table which have relationships with two other tables.This table have unique rows based on those two related tables.So this table don't have any primary key.. I got the following error: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ......." The table in which i insert data have not any primary key..So is it the reason for that error?? Please reply..Please also provide some good links for MySql+EntityDataModel if anybody have..
modified on Saturday, October 31, 2009 7:44 AM
The table in which i insert data have not any primary key..that was the reason for that error..
modified on Saturday, October 31, 2009 7:56 AM
-
How to redirect on first and last page of gridview using object datasource?Thanks a lot.. Pager Settings works for me..
-
How to redirect on first and last page of gridview using object datasource?Hi friends.. I have gridview and i fill data in gridview using ObjectDataSource. I set properties EnablePaging and PageSize for displaying page numbers.. Now what i want to add is "First" and "Last" link on paging..So user can go to either first or last page of gridview by clicking on it.. So how to achieve that? Thanks..
-
Client Application ServicesYou told that your connectionstring,membershipprovider,roleprovider etc. are fine and when you are creating new account, it can't be authenticate.. This might because your new account is still deactivated..so checkout in your database, whether that user is active or not??
-
reauthenticationhi.. checkout below link. If your application running successfully in your visual studio, then following will help you.. http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/[^]
-
Connection Errorhttp://localhost/servicemodelsamples/service/calculatorservice.svc you have to give .svc extension behind your service in your config as well as in code behind and also if you give port 8080(not 8000) in config then also provide it in code behind...