|
Thanks for your reply...
I have TreeView which I fill from DB and this TreeView is in MasterPage, one my aspx page have MasterPage (this MasterPage contain TreeView) when i change data for TreeView in aspx page and I press button 'Save Changes', changes which I have done should me seems in TreeView.
Example:
If I delete data for one Node this change should seems in TreeView
Hope I was clear
|
|
|
|
|
Master pages is only a tool to separate different part of the page when you are constructing the page on the server. When the page is sent to the browser, it's a complete page, so you can't update only the master page or only the content, as that separation doesn't exist in the final page.
If the data in the master page is not updated when you reload the page, then you are getting the data for the master page before the content page does the update.
If you get the data in Page_Load and do the update in a button event, you will be loading the old data, then update the data, as the control events occur after Page_Load. You can use the Page_PreRender event for anything that you want to do after the control events.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks Guffa for your reply
I found the way how to do that, here is my code
Master.Page.Header.Title = "MasterPage </title>" +<br />
"<meta http-equiv='refresh' content='1;url=ChildPage.aspx'>";<br />
Response.Redirect("ChildPage.aspx");
Now i am able to see changes on TreeView1
If you have any better solution plz tell me.
|
|
|
|
|
Blue_Boy wrote: I found the way how to do that, here is my code
Master.Page.Header.Title = "MasterPage " +
"";
Response.Redirect("ChildPage.aspx");
Most of that code is wrong, and you are only saved by the fact that the part that is wrong is not used at all. You can shorten the code to:
Response.Redirect("ChildPage.aspx");
Changing the title has no effect, for two reasons:
:: The current page will be discarded and a redirect page will be sent to the browser instead.
:: The text will be html encoded, so the meta tag that you try to add to the header (in the wrong place) would not be a tag at all, just some text displayed in the title.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks for your warnings, I will try to find correct solution.
|
|
|
|
|
Hi I have developed an ASP.NET Web application say in MachineA. I want to copy directories to say MachineB by accessing the application in MachineA from MachineC. I am using DirectoryInfo and CreateSubdirectory methods, but its throwing Access Denied error,CreateSubdirectory does not support UNC. I mapped the network path and tried, but still its not working. Is there any other way to copy files across machines. Please guide me in this regard. Thanks in advance.
Email:shammr.ace@gmail.com
Warm regards,
Sham M R
|
|
|
|
|
HI Sham Seems intresting
i have done uploading a file from client to server using javascript
but haven't tried this one .... Might be you will have to give security access as full control to others
<l>Thanks and Regards
Sandeep
|
|
|
|
|
hi..
can we execute stored procedure without receiving all the output parametes in asp.net.
thanks in advance for the hel
enjoy..
|
|
|
|
|
rama charan wrote: without receiving all the output parametes
What do you mean by this ?
The parameters will always be returned, only the difference may be under some circumstances some output parameters may be null.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
thanks for reply
i mean that can the stored procedure be returning more output parametes than i capture at the appln asp.net code?
is there way tht i can just neglect the other output parameters sent to me without just receiving them ?
hope i am clear now
enjoy..
|
|
|
|
|
I think you need to declare all parameters, but you can always neglect the unused ones after you get the values from db ?
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
thnks for the help ....
enjoy..
|
|
|
|
|
Dear all,
I am developing web application using asp.net C#(Visual Studio 2005)
I want to know Is it possible to check whether given file name is physically present on the specified location.
Thanks
regards
imran khan
|
|
|
|
|
If you are asking on Client-Side, use the built in control for file uploading ( i forgot the name).
On Server side, ofcourse you can check whether a file exists using all available I/O classes.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Try to use "System.IO.File.Exists("path")". path is the physical file path and it will return you a boolean value.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
hi all
I am developing a application on Asp.net (2.0) and Flash
When i get a Image on Database after that i want give it to Flash (so dont save this image on Server Machine)
How will i do that ??
|
|
|
|
|
this is very tricky one. i think...
if u simply response out our image to client, then u will not be able it save it on client side by right clicking.. it.. i dont know the exact ans.. but in flash u always put request to server and for data and server returns in form of its response.. if find a way when u an read binary format then it will e easy to get data image data from database/....
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
Hi!
In my application, there is three databases. one is in oracle ,second is in SQL Server & third is in MySQL. now i want to wirte a class for this. i have heard from my friend that there is an article on codeproject.com .can any give me link of that article?????
Thanks & Regards,
SAMir Nigam,
Software Developer,
STPL, Lucknow, India.
|
|
|
|
|
|
I dont know about any article about this... but i think i it is simple to do...
all u have to know that whick kind of data base u want to access..
if sqlserver.. then call provider sqlclient
if not then use odbc thic can connect almost every data base..
it will took little time but it will be good for learning then u an put that article on the web for others
cheers
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
Hi
i have used forms authentication for securing some of the web pages of my site.i want to grant admin previledge to one of the user so that he will be only having access to admin.aspx...for that i have modified my web.config as follows:
..location path="admin.aspx"..
..system.web..
..authorization..
..allow users="admin"..
..deny users="*"..
...authorization..
..systeb.web..
can anybody help me how can i configure only one user to have access to admin.aspx...since my site is forms authenticated..now any user can access to admin.aspx...so how can i configure admin status for a particular user..
its urgent..
thanks in advance..
Pradip Kishore
|
|
|
|
|
hi
..allow users="xyz"..
add the above line below the line
..allow users="admin".. and see whether it works.
|
|
|
|
|
hi all
i want to know how to create dynamic links/urls like..
http://www.abc.com/demo/server01/Tab.asp?Tab=2&PROJECT_ID=75"
i want to know how to create the urls from.. "tab.asp?tab=2&project_id=75 "
how to create these id values automatically and how to access them when i want to hyperlink them to another page...
for ex: i have table like:
name profession skills
--------------------------------------
pradip software .net
john telecom cdma
... .... .....
i want to make my each entry of name,profession,skills to be hyperlinked so that when ever i will click on any item...it will generate a link like the above mentioned and accordingly navigate to the detailed page...
its urgent..please help me..
thanks in advance..
pradip kishore
|
|
|
|
|
Follow following steps.
1-Create a Datagrid and place a template column where you want to palce the hyperlink to appear.
Eg:
<asp:TemplateColumn HeaderText="Details">
<ItemTemplate>
<a href=http:
%>'>Details</a>
</ItemTemplate>
</asp:TemplateColumn>
2: Load the values from database to a data table of data reader and bind it to Datagrid.
3: In the recieving page get the id from query string and fetch details from the database on basis of that id.
Note: you need to create the correct hyperlink in the ItemTemplate column, here i have created just a dummy link.
Regards
Prakash
|
|
|
|
|
when you are providing the target url for the names generate the dynamic url.
lets say you got all the data frm db and have it in a dataset.
then it wouldbe targeturl=www.abc.com/....?name"+ds.tables[0]["columnname"]......
Gautham
|
|
|
|