|
Gagan Deep Garg wrote: I am using Ajex in asp.net with C#. when I drag and drop the update panel my frmDefault.aspx then remove the intelligence help in source file frmDefault.aspx.
OK... I understood...
|
|
|
|
|
I would first suggest you to frame a complete sentence properly and express youself with clarity without any ambiguities. If you are seriously distraught and struck in a language barrier, since you are India, check out http://www.veta.in/[^].
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
hi all
How to DownLoad a file of any format(like .pdf, .doc etc.) which is stored in database in byte format
thanks in advance...
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
Simple. Get the bytes from the database, and save it as a file with proper file extension.
|
|
|
|
|
but how do i....?
i dont know the file format...
thanx for the reply..
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
Thanks a lot...
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
Software Development
How to Download any file from ASP.NET
You know, some formats (txt, gif etc.) will be shown on the browser rather than downloading when we try. Below is the script which will help you to download any file.
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
Response.Clear();
Response.AddHeader(“Content-disposition”, “attachment; filename=”);
Response.WriteFile(“C:\”);
Response.End();
modified on Thursday, February 21, 2008 1:27 PM
|
|
|
|
|
how to show the panel scroll bar when it is loded for the first time
|
|
|
|
|
Set the overflow style to auto or scroll like,
MY_PANEL.Style.Add ("overflow", "auto")
Here MY_PANEL is your panel control's ID.
|
|
|
|
|
i mean that when the form is loaded scroll bar should come to the down instead of showing top by default
|
|
|
|
|
jagadeeshkumar2106 wrote: i mean that when the form is loaded scroll bar should come to the down instead of showing top by default
You can either use named anchor and call it. For Example, if your page name is "Default.aspx", add a named anchor at the end of the name as,
<a name="page_end"></a>
Now while redirecting call "Default.aspx#page_end"
OR
document.getElementById('MY_PANEL').scrollTop = MAXIMUM_SIZE;
|
|
|
|
|
i like to build a website containing maps .in my website anyone click on there location on map and put some details and save it in my site.
e.g-
i have to click my house on map.and type my name , address and some notes in some text boxes then save it . this details have to save in a database with its image coordinate.
how can i do i.please anyone help me step by step.
modified on Wednesday, February 20, 2008 2:04 AM
|
|
|
|
|
hi all
can u plz help me in this..
iam uploading a image using file upload control in asp.net.
but i want to restrict the size of an image ..
can u plz suggest me to restrice the image size.
thank you.
|
|
|
|
|
You can define In the web.config file.
Find a node called <httpRuntime> and set property maxRequestLength as per your requirements.
<httpRuntime
executionTimeout="110"
maxRequestLength="4096"
........................
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
Back in the old days of ASP, I could create a global page, reiterate thru a database and pass the records' value to variables that a simple <%=(var)%> and an include tag, on another page would catch.
But for more flexibility, I created a Client Class, passed the db record values to the client class properties to a .vb page, and want to use those values, sometimes multiple times on the same page (hence no user controls are no good). I know I could insert an include tag on the receiving page, and declare a public variable on the .vb page that inherits the class & reiterates thru the db, but Pubic variables worry me.
Does anyone have any suggestions on how to use class objects on other .aspx web pages, without using controls, that basically accomplish the same thing as an include tag with a <%=(var)%> script?
|
|
|
|
|
You can use session variable.
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
Won't there be a performace issue if i use too many session variables?
|
|
|
|
|
Yes, may be if you will use very large object. But you can handle it in different way.
Please find the below link.
vishaljoshi.blogspot.com/2003/10/session-variables-operational.html
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
What would be a second alternative if I didn't want to use session objects? It seems the pages that truly preclude me from using the ole method of embedding redundant data are pages that include forms.
Let me be specific: Let's say I have content that I want to use and reuse for different websites. The variables in the content from each are company name, phone number, address, and other unique data. Ideally, I'd like to store the reusable content into a sql table with the unique variable data script embedded with in (as example in ASP 1.0: "<td><%=(CompanyName")%> has been in business for
<%=(YearsinBiz")%>. Our owners work hard for our customers, you can contact them, their names are <%=("Name1")%> .......</td>" .....
As you can see, their could be a myriad of data for embedding and I do not think session objects are the best choice.
Again, I have captured all the data into my Client Class Object. I now need to replicate that information, sometimes, more than once on the same page, and a simple <%=("var")%> tag causes havoc on the pages that have forms. And, since I try to have a quick contact form on the side of each page, I have a problem.
I hope I have better explained my delima and maybe you have a solution to share. Thanks.
|
|
|
|
|
"<td><%=(CompanyName")%> has been in business for
<%=(YearsinBiz")%>. Our owners work hard for our customers, you can contact them, their names are <%=("Name1")%> .......</td>" .....
First: Above string, You need to manipulate in code bihind file with the client object information.
Note: you can use String Builder for large string manipulation.
Second: client object hold into the session variable.
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
Working on first web dev site in VWD 08. I can get the FormView control to sync w/ GridView control using the code below and ONLY for the first 10 records. When I click the pager link to page 2, I can't get the next batch of records to display in FormView, it stops at 10.
What Gives?
Question:
What code or property setting will make this function work?
Current Code:
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
FormView1.PageIndex = GridView1.SelectedIndex
End Sub
|
|
|
|
|
Ah - you cross posted. Just post in the ASP.NET forum if the question is ASP.NET.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Is it possible to to read the ftp file without downloading the files to the local drive ?
Thanks
|
|
|
|
|
You could start FTPing it and stop when you have the bit you want...
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Use the WebClient.DownloadData method to get the file from ftp as a byte array.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|