|
Try baby steps.
Create a very simple web service to add 2 numbers or something. then use this service. Get into more depth as you learn more and more.
|
|
|
|
|
|
I created an assembly called "MyAssembly", which has two versions 1.1 and 1.2. I placed this assembly into GAC. Now I want to use ver1.1 in one page and 1.2 in second page in same application. Is this possible? If s how?
thanks.
|
|
|
|
|
Hello,
The following example shows how to redirect one assembly version to another and provide a codebase.
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="myAssembly"
publicKeyToken="32ab4ba45e0a69a1"
culture="neutral" />
<bindingRedirect oldVersion="1.0.0.0"
newVersion="2.0.0.0"/>
<codeBase version="2.0.0.0"
href="http://www.litwareinc.com/myAssembly.dll"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
The following example shows how to use the appliesTo attribute to redirect binding of a .NET Framework assembly.
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705">
<dependentAssembly>
<assemblyIdentity name="mscorcfg" publicKeyToken="b03f5f7f11d50a3a" culture=""/>
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="1.0.3300.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
For more detail visit,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfAssemblyBinding.asp
Nimit Patel
|
|
|
|
|
hi all,
i have problem in javascript.problem as follows,
i want to change the color of text and make text as bold in javascript after clint click the link button
thanks and regards
kinnu
kinnu
|
|
|
|
|
Change the style of the element containing the text. Example:
o = document.getElementById('Container');<br />
o.style.color = '#ff0';<br />
o.style.fontWeight = 'bold';
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
kinnuP wrote: after clint click the link button
I wish Clint Eastwood would use my apps
|
|
|
|
|
hi all,
i have a gridview and i want to generate right click functionality on its cells.pls help me in this regards.
working environment : VS-2005,asp.net,vb.net
thanks in advance for any help
regards,
gauri
|
|
|
|
|
Did U find any solution for this, if u found can u help me. I also having the same problem plzzzzzz
Lakshmi
|
|
|
|
|
Dear All,
I am quite new to dotnet. Currently developing web application using asp.net and C#(Visual studio 2005).i WANT TO khow whether it is possible possible to disable some of the item for some user. Please guide me
regards
imran khan
|
|
|
|
|
items means, what ? Do you mean control ?
If that was your question, Just check the UserId in the session and make the visibility property to false.
Hope, am clear.
|
|
|
|
|
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" DynamicVerticalOffset="2" Height="20" StaticEnableDefaultPopOutImage="false" Width="732px">
<StaticMenuStyle BorderStyle="None" BackColor="#FAFAFA" />
<StaticMenuItemStyle Font-Names="Tahoma"
BorderColor="#D9D9E6" BorderStyle="Solid" BorderWidth="1px" Font-Size="8pt" />
<DynamicMenuStyle BorderStyle="Outset" BorderWidth="0px" BorderColor="Gray" BackColor="#FAFAFA" />
<DynamicMenuItemStyle Font-Names="Tahoma" Font-Size="8pt"
BorderStyle="Solid" BorderWidth="0px" BorderColor="#D9D9E6" />
<StaticHoverStyle BorderStyle="Solid" BorderWidth="1px" BorderColor="#D9D9FF" />
<DynamicHoverStyle BorderStyle="Solid" BorderWidth="0px"
BorderColor="#D9D9FF" />
<DynamicItemTemplate>
<div align="left"> <asp:Label ID="Label2" runat="server" Font-Names="Tahoma" Text='<%# Eval( "Text" ) %>'>
</asp:Label></div>
</DynamicItemTemplate>
<Items >
<asp:MenuItem Text="Loan negotiations" Value="11">
<asp:MenuItem Text="New loan preference" NavigateUrl="~/Member/LoanPreference.aspx?edit=No" Value="1" ></asp:MenuItem>
<asp:MenuItem Text="Loan preference list" NavigateUrl="LoanPreferenceList.aspx" Value="Activate"></asp:MenuItem>
<asp:MenuItem Text="Fetch a preference match" NavigateUrl="loanpreferencematchlist.aspx" Value="Activate"></asp:MenuItem>
</asp:MenuItem>
</Items>
</asp:Menu>
The above menu i give the value for parent and child menu
I disable the New loan preference submenu
for (int i = 0; i < Menu1.Items.Count; i++)
{
if (Menu1.Items[i].Value == "11")//Menu
{
for (int j = 0; j < Menu1.Items[i].ChildItems.Count; j++)//Submenu
{
if (Menu1.Items[i].ChildItems[j].Value == "1")
{
Menu1.Items[i].ChildItems[j].Enabled = false;
return;
}
}
}
}
sorry for my english r my english
|
|
|
|
|
Thanks A lot.it worked.
thanks once again
regards
imran khan
|
|
|
|
|
Yes, there are many ways to do this.
|
|
|
|
|
in my form i am using repeater in that repeater haveing datagrid
i assening some modifications in repeter by firing the item data bound and also in the datagrid event itemdatabound will also want to fire but it is not working, please give anybody ans
bjayakumar
hyd
|
|
|
|
|
i have a form in that
if my curser is there in textbox then i pree backspace then the form will go back page, but my focus will be ther in the form then my backspace is want to disable
please tell me ans, it's argent
bjayakumar
hyd
india
|
|
|
|
|
use window.focus(); ( javascript)
Best Regards,
Haissam Abdul Malak
My Blog
|
|
|
|
|
in your form
RegisterStartupScript("setFocus", Utilities.SetFocus(txtName))
in global
Public Function SetFocus(ByVal FocusControl As Control) As String
'Setting focus to supplied control
Dim Script As New System.Text.StringBuilder
Dim ClientID As String = FocusControl.ClientID
'Building java script
With Script
.Append("")
.Append("document.getElementById('")
.Append(ClientID)
.Append("').focus();")
.Append("")
End With
Return Script.ToString()
End Function
================================================
http://www.programmingknowledge.com/[^]
================================================
|
|
|
|
|
anyone help me
how to pass parameter to store procedure in asp.net. I using sqlserver
venkat
|
|
|
|
|
if u want to create store procedure thn follow this
create procedure dbo.InsertPackageExtras<br />
(<br />
@vcPackageCode nvarchar(10),<br />
@inDays int,<br />
@inNights int,<br />
@txAllPlaceNames ntext,<br />
@btHaveImages bit,<br />
@btHaveMaps bit,<br />
@btHaveBanners bit,<br />
@vcCreatedBy nvarchar(255),<br />
@dtCreationDate datetime,<br />
@vcUpdatedBy nvarchar(255),<br />
@dtUpdationDate datetime,<br />
@txHistory ntext <br />
)<br />
AS<br />
BEGIN<br />
insert into PacakageExtras<br />
(<br />
vcPackageCode,<br />
inDays, <br />
inNights, <br />
txAllPlaceNames,<br />
btHaveImages, <br />
btHaveMaps, <br />
btHaveBanners, <br />
vcCreatedBy, <br />
dtCreationDate, <br />
vcUpdatedBy, <br />
dtUpdationDate, <br />
txHistory <br />
)<br />
values<br />
(<br />
@vcPackageCode, <br />
@inDays, <br />
@inNights, <br />
@txAllPlaceNames,<br />
@btHaveImages, <br />
@btHaveMaps , <br />
@btHaveBanners, <br />
@vcCreatedBy, <br />
@dtCreationDate, <br />
@vcUpdatedBy, <br />
@dtUpdationDate, <br />
@txHistory <br />
)<br />
end
and if u want to insert record into above store procedure thn follow this
SqlCommand sqlcmd = new SqlCommand("InsertPackageExtras", sqlconn);<br />
sqlcmd.CommandType = CommandType.StoredProcedure;<br />
sqlcmd.Parameters.Add("@vcPackageCode", SqlDbType.NVarChar).Value = PackageCode;<br />
<br />
<br />
sqlcmd.Parameters.Add("@inDays",SqlDbType.Int).Value = Days;<br />
sqlcmd.Parameters.Add("@inNights",SqlDbType.Int).Value=Nights;<br />
sqlcmd.Parameters.Add("@txAllPlaceNames",SqlDbType.NText).Value =AllPlaceNames;<br />
sqlcmd.Parameters.Add("@btHaveImages",SqlDbType.Bit).Value=HaveImages;<br />
sqlcmd.Parameters.Add("@btHaveMaps",SqlDbType.Bit).Value = HaveMaps;<br />
sqlcmd.Parameters.Add("@btHaveBanners",SqlDbType.Bit).Value =HaveBanners;<br />
sqlcmd.Parameters.Add("@vcCreatedBy",SqlDbType.NVarChar).Value="deepak"; <br />
sqlcmd.Parameters.Add("@dtCreationDate",SqlDbType.DateTime).Value= DateTime.Now;<br />
sqlcmd.Parameters.Add("@vcUpdatedBy",SqlDbType.NVarChar).Value="deepak";<br />
sqlcmd.Parameters.Add("@dtUpdationDate",SqlDbType.DateTime).Value=DateTime.Now;<br />
sqlcmd.Parameters.Add("@txHistory", SqlDbType.NText).Value = "history";<br />
sqlconn.Open();<br />
sqlcmd.ExecuteNonQuery();<br />
sqlconn.Close();
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
passing parameter to stored procedure is similar to passing parameters to sql query the only difference is here you use the symbol @before the parameter name
sample code is shown beloce where "@categoryname" is the parameter which needs to be passed to the stored procedure
MyCommand.SelectCommand.Parameters.Add(New SqlParameter("@CategoryName", SqlDbType.NVarChar, 15))
MyCommand.SelectCommand.Parameters("@CategoryName").Value = SelectCategory.Valu
e
enjoy...
|
|
|
|
|
Please provide me the link from where i can download Atlas Controls.
Mads
|
|
|
|
|
|
You can download Asp.net Ajax Framework(Atlas controls) from it's official website http://ajax.asp.net
I think therefore I am
--~--~---------~--~----~------------~-------~--~----~
My Blog and Website:
http://www.cnblogs.com/pinzui/
http://www.pinzui.cn
http://jnlinux.org
--~--~---------~--~----~------------~-------~--~----~
|
|
|
|
|
hi
Guys i am facing a problem, when i am uploading the file i am uploading it in CSV format but when i am opening it ,the browser gives me the alert of open or save in xls format , wht's going wrong,can any one let me know plzzzz reply ASAP.
|
|
|
|