|
Add BrowserFile to Your Application and ie Add new item -->Browserfile .browser and delete the exisisting code and add the follwing Code in the browser file
<browsers>
<!----><browser refID="safari1plus">
<!----><controlAdapters>
<adapter controlType="System.Web.UI.WebControls.Menu" adapterType="" />
</controlAdapters>
</browser>
</browsers>
If this Not the Answer Sorry If it Works let me know
|
|
|
|
|
I have used something for GoogleChrome problem. Use can use something like this for IE prob
if(Request.UserAgent.Contains("AppleWebKit"))
Request.Browser.Adapters.Clear();
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
Hi,
Is there any option to use OracleBulkCopy in Asp.net. How to use it? What is the namespace?
|
|
|
|
|
no there is no method like oraclebulkcopy, you have to use loop for bulkcopy in c#.net
|
|
|
|
|
hello sir,
how can i take hindi input in a textbox and save it in database
i am using vs2005 and ms-sql2000
what is the collation for hindi in sql2000
|
|
|
|
|
|
thanks for your reply
how to store in sqlserver 2000
|
|
|
|
|
Hello,
I am using the following code to provide download funcition, when user click the download button, then a download dialog will automatically appear which with three buttons: open, save and cancel. OK, the user can select one of three. Now, I want to know how can I know which button is clicked by the user, espeically whether the user click the cancel button or not, in order to know whether the user has really downloaded the file. if the following code is not easy to do so, then any alternative solutions? Thanks!
Response.ContentType = "pdf/doc/exe/chm";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + str_download_file_name_full);
Response.TransmitFile(Server.MapPath("~/files/" + str_download_file_name_full));
Response.End();
|
|
|
|
|
Seraph_summer wrote: espeically whether the user click the cancel button or not, in order to know whether the user has really downloaded the file.
AFAIK : It is not possible.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
well, AFAIK there is no way to determine whether the file is actually downloaded in this way.
The file is downloaded once you postback totally.
If there is any other way around, of this.. .please let me know.
|
|
|
|
|
Hi
I want to create sqldatasource without using wizard in ASP.
please tell me the code of creating sqldatasource and the code of setting connectionstring of that?
|
|
|
|
|
What do you mean??
create an object of SqlConnection .
Get SqlCommand object to run a command.
Read basic books on DataBase Connectivity. Its easy and essential.
|
|
|
|
|
you know that we can use sqldatasource in Toolbox of ASP when we want to build a websit.
This way we use wizard of ASP.
Now i don't want to use wizard.
I want to create sqldatasource in ASP code( .cs ).
what is the code of it?
|
|
|
|
|
Yes.. but in real life, we cant rely on wizards.
Believe me, to make a good foundation, it is always better to avoid wizards. Wizards are only for time saving purpose.
Read some articles , books whatever to do your job.
|
|
|
|
|
farokhian wrote: I want to create sqldatasource without using wizard in ASP.
Crate SQLConnection .
Use SQLCommand
Execute Command
Here is an good reference for you
Using ADO.NET for beginners[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I add one button for each row in a gridview, then some process will be carried out by cliking the button,
first of all, the selected row should be identified by clicking the button, but I do not know which function should be used?
thank you for your help in advance!
|
|
|
|
|
|
You can use RowCommandEvent like this. e.Command name give thename of your button you gave in aspx. Now do whatever you want to do.
You can also use RowdataBound event.
protected void gvCardFeesRReport_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
switch (e.CommandName)
{
case "First":
gvCardFeesRReport.PageIndex = 0;
break;
case "Prev":
if (gvCardFeesRReport.PageIndex > 0)
gvCardFeesRReport.PageIndex = gvCardFeesRReport.PageIndex - 1;
break;
case "Next":
if (gvCardFeesRReport.PageIndex < gvCardFeesRReport.PageCount - 1)
gvCardFeesRReport.PageIndex = gvCardFeesRReport.PageIndex + 1;
break;
case "Last":
gvCardFeesRReport.PageIndex = gvCardFeesRReport.PageCount - 1;
break;
}
}
catch (System.Threading.ThreadAbortException)
{
}
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
I use the following functions for providing file download, but I found once this function is executed, then the fontsize of the whole page become automatically very big. but if I delete "Response.End();", then everything is fine, anyone can tell me why? thanks!
Response.ContentType = "pdf/doc/exe/chm";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + str_download_file_name_full);
Response.TransmitFile(Server.MapPath("~/downloadfiles/" + str_download_file_name_full));
Response.End();
modified on Sunday, August 30, 2009 1:08 PM
|
|
|
|
|
Try to download in a Popup rather than main page.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thanks, your suggestion may solve this problem, but I did not intend to do so.
by the way, one quesition: if I do not use Response.end(), what is the potential problem caused?
|
|
|
|
|
Well,
Response.End will force the Response to end even if there might be a large no of lines being executed after that.
It is better to use Response.Clear before download and Response.End after transmitting the file.
|
|
|
|
|
Hi Friends,
Can it possible to disable or hide HTML view sources of any web page ?? I think this way it can protect my page data to crawled.. Please help me ..
|
|
|
|
|
basantakumar wrote: Can it possible to disable or hide HTML view sources of any web page ??
No you can't .
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
No. it is not possible, as the entire html should be downloaded to the client browser to render content.
If you want to protect your client logic there are two way out :
1. You render everything within an object(might be Flash / silverlight) so that the actual validation logic or web service calls cant be found by the user easily.
2. You can open your website in a new window, with addressbar, statusbar, toolbar etc hidden... Also hide the context menu, so that the normal user cant find the html source very easily. This is done by most of the banking sites. Just add the code :
document.oncontextmenu = function(){
return false;
}
To hide the context menu.
I think this helps you.
|
|
|
|