Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: 4 Images change on linkbutton click Pin
sahavasiwebwonders17-Feb-13 21:03
sahavasiwebwonders17-Feb-13 21:03 
GeneralRe: 4 Images change on linkbutton click Pin
Pete O'Hanlon17-Feb-13 22:36
mvePete O'Hanlon17-Feb-13 22:36 
QuestionImages change on linkbutton click Pin
sahavasiwebwonders17-Feb-13 18:24
sahavasiwebwonders17-Feb-13 18:24 
AnswerRe: Images change on linkbutton click Pin
Richard MacCutchan17-Feb-13 21:52
mveRichard MacCutchan17-Feb-13 21:52 
QuestionWebMatrix-Following Pin
Bram van Kampen16-Feb-13 15:12
Bram van Kampen16-Feb-13 15:12 
AnswerRe: WebMatrix-Following Pin
David C# Hobbyist.16-Feb-13 16:19
professionalDavid C# Hobbyist.16-Feb-13 16:19 
GeneralRe: WebMatrix-Following Pin
Bram van Kampen16-Feb-13 17:19
Bram van Kampen16-Feb-13 17:19 
AnswerRe: WebMatrix-Following Pin
N a v a n e e t h16-Feb-13 18:00
N a v a n e e t h16-Feb-13 18:00 
I don't see a good reason to use WebMatrix here. You should probably stick to ASP.NET alone.


Bram van Kampen wrote:

In MFC I stored all this in a C Structure (packed to byte alignment). Do the C# and C++ structures align. Do allignment pragma's exist in C#, How does C# allign DWORDS.(Big End, Little End, or Machine Dependent)
In C#, you can add a StructLayout attribute and with a kind Explicit to the structure. Something like,
[StructLayout(LayoutKind.Explicit)]
public struct Example
{
    [FieldOffset(0)]
    public int foo;
    [FieldOffset(4)]
    public int bar;
}
This allows you to take finer control over alignment.

If you write a wrapper to your native code in C++/CLI, you don't have to worry about structure alignment in C#. Just work with managed objects.
Best wishes,
Navaneeth

GeneralRe: WebMatrix-Following Pin
Bram van Kampen17-Feb-13 14:45
Bram van Kampen17-Feb-13 14:45 
GeneralRe: WebMatrix-Following Pin
N a v a n e e t h17-Feb-13 17:10
N a v a n e e t h17-Feb-13 17:10 
AnswerRe: WebMatrix-Following Pin
Dave Kreskowiak16-Feb-13 18:50
mveDave Kreskowiak16-Feb-13 18:50 
GeneralRe: WebMatrix-Following Pin
Bram van Kampen17-Feb-13 14:50
Bram van Kampen17-Feb-13 14:50 
QuestionWebMatrix Pin
Bram van Kampen16-Feb-13 14:26
Bram van Kampen16-Feb-13 14:26 
AnswerRe: WebMatrix Pin
N a v a n e e t h16-Feb-13 18:01
N a v a n e e t h16-Feb-13 18:01 
QuestionParsing a web page to get just the <p> inner text. Pin
David C# Hobbyist.16-Feb-13 6:49
professionalDavid C# Hobbyist.16-Feb-13 6:49 
AnswerRe: Parsing a web page to get just the <p> inner text. Pin
N a v a n e e t h16-Feb-13 18:32
N a v a n e e t h16-Feb-13 18:32 
GeneralRe: Parsing a web page to get just the <p> inner text. Pin
David C# Hobbyist.17-Feb-13 1:40
professionalDavid C# Hobbyist.17-Feb-13 1:40 
GeneralRe: Parsing a web page to get just the <p> inner text. Pin
Richard MacCutchan17-Feb-13 2:43
mveRichard MacCutchan17-Feb-13 2:43 
Questionexample for using webrequest and webresopnse Pin
arashmousapour16-Feb-13 2:10
arashmousapour16-Feb-13 2:10 
QuestionRe: example for using webrequest and webresopnse Pin
Richard MacCutchan16-Feb-13 2:33
mveRichard MacCutchan16-Feb-13 2:33 
GeneralRe: example for using webrequest and webresopnse Pin
PIEBALDconsult16-Feb-13 5:57
mvePIEBALDconsult16-Feb-13 5:57 
QuestionError: No value given for one or more required parameters ? Pin
taibc16-Feb-13 1:18
taibc16-Feb-13 1:18 
AnswerRe: Error: No value given for one or more required parameters ? Pin
Eddy Vluggen16-Feb-13 1:37
professionalEddy Vluggen16-Feb-13 1:37 
GeneralRe: Error: No value given for one or more required parameters ? Pin
taibc16-Feb-13 1:55
taibc16-Feb-13 1:55 
GeneralRe: Error: No value given for one or more required parameters ? Pin
Eddy Vluggen16-Feb-13 2:05
professionalEddy Vluggen16-Feb-13 2:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.