|
Krazy Programmer wrote: Message from OS :
visual studio is busy with acrobat reader
Another big joke is that you posted joke in ASP.Net forum...
What does it has do with ASP.Net
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Manas Bhardwaj wrote: What does it has do with ASP.Net
Your guess is just as good as mine
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Paul Conrad wrote: What does it has do with ASP.Net
To my little knowledge asp.net applications are build in Visual Studio .. thats why and one more thing is that it is the most popular forum ..
last but not the least .. i was expecting such comments because jokers are every where
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Hai all,
i had one hyperlink(click here),while i click on the link
i need to open .pdf file which i have in d:/abc.pdf
thanks in advance.
while i give href...like
then the pdf file opens in IE or Firefox.
but i need to open .pdf file directly...not in IE or Firefox.
Thanks
Subbu.
|
|
|
|
|
subbu.sk wrote: while i give href...like
As a thumb of rule, href always opens content in broswer.
subbu.sk wrote: but i need to open .pdf file directly...not in IE or Firefox.
Respose.Redirect("filename");
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Did you try to search on google?[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
string filename = System.IO.Path.GetFileName(filepath);
Response.Clear();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename);
Response.Flush();
Response.WriteFile(filepath);
Venky
|
|
|
|
|
Could I use sql Express edition which is already installed in the vb.net 2008 to build a site.
|
|
|
|
|
y_mmohd wrote: Could I use sql Express edition which is already installed in the vb.net 2008 to build a site.
Who is stopping you?
Anyways, for developent you can use anything but as per MS EULA you can not use this in production environment.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Dear,
thank you for help,
But my question is related to a question before i had ask.
I want to build a web site containing a forum and users.
my first question, could i use sql express edition for this site
my second question, could i deploy and host this site using sql express edition
thanks for hlep
|
|
|
|
|
y_mmohd wrote: my first question, could i use sql express edition for this site
Yes
y_mmohd wrote: my second question, could i deploy and host this site using sql express edition
No
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I want to show OS VERSION and SERVICE PACK on a web page of the computer viewing the page on my intranet.
I keep on getting the server`s details.
It is a ASPX page with VB code behind
Can someone help me. . . ?
|
|
|
|
|
|
Hi,
I have some questions regarding application pools and the different types of web sites in asp.net.
As far as I understand, an application pool will reset after 20 min idle time by default.
But once that occur, we are experiencing a huge perf hit when accessing the first page in the site.
I get the impression that the site will start recompiling again.
The project type is the vs.net 2005 "web Site" project that does not compile the codebehind into a static dll in the bin folder
I can't recall ever having this problem when I have worked with the older "web Project" projects.
So is the problems I'm experiencing related to the fact that the codebehind is not precompiled and that the reset of the app pool throws away the compilation result of the previous worker processes?
or is the perf hit simply related to alot of overhead in starting up the worker processes?
Any ideas?
Will the problems go away if we change the project into a "web project" with precompiled codebehinds.
Or is the only solution to only allow the app pools to reset once every night or so?
|
|
|
|
|
A general answer to your post would be, Yes.
Precompiling the page will save you a lot of startup time.
I would untick the idle timeout, and instead recycle the processes at night when noone is using the homepage (if that's an option that is)
No recycling at all would be a bad advice though.
The default IIS setting seems to have the purpose to make it possible for even badly programmed pages with memoryleaks (AKA Crystal Reports) to work fairly well
|
|
|
|
|
Thanks,
Precompiling took care of the problems.
I do think that 20 min idle is way too drastic for the reset, but that is not up to me to decide here.
|
|
|
|
|
Just keep in mind that the app-pool idle timeout has to be the same or longer than the asp.net session timeout
|
|
|
|
|
Hi
We've encountered an authentication problem in a live-environment. Everything went fine in the test and stage environments. I'm out of ideas and need your help!
Setup:
- Impersonate is set to true in web.config
- Anonymous access is turned off
- Windows authentication is turned on
Authorization:
I have a setting in web.config, let's call it "AdministratorsGroup" and then I use this in the master page using Page.User.IsInRole to see if the current user is part of that active directory domain group.
This works perfectly fine in our test environments, but once installed in a live environment, an exception is thrown:
"Error in the relation between the confidence/reliance of the main domain and the domain which it relies on. "
Any idea's on what might have happened?
|
|
|
|
|
I have just started learning LINQ. i making DAL and i want DAL to return dataset like it used to be in .net 2.0. so that i can use data with any control. Or do need to do it with by running foreach loop? the code is like this
public IQueryable sel(int intCatID)
{
LINQPracticeDataContext db = new LINQPracticeDataContext();
var products = from p in db.MyProducts
where p.CategoryID == intCatID
orderby p.UnitPrice descending
select new { p.CategoryID, p.ProductName,p.UnitPrice };
return products;
}
|
|
|
|
|
Hie all,
I have got a small problem, im using the code below to close a page. It works only when its under a button(ie button click event) but when i use a toolbar click event its not closing the page, even though it runs through the code without any errors. does anyone know whats wrong.
protected void RadToolBar1_ButtonClick1(object sender, Telerik.Web.UI.RadToolBarEventArgs e)
{
if ((e.Item.Text == "Save & Close")
{
string scriptString = "; window.close();
Page.ClientScript.RegisterClientScriptBlock(this.GetType()), "submitScript", scriptString);
}
}
|
|
|
|
|
That's a wrong implemenation that you are providing i think
omlac wrote: but when i use a toolbar click event
Register your script in PageLoad by using Button
RadToolBar1.Attributes.Add("onclick", "javascript:window.close();");
where RadToolBar1 is your button id on clicking of which the window should close ?
Sorry but which event are you talking about ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Thanks
im doing everything in the radtoolbar clickevent, i have got a lot of other items on toobar, say "save" button and "save & Close" , so only when i click Save & close is when i want to close the page.
does the line RadToolBar1.Attributes.Add("onclick", "javascript:window.close();"); allow me to close only when button on toolbar is "save & close"
|
|
|
|
|
Yes,I supposed that "save & close" text is of RadToolBar1 button ?
Are you showing any pop up window which are having all this button ?
My code will close the window whenever user click RadToolBar1 button
Could you explain what are you trying to do ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
this radtoolbar is on a popup form. the toolbar has a number of items and i want to execute code depending on the item clicked on the toolbar.
|
|
|
|
|
Hi all,
I have requirement of capturing the opened webpage of my application.
In my webpage i am placing a button'btn_Capture' to capture the webpage.
If i click on button the whole web page should be converted into image(Except the btn_Capture).
Please suggest me how to achieve this.
Thanks inadvance,
|
|
|
|