The following code does not create a view which is sorted by lastname. Why?
View Complete Post
If the view state is the data entered into the form fields then they are supposed to be available in the request parameters or request body. Then why would we need view state for?
i have a database and i create a form with button edit,delete, New Registration..using Formview in asp.net..
everything was working good...
And i write SQL statement to get New ID number into dropdownlist/TextBox when i click button "New Registration".
i can get new(next) ID number after read database
it's also working good
Now i want change it to get ID which was deleted from table and replace
the ID with new record...what i need is when i click "New Registration" i
want get deleted "ID" first and then go to new record ID...
my code is here:-it working for get next ID after read database.
FROM (SELECT ID + 1 AS PANG
EXCEPT SELECT ID FROM Table1)
AS boon WHERE PANG >300000
This is my first visit to the forums, I hope someone here can help me
I'm writing a small webapplication for creating repair tickets and adding comments, really basic
now I'm writing this in MVC2
So I have 2 controllers, 1 HomeController that does everything related to the tickets (listing tickets, creating new ones, editing) and 1 controller for the comments
the edit view for the homecontroller contains a partial view for /comment/create
so /home/edit/ticketnumber can edit the title and status of the ticket on the left side of the screen, the right side of the screen contains the partial view for adding comments
this is done like this:
but if I look at the generated html code when running the app, both save buttons go to /home/edit/ticketnumber
so the comment is never saved.
I hope this makes sense and that someone can help me solve this
Hi, whenever I load an aspx page in vwde2008, I get the message in the subject of this post. After I click Ok on that, I get a dialog box, Unable to Connect to the ASP.Net development center. What can I do to troubleshoot?
I am using Windows XP SP3, vwde2008 with SP1, on a HP desktop. Also using Office 2003 if that is relevant at all.
Why is it that I see the same hash value generated when I use different algorithms for viewstate encryption. I have added below lines to the web.config file
I have created a custom control from scratch and it works fine as in you can build the project that uses it and it works fine at runtime. Problem is when you go to design view the control shows an error in the place of where the control should be rendered.
Error: '<SomeValue>' Could not be set to '<SomeProperty>'
This shows up on all my custom set properties. These properties are created as basic as possible. I can give the properties values in Source view and run the app just fine. I can even add a Onclick event. If I don't set any custom properties the control will render fine in Design view. It's only when I set a value to a custom property.
Property Code Example:
public string Text
string ret = "";
object obj = ViewState["Text"];
if (obj != null)
ret = obj.ToString();
ViewState["Text"] = value;
I've even removed the Category and Description tags with no difference.
I don't know if what I said makes sens, but I hope it
Whenever I open my Crystal Report page, I am taken to the Database Authentication page where I am asked for
User name Data Name Password
Is there a way to avoid this and I save these authentication in my page once.
I am using VS2005, C#.
Any Help will be appriciated.
The Model-View-ViewModel (MVVM) design pattern describes a popular approach for building Windows Presentation Foundation or Microsoft Silverlight applications. Robert McCarter shows you how the ViewModel works, and discuss some benefits and issues involved in implementing a ViewModel in your code.
MSDN Magazine July 2010
Effectively managing user state in web applications can be a tricky balancing act of performance, scalability, maintainability and security. The security consideration is especially evident when you're managing user state stored on the client. Here's what you need to know about view state security.
In this article, you'll learn how to avoid problematic tight coupling by applying the Model-View-ViewModel pattern in Silverlight 2.
MSDN Magazine March 2009
In this article we explain just how simple it can be to build a WPF application the right way using the MVVM Pattern.
MSDN Magazine February 2009
Bloated view state can be a real performance bottleneck for your Web app, but it can be difficult to diagnose. John Robbins creates a handy tool that records and reports the view state size for pages in your ASP.NET applications.
MSDN Magazine November 2007