Hi All, let's suppose
DataSet ds = new DataSet();
ds.Tables.Add(datatable1)
ds.Tables.Add(datatable2);
Repeater1.DataSource = ds;
then what would be the DataSource="?????" in gridview. Thanks,
Hi All, let's suppose
DataSet ds = new DataSet();
ds.Tables.Add(datatable1)
ds.Tables.Add(datatable2);
Repeater1.DataSource = ds;
then what would be the DataSource="?????" in gridview. Thanks,
OK i find it ...just make the public.
class A
{
public int iA1{ get; set; }
public int iA2{ get; set; }
}
Is it better way for multiple inheritance? Thanks,
Hi All, let's suppose
class A
{
int iA1{ get; set; }
int iA2{ get; set; }
}
class B
{
int iB1{ get; set; }
int iB2{ get; set; }
}
class C
{
int iC1{ get; set; }
int iC2{ get; set; }
}
Now i want make type ABC1 for List<<ABC1> and this ABC1 contain iA1,iB1,iC1 and iC2. But bellow code is not working...plz suggest me, i just want List.
public interface IABC1
{
A a { get; set; }
B b { get; set; }
C c { get; set; }
}
public class ABC1:IABC1
{
#region IABC1 Members
....
...
}
Thanks,
Hi all, let suppose var res = result.Select(s=> new {id=s.id,name=s.name}).ToList(); now i want pass this res in another method like func(res). Please tell me that how can i get the type of this res or how i can get data from res.
yes all data save in string strCSV
Hi all! i have a html table with data.i convert the data into the csv format and save in an string strCSV on client side.Now i want user can download this strCSV value as .csv file on client side. thanks
hi all, i just want create an email account through MAPI or whatever in exchange server . how it is possible?
Thanks.........u r right :cool:
hi all, for compress the pdf file i use below code:
byte[] bufferWrite;
FileStream fsSource;
FileStream fsDest;
GZipStream gzCompressed;
fsSource = new FileStream(@"C:\\Invoice.pdf", FileMode.Open, FileAccess.Read, FileShare.Read);
bufferWrite = new byte\[fsSource.Length\];
fsSource.Read(bufferWrite, 0, bufferWrite.Length);
fsDest = new FileStream(@"C:\\Invoice.zip", FileMode.OpenOrCreate, FileAccess.Write);
gzCompressed = new GZipStream(fsDest, CompressionMode.Compress, true);
gzCompressed.Write(bufferWrite, 0, bufferWrite.Length);
fsSource.Close();
gzCompressed.Close();
fsDest.Close();
pdf file compress successfully but without extension(.pdf) .......where is problem?
hi, i use ASPNetFlashVideo ,i have many clips i want playing these clips one by one on same ASPNetFlashVideo player. thanks
hi, i have an asp.net page where is a flash media player (ASPNetFlashVideo) now i want user can only watch the video and can not downloading this video specially in Maxthon explorer .Thanks
it does not working. and bellow message show on page Server Error in '/exxnew' Application. -------------------------------------------------------------------------------- The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /exxnew/~/PresentationLayer/Forms/Main.aspx now i use
Response.Redirect("/PresentationLayer/Forms/Main.aspx",false);
it's work well on local host but on live host its append /~
hi all , this my codebehind on login button click
FormsAuthentication.Initialize(); FormsAuthenticationTicket ObjTicket = new FormsAuthenticationTicket(1, txtLoginId.Text, DateTime.Now, DateTime.Now.AddMinutes(60), false, txtLoginId.Text + "," + txtPassword.Text, FormsAuthentication.FormsCookiePath); string encTicket = FormsAuthentication.Encrypt(ObjTicket); string sLoginId = txtLoginId.Text; sLoginId = sLoginId.Replace(" ", ""); Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encTicket)); Response.Redirect(FormsAuthentication.GetRedirectUrl(txtLoginId.Text, false)+"?id="+txtLoginId.Text);
and this is web config code
<authentication mode="Forms"> <forms defaultUrl="~/PresentationLayer/Forms/Main.aspx" loginUrl="~/Default.aspx" > </forms> </authentication>
above code well working on local host .......but on live host "~/" append with url for example i want www.abc.com/abc/PresentationLayer/Forms/Main.aspx but i get www.abc.com/abc/~/PresentationLayer/Forms/Main.aspx can anybody tell me that where is problem
hi all :) , this my codebehind on login button click
FormsAuthentication.Initialize();
FormsAuthenticationTicket ObjTicket = new FormsAuthenticationTicket(1, txtLoginId.Text, DateTime.Now, DateTime.Now.AddMinutes(60), false, txtLoginId.Text + "," + txtPassword.Text, FormsAuthentication.FormsCookiePath);
string encTicket = FormsAuthentication.Encrypt(ObjTicket);
string sLoginId = txtLoginId.Text;
sLoginId = sLoginId.Replace(" ", "");
Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encTicket));
Response.Redirect(FormsAuthentication.GetRedirectUrl(txtLoginId.Text, false)+"?id="+txtLoginId.Text);
and this is web config code
<authentication mode="Forms">
<forms defaultUrl="~/PresentationLayer/Forms/Main.aspx" loginUrl="~/Default.aspx" >
</forms>
</authentication>
above code well working on local host .......but on live host "~/" append with url for example i want www.abc.com/abc/PresentationLayer/Forms/Main.aspx but i get www.abc.com/abc/~/PresentationLayer/Forms/Main.aspx can anybody tell me that where is problem
hi all, i have html table with some data.......now i want collect the data from this html table and then send the all data to the server-side through page method. My logic is that in for-loop collect all data from html table and put in hashtable and then add this hashtable in an arraylist and then send this arraylist to server side. Can anybody solve my problem? :)
thanks........actually i have html page where is html table with data and there is an email send button.......i want when user click on send button then this html table send into the .pdf file to email
hi all, can any body tell me that hoe to i convert the html into the pdf file in asp.net or javascript
hi all :) , Does pagemethods returns records has limits? if yes then how to increase the returns values limit? thanks
hi all, this is code behind:
[System.Web.Services.WebMethod, System.Web.Script.Services.ScriptMethod()]
public static DataView getAccounts()
{
try
{
string strCon = ConfigurationManager.ConnectionStrings\["TFConnectionString"\].ToString();
SqlDataSource db = new SqlDataSource();
db.ConnectionString = strCon;
db.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;
db.SelectCommand = "getAccounts";
db.SelectParameters.Add("loginId", "K");
DataSourceSelectArguments args = new DataSourceSelectArguments();
DataView lst = (DataView)db.Select(DataSourceSelectArguments.Empty);
return lst;
}
catch (Exception ex)
{
return null;
}
}
and this is javascript:
function f1()
{
PageMethods.getAccounts(callSuccess, callFailuer);
}
function callSuccess(result)
{
alert(result[0]["account_nick"]);
}
function callFailuer()
{
alert('Fail');
}
in codebehind lst [DataView] shows records but on javascript its call failuer methode why? i just want pass the data to javascript as a list. thanks
modified on Thursday, August 13, 2009 12:33 PM
hi all, how to i send xml file to client side and than how to use this xml in javascript? thanks