|
can anyone guide me that i have a date picker dll and i want to use same dll and it does not have readonly property now can i set something extra to set it readonly..?????? any sugession....
umerumerumer
|
|
|
|
|
Do you have the code ? If yes you can Customize . If no ..Then there is no way .
cheers,
Abhijit
|
|
|
|
|
You can override the property.Check the link
[^]">
Cheers!!
Brij
|
|
|
|
|
yes i know how to override the property but it is only dll there is no code my obviously we can make changes in it is there any posiblity to place any div or pannel some thing transparent on it while designing it??
umerumerumer
|
|
|
|
|
i am a beginner of asp.net2.0 and c#,i am storing an image(binary data)in a sql server 2005 db table,i want to display image to datalist please help me
|
|
|
|
|
Duplicate post again?One will always suffice!!
Cheers!!
Brij
|
|
|
|
|
You need to create a ASPX page which reads data from database and send response with image content type. Assume it's name is ShowImage.aspx . In your datalist, put template columns and specify the image tag like
<img src="ShowImage.aspx"> If you have to pass additional values to ShowImage.aspx , pass it through query string.
|
|
|
|
|
I used this code for datalist page load-frmCheck.aspx
clsSqlHelp objHelp = new clsSqlHelp();
clsBllChek objBllCheck = new clsBllChek();
string imggrabFlag = "PF";
protected void Page_Load(object sender, EventArgs e)
{
objBllCheck.comboFill(cmbProduct);
//objBllCheck.DataListFill(dlProduct);
DatalistFill();
}
protected void btnSearch_Click(object sender, EventArgs e)
{
}
public void DatalistFill()
{
objHelp.openConnection();
DataSet objDs = new DataSet();
SqlDataAdapter objDa;
string strSql;
//strSql = "select imgId,imgData,imgTitle from checktabl";
strSql = "select prd_id,name,logo,logo_Length from Edms_Product_Mstr";
objDa = new SqlDataAdapter(strSql, objHelp.dbCon);
objDa.Fill(objDs);
objDs.Tables[0].Columns.Add("imgFile");
foreach (DataRow dt in objDs.Tables[0].Rows)
{
dt["imgFile"] = ("imgGrab.aspx?id=" + dt["prd_id"] + "&flag=" + imggrabFlag);
int idc = Convert.ToInt32(dt["prd_id"]);
}
dlProduct.DataSource = objDs;
dlProduct.DataBind();
objHelp.dbCon.Close();
}
public string FormatURL(object strArgument)
{
int id = Convert.ToInt32(strArgument.ToString());
//return ("imgGrab.aspx?id=" + Convert.ToInt32(strArgument.ToString()));
return ("imgGrab.aspx?id=" + Convert.ToInt32(strArgument.ToString()) + "&flag=" + imggrabFlag);
}
2 also i used an another page imgGrab and write the code below
protected void Page_Load(object sender, EventArgs e)
{
objHelp.openConnection();
int id = Convert.ToInt32(Request.QueryString["id"]);
DataSet ds = new DataSet();
SqlDataAdapter da;
byte[] arrContent;
DataRow dr;
string strSql="";
if (Request.QueryString["flag"].ToString() == "PF")
{
strSql = "Select * from edms_product_mstr Where prd_id='" + Request.QueryString["id"] + "'";
da = new SqlDataAdapter(strSql, objHelp.dbCon);
da.Fill(ds);
dr = ds.Tables[0].Rows[0];
arrContent = (byte[])ds.Tables[0].Rows[0][9];
string conType = ds.Tables[0].Rows[0][13].ToString();
Response.ContentType = conType;
Response.OutputStream.Write(arrContent, 0, int.Parse(ds.Tables[0].Rows[0][11].ToString()));
Response.End();
}
}
it is possible,but now i want to display image from datalist using single aspx page
|
|
|
|
|
|
i have a iload control setup for uploading images ,how could i use that control in my application
|
|
|
|
|
you can start any exe as
Process.Start("path of exe");
Cheers!!
Brij
|
|
|
|
|
Brij wrote: you can start any exe as
Process.Start("path of exe");
I am sorry, but you are retarded.
|
|
|
|
|
Are you at right place to comment on anybody.It's always better to give suggestion not comment
Cheers!!
Brij
|
|
|
|
|
Navaneeth is right. You give a lot of bad answers on these forums, but this takes the cake. Process.Start in an ASP.NET application ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
saibabuvenkata wrote: Subject: calling an exe file
Why ? Why it is need ? If you execute then it will invoke server side exe only. There is now way to execute Client side file as some one already suggested !!!
cheers,
Abhijit
|
|
|
|
|
In Asp.net 2.0 webapplication how to create a new tab on link button clicked like how firefox browsers does.
It should open in any browsers when i run my asp.net 2.0 web application.
Is there any solution?
VanithaVasu
|
|
|
|
|
Am not sure what you mean ,but if you want to achieve the Following. You have a link Button that takes you to another page and you want to open that new page on a new Window(Browser).If Am navigating away from my Site, i use a Hyperlink that has a Property "Target" that you can set to "_Blank",
but for you this might help
LinkButton1.Attributes.Add("onclick", "window.open('test.aspx');")
Hope it Helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
i could not able to create a database for an online website
|
|
|
|
|
Please can you be in detail?
Cheers!!
Brij
|
|
|
|
|
lol Congradulations
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi, I'm trying to make a hierarchy table by using the repeater. I've created a loop that checked the items in my data base one-by-one if they have sub items so that they can be placed underneath the main item just like a hierarchy form. But when I tried to insert the item into the repeater one-by-one I encountered a error saying.
"ITEM_NAME is neither a DataColumn nor a DataRelation for table Table."
Can you teach me how to make a much more easier way to arrange my items in a hierarchy form?
thanks.
|
|
|
|
|
meki_2118 wrote: "ITEM_NAME is neither a DataColumn nor a DataRelation for table Table."
No-one can solve this without seeing the code.
A heirarchical table is going to involve nested repeaters. Do you have a fixed depth your heirarchy can go to ? Then you can just set up your data and databind.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
DS = DAL.Get_Data_BE(txtCcNo.Text)
n = DS.Tables(0).Rows.Count
Do Until n <= 0
i = i + 1
contItemName = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - i).Item("ITEM_NAME")
contPCode = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - i).Item("P_CODE")
DS = DAL.Get_Level_BE(contPCode)
j = DS.Tables(0).Rows.Count
k = 0
Do Until j <= 0
k = k + 1
PrimCont = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - k).Item("PRIM_KEY")
DSL = DAL.Get_ItemName_BE(PrimCont)
ItemCont = DSL.Tables(0).Rows(DS.Tables(0).Rows.Count() = 0).Item("ITEM_NAME")
ItemRepeater.DataSource = DS
j = j - 1
Loop
DS = DAL.Get_Data_BE(txtCcNo.Text)
ItemRepeater.DataBind()
n = n - 1
Loop
Here's the loop that I've created. And the hierarchy will consist of up to 5 sub items. that's what I've been planning.
|
|
|
|
|
Can you provide your code?
Cheers!!
Brij
|
|
|
|
|
DS = DAL.Get_Data_BE(txtCcNo.Text)
n = DS.Tables(0).Rows.Count
Do Until n <= 0
i = i + 1
contItemName = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - i).Item("ITEM_NAME")
contPCode = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - i).Item("P_CODE")
DS = DAL.Get_Level_BE(contPCode)
j = DS.Tables(0).Rows.Count
k = 0
Do Until j <= 0
k = k + 1
PrimCont = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - k).Item("PRIM_KEY")
DSL = DAL.Get_ItemName_BE(PrimCont)
ItemCont = DSL.Tables(0).Rows(DS.Tables(0).Rows.Count() = 0).Item("ITEM_NAME")
ItemRepeater.DataSource = DS
j = j - 1
Loop
DS = DAL.Get_Data_BE(txtCcNo.Text)
ItemRepeater.DataBind()
n = n - 1
Loop
Here's the code.
|
|
|
|