Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi folks.,
while creating custom section .,if i use xml as db for storing values Instead of using sqlserver as db ..
how to set Alias value to my xml?
how to create parameter in xml as like in sqlserver2005 createParameter()..
int IdReturned = Application.SqlHelper.ExecuteScalar<int> ("insert into corporateCompliance(wrongWord) values(@wrongWord);select @@Identity", Application.SqlHelper.CreateParameter("@wrongWord", Alias)); _returnUrl = "plugins/editCorporateCompliance.aspx?id=" + IdReturned; return true;
You shouldn't use create parameter. You must read your xml, check for last value, increment it, store into xml and return url based on new value
As Petr says, you shouldn't be using the SqlHelper as this tends to write data to the umbraco database, and you want to store data in xml!
Cheers,
/Dirk
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
create parameter ?
Hi folks.,
while creating custom section .,if i use xml as db for storing values Instead of using sqlserver as db ..
how to set Alias value to my xml?
how to create parameter in xml as like in sqlserver2005 createParameter()..
int IdReturned = Application.SqlHelper.ExecuteScalar<int>
("insert into corporateCompliance(wrongWord) values(@wrongWord);select @@Identity",
Application.SqlHelper.CreateParameter("@wrongWord", Alias));
_returnUrl = "plugins/editCorporateCompliance.aspx?id=" + IdReturned;
return true;
You shouldn't use create parameter. You must read your xml, check for last value, increment it, store into xml and return url based on new value
i got this error..
Value cannot be null.
Parameter name: type
As Petr says, you shouldn't be using the SqlHelper as this tends to write data to the umbraco database, and you want to store data in xml!
Cheers,
/Dirk
is working on a reply...