|
It's as if you have absolutely no idea about web development at all. I suggest you buy a good book and read it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Hello every one ,I have a table having Column like Node_Id,Node_Name,Parent_Id;
Parent_ID column consist id of the parent node.I have to populate treeview control.i am facing problem ,Guide me please.
|
|
|
|
|
Write some code. No, first think about how your code has to work, then write some code. You're going to look for top level nodes, create them, look for the children of those nodes, create those, etc. When you've written actual code, when you've tried to do your own work, the code you post here, if you need to, will tell us the things we need to know in order to try to help you.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
How to add a splash screen in asp.net?
I want it to be visible until my page loads.Is there any way?
|
|
|
|
|
*sigh* how is it that so many people have no idea about web development ?
It's the internet, there's a reason that no website I've ever seen has a splash screen. It can't be done. Oh, you could AJAX something if you wanted, but it would be a waste of time.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Hi all,
I googled a lot and found that to display images from database we need to fetch it from DB and
Convert it to Byte[] and then pass it to Response.BinaryWrite() method.
But this is not working for me.
Can anyone please help me wid this?
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
|
Hi,
U need to take one .aspx page while displaying u have to assign URL to ASP:Image and on that page u have to convert it into byte code.
Thanks
Amit Patel
|
|
|
|
|
You need to create the image from byte array.
use a temporary folder to create the image.
byte[] image = GetImageDataFromDatabase();
string imagepath = Path.Combine(Path.Combine(Request.PhysicalApplicationPath,"tempImages"), "imagename.jpg");
using (FileStream ofstream = new FileStream(imagepath, FileMode.Create))
{
ofstream.Write(image, 0, image.Length);
ofstream.Close();
}
imgobj.src= "tempImages/imagename.jpg";
This will work.
|
|
|
|
|
Hi all,
In a ASP.NET website, I have used Login View to show the Login Status. For Login I have used Login Control.
It is showing status correctly. But after few idle minutes, it is automatically login view text changing to "login"
But user is already logged in. I think this is Session problem. I have used below line earlier. I commented it now.
Still same problem.
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400" />
pl.help me out
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
Hi,
Just a small code to check whether cookies are getting stored/retrived or not.
Check the code below:
protected void Button1_Click(object sender, EventArgs e)
{
Response.Cookies["userName"].Value = "patrick";
}
protected void Button2_Click(object sender, EventArgs e)
{
if (Request.Cookies["userName"] == null)
Label1.Text = "Cookie not found";
else
Label1.Text=Server.HtmlEncode(Request.Cookies["userName"].Value);
}
------------------------
When I try to retrieve the cookie values on button2_click, it is not retrieved although I have set the option "accept all cookies" in IE 6.
Where is issue?
|
|
|
|
|
Is this happening between postbacks.
I think it should work if you are not working cookieless.
I checked and found working.
Also check whether you have re initialized the value on page_load section.
|
|
|
|
|
I have not written anything in page_load.
Just this small code.
Moreover, when i try to see cookies folder, no such cookie is there.
I am running this web page on my machine only i.e. no webserver, just a local host.
|
|
|
|
|
The above code is working now.
IF i write the below:
Response.Cookies["userName"].Expires = DateTime.Now.AddDays(1);
There could be any value of expiry.
Why is it mandatory? I mean if we donot set it, does it mean it will not create at all.
Moreover, without seeing the code, how to verify the expiry time of a cookie?
|
|
|
|
|
Is there any possibility to show the Live Video[ Live of any Programm] in the Website, if it is then how we can show it? Can i get the full details about this?
|
|
|
|
|
|
Multiple instances of the browser is sharing the same session state. how to make use of different session for different instance of browser?
we are storing the session in DataBase.
Thanks in advance for your suggestion.
Satish
modified on Monday, September 14, 2009 3:13 AM
|
|
|
|
|
Well... what you can do is create a session yourself in the database based on the IP of the machine and assign each session state to the same IP.
If you map using IP, it will be easier to handle this.
|
|
|
|
|
Hi all,
In a registration page there is a dropdown list in which city name is comming form table if a paritcular city is not show in the dropdown then user select other option and when user select other then I want open a citymaster page in which option to add new city.
I have written a javescript fuction and calling it but it is open in new window
<script>
function showAddCityForm()
{
window.open("Citymaster.aspx")
}
</script>
tell me or hint me how to open page in the same window
Thanks in advance.......
|
|
|
|
|
The function is CALLED window.open, what did you expect ? Why do you need a method instead of just using a link ? Oh, because it's in response to a dropdown. Use window.location.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Samarjeet Singh@india wrote: how to open page in the same window
Try using
<script type="text/javascript">
function openpopup()
{
window.open("b.html",'_self');
}
</script>
|
|
|
|
|
Dear,
it is open in same window .
but i want to open as child page in the same window.
if know then suggest me...thnks
|
|
|
|
|
Samarjeet Singh@india wrote: but i want to open as child page in the same window.
window.showModalDialog("b.html",'','dialogHeight:140px; dialogWidth:400px ; resizable:no');
|
|
|
|