|
Cool!
But what have you done till now?
Without seeing your code we can't help you.
|
|
|
|
|
I am using the WebBrowser class in C#.
Then, this class has not member function that get the HttpResponseHeader.
I used WebBrowser control form Toolbox.
The code is very simple.
I laied the WebBrowser control on the Form window.
And I am not getting the HttpResponseHeader...
Help!!!
|
|
|
|
|
As i mentioned...
Quote:
Without seeing your code we can't help you.
|
|
|
|
|
How can I send Zip file code to you?
|
|
|
|
|
No.
You have to post the piece of code which drives you crazy here, on CP forum.
|
|
|
|
|
How can we help?
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
I ask for help, what do you mean? 
|
|
|
|
|
You have asked us to do all the work for you. You have not shown any code that you have done nor have you explained clearly where you are stuck.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Hi,
look for the HttpRequest and HttpResponse classes, and in particular the HttpResponse.Header property. Once you got the headers, you can extract specific info like so:
IEnumerable<string> values;
if (headers.TryGetValues("X-BB-SESSION", out values))
{
string session = values.First();
}
|
|
|
|
|
let me assume that i want to create 2 Tables with FK...etc using C#
what have I from choices.. ADO.Net, Dapper, EF or something else !
- What is the benefit,advantages and disadvantages to use Code First ?
- Should I use normal SQL Server managment Studio to design and create my tables and relationships ?
|
|
|
|
|
I'll throw my opinion into this … but bear in mind that this is only an opinion, I'm sure others will shout me down and that's ok too.
- I cannot think of a single advantage of Code First.
- I personally only ever use SSMS to create my tables, relationships etc.
There are arguments to both sides e.g. entity framework - Code-first vs Model/Database-first[^]
|
|
|
|
|
I agree you . i don't like to use EF for many reasons and yes you have right
EF wrote for you everything and that is the part which is almost don't like it
When things go wrong, you are going to need to look deep into the code from EF wrote for you. So how fast can you read and undersatand the generated code so that you can identify what the issue is and how to fix it? and etc etc .. but sometimes it's interesting to create tabels or use Code first using C# Dapper Plus for instance doing great job about it .
|
|
|
|
|
|
I agree with CHill60 - I always use SSMS.
Data design is too important, it needs careful thinking about if it's going to be both performant and flexible. Far, far too easy to "let the machine do it" and it makes unwanted assumptions about your data that lead to problems later.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: I agree with CHill60 - I always use SSMS.
nice to hear your opinion
|
|
|
|
|
Abdalla Ben Omran wrote: Dapper
As far as I can see, Dapper[^] simply maps the query results to objects. It doesn't provide any utilities for creating or maintaining database structure, other than raw ADO.NET commands.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
yes you are right . i thought its doing Code First as well.
|
|
|
|
|
Richard Deeming wrote: As far as I can see, Dapper[^] simply maps the query results to objects. It doesn't provide any utilities for creating or maintaining database structure, other than raw ADO.NET commands.
look here please. that what i have meant
Online Example | Dapper Plus[^]
|
|
|
|
|
Depends on whether it is new development or "maintenance".
With new development, the requirements and feasibility (e.g. skills; interfacing) dictate the technology.
With maintenance, you stick with what's there.
(it's never as simple as picking items from a menu).
The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.'
― Confucian Analects
|
|
|
|
|
I generally parallel the tables and classes; generally I will write out the class properties and copy/paste via Excel into a new SSMS query window.
If it is an existing table, I will open in design view; then copy/paste into as the properties of a new class object (again via Excel).
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional
|
|
|
|
|
It's interesting.
Are you using VBA code?
|
|
|
|
|
Maciej Los wrote: It's interesting.
Are you using VBA code?
No. i am using C#
Sqlcommand to create tables and using Dapper to read,insert ...etc
what do you use or what do you prefer to use ?
|
|
|
|
|
Well...
I know that you're using C#. I was asking @MadMyche about using Excel in a process of creating/updating database tables.
|
|
|
|
|
oh ja .. sorry i thought you have asked me .
by the way .. do you use IQueryable with Linq ?
|
|
|
|
|
No to the VBA, no Entity Framework, no LINQtoSQL; I am an ADO purist.
But I'll try to explain the process if it helps. After typing this it does seems really wordy and long but after many years of doing it this way it is only a matter of minutes.
- Create class properties in C#
- Copy the properties and paste in Notepad
- Use find/replace to replace spaces with tabs
- Copy the contents and paste into Excel
- Add column for natural index (1,2,3)
- Sort by Net Data Type
- Add column for SQL Data Type alongside NET data type, and populate
- Rerrange columns around to match format of CREATE TABLE syntax
- Copy and paste the desired columns into SSMS new query window
The process for SQL design to a class is similar.
I also reuse/tweak the Excel content to create instances (overloaded constructs) from IDataReaders or DataRows.
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional
|
|
|
|