|
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.
|
|
|
|
|
I have a web service which has a method that takes in some parameters. When I view that in browser, I get textboxes to provide input for the webmethod. I want to remove the autocomplete feature from those textboxes. As I cant control the properties of the textbox, either I need to disable autocomplete feature of the browser - which I dont think can be done. Is there some way I can implement this?
C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void
"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding
|
|
|
|
|
I don't think it can be done, because the browser is doing it, and I don't know that you have any control over the code that is generating the page. It's really for testing purposes only, you shouldn't have people actually using it as a form of access.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i need code for GridView RowUpdating in asp.net
|
|
|
|
|
I know this is only your sixth post, but surely that's enough to know to post a meaningful header, and to try google before asking the most basic of 101 questions ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Is your subject right?Have you gone through the rules of posting a question in CP.
sanddepnamburi wrote: i need code for GridView RowUpdating in asp.net
Check the link below
[^]">
Cheers!!
Brij
|
|
|
|
|
sir,
I need help about "voice Recoding" through Asp.net application.
|
|
|
|
|
naagrjuna wrote: sir,
I need help about "voice Recoding" through Asp.net application.
Sorry About this post. This is just done by mistake.
cheers,
Abhijit
|
|
|
|