|
Perhaps if you whip it harder, it will work more ?
If you want more meaningful help, you have to tell us
1 - what 'not working' means
2 - if you're sure this code is being called
3 - what happens as you step through the code in the debugger.
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.
|
|
|
|
|
use onrowdatabound event rather than DataBinding .
Also let me know what error it produces ...
|
|
|
|
|
How to create a Folder browse control in asp.net like windows application.
koppula
|
|
|
|
|
not possible as we dont have that in HTML.
We can only have input type=file to have file browser.
Either use it or create custom browser plugin.
|
|
|
|
|
You can create a folder on server using
if(!Directory.Exists(path))
Directory.CreateDirectory(path);
|
|
|
|
|
koppulaj wrote: How to create a Folder browse control in asp.net
Why you want a browse control?Explain your requirement so that we can think in different way.
|
|
|
|
|
Actually i want to insert into database through
javascript .I donot know how to write Code for connection string and all that
IS it possible then give me a good code example .
|
|
|
|
|
hi,
why u want to insert through the java script..
Thanks,
Amit Patel
|
|
|
|
|
You cant have direct connection to the database from javascript. You make request using AJAX to a page, which will save the data for you in the server.
|
|
|
|
|
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?
|
|
|
|