|
hi All,
Please provide any articles with implementation or references on how to implement drag drop and edit with asp.net treeview and save the changes done at client side to database at server side.
any ideas on how to do it are also welcome
thanks in advance
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
i created master page with main menu(.NET control) and i added the script manager frist then the updatepanel and then i insert the menu in the updatepanel,but when i navigate the pages the menu still post-backes...
if i but a button it worked ok......
so any ideas?
regrds
|
|
|
|
|
I am not an AJAX expert but I don't think you can navigate from one page to another without postback.AJAX works on the button because it causes postback to the page itself.
|
|
|
|
|
exactly....
the menu is in the master page....so y the menu is redrawan when i navigate.technically i still in the master page
so the palce holder wich contains the navigated page is postback but menu apears that it is also postback
thx
|
|
|
|
|
Hi
I need to get the list of printers installed on the
server (both network and local printers).Using .net WebServer,i can see all the installed printers ,when I run the
application using IE on the server,I cannot get
the list of printers .
Help me.
|
|
|
|
|
hi there
my aspx files are going to read some parameters from a properties.ini file residing in the same directory.
have a couple of queries -
1. how do I avoid reading the properties file on each aspx request? is there a way to store the properties in memories on the server so that they can be used from memory for each request.
2. how do I deny direct access to the properties.ini file from the browser and give access only to the aspx file to read it? Is there any other directory where I can place it and still access it from aspx but not otherwise?
FYI, i'm using asp.net version 1.1
thanks.
-c-s-k
|
|
|
|
|
Can't you store those parameters in web.config instead of the ini files?If you do you don't have anything to wory about as the config file is not accessible from any browser.
|
|
|
|
|
Thanks for your response. I did some research after I posted my query, and it turns out that I have to indeed use an ini file.
I started with web.config, and then to an external config file for my parameters (http://aspalliance.com/705_Create_and_Use_a_Custom_Config_File.all[^]).
but then realized that my paramters are URLs with an ampersand in them. The config files being XML do not allow ampersand unless escaped, but that's not an option for me. I then came across this - http://www.codeproject.com/KB/cs/readwritexmlini.aspx[^] - which allowed me to read INI files in C#.
Anyways, my question 1 I posted earlier is still a concern - this INI is going to be read on every request to the aspx. How does it work if the parameters are put in the web.config?
For my question 2, it looks like IIS doesnt serve .config files but serves .ini files happily. So I placed it under App_GlobalResources. Now my question is - what is the difference between App_GlobalResources and App_LocalResources - I am able to place this ini file under App_LocalResources and still access it from every aspx file.
Thanks!
|
|
|
|
|
View a printable version of this message! Hi,
I'm trying to change an MS Access query definition using ADOX in my ASP.NET 2.0 c# web site.
Here is my function:
<br />
public void ModifyQueryXDateFilter( string strConn, string strQryName, string strSQL)<br />
{<br />
ADOX.Catalog catDB = new ADOX.Catalog();<br />
ADODB.Command cmd = new ADODB.Command();<br />
catDB.ActiveConnection = strConn;<br />
cmd = (ADODB.Command) catDB.Procedures[strQryName].Command;<br />
cmd.CommandText = strSQL;<br />
catDB.Procedures[strQryName].Command = cmd;<br />
catDB = null;<br />
}<br />
the line:
catDB.ActiveConnection = strConn;
doesn't work. I get a typically microsoft error that means every thing except the right thing:
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
Can anyone help with this?
Just Relax And Keep It Simple.
|
|
|
|
|
Hi,
I have an asp:Panel control on my web page. I am using ASP.NET 2.0. When I view source in Internet Explorer and FireFox it is displayed as a div element. When I view source in Opera it is displayed as a table. I don't want a table because it's messing up my layout. What else can I use and what else is recommend?
Brendan
|
|
|
|
|
You can use div instead of asp:panel
|
|
|
|
|
Thanks, that I know I can. It was what I wanted to do first, but I searched Google how to populate a Div with data from SQL Server and could not find any. If you have anything on how to populate a div from the server please let me know.
I tried something like:
<div id="Categories" runat="server"></div>
|
|
|
|
|
You can either put a single text in the InnerText property, or add elements to the Controls collection.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Does a div tag have a controls collection???
Have you got a sample there?
|
|
|
|
|
.NET Enthusiast wrote: Does a div tag have a controls collection?
Yes.
.NET Enthusiast wrote: Have you got a sample there?
Categories.Controls.Add(new LiteralControl("Hello world."));
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
What are you to do? I dont think you can populate a div with data but instead you can populate controls that are in the div.you know what I mean?Let me know in details what you are trying to do so that I can better help you.
|
|
|
|
|
Go and look at www.samarketplace.co.za, look at the categories with their subcategories. Currently, (not online at the moment) I have an asp:Panel and then I populated it (as shown) in the code behond. Ideally I would like to populate a div the same way.
|
|
|
|
|
.NET Enthusiast wrote: I have an asp:Panel and then I populated it (as shown) in the code behond. Ideally I would like to populate a div the same way.
How are you populating the panel? Where is the code you mentioned? What I am suggesting is for you to use a div insetad of a panel to design your page layout.Now for displaying data, you can put a control like a repeater or a grid etc. in the Div and simply bind it.Anyways post your code so we can help.
|
|
|
|
|
You're not getting the point!!!
I mentioned I have a panel. And I populate it just fine. There is nothing wrong with the code behind. What I am tying to say is... The container controls display differently in different browsers. Now it doesn't matter what server control I use, I don't want tables. You understand?
|
|
|
|
|
Bassam Saoud wrote: I dont think you can populate a div with data
Not with "data", but surely with text or controls.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Hi,
I need to know how I do some thing..
I have FormView in my page and this form is in editMode and have a button ( save ) to save any information changed in FormView
my problem is :
I want to appear a message when the user want to go out without pressing on the save button For example : I have a FormView with edit mode , the user write some thing in this formview and don’t press the save button , then he want to return back to the main page by any button ( back or any other page link ),, here I want to appear this message .. " do you want to save this information " ??
With three choices " yes , no, cancel"
When he press on 'yes' I want to call SqlDatSource.update() to update information And when he press on 'No' I call SqlDataSource.cancel()And when press on 'cancel ' I return to the same page without any event .. How I can do it ??
|
|
|
|
|
hi
you can use a showdialog and show custom form that have these buttons and then perform your program depend on the result of show dialog
sepel
|
|
|
|
|
Thanks for your reply ..
But how I can found show dialog ?? or show custom form ? are these in java script ?
Sorry for my question but because I am beginner in asp.net
Thaanks
|
|
|
|
|
you must add some javascript to onclient click of your buttons.
then in them call showDialog of javascript you need some parameter to return value of dialog result.
function ProductDialog(){
var mytext;
var myvalue;
}
function myShowDialog()
{
ProductDialog.mytext="";
ProductDialog.myvalue="";
if(window.showModalDialog('../Choose.aspx' ,ProductDialog,"dialogHeight:570px;dialogWidth:440px;Scrollbar=1") == true )
{
//do some thing
}
else
{
return;
}
}
in your buttons add this
onclientclick="if (myShowDialog()) return true; return false;"
in form that you showed it
write javascript to access dialog result
window.dialogArguments.mytext = s;
window.dialogArguments.myvalue = node.Value;
sepel
|
|
|
|
|
when we use this overload of fill method od sqldataadapter:
SqlDataAdapter.Fill(DataSet,StratRecord,MaxRecord,TableName)
Imagine we have 1,000,000 record and we want to retrive 20 record from 100 to 120.
we know that DataAdapter itself use DataReader. I want to konw this Fill method retrive only 20 record and return result or retrive 1,000,000 record and thern return 20 of them ?
it is so heavy if retrive all result and return 20 of them.
please guide me. because I want to use this method to paging.
|
|
|
|