|
I am trying to debug a code(asp.et) which was developed in 1.1v . i have migratated this to 2.0v . But when i attach the process , it doesnt stop at the breaks point i have set
The process is attached with out any error
|
|
|
|
|
I am using dropdownlist. this dropdown list attach in database. and dropdownlist enter the runtime value. e.g
dropdownlist property: AutoPostBack= True
dropdownlist1.items.insert(0,new listitem("Add new","0");
when click the Add New Then fired a event. Write a Code
private void dropdownlist1_selectedIndexChange( )
{
if(dropdownlist1.selectedindex == 0)
{
responce.wirte("asdF");
}
}
But this event is not fired.
|
|
|
|
|
Gagan Deep Garg wrote: But this event is not fired.
Is your page posting back ? I don't think so, I guess your drop down list contains only one item.
|
|
|
|
|
One Item In Run Time.(Add New)
When Click The Add New Then Appear One TextBox. Enter The Value In TextBox And Save DataBase. Then DropDown List Display Two values.
One is Add New and Second is DataBase Value.
My problem is:
Not Fired Event.
|
|
|
|
|
Gagan Deep Garg wrote: dropdownlist1.items.insert(0,new listitem("Add new","0");
If your dropdownlist only has one item, it will always choose that item. This is different with Windows Forms' ComboBox, that requires you to select first even if the ComboBox only has one item, unless you made the default selected item is the only one item available.
If your dropdownlist has more than one item, any item selected will trigger PostBack (as long as AutoPostBack is set to true).
Eriawan
|
|
|
|
|
AutoPostBack property is True.
|
|
|
|
|
Yes, I know. What I'm trying to say is, you should define items in your dropdownlist at least two items, instead of just one. Otherwise, the web browser will always chose the only one item and there will be no SelectedIndexChanged event fired, since there's just only one item.
There is a historical reason for this. W3C HTML 3.2/4.0 compliant browser such as IE 4.x or above, Netscape 7 or above, Firefox 1.5/2.0 or above, and Opera 5.x or above will always treat dropdownlist to automatically select first item it found, unless it's defined by the dropdownlist. If the item is only one instead of many items, it will always select the only one item.
For example, in your code you only define one item. Therefore when the ASP.NET page is rendered on client web browser, the first item selected is always the only one item and there will be no SelectedIndexChanged fired.
This is the default behavior of web drop down list (or dropdownlist in ASP.NET), and there's nothing you can do to overcome this event not fired problem, since it's the default behavior. ASP.NET (even other server side Java Server Pages, Struts) itself relies on the default render behavior on web browsers.
best regards,
Eriawan
|
|
|
|
|
Is it possible to modify the location tag in webconfig through code for a new role.
-- modified at 0:38 Tuesday 30th October, 2007
|
|
|
|
|
SreejithAchutan wrote: modify the location tag in webconfig
Modifying web.config at runtime is not recommended as it will restart the whole application.
|
|
|
|
|
Modify the location tag using code that means not hardcoded.through dynamically modify the location tag
|
|
|
|
|
SreejithAchutan wrote: Modify the location tag using code
Yes, but it is in web.config file right ? Each time when it is modified, whole ASP.NET application will be restarted and will end all session and application values.
|
|
|
|
|
I know to set the location tag in webconfig file.but trough code i want to modify the location tag.for a new role created he had to set access the page using code
|
|
|
|
|
SreejithAchutan wrote: but trough code i want to modify the location tag
I guess you are not getting what I am speaking. Check this[^] if you are not caring the problems.
|
|
|
|
|
..and suddenly I can't run visual studio 2003 at all...
any help?
thanks, Sakis
|
|
|
|
|
Hi,
I've developed a C#.NET webservice. Is it possible to schedule it.
Also If Download is one of the operation performed by the web service
can i use the url : http://localhost/FileDownload/Service.asmx/Download?
Thanks in advance
Priya
|
|
|
|
|
Dpriya wrote: I've developed a C#.NET webservice. Is it possible to schedule it.
What do you mean by "schedule it"?
|
|
|
|
|
Dpriya wrote: Is it possible to schedule it
What do you meant by schedule it ? Running the service in a specified intervals ? If yes you can choose
1- windows service
2- create a desktop application that gives request to webservice in a scheduled time
|
|
|
|
|
I would recommend having a little Windows service that can download the URL contents periodically. That would be the most resilent and robust way to approach this problem on hand.
|
|
|
|
|
I won't repost the whole text, but the problem is outlined here[^]
Basically I want to trigger two response.X events from a single on-click event to do two things - pop up a report in a window, and download a file (not the same file as the report).
-------------------------------------------
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Just bugger off and leave me alone!!
|
|
|
|
|
_Damian S_ wrote: Is there some way to trigger the popup form (other than using response.write) so that I can still use the response for the file download, or am I just going to have to redesign the process?
Quoted from your previous message,
Is it possible for you to use Page.RegisterStartUpScript(Popupwindowcode) , then you can use the Response for pdf ?
|
|
|
|
|
Sadly no, as the first part of the processing in the on-click event is what generates the details to be displayed in the report... Thanks anyway.
I have decided to let the first part of the processing happen and open the report, save the relevant ID in memory, then have another click event (on a new link) to download the saved file (using the previously saved ID).
-------------------------------------------
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Just bugger off and leave me alone!!
|
|
|
|
|
I was doing some experiments on your problem, and I succeeded in that other way. I shown PDF in pop up window ? I used Page.RegisterStartupScript(PDffileURL) in pop window page load. Will it work for you ?
|
|
|
|
|
Hi,
No, I can't use that option either, as I was saying, the processing needs to happen before the pdf can be generated. I have split it into two parts like this:
Part 1 - do the processing then trigger the generation of the pdf (and save the ID to session state)
Part 2 - grab the ID from session state and generate the file to download.
Problem solved, and only with one extra mouse click!!
D.
-------------------------------------------
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Just bugger off and leave me alone!!
|
|
|
|
|
Hi, im Armand, from Mexico, im wondering if some body can help me.
The thing is that, i want to use script.aculo.us drag and drop, between 3 lists, well, i already have the drag and drop between the 3 list ("ul") in each list ("ul") i have data in the "li" tag, inside some "li" i have tables, images, etc, but i have information in each "li" tag that is in the html code, i don´t bring the content from the data base, i mean, i can bring content but i have tables, images, and other html things in the li.
I also have that of course, but the thing is that now i want to save new positions, an example ,if i have 3 lists ("ul") "List1, List2, List3" and in each list i have 3 items ("li") "1item1, 1item2, 1item3, and 2item1, 2item2, 2item3, and 3item1, 3item2, 3item3" if i move for example, the item "2item3" with a table inside from the list "List2" to the list "List3" right down of the item "3item1" i want to save that new position, so it will be like.
List1 have (1item1, 1item2, 1item3)
List2 have (2item1, 2item2)
ist3 have (3item1, "2item3", 3item2, 3item3).
and when the user upload the page he will see this new order.
In this page i found a way to do some thing like this, but is only with one list, so if some body can help me out will be great, my email is agaona@femexfut.org.mx, or arga61@hotmail.com, really any good idea will be wel come.
ASP, Script.aculo.us, drag and drop, save and load new positios
|
|
|
|
|
Hi, im Armand, from Mexico, im wondering if some body can help me.
The thing is that, i want to use script.aculo.us drag and drop, between 3 lists, well, i already have the drag and drop between the 3 list () in each list () i have data in the - tag, inside some "
- " i have tables, images, etc, but i have information in each
- tag that is in the html code, i don´t bring the content from the data base, i mean, i can bring content but i have tables, images, and other html things in the
- .
I also have that of course, but the thing is that now i want to save new positions, an example ,if i have 3 lists () "List1, List2, List3" and in each list i have 3 items (- ) "1item1, 1item2, 1item3, and 2item1, 2item2, 2item3, and 3item1, 3item2, 3item3" if i move for example, the item "2item3" with a table inside from the list "List2" to the list "List3" right down of the item "3item1" i want to save that new position, so it will be like.
List1 have (1item1, 1item2, 1item3)
List2 have (2item1, 2item2)
ist3 have (3item1, "2item3", 3item2, 3item3).
and when the user upload the page he will see this new order.
In this page i found a way to do some thing like this, but is only with one list, so if some body can help me out will be great, my email is agaona@femexfut.org.mx, or arga61@hotmail.com, really any good idea will be wel come.
ASP, Script.aculo.us, drag and drop, save and load new positios
|
|
|
|
|