|
Hi,
I have any error message(unless the marks(note) field is empty) but the code does not update data ;
Thanks .
|
|
|
|
|
Hi
i need to have a shotcut key assigned to a menu contol [asp:menu] like in windows . when user gives input as alt+O then it should open FileOpen in turn it will list sub menus Sub menu1,wub menu2,if user gives input as alt+T then it should open sub menu1. is this possible, kindly suggest if some samples.
|
|
|
|
|
Use javascript onkeypress events to capture button combos and do something with (Google it).
But it also depends how you have designed your menus etc. as to what you can do with them
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Good Day All
I have 20 Textboxes and when there are duplicates in those textboxes , i store them in a List<string> and on fly i build a CheckBoxList and display that as a modal and in that i have a close button to allow the user to correct the duplicate item. My Function is working and it is defined like this
private void ShowAjaxModalDynamic(List<string> lstItems, String Message)
{
CheckBoxList lstchecks = new CheckBoxList();
for (int i = 0; i < lstItems.Count; i++)
{
lstchecks.Items.Add("Unit" + lstItems[i]);
}
AjaxControlToolkit.ModalPopupExtender modalPop = new AjaxControlToolkit.ModalPopupExtender();
modalPop.ID = "popUp";
modalPop.PopupControlID = "ModalPanel";
modalPop.TargetControlID = "btnComplete";
modalPop.DropShadow = true;
modalPop.CancelControlID = "btnCancel";
modalPop.BackgroundCssClass = "modalBackground";
this.Panel1.Controls.Add(modalPop);
this.ModalPanel.Controls.Add(lstchecks);
lblPanelMessage.Text = Message;
modalPop.Show();
}
as you can see i will pass the List and the Message to be displayed. Now this is working Perfect.
My Problem is that when the user clicks the close Button to correct the duplicate in those textbox, and re-click the button that will check for Duplicate , the Modal comes back again even if the duplicate has been removed and the break point to the start part that does the validation does not get fired.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Could we know what code is executed when you click on your 'CheckForDuplicates' button ?
|
|
|
|
|
Basically this is what is happening
For the First it will go through the break point and i will inspect the values and after it Displays the Duplicates in a modal and that is Fine. i will close the modal with the close button on the modal and change those who were Duplicates to be non-duplicates and click the button again, the debug does not go through the break point.
protected void btnComplete_Click1(object sender, EventArgs e)
{
List<string> OBCSerials = new List<string>();
OBCSerial = CheckDuplicates();
if(OBCSerial.Count > 0)
{
ShowAjaxModalDynamic(OBCSerial , "These are Duplicates Serials");
}
else
{
}
}
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I didn't catch where you put your breakpoint, that is not reached the second time.
It should be placed on the line if(OBCSerial.Count > 0) , allowing to watch for OBCSerial contents, and see what's happening from there.
|
|
|
|
|
Yes the breakpoint is on that line where i check if the count is greater than zero and i have added another break point on the function that invokes the modal just to make sure. The first time it reached the Break point and the second time it never went there, it immediately showed the modal with the Previous duplicates.
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I can't figure out what's happening. Obviously if the breakpoint is effectively placed where you say it is, and you don't reach it, there must be some details of your implementation missing.
Maybe try to dispose your modal dialog when it's closed. It's just a guess, even if I don't how it could prevent your code from following the normal flow if not disposed.
I'm not an ASP.NET specialist, so I'm afraid I'll be running out of advices from now. Good luck
|
|
|
|
|
Maybe that could be related to your Ajax Modal Popup Extender problem...
|
|
|
|
|
Good Morning phil
i have created a Small Project to reproduce the problem. Please download the Project in the Following link
www.vuyiswamaseko.com/ExampleProblem/ExampleProblem.zip[^]
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi phil
I did not really resolve the problem. But i had twigged my code to resolve the problem.
What i did is that i have added another button and obviously give it another name and kept the same caption and gave it a click event that has the same code as the other one. I have change the visibility via css to be invisible when the page loads and when the first “complete” button is click , it will be hidden via css and the second button will show , and after the user has removed the duplicate if he clicks the Complete button that is available it will go to my break point and event the test for duplicate again.
Thanks Guys
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I want to catch event when i click back button in WebBroswer.
how can i do?
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
|
|
The primary langauge of this site is English. Please edit and translate your post.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
The primary langauge of this site is something resembling English some of the time
FTFY
|
|
|
|
|
|
1- Please use English language when you post on these forums.
2- Noone has any idea about what is your problem. Thus guessing a solution is pretty impossible. Please read the guidelines of these forums on How to get an answer to your question.
|
|
|
|
|
The english translation of my subject is "a mistake in its response".
Apparently, the author has created a new posting where he meant to reply to an existing message.
We are all here to help.
Todos estamos aquí para ayudar
|
|
|
|
|
OP has used Spanish as a language to ask a question.
[Spanish]
Por lo que se encontró una solución?
¿Estás bromeando aquí
[/Spanish]
[English]
For what you found a solution ?
Are you kidding here
[/English]
Please Use English as a primary language in this forum.
Regards,
Hiren.
"We owe a lot to the Indians, who taught us how to count, without which no worthwhile scientific discovery could have been made." - Einstein
Microsoft Dynamics CRM
|
|
|
|
|
I have a method in a separate class which returns a string. This string actually has a HTML in it (Head, body, etc). I am retreiving this string in one of the method in my code behind and I want this html to merge into the current existing HTML and ASP.Net (.aspx file) and display the contents on the returned string (HTML) in the current page creating a new div or some other good method. If some one has any idea related to this, please help. Ask for any further information in case you need to get a clear understanding.
Thanks
Anil
|
|
|
|
|
Also posted in QnA section
|
|
|
|
|
Use an asp:Literal control.
|
|
|
|
|
Hi
you should use litral control when you want to a string witch has html content even it has img tag but pay attention if your string has html content it works if that string has a/some asp.nettag like <asp:image> it dowsnt work
strind str = "..."; // a string with just html tag
litral1.text = str;
just this
bye
|
|
|
|