|
|
i m creating school web site project & i whant to display result in std wise for that i m used treeview contol & when user click on link i want to open on pop-up wnd for receiving seat no .... how i can do it i m using asp.net with vb lang.
plz help me if u know.
tnk in advnc
|
|
|
|
|
Can you please translate that post into English.
---------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
English League Tables - Live
|
|
|
|
|
|
i created a report which exports to excel. it exports just fine. what i want to do now is merge the consecutive cells in a column which have the same values. how do i do this? please help me.
this is code that generates the excel body:
Protected Sub generateExcelBody(ByVal xcelworksheet As Microsoft.Office.Interop.Excel.Worksheet, ByVal recarray As Array, ByVal numofrecords As Integer)
Dim chartrange As Microsoft.Office.Interop.Excel.Range
chartrange = Nothing
chartrange = xcelworksheet.Range("B5", "F5")
chartrange.MergeCells = True
chartrange.HorizontalAlignment = Microsoft.Office.Interop.Excel.XlHAlign.xlHAlignLeft
chartrange.VerticalAlignment = Microsoft.Office.Interop.Excel.XlVAlign.xlVAlignCenter
chartrange = Nothing
chartrange = xcelworksheet.Range("A8", System.Reflection.Missing.Value)
chartrange.FormulaR1C1 = "Record Series : " & hiddenrs.Value
chartrange = Nothing
chartrange = xcelworksheet.Range("A9", System.Reflection.Missing.Value)
chartrange.FormulaR1C1 = "Department : " & hiddendept.Value
chartrange = Nothing
chartrange = xcelworksheet.Range("A10", System.Reflection.Missing.Value)
chartrange.FormulaR1C1 = "Number of Records : " & numofrecords
chartrange = Nothing
chartrange = xcelworksheet.Range("A14", "F14")
chartrange.Resize(numofrecords, 6).Value2 = recarray
chartrange.Resize(numofrecords, 6).Borders(Microsoft.Office.Interop.Excel.XlBordersIndex.xlEdgeLeft).Weight = Microsoft.Office.Interop.Excel.XlBorderWeight.xlMedium
chartrange.Resize(numofrecords, 6).Borders(Microsoft.Office.Interop.Excel.XlBordersIndex.xlEdgeRight).Weight = Microsoft.Office.Interop.Excel.XlBorderWeight.xlMedium
chartrange.Resize(numofrecords, 6).Borders(Microsoft.Office.Interop.Excel.XlBordersIndex.xlInsideHorizontal).Weight = Microsoft.Office.Interop.Excel.XlBorderWeight.xlThin
chartrange.Resize(numofrecords, 6).Borders(Microsoft.Office.Interop.Excel.XlBordersIndex.xlInsideVertical).Weight = Microsoft.Office.Interop.Excel.XlBorderWeight.xlThin
chartrange.Resize(numofrecords, 6).Borders(Microsoft.Office.Interop.Excel.XlBordersIndex.xlEdgeBottom).Weight = Microsoft.Office.Interop.Excel.XlBorderWeight.xlMedium
chartrange.Resize(numofrecords, 6).WrapText = True
chartrange.Resize(numofrecords, 6).EntireRow.AutoFit()
chartrange.Resize(numofrecords, 6).Font.Size = 10
chartrange.Resize(numofrecords, 6).HorizontalAlignment = Microsoft.Office.Interop.Excel.XlHAlign.xlHAlignCenter
chartrange.Resize(numofrecords, 6).VerticalAlignment = Microsoft.Office.Interop.Excel.XlVAlign.xlVAlignCenter
End Sub
|
|
|
|
|
Just record a macro doing what you want and then you can see what the code would look like and you can tweak it as necessary.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I haven't really had any experience working with macros before. So, like, I have no idea how that can help me. I'm sorry if I look like a total newbie, but that's because I am. Thanks for the idea though.
|
|
|
|
|
It depends on your version of Excel. Excel 2003 you use the Tools menu. You have Marco, Record Macro. Then you can go into the code and see what it generated. In 2007 and later I believe they are under the Design section of the Ribbon.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
uhm..so, do i use the macro IN the template?
|
|
|
|
|
No, what you do is start recording a macro. Then do the actions you are interested in doing. Then stop recording the macro and then you can go and look at the code that was generated.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
haha. now i understand what you mean. i'll do that. thanks! really, domo arigatou gozaimasu for being patient with me.
|
|
|
|
|
Hi,
I am getting this error on my website when I uploaded it on host but I don't get the same on local? why is that?
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'JassimRahma.com.skills'.
Source Error:
Line 1: <%@ Page Title="Skills" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="skills.aspx.cs" Inherits="JassimRahma.com.skills" %>
Line 2:
Line 3: <%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
Source File: /jassim/skills.aspx Line: 1
|
|
|
|
|
Have you checked the paths?
Confirm the name and extensions are consistent too.
---------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
English League Tables - Live
|
|
|
|
|
You need to make sure the dll that has JassimRahma.com.skills is either in the servers GAC or in the bin folder of your site.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I have a form for which I want the price to resemble the current price of an object. But I cant add any C# into this form. Im building a paypal program using MVC.
<%if (Roles.IsUserInRole("FullMember") == false)
{%>
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="paypal">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="business" value="youremailaddress@yourdomain.com">
<input type="hidden" name="item_name" value="My Cart Item 1">
<input type="hidden" name="amount" value="10.00">
<input type="hidden" name="shopping_url"
value="http://localhost:30524/">
I want to place
<% item.price%>
Into the value-"10.00" place.
Is this possialbe and how do I go about doing this?
Thanks
|
|
|
|
|
Do you mean this
<input type="hidden" name="amount" value="<%= item.price %>" />
Help people,so poeple can help you.
|
|
|
|
|
Yes I do, but it doesnt work when I do that.
|
|
|
|
|
where is the object item is declared? and what exception the code throw?
Help people,so poeple can help you.
modified 28-Mar-12 17:12pm.
|
|
|
|
|
The object is been declared from the View when it is brought in from the model.
I can access the item.price object from outside the , it might just be a basic miss understanding.
value="50.00" I would like to be able to have value= <%item.price>% or something similar.
Thanks
<% foreach (var item in Model) { %>
<tr>
<td>
<%= Html.Encode(item.Id)%>
</td>
<td>
<%= Html.Encode(String.Format("{0:F}", item.Name))%>
</td>
<td>
<%= Html.Encode(item.Description) %>
</td>
<td>
<%= Html.Encode(String.Format("{0:F}", item.Price)) %>
</td>
<%if (Roles.IsUserInRole("FullMember") == false)
{%>
<td>
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="paypal">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="2">
<input type="hidden" name="business" value="Hull Press">
<input type="hidden" name="item_name" value="Full Membership">
<input type="hidden" name="amount" value="50.00">
<input type="hidden" name="shipping" value="1.00">
<input type="hidden" name="shopping_url"
value="http://localhost:30524/Membership/SuccessfulMembership">
<input type="hidden" name="return" value="http://localhost:30524/Membership/SuccessfulMembership">
<input type="hidden" name="cancel_return" value="http://localhost:30524/Membership/CancelledMembership">
<input type="hidden" name="bn" value="PP-ShopCartBF:x-click-but22.gif:NonHosted">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0"
name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
height="1">
</form>
</td>
<%}
else
{ %>
<td>
<%=Html.ActionLink("Read", "ViewItem", "item", new {itemID = item.Id,itemName = item.Name, itemDescription = item.Description, itemFullArt = item.FullArt, itemPrice = item.Price }, null)%>
</td>
<%} %>
|
|
|
|
|
Have you tried this
<input type="hidden" name="amount" value="<%= item.price %>" />
, this
<input type="hidden" name="amount" value="<% item.price %>" />
or none.
Help people,so poeple can help you.
|
|
|
|
|
try this
<input type="hidden" name="amount" value=<%:item.price%>
you need to add after % : in your code
|
|
|
|
|
Hi,
I have created a Web Service and a client application in C#. Everything is OK while i am working in localhost. My question is how can i connect to my web service from other computers(in same local network)?
Thank you!
|
|
|
|
|
Change the url in the web.config file appSetting Section in website
or ApplicationSettings Section in web applications
Help people,so poeple can help you.
|
|
|
|
|
I used my local IP to connect to the web service:
<endpoint address="http://192.168.0.102:4501/WCFService2/Service.svc"
but I am getting the following error while calling the service from the other computer.
There was no endpoint listening at http://192.168.0.102:4501/WCFService2/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
thanks for your reply
|
|
|
|
|
Sir;
I don't know much about WFC services, but from the error message it looks like the port 4501 is not accessible from the requesting machine.
please check whether the port is accessible or not.
Help people,so poeple can help you.
|
|
|
|