|
salon wrote: Do we have any event after Page_Load event?
Yes, Page_Prerender, but that you even ask this, means you have no idea how ASP.NET works. Until the code in your codebehind has all run, NOTHINg is going to show on the client. You need to send a page which contains AJAX code which then loads the remaining controls, while showing your initial data.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hi,
Im using vb.net (asp.net 2.0,sql server 2000) im transferring a excel sheet to a database table.the excel sheet contains 50,000 records , while on uploading 25,000 records were transferred unfortunately due to some problem system were shutdown, so when im again transferring the file excel sheet it should starts copying from 25,001 th record.how can i acheive this one..
regrds
Kanna
|
|
|
|
|
via ASP.NET ? You can't. A windows app, you could transfer via FTP and if the FTP server supported resume, you could.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
how to add value in datacontrol field add in grid view
|
|
|
|
|
How to find out keypress shift+f10 .Is there any keycode for it ?
Thanks
Archana
|
|
|
|
|
http://www.google.co.uk/search?hl=en&q=javascript+find+key+press&btnG=Google+Search&meta=
|
|
|
|
|
sorry ..I have already googled it..
but nothing related to Shift + f10 functionality..Tatz why I raised a question here...
Can you please help me ...
|
|
|
|
|
Hi,
How to Export Gridview to pdf in asp.net
I searched in many forums. but many of them said to use third party tools.
I don't want any third party tools.
Suggest me any sample for without using third party tool and export Gridview to pdf
The Below code is working, When I open the Pdf file the error is showing that " Adobe reader could not open test.pdf. because the file type hasbeen damaged"
How to Resolve this?
Thanks in advance
<br />
Dim FilePath As String = "c:\test.pdf"<br />
response.ContentType = "application/pdf"<br />
response.AddHeader("Content-Type", "application/pdf")<br />
response.AddHeader("Content-Disposition", "attachment; filename=" + FilePath)<br />
response.WriteFile(FilePath)<br />
response.end()<br />
|
|
|
|
|
Hi All,
I have created an Intranet application in which only the users of Active Directory has to log in.
In that I have given the authentication as "Forms" but when the user types in the URL, the web application has to get the logged in user and it has to be validated against the Active Directory, if the user is not valid then the page has to be redirected to the Login Page, else it has to go to the landing page.
I have tried with the steps in the link: http://msdn.microsoft.com/en-us/library/ms972958.aspx[^]
But I am unable to get it.
Is there any method available to get the logged in user through forms authentication?
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
import java.net.*;
import java.io.*;
public class URLConnectionReader {
public static void main(String[] args) throws Exception {
String symbol = "SUNW";
URL yahoofin = new URL("http://finance.yahoo.com/d/quotes.csv?s="+symbol+"&f=sl1d1t1c1ohgv&e=.csv");
URLConnection yc = yahoofin.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(
yc.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
}
how to convert this java code to .net with c#
pls help me
|
|
|
|
|
It seems you'll be retrieving information in CSV format. Use the WebRequest and WebResponse objects to retrieve the content of the CSV.
|
|
|
|
|
Every single post on here is a question. Every single one of your posts has had the subject Question. Please try to use descriptive subjects.
|
|
|
|
|
In a console application:
using System;
using System.IO;
using System.Net;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
string symbol = "SUNW";
Uri uri = new Uri("http://finance.yahoo.com/d/quotes.csv?s=" + symbol + "&f=sl1d1t1c1ohgv&e=.csv");
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(uri);
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
using (StreamReader sr = new StreamReader(resp.GetResponseStream()))
{
string input;
while ((input = sr.ReadLine()) != null)
{
Console.WriteLine(input);
}
sr.Close();
}
Console.ReadLine();
}
}
}
|
|
|
|
|
|
You are welcome, but please check my post above... stop using "question" as your subject!
|
|
|
|
|
Hi,
Can anybody tell me how can I create a database which allows me to save arabic words in the tables, I Knew that i have to make table fields to nvarchar and set the browser settings to utf,is setting this only will allow me to save arabic characters to database or i have to do any other task.
|
|
|
|
|
Take a look this toturial.[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
i've created an user control with two textboxes. i've add it in a page at run time in pages load event as
UserControl uc = null;<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if (!Page.IsPostBack)<br />
{<br />
uc = (UserControl)LoadControl("UserControl/data.ascx");<br />
PlaceHolder1.Controls.Add(uc);<br />
}<br />
}
but after pst back it dis aapears. what is the reason? i've to collect values of text boxes of user conter after post back.
|
|
|
|
|
The if (!Page.IsPostBack) makes your uc 'disapear'
Remove the 'if' and you're done...
|
|
|
|
|
You won't be able to collect the values in your textbox, because by PageLoad, your viewstate has been loaded and restored without those values. Why are you adding it dynamically ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
If he adds the control dynamicly OnInit the values will be restored and the control will be working fine...
|
|
|
|
|
True, because it will be before page load. But, if it gets added every time, why not just do it in the ASPX ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
|
thanks a lot to all of u.
|
|
|
|
|
i want to convert names written in a textbox to be converted in punjabi in vb.net.... can any one help me plz..
|
|
|
|