|
Implementing https will help you reduce 'sniffer' risks on the web service.
|
|
|
|
|
I have MVC 4 intranet application which is deployed on IIS. when i pass my credentials it gives Not Authorized error.
I have checked the permission on folder and has set the window authentication in IIS also but still i am getting the error. How can i solve this.
Also how can i have log out button in intranet application?
|
|
|
|
|
nitin_ion wrote: I have MVC 4 intranet application which is deployed on IIS. when i pass my credentials it gives Not Authorized error.
This will depend on the type of authentication you are using.
nitin_ion wrote: Also how can i have log out button in intranet application?
You can put a button and then abandon session in the log off code.
|
|
|
|
|
Hi All,
I have visual studio 2005 professional edition on my laptop; where I've crystal report as integrated part of the VS
Could you please tell me ,How can I add check box to the grid view for a web application in the VS 2005?
There is other machine where I am supposed to develop my application,this system is bit slow and is under change of the environment. On this machine, I have license for crystal report 9 and for SQL server 2008 R2. due to speed /memory issues I cant install vs 2005 package here.
* My goal is to show data in the gridview,add check box, depending up on checked 'yes' status crystal report would show invoice for individual.
previously I've used VB 6 ; I have attached crystal report to the application so I know there is a way to go I am not sure correct method
with Visual studio 2008 express edition, I am able to get details which checkbox is checked but I am unable to call crystal report.
can anyone please give some example where we can call crystal report into vs web2008 express edition ?
with VS 2005 Pro edition I am unable to add checkbox to the gridview.
can anyone please give me some example to add checkbox in the grid view and attach crystal report 9 or call exisiting crystal report ?
I dont want to buy VS 2008 license at this stage, instead I would like to start development with exisiting tools - prefer to move VS 2005 to the new machine. (what would you recommend?)
In the long run I would like to run this application on the internet as well as intranet.I dont want any fancy application but basic functionality to register online for free & paid events
1. to show basic & relevant data and online event registration facility.
2. Event registration
2. a simple secured website application where I can integrate crystal report as reporting tool- user can export report to excel/ pdf /word or other available formats;
please ..Please help me with some advise and help on this; I am searching for these answers on the internet but Couldnt get a concrete answer
Please help me with this
Many thanks!
|
|
|
|
|
I'm using the jTable plugin of jQuery in my CRUD application. My problem is, when I click on the update icon, the changed values appear in the jtable , but on the data base side nothing seems to be changed. I just can't figure out.... what's the source of this problem ??? here's the script for my view :
@ModelType jTableSampleDatabaseLayer.Hik.JTable.Models.Concour
@Code
ViewData("Title") = "Filtering"
End Code
@section CssImport
<style>
div.filtering {
border: 1px solid #999;
margin-bottom: 5px;
padding: 10px;
background-color: #EEE
}
</style>
end section
<div class="filtering">
<form>
<label>Numéro: <input type="text" name="numero" id="numero" />
<label> Type: @Html.DropDownList("numero_type", DirectCast(ViewBag.types, IEnumerable(Of SelectListItem)), New With { .id = "numero_type" })
Nature: @Html.DropDownList("numero_nature", DirectCast(ViewBag.natures, IEnumerable(Of SelectListItem)), New With { .id = "numero_nature" })</label></label>
<button type = "submit" id="LoadRecordsButton">Rechercher</button>
</form>
</div>
<div id="Tableau" ></div>
<script >
$(document).ready(function () {
//Initialize jTable
$(
title:
actions: {
listAction:
deleteAction:
updateAction:
createAction:
},
fields: {
numero_concours: {
title:
width:
key: true,
create: true,
edit: false,
columnResizable: true,
columnSelectable: true
},
numero_type: {
title:
width:
options:
},
numero_nature: {
title:
options:
width:
},
numero_etape: {
title:
options: {
width:
},
titre_concours: {
title:
width:
},
date_de_sortie: {
title:
width:
type:
displayFormat:
inputClass:
},
nbre_rangs: {
title:
width:
},
nbre_matchs: {
title:
width:
}
}
});
//Re-load records when user click
$(
e.preventDefault();
$(
numero: $(
typeId: $(
natureId: $(
});
});
//Load all records when page is first shown
$(
});
</script>
the script from the controller :
<HttpPost>
Public Function UpdateConcours(concours As Concour) As JsonResult
If (Not (ModelState.IsValid)) Then
Return Json(New With {Key .Result = "ERROR", Key .Message = "Form is not valid! Please correct it and try again."})
End If
Try
_repository.ConcoursRepository.UpdateConcours(concours)
Return Json(New With {Key .Result = "OK"})
Catch ex As Exception
Return Json(New With {Key .Result = "ERROR", Key .Message = ex.Message})
End Try
End Function
and the script for the UpdateConcours in my MemoryConcours Repositroy :
Public Sub UpdateConcours(concours As Concour) Implements IConcoursRepository.UpdateConcours
Dim foundConcours As Concour = _dataSource.Concours.FirstOrDefault(Function(s) s.numero_concours = concours.numero_concours)
If IsNothing(foundConcours) Then
Return
End If
foundConcours.numero_concours = concours.numero_concours
foundConcours.nbre_matchs = concours.nbre_matchs
foundConcours.nbre_rangs = concours.nbre_rangs
foundConcours.numero_etape = concours.numero_etape
foundConcours.date_de_sortie = concours.date_de_sortie
foundConcours.numero_type = concours.nbre_rangs
foundConcours.titre_concours = concours.titre_concours
foundConcours.numero_nature = concours.numero_nature
Dim e As Concour = (From o In x.Concours Where o.numero_concours = concours.numero_concours Select o).First()
x.Entry(e).OriginalValues().SetValues(concours)
x.ChangeTracker.DetectChanges()
x.SaveChanges()
End Sub
ps: while the updating there's no error message it is just that the values are updated on the table but not on the data base side !!
|
|
|
|
|
code to add Calendar control in month view,week view and day view formats
|
|
|
|
|
Yes, but you forgot to include it.
Veni, vidi, abiit domum
|
|
|
|
|
Hi,
Can anybody help me, how to do multi language website in ASP.NET using c#.
o
one thing i know that is, using local resources where for each word we have to give
its meaning in all the laguages. But what if i have 100's of pages then how to write.
Plz help/suggest me.
BEST REGARDS,
ABDUL SUBHAN
|
|
|
|
|
You can use multiple resource files one for each language or more then one per each language it does not matter.
And all your pages can ref them, and don't think of each resource location just a a single string.. think of it like a blob of data... of some type string, sentence, picture, etc..
You then create the instance of that resource and store it in a common resource file and then you can all it from anywhere.
http://www.codeproject.com/Tips/580043/How-to-make-a-multi-language-application-in-Csharp
=)
|
|
|
|
|
Having resource files is a decent solution and maintainability is not difficult if you have one file that contains all the keys.
|
|
|
|
|
I'm working on a dynamic data website with linqtosql dbml file. Could anyone please help in giving some examples on how to update records displayed in a formview that allows paging? The formview exists in the "Edit.aspx" page with DefaultMode="Edit" and DataSourceID="DetailsDataSource" where "DetailsDataSource" is a LinqDataSource with EnableUpdate="true". The bottomrow of the formview contains a LinkButton with CommandName="Update" to perform the update operation. Once I change some info in the bounddatafieds and then click on the linkbutton, the formview loads with empty datafields and no updates are saved to the database.
Any help will be much appreciated.
Thank you.
|
|
|
|
|
create update method to write a code of Update.. then create object of your table.. the property of the object created shows your table field.. assign user entered values to that property.. then pass the object of table created to update method.. in update method write a code to access all the records of table and compare the id.. assign the comparision to a var type variable.. the var type variable shows list of fields in table.. assign the object to the var variable type.. then use GetModifiedMembers(variable);
the record is updated
|
|
|
|
|
count how many times a radio button is selected and ans is shown in a text box
|
|
|
|
|
In the radio button checked event you can set one counter and each time you check that increase the value by 1.
store that in temp table(if you want) and display that value in textbox..
Hope this will do the trick..
|
|
|
|
|
Oh, you have to do some homework?
Or is it a suggestion for "Training Questions for Students (beginner level)"?
|
|
|
|
|
you need a counter which increment each time when radio button is checked
|
|
|
|
|
Make a variable public or private. using public to make it more easy to understand... and place it outside your function so it holds its value after each click.
private will also work, but then it is accessible only within the class itself.. that is a whole different discussion.
public int counter =0;
then in your click event for the radio button increase the counter.
counter++;
should do the trick...
Not going to write it for you though.
=)
|
|
|
|
|
you also can do by the javascript here when radio button is clicked start your counter and store it in a cookie and each time clicked increase the counter this will be client side functionality 
|
|
|
|
|
Sir, Please help me for creating a multilingual website for dynamic page in asp.net, I finds my solution my they provide a solution for static data in multi language, but i have a requirement for dynamic data comming from data base & show in multilanguage, i would like to clear you one thing data is saved in database in english language.
|
|
|
|
|
To the best of my knowledge, you have to save the data in each language in the database.
|
|
|
|
|
When it comes to textual data which have to be localized: no, that is not possible. Such magic cannot (yet) happen.
When it comes to numbers or dates or non-localized texts (names): no problem. Make sure that you use string.Format() for creating the output texts, e.g.
string name = [from your database];
DateTime lastVisit = [from your db];
string greeting = ResourceManager.GetString(...);
string output = string.Format(greeting, name, lastVisit);
|
|
|
|
|
Assertion Failed: Unrecognized tag script:webpartmanager
I am using Asp.net webpartmanager as mentioned below.
<asp:webpartmanager id="WebPartManager1" runat="server">
I am getting error Assertion Failed: Unrecognized tag script:webpartmanager in chrome browser. It works fine in IE and Firefox.
Could some one help me to fix the issue please?
Thanks in advance.
ravi
|
|
|
|
|
What a coincidence.
May I ask you to not cross-post your question across different web pages?
You asked the same question here[^] and here[^].
cheers,
Leroy
|
|
|
|
|
I don't see the problem with posting to different sites. It's when a question is posted to multiple forums on the same site that it gets annoying.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
our company has website which has been developed by asp.net web form and hosted in shared location in ORCSWEB company. web site has a specific page from where people upload their CV. when a new CV is uploaded then few entry stored in database and cv file stored in folder where our web site hosted. database is also maintain at ORCSWEB end.
i have developed a win service which run in our office and it periodically query the remote database for new CV. if found any then it will download that CV file in local machine and as well as remote cv data from remote db to local db and update a filed called isDownloaded=1 in remote db as a result next time that same records will not be queried or checked.
the whole web part and win service part working fine but now our IT head want to change in web & win service logic bit.
he wants that when any new candidate upload their CV through our site then a notification will be send to our win service after 5 minute from web apps. after getting notification from web apps then win service will download the cv.
now i am not being able to thing how to design our web apps which can send some notification directly to our win service which is running in our office because there is no physical connection or accessibility between two pc where our win service & web apps are running. our win service is running in our private network and web apps is hosted in another company machine.
some told me this can be achieve through WCF but did not guide me how to develop this kind of bridge between win service & web apps through which communication will be possible.
i know lots of experienced & scholar developer always monitor this site and that is why i like to ask them how this problem can be sorted. what logic i need to use to send notification from our web apps to win service.
so please guide me with all possible way to develop a system which solve our purpose. discuss all possible way like wcf or anything else which can be use to develop apps which enable me to achieve our goal. looking for elaborate discussion and guidance. if possible give me few sample code & links which give me idea to write code for our situation. thanks
tbhattacharjee
|
|
|
|