Click here to Skip to main content
15,902,782 members
Home / Discussions / C#
   

C#

 
GeneralRe: get real html code from webbrowser Pin
mabrahao10-May-11 11:33
mabrahao10-May-11 11:33 
AnswerRe: get real html code from webbrowser Pin
Luc Pattyn10-May-11 11:44
sitebuilderLuc Pattyn10-May-11 11:44 
GeneralRe: get real html code from webbrowser Pin
mabrahao10-May-11 11:49
mabrahao10-May-11 11:49 
GeneralRe: get real html code from webbrowser Pin
Pete O'Hanlon10-May-11 12:02
mvePete O'Hanlon10-May-11 12:02 
GeneralRe: get real html code from webbrowser Pin
Dave Kreskowiak10-May-11 12:49
mveDave Kreskowiak10-May-11 12:49 
AnswerRe: get real html code from webbrowser Pin
Nitin S10-May-11 21:12
professionalNitin S10-May-11 21:12 
QuestionMultithreading with task in .net 4. Strange things. Pin
fory_cpp10-May-11 10:05
fory_cpp10-May-11 10:05 
AnswerRe: Multithreading with task in .net 4. Strange things. Pin
DaveyM6910-May-11 10:17
professionalDaveyM6910-May-11 10:17 
AnswerRe: Multithreading with task in .net 4. Strange things. [modified] Pin
Luc Pattyn10-May-11 10:19
sitebuilderLuc Pattyn10-May-11 10:19 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
Smart Arab10-May-11 11:51
Smart Arab10-May-11 11:51 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
Luc Pattyn10-May-11 11:57
sitebuilderLuc Pattyn10-May-11 11:57 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
Alan Balkany11-May-11 3:59
Alan Balkany11-May-11 3:59 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
Luc Pattyn11-May-11 4:28
sitebuilderLuc Pattyn11-May-11 4:28 
AnswerRe: Multithreading with task in .net 4. Strange things. Pin
Mark Salsbery10-May-11 10:23
Mark Salsbery10-May-11 10:23 
GeneralRe: Multithreading with task in .net 4. Strange things. Pin
BobJanova12-May-11 2:00
BobJanova12-May-11 2:00 
AnswerRe: Multithreading with task in .net 4. Strange things. Pin
darkelv11-May-11 14:55
darkelv11-May-11 14:55 
AnswerRe: Multithreading with task in .net 4. Strange things. Pin
wanghao297912-May-11 23:11
wanghao297912-May-11 23:11 
QuestionNotification App Architecture [modified] Pin
programmervb.netc++10-May-11 7:42
programmervb.netc++10-May-11 7:42 
AnswerRe: Notification App Architecture Pin
Mark Salsbery10-May-11 10:12
Mark Salsbery10-May-11 10:12 
GeneralRe: Notification App Architecture Pin
Joshi, Rushikesh11-May-11 3:22
professionalJoshi, Rushikesh11-May-11 3:22 
QuestionGenerate DataSet Table Code Pin
Member 342693610-May-11 5:45
Member 342693610-May-11 5:45 
All,

I have a rather unusual situation, Tried to look for a solution online, but not able to, so I am posting it here.

I have a dataset the loads and fills all the tables during app startup.

When I copy a table and paste it in a notepad I get the following

<?xml version="1.0" encoding="utf-8"?><xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"> <xs:annotation> <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource"> <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> <ConnectionRefs /> <Connections /> <TableRefs> <DesignTableRef Name="IntersectionPedSignalNotes"> <ColumnRefs /> <SourceRefs /> </DesignTableRef> </TableRefs> <Tables /> <RelationRefs /> <SourceRefs /> <Sources /> </DataSource> </xs:appinfo> </xs:annotation> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="NewDataSet" msprop:Generator_DataSetName="NewDataSet"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="IntersectionPedSignalNotes" msprop:Generator_TableClassName="IntersectionPedSignalNotesDataTable" msprop:Generator_TableVarName="tableIntersectionPedSignalNotes" msprop:Generator_TablePropName="IntersectionPedSignalNotes" msprop:Generator_RowDeletingName="IntersectionPedSignalNotesRowDeleting" msprop:Generator_UserTableName="IntersectionPedSignalNotes" msprop:Generator_RowChangingName="IntersectionPedSignalNotesRowChanging" msprop:Generator_RowEvHandlerName="IntersectionPedSignalNotesRowChangeEventHandler" msprop:Generator_RowDeletedName="IntersectionPedSignalNotesRowDeleted" msprop:Generator_RowEvArgName="IntersectionPedSignalNotesRowChangeEvent" msprop:Generator_RowChangedName="IntersectionPedSignalNotesRowChanged" msprop:Generator_RowClassName="IntersectionPedSignalNotesRow"> <xs:complexType> <xs:sequence> <xs:element name="NoteId" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-100" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnNoteId" msprop:Generator_ColumnPropNameInRow="NoteId" msprop:Generator_ColumnPropNameInTable="NoteIdColumn" msprop:Generator_UserColumnName="NoteId" type="xs:int" /> <xs:element name="IntersectionPedSignalId" msprop:Generator_ColumnVarNameInTable="columnIntersectionPedSignalId" msprop:Generator_ColumnPropNameInRow="IntersectionPedSignalId" msprop:Generator_ColumnPropNameInTable="IntersectionPedSignalIdColumn" msprop:Generator_UserColumnName="IntersectionPedSignalId" type="xs:int" /> <xs:element name="Note" msprop:Generator_ColumnVarNameInTable="columnNote" msprop:Generator_ColumnPropNameInRow="Note" msprop:Generator_ColumnPropNameInTable="NoteColumn" msprop:Generator_UserColumnName="Note" type="xs:string" default="" /> <xs:element name="LastUpdated" msprop:Generator_ColumnVarNameInTable="columnLastUpdated" msprop:Generator_ColumnPropNameInRow="LastUpdated" msprop:Generator_ColumnPropNameInTable="LastUpdatedColumn" msprop:Generator_UserColumnName="LastUpdated" type="xs:dateTime" /> <xs:element name="LastUpdatedBy" msprop:Generator_ColumnVarNameInTable="columnLastUpdatedBy" msprop:Generator_ColumnPropNameInRow="LastUpdatedBy" msprop:Generator_ColumnPropNameInTable="LastUpdatedByColumn" msprop:Generator_UserColumnName="LastUpdatedBy" type="xs:string" default="" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> <xs:unique name="Constraint11111111"> <xs:selector xpath=".//IntersectionPedSignalNotes" /> <xs:field xpath="NoteId" /> </xs:unique> </xs:element></xs:schema>



I have a code generator that generates code, and if I use that to generate a different table with the different columns and replace the table name IntersectionPedSignalNotes with IntersectionSignageNotes.

I get the exact same xml code as above, the only difference is the table name. I am hoping to copy this code and paste it in the DataSet so that the new table IntersectionSignageNotes can be created, without me having to add table and columns manually.
Let me know if there are any ideas.

Thanks in advance

Sri
AnswerRe: Generate DataSet Table Code Pin
Luc Pattyn10-May-11 6:07
sitebuilderLuc Pattyn10-May-11 6:07 
GeneralRe: Generate DataSet Table Code Pin
Member 342693610-May-11 7:11
Member 342693610-May-11 7:11 
AnswerRe: Generate DataSet Table Code Pin
Luc Pattyn10-May-11 7:17
sitebuilderLuc Pattyn10-May-11 7:17 
AnswerRe: Generate DataSet Table Code Pin
PIEBALDconsult10-May-11 14:57
mvePIEBALDconsult10-May-11 14:57 

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.