|
Little pseudocode:
Sub Save_Click
DoSave()
End Sub
Sub Update_Click
DoSave()
DoUpdate()
End Sub
private Sub DoSave()
'Some code
end sub
private Sub DoUpdate()
'Some other code
end sub
|
|
|
|
|
Hi Friends,
I want to add controls dynamically to the form at any position as i wish.For that i want to identify the location on the form(page).How to do it in asp.net 2.0 . I know that so many talented people are here to help us.Please post a better solution for this as soon as possible.
Thankyou to one and all,
Regds,
Hari.
|
|
|
|
|
Hi Friends,
This is HariBabu, I want to drag items from one listbox and drop it in another listbox. I want code for this fuctionality in asp.net with c#. i know so many talented guys are here to help me.
Thankyou Guys(Also Ladies)
Regds,
Hari.
HariBabu Kuricheti
|
|
|
|
|
I am using a Javascript dropdown menu on my page. The drop down is dynamically added during page load an it works fine. The only issue is that, if there are any dropdownlist, listbox controls, the javascript menu is displayed behind the controls.
|
|
|
|
|
is it possible folder browsing using TreeView Control?
samir
|
|
|
|
|
Hi ,
I tried out the sample in
www.codeproject.com/useritems/neuralnetwork.asp[^]
I went through it and implemented.
I have doubts.When i executed the code,i loaded some of the bmp files for Pattern Detection and trained it for 1000 times.[say 8 images ,out of which 4 are same image only]
But it threw error while detection that
"Invalid input Image?Number of inputs doesnot match the number of neurons in the input layer".
Also there they have asked to give ascii value for the image.If i have selected the bmp file of a flower,what could be its ascii value?
How many input patterns i have to load?
please help me....
|
|
|
|
|
Hello:
I am now creating an excel file using xslt with the code below:
dim objFsXML as System.IO.StringReader
dim objXmlTxtWrt as System.Xml.XmlTextReader
dim objXPath as System.Xml.Xpath.XpathDocument
dim objXslTran as System.Xml.Xsl.XslTransform
'Create Output Stream to write the file to disk
objFsXML = New System.IO.FileStream(strExcelFile,System.IO.FileMode.Create)
objXmlTxtWrt = New XmlTextWriter(objFsXML,System.Text.Encoding.Unicode)
'Create Xpath Doc to be given as used while doing the XSL Trannsfor
objStrRdr = New StringReader(dsDataSet.GetXml)
objXmlTxtRdr = New XmlTextReader(objStrRdr)
objXPath = New XPath.XPathDocument(objXmlTxtRdr)
objXslTran = New Xsl.XslTransform
objXslTran.Load(strXSLTempFile)' here throws exception
However, when there is a blank or a special char in one of my headers, i've got an invalid xpath expression which throw an exception
what can i do ?
thx
|
|
|
|
|
I don't know to how to use Cookies in asp.net to remember my client login.
Please hlep me
Thanks
................
|
|
|
|
|
dim mycookie as new HttpCokokie("userinformationName")
mycookie.Value="userinformation"
Request.Cookies.Add(mycookie)
wish it could help u!
|
|
|
|
|
Thanks, but I don't understand yet what is proccess?
................
|
|
|
|
|
|
Hello All...
I am haveing one doubt on my project when i try
to run my project its shows some error
Error while try to run project:Unable to start project debugging
on the web server. The project is not configured to be debuged.
so kindly solve this problem and tell me solution.as early as possible
Many thanks Advance.
Dhulipudi
-- modified at 22:53 Wednesday 23rd August, 2006
hai all please clarify my doubt
|
|
|
|
|
use ctrl+F5 it will run the project
but not in debug mode
Navi
|
|
|
|
|
check this link:
http://support.microsoft.com/kb/306156/EN-US
Neeraj
|
|
|
|
|
I need to create an ASP.NET server side application that will retrieve a MS Word document stored in a MS SQL Server table and then manipulate the document and finally send the document to the requesting user.
I have figured out how to open a DOC file that is stored on the file system using the Word.Application.Documents.Open() method. I also know how to Add a new empty document to the Documents collection. But I can not figure out how to open a document where the content is retrieved from a database table.
Thanks in advance for any help.
spg
|
|
|
|
|
This will help you out,
Onclick event of an linkbuttton (which has file name as text) write this code(change variable names etc...)
sFullFilePath is the file path (Retrieved from database table)
System.IO.FileInfo oFileInfo = new System.IO.FileInfo(sFullFilePath);
if(oFileInfo.Exists)
{
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" +
sOrigFilename);
Response.AddHeader("Content-Length", oFileInfo.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(sFullFilePath);
Response.End();
}
else
{
lblMessage.Text = "The file cannot be found.";
}
Ram
|
|
|
|
|
Ram,
Thank you for your response. Maybe I didn't make myself clear enough. The database does not contain the path to a document it actually contain the binary image of the document. I do not want to read the file from the file system, I want to retrieve the binary data from the database and then manipulate the document before sending it to the users browser.
Thanks
spg
|
|
|
|
|
I have a login form which requires a customer's username and password.
From here I can retrieve the primary key of the customer's row in the table.
I want to know display all the customer's details on the new form?
Thank you
Nothing lasts but nothing is lost
|
|
|
|
|
If you have a properly designed and layered application your data layer should have a method to retreive the customer data based on their ID which can be called from any page in the application and used to display.
only two letters away from being an asset
|
|
|
|
|
Thats exactly wat im looking for to be able to call data depending on the customer ID, how would i do that?
thank you
Nothing lasts but nothing is lost
|
|
|
|
|
Solly74 wrote: how would i do that?
Write it
only two letters away from being an asset
|
|
|
|
|
haha i know i must write but not really sure how to?
thanks
Nothing lasts but nothing is lost
|
|
|
|
|
hi
i have this infuriating problem thats driving me up the wall... I took over a project and wrote the frontend for a site however the admin (someone elses effort) keeps breaking, this code below always return 0 ie: i is always null.
<code>
private void Page_Load(object sender, System.EventArgs e)
{
foo.Text += this.createPage( "foo_test", 2, 3, 18131).ToString()+"::";
}
public int createPage(string name, int order, int page_resource_id, int customer_di_id)
{
string query;
query = "INSERT INTO foo (id, ord, name, page_resource_id) VALUES (?id, ?ord, ?name, ?page_resource_id); SELECT LAST_INSERT_ID();";
MySqlConnection con = new MySqlConnection( ConfigurationSettings.AppSettings["database_connstring"].ToString() );
con.Open();
MySqlCommand cmd = new MySqlCommand(query, con);
cmd.Parameters.Add(new MySqlParameter("?name", name));
cmd.Parameters.Add(new MySqlParameter("?ord", order));
cmd.Parameters.Add(new MySqlParameter("?page_resource_id", page_resource_id));
cmd.Parameters.Add(new MySqlParameter("?id", customer_di_id));
object i = null;
i = cmd.ExecuteScalar();
con.Close();
int result = 0;
if (i != null)
{
result = int.Parse(i.ToString());
}
return result;
}
</code>
i have similar code working fine elsewhere (the frontend) but this ALWAYS fails and the reason.... as soon as the id in foo goes above 65535. It works fine up to then, and then always returns 0.
i've stuck it in one page just test it, theres a whole load of other stuff going on but that all fine its just hereand I really dont get it at all. foo.Text is just a label on a blank page again for testing only
if im being incredibly thick please point it out, but ive been staring at this for hours now and cant work it out and cant find anything on google or anywhere.
ta
t
|
|
|
|
|
going_mental wrote: as soon as the id in foo goes above 65535
There is your clue.
The datatype of the id field seems to be a smallint, which has a maximum value of...drum roll please...65535. Try using a mediumint or an int, depending on how large you think the table will grow.
only two letters away from being an asset
|
|
|
|
|
hi mark
if only that was the problem my life would easier.....;)
the frontend uses the same database and table and doesnt have this issue and does a very similar thing ie: inserts a record grabs the last insert id and uses it as a reference in another table.
the id datatype is an int so should be fine.
something somewhere is having issues with it no longer being a smallint but i cant for the life of me se what.
t
|
|
|
|