|
One solution is to disable the insert new button once the new row has been created. How are you binding the data to the grid? Are you doing so at design time, do it from the code behind instead and then you can bind the data whenever you want.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
 I got it to the point that I get my new blank lines to appear. However, I have the problem that if I enter data in line one, hit add line, and add a second line. It resets the first line--the data is lost. I tried setting session variables but still not working. This is the code for the add button:
private void Button2_Click(object sender, System.EventArgs e)<br />
{ <br />
<br />
DataGridItemCollection items = dgParts.Items;<br />
int rows = items.Count;<br />
if (rows == 0)<br />
{<br />
<br />
BindData();<br />
DataTable dt = ds.Tables["Rest"];<br />
DataRow row;<br />
row = dt.NewRow();<br />
strPartNumberInputReference = txtSearchPart.Text;<br />
row["PartNumber"] = strPartNumberInputReference; <br />
row["DrawingNumber"]=DBNull.Value;<br />
row["DrawingRevision"]=DBNull.Value;<br />
row["DwgPath"]=DBNull.Value;<br />
<br />
dt.Rows.Add(row); <br />
dt.AcceptChanges(); <br />
<br />
dgParts.DataSource=dt; <br />
dgParts.DataBind();<br />
Session["test"]=ds;<br />
}<br />
<br />
else<br />
{<br />
ds = (DataSet)Session["test"];<br />
DataTable dt = ds.Tables[0];<br />
DataRow row;<br />
row = dt.NewRow(); <br />
strPartNumberInputReference = txtSearchPart.Text;<br />
row["PartNumber"] = strPartNumberInputReference; <br />
row["DrawingNumber"]=DBNull.Value;<br />
row["DrawingRevision"]=DBNull.Value;<br />
row["DwgPath"]=DBNull.Value;<br />
dt.Rows.Add(row); <br />
dt.AcceptChanges(); <br />
dgParts.DataSource=dt; <br />
dgParts.DataBind();<br />
}<br />
<br />
}
Any ideas? Thanks for your help!
|
|
|
|
|
Can any one tell me how how to read a tiff extention file in asp.net.
Roopesh Singh Gangwar
|
|
|
|
|
what do you mean by read?
To load into a byte array you can do the following.
byte[] newFile = System.IO.File.ReadAllBytes(@"\YourFile.tif");
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
Thnks. Actaully our need is to extract the text information from a tif file which we get as a attachment thru email and then need to compare it with some specified text. Is there any way of doing that.
Roopesh Singh Gangwar
|
|
|
|
|
I want to detect if the client browser is using popupblocker or not.. or is there any solution to popup a window regardless of that popblocker as Hotmail and yahoo shows popupwindow on deleteing of emails
thanx in advance
R A M
|
|
|
|
|
Hi,
What is the method you r using to show popup?
Sushant Duggal.
|
|
|
|
|
function openMyWindow(){
var PagetoPopup;
PagetoPopup= '<%=Session["app_path"]%>' + "MyWindowName.aspx";
var newWin = null;
newWin = window.open(PagetoPopup,"MyPopupWindow","toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=no, resizable=yes,titlebar=0");
if ( (newWin == null)
|| (typeof(newWin) =="undefined")
|| (typeof(newWin .location.hash) != "string") ) {
alert('Please ensure that pop-ups are enabled!');
} else {
if (self.name != 'MyPopupWindow') {
top.close(); // Use this if you want to close the main/parent window ; otherwise comment out this code
}
}
I hope this is what you wanted.The code notifies the user if the popup blocker is activated, so that the user can de-activate it and try to open the window again.
Vuks
|
|
|
|
|
thanx alot Vuks .. i will get back to you if i face some problem in this script ..
thanks again
R A M
|
|
|
|
|
Does somebody know if there is a maximum length on the ValueMember of a ComboBox. I think it is 30 but i cannot find any documentation on the matter.
Ronald
|
|
|
|
|
Hi, I am using C#.NET to create an instance of MS Access 2003. I try to open my Access Report, but the Application just hangs as soon as I get to the part where I open my Database.
Here is part of my code:
oAccess = new Access.ApplicationClass(); //No problem
if(!oAccess.Visible) oAccess.Visible = true; //No problem
sDBPath = "C:\\Reporting.mdb";
oAccess.OpenCurrentDatabase(sDBPath,false, ""); //PROBLEM IT HANGS!!!
// Preview the report:
oAccess.DoCmd.OpenReport(sReport,Access.AcView.acViewPreview, moMissing, moMissing, Access.AcWindowMode.acWindowNormal, moMissing)
My problem is that it stops on the line that attempts to open the DB AND DOES NOT CONTINUE FURTHER.Ohh by the way I wrote the same code in VB6 and it worked just fine.Please help.
Vuks
-- modified at 9:15 Thursday 6th July, 2006
|
|
|
|
|
I need to create a chat engine for the website i am creating..The requirements are:
authorized to members only..
once they are authorized they can enter into chat page for sending and receiving messages..
no rooms to create...
everyone can see each other...
the page shouldnt be refresed on a whole....Can anyone help me with coding part or suggest me some good articles about chat form...I prefer no database,no javascript except for simple html...that can provide scalability and performance...as messages pass their number -50, first 20 statements will be deleted..etc etc..
|
|
|
|
|
Hi Friends,
I have a data about the appointment for a date. when somebody click on a hyperlink, that appointment details should be exported in Outlook calendar of the client machine. I tried using java script, but i dont know the exact logic.If anybody can help me with some type of code, it will be a great help for me.
Thank you very much.
NIKI
|
|
|
|
|
list of Email clients installed on my computer
|
|
|
|
|
Reposting the same question every minute doesn't seem like it's working for you. Perhaps you should try another technique. I recommend posting the question to every forum, someone is bound to respond to your vvvvvvvvvvvvery urgent request 
|
|
|
|
|
Hi
I want to show a list of Email clients installed on my computer in a list box........can any one help me out to get that list ..........veryyyyyyyyy urgent...i hope this is doable in .net.......
pls reply if u hav any idea or read any article.. pls give link
thanks in advance
happy coding
sanjeev sharma
sanjeev
|
|
|
|
|
Hi
I want to show a list of Email clients installed on my computer in a list box........can any one help me out to get that list ..........veryyyyyyyyy urgent...i hope this is doable in .net.......
pls reply if u hav any idea or read any article.. pls give link
thanks in advance
happy coding
sanjeev sharma
sanjeev
|
|
|
|
|
<b>hello,
plz send me code for store images n reterive images from database.<b></b></b>
hi.
|
|
|
|
|
http://www.codeproject.com/cs/database/ImageSaveInDataBase.asp
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Really they are quite similar.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hello,
I am a beginner in asp.net.I am in a problem pls help me to solve this.
My problem is after logout user can't see the pages when he click the back button of the browser.It will redirected to login page.In internet explorer i solved this problem but in mozilla it's not working.can anybody help me.
i am waiting, thanks in advance.
alex malayil
|
|
|
|
|
The user is not supposed to see anything in the website once he is logged out, that's the very definition of logout. It is very normal that he gets redirected to the login page if you're using Forms authentication in your website.
I'm curious to know how you managed to solve your problem with IE though
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
How to convert the contents of textfile(eg. notepad) to database.
Ex:
From
1,Jones,SE,23
2,James,DE,22
3 Smith AAR 25
to Database.
Thanks.
Prya
|
|
|
|
|
you can use SQLLoader for this. if you want data directly from file to database.
Nav.
|
|
|
|