|
how does script language to use my function exposed by IDispatch?for Example:there is a function declare as: long add(long n1,long n2),the script how to call this function?
Later buggers harm more.
|
|
|
|
|
I have checkboxes on my website and I want to do the following:
* change the color of the check in the checkbox
* change the border color of the checkbox
* change the size of the checkbox
* left align the edge of the checkbox with the other controls on my page
All of my chages refer to the little square checkbox it's self and not the entire control.
Can you please tell me if it is possible and if not what the alternatives are?
Thank you.
|
|
|
|
|
I am pretty sure you cannot change the size. As to the others, the best place to look is to read up on html, at the end of the day, what you're asking doesn't have anything to do with ASP.NET, you need to know if a browser is able to show checkboxes with different colors.
Aligning them is up to you, you can use tables or CSS to position your controls.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for the reply but it still doesn't answer my question. I have done a bunch of research on this issue and can't seem to be able to find the answer for, checkboxes specifically, any where.
|
|
|
|
|
use css can solve it!
allways study
|
|
|
|
|
I wouldn't have asked the question if the answer was css. I know enough to read the basic books on HTML and there is no answer in any of them to my question. If you don't have a specific answer to my question please don't insult my intelligance with stupid answers.
|
|
|
|
|
Hello
I work with repeater where i use the a dataset to fill it.
I want to put a row at the top of the repeater but taken the same long as the repeater and the text inside will b from the data Set
can someone help me to do that
Thanks in advance
Assaf
|
|
|
|
|
Start a table outside the dataset, with the first row. Close it after the repeater.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I'm Sorry but this don't work
this my code:
<asp:repeater id="myRepeater" runat="server">
<headertemplate>
<itemtemplate>
<alternatingitemtemplate>
<footertemplate>
<%#DataBinder.Eval(Container.DataItem, "GradeName")%> | Grade Name | Institution Name | AcomplishesYear | Date of Graduation | Grade | <%#DataBinder.Eval(Container.DataItem, "GradeName")%> | <%#DataBinder.Eval(Container.DataItem, "InstitutionName")%> | <%#DataBinder.Eval(Container.DataItem, "AccomplishYearNum")%> | <%#DataBinder.Eval(Container.DataItem, "DateOfGraduation")%> | <%#DataBinder.Eval(Container.DataItem, "Grade")%> | <%#DataBinder.Eval(Container.DataItem, "GradeName")%> | <%#DataBinder.Eval(Container.DataItem, "InstitutionName")%> | <%#DataBinder.Eval(Container.DataItem, "AccomplishYearNum")%> | <%#DataBinder.Eval(Container.DataItem, "DateOfGraduation")%> | <%#DataBinder.Eval(Container.DataItem, "Grade")%> |
Thanks you in advance
Assaf
|
|
|
|
|
1 - you need to define 'doesn't work' so people know what your problem is.
2 - There's no data item to evaluate in the header or footer.
3 - I don't see you creating a footer item, or even a main template, is there code missing ?
4 - I assume all of this is inside a repeater, you didn't post that code.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I work with repeater where i use the a dataset to fill it.
I define the DataAdapter And the dataSet in the Vb Code
I want to put a row at the top of the repeater but taken the same long as the repeater and the text inside will be from the data Set
this the Html code:
<asp:repeater id="myRepeater" runat="server">
<headertemplate>
<itemtemplate>
<alternatingitemtemplate>
<footertemplate>
<%#DataBinder.Eval(Container.DataItem, "GradeName")%> | Grade Name | Institution Name | AcomplishesYear | Date of Graduation | Grade | <%#DataBinder.Eval(Container.DataItem, "GradeName")%> | <%#DataBinder.Eval(Container.DataItem, "InstitutionName")%> | <%#DataBinder.Eval(Container.DataItem, "AccomplishYearNum")%> | <%#DataBinder.Eval(Container.DataItem, "DateOfGraduation")%> | <%#DataBinder.Eval(Container.DataItem, "Grade")%> | <%#DataBinder.Eval(Container.DataItem, "GradeName")%> | <%#DataBinder.Eval(Container.DataItem, "InstitutionName")%> | <%#DataBinder.Eval(Container.DataItem, "AccomplishYearNum")%> | <%#DataBinder.Eval(Container.DataItem, "DateOfGraduation")%> | <%#DataBinder.Eval(Container.DataItem, "Grade")%> |
can someone help me to do that
Thanks in advance
Assaf
|
|
|
|
|
OK.
1 - you cannot get data from the dataset in your header. Where do you expect it to come from ( what row ? )
2 - this code is defining a table with two rows. The whole point of a repeater is that you define a template for a single row, and the repeater iterates over the rows of your data source, using the template each time.
3 - Nothing you've done here is likely to do anything much at all. It seems you're hopelessly lost, you should read up on the repeater control, on MSDN perhaps, so you understand the tool you're trying to use.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I'm using vb.net 2.0 and attempting to load a gridview with my access database. And then update the gridview and the database with a series of dropdowns (I'm starting with one dropdown until I get that one working). I've been told via many sites it's possible with the aspx page and no actual coding in 2.0 but I've been unsuccessful. PLEASE HELP!
<asp:GridView ID="GridView1" runat="server" CellPadding="4" DataSourceID="FlashlightDS"
ForeColor="#333333" GridLines="None" AutoGenerateColumns="False">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="ORGCODE" HeaderText="Org" SortExpression="ORGCODE" />
<asp:BoundField DataField="SEGMENT1" HeaderText="Item Number" SortExpression="SEGMENT1" />
<asp:BoundField DataField="ITEM_TYPE" HeaderText="Item Type" SortExpression="ITEM_TYPE" />
<asp:BoundField DataField="INVITMSTAT" HeaderText="Item Status" SortExpression="INVITMSTAT" />
<asp:BoundField DataField="PLNRCDE" HeaderText="Planner Code" SortExpression="PLNRCDE" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="FlashlightDS" runat="server" ConnectionString="<%$ ConnectionStrings:AccessFlashlightConnectionString %>"
ProviderName="<%$ ConnectionStrings:AccessFlashlightConnectionString.ProviderName %>"
SelectCommand="SELECT ORGCODE, SEGMENT1, ITEM_TYPE , INVITMSTAT , PLNRCDE FROM OrgItems WHERE (ENGITM = 'N') AND (PLNMKBY = 'Buy') AND (MRPPLNCD = 'MRP planning') AND (SOURCE_TYPE = '2') AND (WIP_SUPPLY_SUBINVENTORY <> 'PRP') AND (ITEM_TYPE=@ITEM_TYPE) ORDER BY SEGMENT1"
UpdateCommand="UPDATE [OrgItems] SET [ORGCODE] = @ORGCODE, [SEGMENT1] = @SEGMENT1, [INVITMSTAT] = @INVITMSTAT, [PLNRCDE] = @PLNRCDE [ENGITM] = 'N' AND [PLNMKBY] = 'Buy' AND [MRPPLNCD] = 'MRP planning' AND [SOURCE_TYPE] = '2' AND [WIP_SUPPLY_SUBINVENTORY] <> 'PRP' AND [ITEM_TYPE]=@ITEM_TYPE ORDER BY SEGMENT1">
<SelectParameters>
<asp:ControlParameter Name="ITEM_TYPE" ControlID="ddItemType" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="ORGCODE" />
<asp:Parameter Name="SEGMENT1" />
<asp:Parameter Name="INVITMSTAT" />
<asp:Parameter Name="PLNRCDE" />
</UpdateParameters>
</asp:SqlDataSource>
-----------------------
When I remove the last part of the where clause from my select statement in my select command, the gridview will appear on the page (won't appear otherwise) but the dropdown is useless. I have been working on this simple task for WEEKS unsuccessfully and I really need help. Thanks in advance to anyone who is smarter than me
|
|
|
|
|
Hi,
I have a string strA = "12 MyAddress"
strB = "Your Name"
I want to get the first char of string and want to know weather it is integer between 1-9 or char between A-B.
How can I do that.
seema
|
|
|
|
|
Please, please do not cross post the entire site. It's just annoying.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Because you cross-posted in three forums you are being sent to the corner with no food, caffeine or code until I am done whipping you with my TechNet magazine, or until Microsoft comes makes a bug-free operating system.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
leckey wrote: or until Microsoft comes makes a bug-free operating system
damn, for THAT long?
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
Tom Welch
|
|
|
|
|
value = "12 MyAddress"<br />
c = value.Substring(0, 1)<br />
If Char.IsDigit(c) Then<br />
Throw New Exception("its a number : " & c)<br />
<br />
End If<br />
If Char.IsLetter(c) Then<br />
Throw New Exception("its a char : " & c)<br />
<br />
End If
is it helpful for you?
Basharat
|
|
|
|
|
This does add something to the solutions alread given Specifically it adds code that doesn't perform the test he asked for, and it throws exceptions.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Documents are getting stacked in the queue folder of the mailroot and never moved to drop folder.
How i can send those to the users mailboxes like in rediffmail, yahoo etc.
though this script does not generating any exceptions
Code snippet:
Imports System.Web.Mail
Partial Class _Default
Inherits System.Web.UI.Page
Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
SmtpMail.Send("manik@yahoo.com", "malay6624394@rediffmail.com", "Testing", "How are you")
Catch ex As Exception
Label1.Text = ex.Message
End Try
End Sub
End Class
Malay Mukherjee
RISL
|
|
|
|
|
There is no way to send mail and specify the folder it goes into, folders are an artefact of the program used to view mail, not the mail protocol itself.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
As per requirement of my project i have written the following code for sending mail ,the code snippet is as under
Imports System.Net.Mail
Partial Class _Default
Inherits System.Web.UI.Page
Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
Dim mail As New MailMessage()
mail.From = New MailAddress("manik@yahoo.com")
mail.To.Add("malay6624394@rediffmail.com")
mail.Subject = "Testing"
mail.Body = "How are you"
Dim smtp As New SmtpClient("sql_server")
'Sql_server is the computers name where the webpage is been uploaded in IIS and smtp server is running.
Try
smtp.send(Mail)
Catch ex As Exception
Label1.Text = ex.Message
End Try
End Sub
End Class
but it is giving the following exception,as i am very new to asp please help me.
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for malay6624394@rediffmail.com
Malay Mukherjee
RISL
-- modified at 15:21 Tuesday 24th July, 2007
|
|
|
|
|
The error you're getting is coming from the mail server. The server is telling you that the details you've provided are incorrect. Either the mailbox does not exist, or you're trying to use a mail server that you're not allowed to use ( many mail servers only work if you're also logged in to their internet service, for example ).
As you're running your own mail server, perhaps that's what is not configured properly ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am using a GridView control to display the following columns. CategoryID and CategoryName (Bound Columns). However, I don't want CategoryID to be displayed. I was wondering if there was a way to somehow attach the CategoryID to the CategoryName column like the Value and Text property of a DropDown Control.
I tried hiding the CategoryID column and for some reason sometimes I am not able to read that column for a particualr row. I get an emply string.
|
|
|
|
|
Use the visible property on the column
Greets! Joel
|
|
|
|