When try to display datasheet view on a list, i get an error message.
What should be configured and is there any known issue with 64-bit operating system on my PC?
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
I have a gridview with Enable selection and Enable Paging equals to TRUE.
I also set the PageSize of my gridview to 4 so that I only displays 4 rows per page.
The problem is when I click the pager in the bottom of my gridview, my gridview is disappearing and no records appear.
Here is code behind of my gridview:
If e.Row.RowType = DataControlRowType.DataRow Then
e.Row.Attributes("style") = "cursor:pointer"
e.Row.Cells(2).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(3).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(4).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(5).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(6).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
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
Why do I keep getting this error, even when not using any data on the report. When I run the query in SQL server I get a resultset. However when I try to render the report I get this error.
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