|
What is it ? what you want to do ? or you want to tell us something ? Please elaborate
Find More .Net development tips at : .NET Tips
The only reason people get lost in thought is because it's unfamiliar territory.
|
|
|
|
|
public class One
{
public void Different(GridView gv, string url)
{
gv.DataBind();
gv.Caption = url;
}
}
There ya go; exactly to spec.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
I want to view .dwg files in asp.net c# simple applications..How can read .dwg files in asp.net c#.
rajesh kumar
|
|
|
|
|
ASP.Net does not have a native way of doing this. I suggest looking for a browser plugin or some 3rd party tool that will help you do this.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
All the new features of MVC can be implemented by using ASP.Net (it may be tedious way / we may need to write lengthy code to achieve it) then why we need MVC?
e.g.- DAL is there is MVC and ASP.net both
Code behind can be reused by creating Modular coding.
We can return results as per customer need in ASP.Net / WCF.
Viewstate is bulky but we can disable it.
then Why MVC?
|
|
|
|
|
You have to create 2 or 3 MVC projects to really appreciate it. I thought the same thing until project 3 of mine, now I'm not going back to web forms. One of my questions was why use Razor, it's stupid. Now I use Razor as much as I can.
There's just too many reasons why to list here.
For me, I can write windows apps that can access an MVC websites data, read and write.
I've done it in Web Forms, but MVC was way faster to write for me.
And I really like the DAL, Model, Controller part of MVC. For me the View is just another way to output from the controller.
|
|
|
|
|
When you say asp.net you mean webforms, as MVC is still asp.net.
One of the main advantages of MVC is something that people don't really take advantage of, but more of your code is unit-testable as the layers have a greater separation. With webforms your code-behind isn't really testable, but with MVC it is. It also makes your code easier to use\share with ajax calls as the concept of returning html in partialviews is easier to leverage than getting your user controls to return html.
It's just a different presentation paradigm really, and it has its "downsides" too, namely that the page elements out of the box are limited to html elements whereas webforms comes with all manner of rich controls. It also requires a better understanding of html and http which webforms hides from you so people going from webforms to MVC can struggle with that too. A lot of people go from webforms to MVC and their first question is essentially how to use a gridview that has adding\updating\deleting features etc, and people who ask questions like that should just stick to webforms.
|
|
|
|
|
Hey Guys,
I am working on a MVC project and I am having few issues with textbox lost focus event.
First I have a form there are four textboxes field, on first text box we need to pass name of the employee but we have called this textbox lost focus event to populate all records of Employee if it is already in the database but I am having problem when I pass name in the textbox and clicking "save" button then first textbox event called to check if record exist in the database or not then I need to reclick button once again to save my records if not exist.
So in that case I have to click button twice.
Please help with your thoughts I do not want user to click twice.
Thanks
|
|
|
|
|
Parveen Singh wrote: I do not want user to click twice. Then you need to correct your code.
|
|
|
|
|
which jquery event are you using it for?
|
|
|
|
|
perhaps after the check passes, you should unbind the textbox event
|
|
|
|
|
my c#.net projects are in 2.0/3.5 framework.
Now i need to convert it to 4.0 framework. also i need to remove vulnerabilities (sql injection,XSS etc).
So my question is,
do i need to remove vulnerabilities for my solution files (OR)
need to decompile and remove vulnerabilities for each dll??
|
|
|
|
|
You need to fix your source code and rebuild your project(s).
|
|
|
|
|
Yes. I got that. but my question is about the existing DLL's.
Two scenarios(questions):
1. If i have source code for dll, i can do it. but is that necessary?
2. If i dont have source code for dll, then do i need to decompile it (like using dotpeek software) and do modification and again compile it?
|
|
|
|
|
1. Yes
2. Yes
Why would you not have the source code to assemblies that you have written?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Its maintenance project developed few years back.
Guys who developed this project are not here.
so we dont have backup source code of each dll's
Now our ultimate aim is to remove vulnerabilities from our application & pass through server security scan. We thought to do only for main project. But now from this conversation we came to know that we need to decompile all dll's and need to work.
|
|
|
|
|
1. Yes, of course it is necessary. The DLL should be in sync with the source code.
2. Why do you not have the source code? Do you use a proper source control system to protect your applications?
|
|
|
|
|
Currently we started to use. but these existing applications are developed 8 yrs back.
Thanks for your answer(s)
|
|
|
|
|
Karan_TN wrote: these existing applications are developed 8 yrs back. Strange how careless some organisations are. I was used to (manually) storing source code securely, on systems I worked on even back in the 1960s. Long before source control systems had been invented.
|
|
|
|
|
|
Sounds like a book title.
If the complete lack of any other text is a commentary on the state of JavaScript interaction with ASP.NET, I'd have to disagree.
The whole UpdatePanel/ScriptManager methodology does give me a headache, though, I'll agree to that.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Hi,
I want to handle multiple event simultaneously,
suppose i have a web form which contains two buttons one for uploading file and one is downloading files.
what i did here, i clicked on download button, it starts downloading the file, it take time to download the file because file size is 100 MB so in between this i clicked on upload button but this button did not do anything but what i need i should upload the file so that i can work with multiple action on same time. I am using Jquery.
i help me its urgent
Thanks
modified 5-Apr-16 8:19am.
|
|
|
|
|
|
$('#UploadBotton,#DownloadButton').click(function(){
//your code
});
|
|
|
|
|
To the best of my knowledge ...
HTTP is half duplex.
When you talk on the phone in the old days, it was full duplex, both parties can shout at each other at the same time. On a Cell phone, because it's a half duplex radio, one person can talk at a time. This is because there is a up channel and a down channel, sort of like walkie talkies.
With HTTP, its half duplex. When the file is uploading, your talking. When a file or HTML is downloading, your listening or the server is talking.
In a Desktop app, you can create 2 threads, 1 that uploads and 1 that downloads. It's like having 2 cell phones in your hand.
Your question really doesn't have anything to do with this subject forum.
I'm surprised they didn't teach you this in school.
|
|
|
|