|
ORDER__
|- X(3") -->A(2")-->B
| -->C
| -->D(3)
|- Y(1") -->E(1)
|- Z(2") -->F(1")-->G(1)
-->H(1")-->I(3")-->J(1)
-->K(2)
" represent group which contains another group or item .
--> represent items under
() in bracket dgit represnt quantity fot particular product .
Now i have to assign unique serial no to evert quantity .
|
|
|
|
|
What is it that is storing these numbers ? Where does the unique number have to come from ? Unique in what way ? Does it need to have a format ? Does it need to then be stored and found again later ? IS there a seperate sequence for each object ?
Your question still is not clear.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
What is it that is storing these numbers ? Where does the unique number have to come from ? Unique in what way ? Does it need to have a format ? Does it need to then be stored and found again later ? IS there a seperate sequence for each object ?
yes i have to store these no . every item has unique no (int) . that is inserted by us . insert all serial no . and then found later , when we click order .
|
|
|
|
|
Rinki Mukheraji wrote: What is it that is storing these numbers ?
By which I mean, do you have a list of objects which contains lists, do you have a data set, or where is this data coming from ?
If you order the same product again later, would it have the same number ? Or are you creating serial numbers for products at the point they are ordered ? How are they stored in the DB ? Why don't you give items a serial number as they come into stock ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
group and items store in database . in page load one dropdownlist show all items and groupg together .
whenever i purchase a new prouct with no of quantity , i have to insert different unique serial no for every qty. and the main problem is this i dont knew the end point of particular item b'coz a group contains
another group and that contains another and so on ..
|
|
|
|
|
Rinki Mukheraji wrote: i have to insert different unique serial no for every qty.
Your question is still not clear. You can use identity columns to create a unique number for each row. Is this what you are looking ?
|
|
|
|
|
Hello all,
Could somebody please tell me how to control the display order of controls in a CommandField, I want the select button to display before the others.
Any helps would be appreciated.
Spidervn
|
|
|
|
|
Hi,
In the GridView design mode, there is a small arrow sign, which allows you to perform GridView tasks from there when you do to Edit Columns, and select your CommadField it will list the available Commands under the Selected Fields Section. From there select the “Select” field and click on the “up” arrow, to get the order you want it to appear.
Thx,
Gayani
|
|
|
|
|
Hello Gayani,
Thanks for your reply but I'm afraid that your suggestion is not what I'm looking for.
I try to generate the commandField dynamically with all 3 commands in 1 field (edit, delete and select). In my case, the edit button always show up first, then the delete and select button.
I just wonder how to change that display order so I can place the select command at the beginning of that commandField.
Regards,
Spidervn
|
|
|
|
|
Hi , I am very new to DotnetNuke , I am exploring myself on creating a simple module in c# in DotnetNuke 4.8.4. I want to display a text Hello that's it . Can anyone explain me step by step.I searched from google but i don't have clear idea.
I know to install a module that should be as Zip file. but i don't know from the Desktop module how to create a new module and finaly t create zip file i.e what r the files needed,
And also I don't know which is the correct to create the new module i.e install version or source or using template?
Currently i am trying using insatll version.
Can anyone help me on this as soon as possible? Please............
iam a software engineer working for varisis technologies bangalore
|
|
|
|
|
just read documents it's very easy, i have not dnn right know but i remember that in modules page you could make a zip file
I Wish the Life Had CTRL-Z
Wizard's First Rule : People are fool,they believe what they want to believe or what they afraid to believe
www.subaitech.blogspot.com
|
|
|
|
|
|
download dnn docs from dotnetnuke.com
creating a module is explained step by step in the docs
to pack a module login with "host" in the host menu choose "module definitions" and find "Create Module Definition" link.fill the fields that's it
I Wish the Life Had CTRL-Z
Wizard's First Rule : People are fool,they believe what they want to believe or what they afraid to believe
www.subaitech.blogspot.com
|
|
|
|
|
In using C# how exactly do you get the persons email and first and last name from Active Directory? So when they go to a page I can pull their email and name from active directory?
|
|
|
|
|
Go through this namespace: System.DirectoryServices
Parwej Ahamad
R & D: REST services with WCF
|
|
|
|
|
Hello
I try to export some data fom my textboxes and comboboxes to a define excel sheet
I use this methode but i have an error message when exporting
"Dim path As String = CurDir() + "\WebUI\Editors\QuotationReport.xls"
Dim ex As Excel.Application
Dim wb As Excel.Workbook
' Dim ws As Excel.Worksheet
ex = CreateObject("Excel.Application")
ex.Visible = False
wb = ex.Workbooks.Open(path)
Dim objSheet As Excel.Worksheet
objSheet = wb.Sheets(1)
Dim Somme As Double = 0
"Here i assign the dat to a specific cells"
ex = Nothing
ex.Workbooks.Close()
Response.Clear()
Response.AddHeader("Content-Disposition", "attachment; filename=" & file.Name)
Response.AddHeader("Content-Length", file.Length.ToString())
Response.ContentType = "application/vnd.ms(-Excel)"
Response.WriteFile(file.FullName)
please can someone help me.
And thanks in advance
Assaf
|
|
|
|
|
|
Ok I have a google map on my page and there is a list of users in a drop down box. Is it possible to call a function ADDMARKER (javascript) to add a marker to the map? I know the listbox will have to postback to get the value.
The thing is, is that I have to use C# to get the users latitude and longitude. Mainly because all the code was written in VB and I have converted it to C#. Not sure how to convert it all to JavaScript.
Here is my function I need to call from javascript:
function addMarker(lat, lon, name, color) {
latlng = lat + lon;
map.addOverlay(createMarker(latlng, name, color));
}
Here is what is happening in the code behind on SelectedIndexChanged:
protected void dropUsers_SelectedIndexChanged(object sender, EventArgs e)
{
theName = dropUsers.SelectedItem.Text;
theCode = GetCode(theName);
lat = Tracker.GetDevice(theCode).Latitude;
lon = Tracker.GetDevice(theCode).Longitude;
theColor = "normal";
string javaScript = "<script type='text/javascript'>" +
"addMarker(" + lat + "," + lon + "," + theName + "," + theColor + "));" +
"</script>";
Page.ClientScript.RegisterStartupScript(typeof(string), "dropUsers_Changed", javaScript);
}
Of course it is not working.... I can do a messagebox and get the correct information but tahts not what I want to do...
|
|
|
|
|
This should work, I've done exactly the same thing with google maps in ASP.NET/C#. One thing you may want to remember is, when you do a postback, any script you inserted before is lost, and new script is added only if this event is fired.
Overall, it makes sense to make this an AJAX call that adds a marker after getting whatever data you want from the back end. Google maps are so AJAXy that any sort of postback is going to stick out like a sore thumb.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
I couldnt get that to work... anyways I found an application here on codeproject that pretty much made google maps all in C# instead of javascript.. works great for now!
Thank you for your reply.
|
|
|
|
|
Yeah, I think I found that same one, when I considered posting the one I wrote. Of course, it just takes care of generating the javascript for you, but that's what's great about CP, you don't need to reinvent the wheel. I'm glad it worked out for you.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
hello
i create a custom workflow in VS2005 and activate its feature in a site collection and
associate its template with a custom list. i choose "start this workflow when a new item
is created" option when i associate workflow template with the custom list.
when i create a new item in my custom list nothing is happen and when i go to my log file
i face with this exception :
"AutoStart Workflow: System.ArgumentException: New instances of this workflow template are currently disallowed.
at Microsoft.SharePoint.Workflow.SPWorkflowManager.StartWorkflowElev(SPListItem item, SPFile file, SPWorkflowAssociation association, SPWorkflowEvent startEvent, Boolean bAutoStart, Boolean bCreateOnly)
at Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver.AutoStartWorkflow(SPItemEventProperties properties, Boolean bCreate, Boolean bChange, AssocType atyp)"
i dont know where is my fault
please help me as soon as posible
tanks in advance
|
|
|
|
|
hi
asp.net 2005
the work I want to do is this:
the customer select his image from the dialog and show the picture on the page than save that in database.
whatever I did:
controls : input(file) , image,button1(for show picture) , button2(for save)
code:
button1_click()
{
if (File1.PostedFile!=null)
{
Image1.ImageUrl = File1.PostedFile.FileName;
}
}
button2_click()
{
MemoryStream ms = new MemoryStream();
File1.PostedFile.SaveAs(File1.PostedFile.FileName);
byte[] arr = ms.GetBuffer();
ms.Close();
//can't attach ms to save file
SqlCommand com = new SqlCommand(); com.CommandText = "insert into Employees(photo) values(@photo);
com.Parameters.Add("@photo", SqlDbType.Image).Value = arr;
}
result upper code:not show picture and not save
please guid me or if you know other way show me.
|
|
|
|
|
ma_sa_ah_pa wrote: MemoryStream ms = new MemoryStream();
File1.PostedFile.SaveAs(File1.PostedFile.FileName);
byte[] arr = ms.GetBuffer();
ms.Close();
//can't attach ms to save file
using (Stream imageStream = flpUpload.PostedFile.InputStream)
{
byte[] bytes = new byte[imageStream.Length];
imageStream.Read(bytes, 0, bytes.Length);
}
|
|
|
|
|
thank but I want a response with more details.
|
|
|
|