|
in visual studio 2010 when going in break mode and place the mouse over a var of object type that represent a com object from MS office application the VS visualizer shows as system.__ComObject and list all of the com object members.
how can i get the same information?
Thanks
|
|
|
|
|
Why are you asking the same question again? If you have posted this duplicate question by mistake, please delete this question and wait for people to answer your original question.
|
|
|
|
|
in visual studio 2010 when going in break mode and place the mouse over a var of object type that represent a com object from MS office application the VS visualizer shows as system.__ComObject and list all of the com object members.
how can i get the same information?
Thanks
|
|
|
|
|
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machinekey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
iam getting the above error in my site please help me.
sandeep
|
|
|
|
|
This exception generally appears because Controls using DataKeyNames require Viewstate to be encrypted. And the viewstate hidden field might not have been rendered to the browser with long-running pages, and if you make a postback before it does, the page doesn't know that Viewstate is encrypted and causes the aforementioned Exception.
The problem happens specifically when you postback before the EventValidation field has been rendered.
Workarounds:
1. Set enableEventValidation to false and viewStateEncryptionMode to Never OR
2. Mark the form as disabled and then enable it in script once the load is complete OR
3. Override the Render Event of the page to place the hidden fields for Encrypted Viewstate and Event validation on the top of the form
Have a look at this blog for full details: MSDN Blog: Validation of viewstate MAC failed error[^]
|
|
|
|
|
Hi,
I tried to connect VB.NET with MSAccess which is simple process in which i got error in connection.open()
"The 'Microsoft.Jet.OLEDB.4,0' provider is not registered on the local machine".
Am working with Windows 7 - 64 bit machine. Please help me with the above error.
Thanks
kkct
modified 24-Sep-12 1:42am.
|
|
|
|
|
|
As you are running x64 windows and Microsoft.Jet.OLEDB.4.0 provider is not 64-bit compatible.
It seems to be version problem with the provider.
You can try this option and see if it gets ressolved:
1. From the solution explorer right-click your project then click Properties
2. Click the Build tab
3. Change Platform target from: Any CPU to x86
4. Re-build your solution
This may work.
Thanks
Soumen Mazumder
Happy Coding
|
|
|
|
|
i am create a form skin and i can't create a resize just like a normal form.
|
|
|
|
|
Why not? Is it maximized, do you have trouble using your mouse, what?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
We are looking for a .NET component which will do lookup tables (with interpolation). I've spent hours searching google/forums to no avail.
As the lookup table will be used frequently in a computationally intensive process, speed is of great importance. Ideally we would want to stay away from a database approach as we are not using database/tables anywhere else in the product.
We tried building a component ourselves but were struggling with speed. Our method came down to looping through every single element in the table and comparing it (calculating distance) to what we were trying to lookup. I should mention that we only are dealing with numbers and we have the need for higher dimensions in the table (ie. 1D, 2D, 3D, nD tables).
Can anyone recommend either an exisiting component or should we should try to optimize our algorithm and move to a native C++ implementation to gain speed?
Thx
Hento
|
|
|
|
|
HentoDeluxe wrote: As the lookup table will be used frequently in a computationally intensive process, speed is of great importance. Ideally we would want to stay away from a database approach as we are not using database/tables anywhere else in the product.
Meh, I was just about to recommend the TimesTen database.
HentoDeluxe wrote: Our method came down to looping through every single element in the table and comparing it (calculating distance) to what we were trying to lookup.
Does your lookup have a key that you're comparing to? If yes, try a Dictionary. You might also enjoy benefits from reading up on database-theory; if your data contains several fields that you do for the lookup, it might be a cute idea to have something similar to an index.
HentoDeluxe wrote: Can anyone recommend either an exisiting component or should we should try to optimize our algorithm and move to a native C++ implementation to gain speed?
You need to find the correct approach; changing language isn't going to help much.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hello,
I would like to convert a decimal number (base10) into hexadecimal and then save it into an unsigned char array.
I have an integer whose value increments from 1024 to a max of 2047 in steps of 1 whenever the user clicks a button. At each step I need to convert it to a hexadecimal number and save it into an unsigned char array or 2 elements so that I can send it to a device via USB.
For example:
If I want to send 1955 decimal number I would like to have my unsigned char array as below
Out[0] = 0x07;
out[1] = 0xA3
then I can use my transferdata(out) function.
Can someone help me with this?
thanks in advance
PKNT
|
|
|
|
|
Something like ...
Out[0] = decimalNumber / 256;
Out[1] = decimalNumber % 256;
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thanks for your reply, it works perfect. Looks very simple, wonder why I didnt get that idea (I did many times before in similar ways). These days I have to start thinking from scratch.
PKNT
|
|
|
|
|
Kiran Satish wrote: These days I have to start thinking from scratch. Yeah, me too.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
What is Common Type System (CTS) in .net framework? I'm beginner in .net platform so please define briefly.
|
|
|
|
|
In order to provide the ability to use many different languages in .net, and for components written in one language operate with components written in another, we need to use the same primitive types. These are supplied by the CTS.
|
|
|
|
|
As we develop application in different language so they have different way of defining variable so How CLR will understand this.So for this .net define CTS like in c# we have int in VB we have Integer when they complied they are converted to Sysyem.int32 which is common for both language.
|
|
|
|
|
In Microsoft's .NET Framework, the Common Type System (CTS) is a standard that specifies how Type definitions and specific values of Types are represented in computer memory. It is intended to allow programs written in different programming languages to easily share information.
|
|
|
|
|
* Common Language Runtime
* Dynamic Language Runtimes (DLR)
* .NET Framework Class Library
* Side-by-Side Execution
* Profiling
* Runtime Host
* Application Domains
* Common Type System
* Metadata and Self-Describing Components
* Cross-Language Interoperability
* .NET Framework Security
|
|
|
|
|
Okay..... Do you have a question or something?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
i have a drop down list which have three entry.when i select every entry of dropdownlist then the data show into the gridview...my code behind page is
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Net.Mail;
using System.IO;
using System.ComponentModel;
using System.Drawing;
using System.Web.SessionState;
namespace AccountManagement
{
public partial class Account : System.Web.UI.Page
{
SqlConnection con;
SqlDataAdapter da;
SqlDataReader dr;
DataTable dt;
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
string s = ConfigurationManager.ConnectionStrings["conn"].ConnectionString;
con = new SqlConnection(s);
con.Open();
}
public void bindgrid()
{
cmd=new SqlCommand ("select distinct Fname,Lname from Client_registration_tbl",con);
con.Open();
dr = cmd.ExecuteReader();
GridView1.DataSource = dr;
GridView1.DataBind();
GridView1.Visible = true;
con.Close();
}
public void bindlst()
{
da = new SqlDataAdapter("select distinct Fname,Lname from Client_registration_tbl", con);
dt = new DataTable();
da.Fill(dt);
DropDownList1.DataSource = dt;
DropDownList1.DataBind();
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
da = new SqlDataAdapter("select distinct Fname,Lname from Client_registration_tbl" + DropDownList1.SelectedItem.Text + "", con);
dt = new DataTable();
da.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
bindgrid();
bindlst();
}
}
}
thanksss in advance
|
|
|
|
|
Firstly this is not the ASP.NET forum, which is here[^], and secondly, you forgot to ask a question.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
my que is when i select the second entry of drop down list then the gridview show another entry from database.
|
|
|
|