I didn't get you when you said this isn't your code. My question is how do i change the mode in detailsview after clicking update button to readonly back
I tried databind method, disabling view state but none of them works....
User Profile
Collapse
-
Hello,
Please, if anyone could help me out.
Many Thanks,
TejuLeave a comment:
-
Hello,
Thanks, for your concerned reply, it does seems to sort out the problem.
But when i click on save button or the update button, it should get back to read mode. I do use chage mode even t once the details are updated.
It pops up with error details view cannot change mode while it is updating . I am posting my code behind on VB file for your reference.
Code:[B]//Onclick button call the grid view which[/]
Leave a comment:
-
Hello ,
I am using details view prgrammatically using code behind to poulate and perform other operations on detailsview.
for editing data i am using modechanging event and while clicking on the update button i am calling onitemcommand.
When i click the update button it call onitemcommand and checks for command name=Update
then i retrieve the text box values which are changed in the edit mode and try to...Leave a comment:
-
Updating details view programmatically
Hello All,
I am having trouble while updating the detailsview. The onItemcommand executes twice.
Could anyone please help .
It is driving me insane
Thanks,
Teju -
Hello,
Try the following link
http://fredrik.nsquare d2.com/viewpost.aspx?P ostID=155Leave a comment:
-
-
Hello, below is my code
[code]
///update code
void myListUpdateHan dler(Object src, DataListCommand EventArgs e)
{
if (e.CommandName == "update")
{
SqlConnection myConnection = new SqlConnection(C onfigurationSet tings.AppSettin gs["xxxxxx"]);
TextBox tbox = (TextBox)e.Item .FindControl("T extBox1");...Leave a comment:
-
C# Datalist control
Hi all,
I am using datalist control to display, edit, update and delete records in c#.
Displaying works fine, but the problem is while updating the record. I am trying to access the changed value from the text box and run the update command, but everytime i try to update, it gives me the old text box value.
I have tried state value as well but doesn't help.
Code:TextBox tbox = (TextBox)e.Item.FindControl("TextBox1");
-
Populating four levels of tree view from the database
Hi all,
I am trying to populate tree view from the database. Till two levels i can populate it fine but when it reaches third level it doesn't expand. Below is the code, it has been taken from the reference of micrososft
Sub PopulateNode(By Val sender As Object, ByVal e As TreeNodeEventAr gs)
' Call the appropriate method to populate a node at a particular level.
If e.Node.ChildNod es.Count... -
Retrieving data in the horizontal format
Hello,
I am trying to retrieve data from the sql and trying to display using ASP. If a I try to print in the normal rows and columns format, it seems to print okie. But if i want to ptint in following fromat
Name
All the names from the table
Last Names
All the Last Names from the table.
I don't know how to do it
Could any one help.
Thanks -
Hello,
Actually, I wanted to display one to many relationship data on the ASP page. SO that it shouldn't display the duplicate titles.
I got it from asp faq web
Thanks for your helpLeave a comment:
-
Displaying data in tabular format in asp from database
Hello,
I have to display all the data from the database in tables in ASP. I am able to get the data but the problem is of displaying one to many relations.Like below Title1 has two records but how would i display in the table
Title1 heading1 heading 2 heading 3
x y x1 y1
a b a1 b1
Tite2 heading1 heading 2 heading 3
x y... -
It throws an error back
StudentList object name not found.
Thanks...Leave a comment:
-
Selecting data from two databases within MSSQL
Hello,
I would like to know whether is it possible to select data from two different databases within the same sql server.
For example
I have one database as StudentList which is the central database for students and i have other database as courseselection
i want to select the student no from the student list database and enter the course selection in the course selection database.
Could some... -
DataKeys GridView
Hello,
I have two datakeys defined in the grid view. I want to access the both the datakeys when u click a button. Iam able to access one of the datakeys but not the other. Below is the code
<asp:GridView ID="GridView2" runat="server" AutoGenerateCol umns="False" DataSourceID="S qlDataSource1"
DataKeyNames="S igned_ID,Sessio nCode" CellPadding="4"... -
objCDO.To = "someone@xyz.co m"
objCDO.From = "me@abc.com "
objCDO.Subject = "My Resume, per Request"
objCDO.Body = "xxxxxxxxxxxxxx xxxx"
objCDO.Importan ce = 2 'High importance!
objCDO.AttachFi le "\\server\xx\xx .doc","xx.doc"
objCDO.Send 'Send off the email!
'Cleanup
Set objCDO = Nothing
You can use attach the file...Leave a comment:
-
Hi,
You can add the parameter in the webconfig file
<add key="CookieName " value="cookieva lue" />
and in th cs file you can include the following code
HttpCookie UserCookie = Request.Cookies[ConfigurationMa nager.AppSettin gs["CookieName "]];Leave a comment:
-
Can ASP.net files and ASP files be placed in the same folder
Hi ,
Can the asp.net files ie aspx and cs files be placed in the same folder as the asp files. for example
I have sample folder and i want to save aspx and asp files in the same folder .
Is it possible.
Many thanks -
Mcdba
Hi
Iam preparing for MCDBA i have 70-229 exam.
Could any one please suggest where i can download sample test papers and study guide.
Many thanks
No activity results to display
Show More
Leave a comment: