|
There are tons of source code to do this all over the web. I recommend building your own using recursion. It's good practice, and it really doesn't take long to write.
|
|
|
|
|
In a ASP.net Web App to persist a value of variable between different server rounds ,Which varible is best?
public shared or anything else?
Give me guidence
Advanced Thanks
Srilakshmi
|
|
|
|
|
|
I have a problem to add a dynamic control to my page i add the fllow code to Page_load() Whats the problem ??
Button img = new Button();
img.Width = 15;
img.Height = 15;
HtmlForm form1 = this.FindControl("Form1") as HtmlForm;
form1.Controls.Add(img);
No thing add to the page ???
With Thanks
MHF
|
|
|
|
|
Hi,
I think you must use PlaceHolder control how container. For example:
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
Button img = new Button();<br />
img.Width = 15;<br />
img.Height = 15;<br />
img.Click += new EventHandler(img_Click);<br />
mPlaceHolder.Controls.Add(img);<br />
}
|
|
|
|
|
how can i show different images with the help of threading(timer control)in one imagebox after 10 second.
anuj
dcjoshi2
|
|
|
|
|
Check out Atlas with their timer control.
|
|
|
|
|
I made a website in Visual Studio. I see if it works on the local server and everything works perfectly. I then follow the instructions to put it on my godaddy server, but when i go the website it gives me an error. This error is
Server Error in '/' Application
The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found. I looked online and visual studio says that i should
To resolve the error, you must add the project namespace to the TypeName property. Assuming your project namespace is "wap1", follow these steps.
1. Open the Member_List.aspx page.
2. Change the type name in the ObjectDataSource declaration to be fully qualified, as in the following example:
<asp:objectdatasource typename="wap1.MemberDetails">
The problem is that i can't find the file Member_List.aspx. Any one know what to do?
|
|
|
|
|
hi,
I am using asp.net1.1. i am using IE treeview web control.
In the page load method of codebehind file(C#) i am constructing the tree from DB.
i have a submit button where user can update nodedata into DB. When the user clicks the submit button i want the tree to be constructed with the new update values.
if i press F5 then i can see the updated value. without pressing F5, how can the tree be updated.
i mean when the submit button is pressed i want to execute the event(submit_click) first then the page_load should be executed.how can i achieve it.
thanks
|
|
|
|
|
You can't. The Page_Load event always occurs before any control events.
Any code that you want ececuted after the control events, you can put in Page_PreRender instead.
---
b { font-weight: normal; }
|
|
|
|
|
I have a website developed in ASP.NET 1.1, now I want convert this website to ASP.NET 2.0,
How to convert it?
Do you know any tool to do this conversion ? Thanks.
I have tried to use VS2005 wizard to convert this project, but the page converted still
looks like ASP.NET 1.1 page. It's different with ASP.NET 2.0 page.
So, I want know any tool for help.
Thanks.
|
|
|
|
|
Of course it looks the same. Do you think layouts are going to change in 2.0?
If you ran the conversion, and it opens in 2005, it's converted.
|
|
|
|
|
edboe wrote: Of course it looks the same. Do you think layouts are going to change in 2.0?
Yes, I expect this.
|
|
|
|
|
It's not going to happen. It's not a magic trick. It converts the code, not the layout.
|
|
|
|
|
Thanks for your reply , we plan to re-develop it in the ASP.NET 2.0
|
|
|
|
|
Did anyone try to run some ASP.NET 2.0 apps with IIS7 on Windows Vista (build 5744)?
In my case an existing application perfectly working with IIS5 and IIS6, with IIS7 has problems, particularly with query strings parameters, MultiView s and Response.Redirect s.
Does anyone has some advice?
Thanks.
|
|
|
|
|
What kind of problems?
---
b { font-weight: normal; }
|
|
|
|
|
MultiView 's ActiveViewIndex not correct, Redirects that don't redirect, and something like that.
Anyway, I'll try to perform some more accurate tests because I can't even describe errors properly now.
|
|
|
|
|
i have a tree in asp.net(c#) and i want when i rightclick on one it has my favorite choocise that i want.
for example: when i rightclick it has insert,edit,delete and when i push delete i can delete that item. or when i push on insert it hase a link for the other form.
plz help me.
|
|
|
|
|
i want create a file in c#(asp.net) where that my project is but i dont want give a spacial drive i want it recegnize i write the below code but it created in c:\ but i want it created in e:\\Per\SkinFolder\1.css(wehere ever my project is)
System.IO.FileStream f = System.IO.File.Create("c:\\1.css");
|
|
|
|
|
Use Server.MapPath to get the physical path from a virtual path:
System.IO.FileStream f = System.IO.File.Create(Server.MapPath("1.css"));
---
b { font-weight: normal; }
|
|
|
|
|
thanks a lot. thats right
|
|
|
|
|
i want replace a file insted of the other file i do this work but its not write.
try
{
string OriginalFile = "c:\\"+them+".css";
string FileToReplace = "c:\\"+name+".css";
string BackUpOfFileToReplace = "c:\\"+name+".css.bac";
System.IO.File.Replace(OriginalFile, FileToReplace, BackUpOfFileToReplace);
Console.WriteLine("Done");
}
catch (Exception ex)
{
string s = (ex).ToString();
}
how can i do this?
|
|
|
|
|
I have never used the replace function. Generally what I would do is rename a file and then just write a new one with the old name.
|
|
|
|
|
Standard question #2:
What error message do you get?
---
b { font-weight: normal; }
|
|
|
|