|
I want to upload picture in database using sqldatasource.I want to save the name of picture in database and the picture in a file on server.I couldnot find an article using sqldatasource .please help me.
|
|
|
|
|
Try using the keyword "BLOB" in your search.
Here[^] is a place to start via google.
Hope this helps.
|
|
|
|
|
bbc_sh wrote: I couldnot find an article using sqldatasource
Avoid using SQLDataSource. Write your own code which gives you more flexibility.
|
|
|
|
|
HI,
I have an website.It contains nearly 130 asp x pages. Here i have 6 modules like Home,About us,Services,contact us etc.,...
Now i need to create a site map link in the bottom of my website. when ever we click on the site map link it needs to show module wise links.
How can i create it...
Here i am giving a sample navigation site map link.
http://www.indiacar.com/navigation.htm[^]
Vasvai
|
|
|
|
|
Hello all,
I posted a question recently on using a SDK from an ASP.NET application and got some answers that made me rethink how i should approach an application i need to build.
Basically I have an ASP.NET application that needs to interact with a piece of hardware when either a user wants to interact (they tell the hardware to do something e.g. turn on turn off) or periodically (we poll for information from the hardware). Unfortunately the SDK only allows one call at a time so I need to provide my own locking around the SDK to ensure firstly that two asp clients attempt to interact with the hardware at the same time and secondly that a user doesn’t try to interact whilst a periodic action is taking place.
After some research and some questions on various forums I have decided to create a windows service which will create static instance of the SDK and the call these methods from the ASP.NET application through IPC remoting channels. From what I have read I will need to create two DLL’s one to interact with the SDK and contain the business logic and a DLL which will be used for the remoting objects.
Am just wondering if this seems the most logical way to tackle this problem or if anyone can think of a different/more efficient way or can see any holes in my solution. Am completely lost by this now as i can't find any examples of doing this it all seems to be about using web services but because i want to keep the state of the SDK object i didnt think i could use these??!!
Thanks,
Adam
|
|
|
|
|
I have a page with nothing but buttons and the only thing they do is a response.redirect(" ") to which ever page. If I let it sit still for roughly 2 minutes and hit the return key I get a blank page. Can anyone pls help me trouble shoot this problem.
Lonnie R Thomas
|
|
|
|
|
I assume you never redirect to an empty string. What is the code ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
one button may do a response.redirect("report1.aspx") and the return button does a response.redirec("reportsmenu.aspx")
Lonnie R Thomas
|
|
|
|
|
Maybe try setting SmartNavigation="true" in your page directive? Or check if your session is timing out...
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
I talked to my webmaster and in IIS the default is 20 minutes and that is what he has set. But the problem I am having is the page does not have to sit for that long to give me a blank page when hitting the return key. Never used smartnavigation but I will research. Thanks for the reply.
Lonnie R Thomas
|
|
|
|
|
checked on smartnavigation on msdn and they say it is obsolete,
Lonnie R Thomas
|
|
|
|
|
Have you checked the functionality of the page itself (the page you are re-directing to)? What is the page actually doing? Are you gathering data from a database? It could be that which is taking the time.
Adam
|
|
|
|
|
Yes. The pages being transferred to have a grid. But the data comes right up with no delay.
Lonnie R Thomas
|
|
|
|
|
What's the url of the blank page? Does it reload the same page, or does it redirect to a different page?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
it is going trying to load the same page. whereas the respons.redirect("reportsmenu.aspx") is the command.
Lonnie R Thomas
|
|
|
|
|
Try to add
form1.Attributes.Add("onkeydown", "return false;");
to the Page_Load()
This way any key pressed on that page will be ignored (as all you need is the mouse to press the buttons).
|
|
|
|
|
Hi all,
I am having problems with my visual studio project. i cant execute my project.It comes up with the above error every time i try and run the program.
I copied the Webdev file from a working PC however,with no success.
Please advice
Thank you
|
|
|
|
|
i want to disable imagebutton.
ImageButton1.Enabled = false; this is not working ?
any suggestions.....
|
|
|
|
|
in which part of the code you do this?
|
|
|
|
|
|
Well, duh. What method ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
iwant to disable image button.
if (this.PageNumber == 1 )
{
ImageButton1.Enabled = false;
}
else
{
ImageButton1.Enabled = true; ;
}
THIS IS NOT DISABLING THE IMAGEBUTTON.
|
|
|
|
|
God.
WHERE DO YOU CALL THIS CODE ? IN WHAT METHOD ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
iam having the 1 to 11 pages .
Previous and Next image buttons .
If iam in First Page PREVIOUS IMAGE BUTTON should be disable.
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
if (this.PageNumber == 1)
{
Response.Redirect("pge1.aspx");
ImageButton1.Enabled = false;
ImageButton2.Enabled = true;
}
else
{
this.PageNumber -= 1;
Response.Redirect("pge" + this.PageNumber.ToString() + ".aspx");
}
}
protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
{
if (this.PageNumber == 11)
{
//ImageButton1.Enabled = true;
//ImageButton2.Enabled = false;
//lnkNext.Enabled = false;
Response.Redirect("pge11.aspx");
}
else
{
ImageButton1.Enabled = true;
this.PageNumber += 1;
Response.Redirect("pge" + this.PageNumber.ToString() + ".aspx");
}
}
|
|
|
|
|
Oh, you're the guy from the other day. I see your code is still a disaster. You still have the same issue you had the other day. Refer to my answers from then, no point in repeating them if you're going to ignore me.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|