|
Write a windows application that opens this file and send it as binary to a webservice, which stores the file on server. ASP.NET can't do what you are expecting.
|
|
|
|
|
|
hello frnd how to find application path like(app.path in vb)
|
|
|
|
|
hi
Server.MapPath("~") returns root of the application
server.mappath("product.aspx") gives path for product page
-- modified at 1:45 Tuesday 30th October, 2007
Jintal Patel
|
|
|
|
|
Getting Vss error when tring to access the Vss DB from Apllication server throgh ASP
Error :-The SourceSafe database path does not exist
Mahammadhusen
|
|
|
|
|
Hi All,
I am adding conrols at runtime something like this:
//Label For Showing Symbol Text
Label lblSymbol = new Label();
lblSymbol.ID = "lblSymbol";
lblSymbol.Text = "Symbol";
lblSymbol.CssClass = "text";
tab1.Controls.Add(lblSymbol);
Panel PopupMenu = new Panel();
PopupMenu.ID = "newPanel";
//Div Tag
HtmlGenericControl watch = new HtmlGenericControl();
watch.Style.Value = "background-color:#FBFBFB ;border:1px solid Blue;width:40%";
StringBuilder strPOPUPCompanyMenu = new StringBuilder("");
strPOPUPCompanyMenu.Append("<table width='700px' border='1' cellpadding='0' cellspacing='0'>");
strPOPUPCompanyMenu.Append("<tr><td> </td><td class='text' width='500px' align='left'>Country</td>");
strPOPUPCompanyMenu.Append("<td align='left' width='250px'>");
//CascadingDropDown For Country
AjaxControlToolkit.CascadingDropDown CascadingDropDown10 = new AjaxControlToolkit.CascadingDropDown();
CascadingDropDown10.ID = "CascadingDropDown10";
CascadingDropDown10.TargetControlID = "ddlcountry";
CascadingDropDown10.Category = "Country";
CascadingDropDown10.PromptText = "Select a Country";
CascadingDropDown10.ServicePath = "AutoComplete_WatchList.asmx";
CascadingDropDown10.ServiceMethod = "GetCountry";
watch.Controls.Add(CascadingDropDown10);
//DropDownList For Country
DropDownList ddlcountry = new DropDownList();
ddlcountry.ID = "ddlcountry";
ddlcountry.CssClass = "text";
ddlcountry.Width = 250;
watch.Controls.Add(ddlcountry);
strPOPUPCompanyMenu.Append("</td><td> </td></tr>");
strPOPUPCompanyMenu.Append("<tr><td> </td><td align='left' class='text'>Sector</td><td> </td></tr></table>");
watch.InnerHtml = strPOPUPCompanyMenu.ToString();
//Add div Tag to Panel
PopupMenu.Controls.Add(watch);
//PopupControlExtender For Showing Company Panel
AjaxControlToolkit.PopupControlExtender PopupControlExtender14 = new AjaxControlToolkit.PopupControlExtender();
PopupControlExtender14.ID = "PopupControlExtender14";
PopupControlExtender14.TargetControlID = "lblSymbol";
PopupControlExtender14.PopupControlID = "newPanel";
tab1.Controls.Add(PopupControlExtender14);
tab1.Controls.Add(PopupMenu);
But I cant see the dropdownlist on by page. Can sone tell me where I have going wrong.
I have to popup panel on lblSymbol click, I can just see select country but cant see ddlcountry.
Please help me....
Thanks in advance...
|
|
|
|
|
Hey can you make a simple POC and create a div tag add drop down at run time i think the problem is you are adding two times
i think second one is overidding firt one
ASP.NET 2.0 wrote: watch.Controls.Add(ddlcountry);
ASP.NET 2.0 wrote: watch.InnerHtml = strPOPUPCompanyMenu.ToString();
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
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.
|
|
|
|