|
anish27patel wrote: That issue only face in IE 6. but in IE 7 it is working fine.
It does not depend on IE 6 or 7, but the security configuration of the browser.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi all,
i want to store outlook mail to database ??? how can i do that ??
is there any effecient way to do this ???
any hint ??? any example ?
thankx in advnace
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: i want to store outlook mail to database ??? how can i do that ??
is there any effecient way to do this ???
any hint ??? any example ?
ASP.NET does not developed for that !
|
|
|
|
|
Hello,
How can I play rm or Quick Time files on ASPX files.
Thanks
Dad
|
|
|
|
|
hi
I am using visual studio 2005 C#.
In my web application,
I have one web form which is having on link button
I want that when user click on this link, msn messenger must open it is intalled on PC or it should display msg like "Please intalled msn Messenger"
Regards,
ASIF
|
|
|
|
|
Why do you think that this is possible ? You can link to a local file, but you don't have access to the file system. I think you need to read up on what ASP.NET is and how it works.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
If you take a look on the MS / Live site, there's a Messenger control available for embedding into web apps...the same as they usefor Webmessenger
EDIT: Found a link - Live tools[^]
C# has already designed away most of the tedium of C++.
|
|
|
|
|
In my web application, I need to display binary image from database in image web control.
I can convert binary data to image, but how to bind it to Image web control?
Please help me.
|
|
|
|
|
Hi andiyuniar
I've had this issue before. The way I handled it was to "spoof" a content page to change it's ContentType to display images. I would pass it an id via query string and then set the imageurl to the spoofed page.
Here's an example that should help you. Please keep in mind, I don't know if it's the best solution, but it works for me. Also, there could be some performance hits if you have too many images being loaded on your page via this method.
Create a WebForm... i called mine LoadImage.aspx
Place this code in the Load event
if (Request.QueryString["Id"] != null)
{
int Id = Convert.ToInt32(Request.QueryString["Id"].ToString());
byte[] image = null;
if (image!=null)
{
MemoryStream ms = new MemoryStream(image);
Bitmap b = new Bitmap(Image.FromStream(ms));
Response.ContentType = "image/jpeg";
b.Save(Response.OutputStream, ImageFormat.Jpeg);
}
else
{
Bitmap b = new Bitmap(Image.FromFile(Server.MapPath("images/noimage.png")));
Response.ContentType = "image/jpeg";
b.Save(Response.OutputStream, ImageFormat.Jpeg);
}
}
else
{
Bitmap b = new Bitmap(Image.FromFile(Server.MapPath("images/noimage.png")));
Response.ContentType = "image/jpeg";
b.Save(Response.OutputStream, ImageFormat.Jpeg);
}
Then on the page you want to bind your image to just set the ImageUrl property to the webform plus query string.
Image1.ImageUrl = "LoadImage.aspx?Id=1";
Happy Coding
Cheers
Disgyza
Programmer Analyst
|
|
|
|
|
|
I am using jquery in my asp.net 1.1 application.
I am reterving some data using this function:
$(function() {
$("input#btnadd").click(function() {
$.get("RecordPage.aspx",function(response) {
// working on response received.
});
alert('Done');
});
Now my problem is alert('Done'); executed first before response part.
One person's data is another person's program.
--J.Walia
|
|
|
|
|
I would assume that this means it makes the request, then continues. You need to figure out if you can catch an even when the get has ended, and show your message there.
One way to do this, is to put something in the URL that tells it to inject the alert in the page that is being sent.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
Hi guys,
I am still newbie in asp.net
I want to refresh gridview every 30 seconds using timer
and I have got the problem with calling non-static function to databind the gridview.
here is example of my code
<br />
Timer AlertTimer = null;<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
Alert a = new Alert();<br />
DataTable dt = new DataTable();<br />
a.LoadAlarmFromDB(ref dt);<br />
gridviewAlarm.DataSource = dt;<br />
gridviewAlarm.DataBind();<br />
<br />
AlertTimer = new Timer();<br />
AlertTimer.Start();<br />
AlertTimer.Elapsed += new ElapsedEventHandler(AlertTimer_Elapsed);<br />
AlertTimer.Interval = 30000;<br />
<br />
}<br />
public static void AlertTimer_Elapsed(object source, ElapsedEventArgs e)<br />
{<br />
Alert a = new Alert();<br />
DataTable dt= new DataTable();<br />
a.LoadAlarm(ref dt);<br />
<br />
<br />
<br />
<br />
<br />
}<br />
public void bindGridView()<br />
{<br />
gridviewAlarm.DataSource = "";<br />
gridviewAlarm.DataBind();<br />
gridviewAlarm.DataSource = m_AlarmDT;<br />
gridviewAlarm.DataBind();<br />
}<br />
how do i call non static function in static function?
thanks so much for the help
Regards,
Arif
|
|
|
|
|
I think you can not able to call a non-static method from a static method,may be you can change your static function to normal function or you can change the normal function into a delegate function.
|
|
|
|
|
You are kind of right, and yet, utterly wrong.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
arifliminto86 wrote: I am still newbie in asp.net
I see that. You're obviously not writing commercial code, this isn't good enough for a beginners class. So, I suggest you either take a class, or buy a book and work through all of it. If you're writing commercial code, then you're a liar and a thief.
Your basic problem is that you don't have the slightest clue how ASP.NET works. Your server is doing NOTHING after your page is delivered. To get a page to auto refresh, you need a timer on the client, not on the server.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
Christian Graus wrote: Your basic problem is that you don't have the slightest clue how ASP.NET works. Your server is doing NOTHING after your page is delivered. To get a page to auto refresh, you need a timer on the client, not on the server.
Perhaps you ought to rephrase that. There is actually a method to refresh a page WITHOUT a timer AND from the client. Add the following meta tag to your page;
<meta http-equiv="refresh" content="900;URL={the fully qualified url of the page to be refreshed}" />
'900' represents the amount of time between refreshes.
|
|
|
|
|
Hi All,
I want to have a toggle images, so I did this.
<br />
<asp:TemplateField HeaderText="Start/Stop"><br />
<ItemTemplate><br />
<asp:CheckBox ID="chkStatusTogel" runat="server" <br />
OnCheckedChanged="chkStatusTogel_CheckedChanged" AutoPostBack="false" /><br />
<ajaxToolkit:ToggleButtonExtender ID="ToggleEx" runat="server"<br />
TargetControlID="chkStatusTogel" ImageWidth="16" ImageHeight="16"<br />
CheckedImageAlternateText="Stop" UncheckedImageAlternateText="Start"<br />
CheckedImageUrl="images/exit.png" UncheckedImageUrl="images/run.png" /><br />
</ItemTemplate><br />
</asp:TemplateField><br />
I can toggle between images. Now I want to handle the checked event.
But I've a big problem here. If I set the AutoPostBack to false, I cannot catch the CheckedChange event. If I set AutoPostBack to true, I can catch the event, but page refreshed automatically. I don't want that. How can I solve this.
Please help me, I'm new to ASP.
Thanks
I appreciate your help all the time...
CodingLover
|
|
|
|
|
I guess you want to try to use AJAX. I don't think newbies should use AJAX until they understand ASP.NET, however.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
Sounds like a job for Java or DHTML (really java too, although that statement raises the hackles on some). There are a large number of situations that require you to slide java in the middle of the process specifically becuase of the type of action(problem) you describe.
AJAX is simply more complex java code already rolled up for you to produce some nice 'effects' and functionality. It's nothing more than that though. An understanding of java helps dramatically in using AJAX, but is not necessary (as they are really the same thing).
Write a quick little java applet to switch your images and place the name of your java routine in the onclick attribute of the asp checkbox tag. Its really that simply and pretty neat once you get the hang of it. Search for some 'MouseOver' java code in aspx if you need examples. They are pretty easy to whip into what you need.
|
|
|
|
|
hai all,
am adding the following code in html for disabling the back button.
but am need to call this function on pageload?
If to call,how to do that?
Am just added in html and tested but its not working.
Please let me know if any of u know the solution
My code is here
function StopBackward()
{
window.history.back(-1);
}
kissy
|
|
|
|
|
You're living in a fantasy. You can't stop the user going back. Instead, you should fix your overall design.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
For what reason do you want to disable the back button? Many, including myself, use the back button often and I would consider it to be a usability issue if I couldn't go back a page easily.
|
|
|
|
|
thanks for ur answers.
Ex:If menu contains,
page1
page2
page3 and logout page.
after login,he can go to page2 and page1 with back button,but from page1 he should not go to login page with browsers.With logout only he can go back to login page.
once user login,and reached main menu page,until unless he clicked on the logout,he should not go back to the login page by clicking on the browers back button.
This is my requirement.Please let me know if any one of u understand and had solution.
kissy
|
|
|
|
|
Just as long as the page isn't cached then you can handle what to do in the one of the page events (not sure of the best one, maybe page_load?).
That is, if the user is logged in and he/she tries to go back to the login page then hide the login form and maybe show a message saying 'Already Logged In' or something. If the user has logged out and he/she tries to go back to a secured page then re-direct to the login page.
I think you can set whether to cache the page or not using the Response object.
|
|
|
|