|
|
My project is web based actually a website. and most of the attributes and method to get client machine id will not work after publish.
modified on Thursday, April 21, 2011 8:40 AM
|
|
|
|
|
Well, of course the code must be run under a user account the posses the required rights to access such information. Look up impersonation.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I use $.ajax() method to call the Add() function like this:
function Click(param) {
$.ajax({
type: "POST",
contentType: "application/json",
url: "gongxuan.aspx/Add",
data: "{arg:param}"});
}
the browser shows:unknown methow "Add"
how to solve it??
|
|
|
|
|
gongxuan.aspx/Add is not a valid url
Perhaps this is want you want to do
gongxuan.aspx?method=Add<br />
gongxuan.aspx?method=Subtract
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
<asp:Button ID="btnHide" Runat="server" Text="Hide" />
<asp:Button ID="btnShow" Runat="server" Text="Show" />
<script language="javascript" type="text/javascript">
function hideButton() {
document.getElementById("divAbc").style.visibility = "hidden";
return false;
}
function showButton() {
document.getElementById("divAbc").style.visibility = "";
return false;
}
</script>
<div id="divAbc">
<table><tr><td style="width: 200px; height: 100px; background-color: red"></td></tr></table>
</div>
------------------------------------------------------------------------------------------------
.cs codebehind page_load
---------------------------
protected void Page_Load(object sender, EventArgs e)
{
btnHide.Attributes.Add("onclick", "return hideButton()");
btnShow.Attributes.Add("onclick", "return ShowButton()");
}
|
|
|
|
|
Hi All,
I am just updating my previous question...
I have created project in asp.net and deployed in client server Machine (Internet),However
If we do any modification ... we want to give it as .exe or some other format so that client can easily update.
Now our client is finding difficult to deploy if we give deploy project...
Please help me with this...
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
Please do not re-post after couple of days. Rather, reply to answers answered to you and ask for clarification. Also, first Try something on your own.
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
In A.aspx i use jquery's Load() function to load the content from B.aspx,and in B.aspx,i use ScriptManager.RegisterClientScriptBlock() to
show a alert dialog,but i can't see it,firebug shows:theForm._EVENTTARGET is undefined
how to solve it ??? thanks!
|
|
|
|
|
how to validate if first checkbox is selected then all other is disable else if other is selected then first check box should be disable, in ComponentArt:Dialog datalist
while checkbox is loading dynamically.
|
|
|
|
|
This sounds suspiciously like a reword of the post you just made. Asking more than once will not get the response you are looking for. You had a response in your other thread, do the guy the favor of responding to him at least.
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
Hi All,
We have developed web based product in Asp.net with c# (vs 2010).
And we have a client more than 300.
My question is, when we create a new module it should reflect in all client,However each client deployed our product in their own server.
So we need help to know which is the best method to use.
I googled and found "Updater Application Block".. Is that a good way?
Please help.
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
Please also check 'ClickOnce' from Microsoft which can be used from Visual Studio 2008.
ClickOnce has limited control
Updater application block requires your hard-work, giving advantage of better control via code.
Also, check this
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
Let me understand your problem.
You have developed a web-based application and have it installed at 300 client locations ?
You make a revision to your application and now want all of your clients to be updated automatically ?
I may be over simplifiying things, but why don't you publish a new version on your web site (upgrade packaage) and have each client responsible for updating their system? You can send an email to your clients indicating that an update is available and let them make the decision to upgrade.
Why do you need to keep all 300 clients up to date with the same version ? Does their data interact with each other ? Does it interact with a common application or database ?
|
|
|
|
|
David Mujica wrote: have each client responsible for updating their system?
Yeah, this will work
David Mujica wrote: You can send an email to your clients indicating that an update is available
Right, and hope that first, it doesn't get blocked by an overzealous spam filter, and second they actually read it.
David Mujica wrote: Why do you need to keep all 300 clients up to date with the same version ?
Do you seriously need an answer to this?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have a data list in a container block, In data list check box is getting added dynamically.
I have written the code that if check box is checked then page will redirect to next page.
there is many check box in which there is one option "i am not done" and other options are "i have done A" "i have done B" "i have done B"
now i want that if i am not done then all option must gets disable and if other option is selected then page redirect to other page..
anyone help me to validate this.
|
|
|
|
|
As I understand you can do something like..
foreach (DataListItem dli in DataList1.Items)
{
CheckBox check = (CheckBox)dli.FindControl("ChkLGRole");
if (cbox.Checked == true)
{
if (cbox.Text == "i am not done")
{
}
else
{
}
}
Correct me if I am wrong.
|
|
|
|
|
foreach (DataListItem dli in DataList1.Items)
{
CheckBox check = (CheckBox)dli.FindControl("ChkLGRole");
if (cbox.Checked == true)
{
if (cbox.Text == "i am not done")
{
//code to disable..
}
else
{
//Redirect based on other options.
}
}
The checkbox is in Component Art DIalog Datalist. and showing in datalist dynamically through the code, i want to disable the 1st checkbox if other is getting selected and if 1st one is getting selected the 1st one gets disable automatically. how is this possible please help me.
code is this
<ComponentArt:Dialog ID="caDropDownDialog" runat="server"
Alignment="MiddleCentre" AlignmentElement="<%#lblSelectedValues.ClientID %>"
AllowDrag="true" AllowResize="false" AnimationDuration="1000"
CloseTransition="Fade" Modal="false"
RenderOverWindowedObjects="true" ShowTransition="Fade" AnimationType="Outline"
BackColor="AliceBlue" style="top: 92px; left: 14px">
<Header>
Choose the values from the list below:
</Header>
<Content>
<asp:Panel ID="panSelectArea" runat="server" Width="500px" CssClass="rowGap">
<asp:DataList ID="dlstSubspecialities" runat="server" RepeatColumns="3">
<ItemTemplate>
<table class="tablesize">
<tr>
<td class="input">
<asp:CheckBox ID="chktop" runat="server" OnCheckedChanged="chktop_CheckedChanged" CausesValidation="False" />
</td>
<td>
<%# ((ListItem)Container.DataItem).Text %>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</asp:Panel>
<div style="Height:25px; width:520px; background:#3F3F3F; display:block; padding ; margin:20px -5px 0 -5px;" > </div>
</Content>
<Footer><center>
<%--<asp:Label ID="lblSelected" runat="server" Font-Bold="false" ></asp:Label>--%>
<%--<asp:CheckBox ID="cbuncheckall" runat ="server" AutoPostBack ="true" Text="Unselect All" />--%>
<asp:Button ID="btnOK" runat="server" CausesValidation="false" Width=55px
CssClass="Button" OnClientClick="caDropDownDialog.IsShowing=false;$.loading({mask: true, effect: 'ellipsis update'});" Text="OK" />
<asp:Button ID="btnCancel" runat="server" CausesValidation="false" Width=55px
CssClass="Button" OnClientClick="caDropDownDialog.Close();$.loading({mask: true, effect: 'ellipsis update'});" Text="Cancel" />
</center>
</Footer>
</ComponentArt:Dialog>
protected void chktop_CheckedChanged(object sender, EventArgs e)
{
BindData();
}
modified on Monday, April 18, 2011 12:14 AM
|
|
|
|
|
hurera1111 wrote: i want to disable the 1st checkbox if other is getting selected and if 1st one is getting selected the 1st one gets disable automatically.
In both cases either first is selected are not the first checkbox is to be disabled? Can you be bit more clear.
|
|
|
|
|
|
Hello experts,
I would like to ask again if how will I'm going to edit my web services because it seems that it's only working on my local machine.
I tried to upload my web service and the 2 database(ms access 2003 and sql server 2005 express) to a free asp.net hosting site but I got and error that I cant access the database. I detach my sql server 2005 express to my sqlSERVER Management studio before I upload it.
Below is my sample code to my asmx file.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Data.SqlClient;
using System.Data;
using System.Data.OleDb;
namespace WebService1
{
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public DataTable getData()
{
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\MemberSites\\MemberSites_AspSpider_Info\\akosiDAN\\database\\Database1.mdb");
DataSet ds = new DataSet();
DataTable dt = new DataTable();
ds.Tables.Add(dt);
OleDbDataAdapter da = new OleDbDataAdapter ("Select * from phonebooktable",con);
da.Fill (dt);
return dt;
}
[WebMethod]
public DataTable getData()
{
SqlConnection con = new SqlConnection("server= DANDAN-PC\\SQLEXPRESS;uid=myID;pwd=myPASSWORD;database=phonebookdatabase");
DataSet ds = new DataSet();
DataTable dt = new DataTable();
ds.Tables.Add(dt);
SqlDataAdapter da = new SqlDataAdapter("Select * from phonebooktable", con);
da.Fill(dt);
return dt;
}
}
}
Any help are kindly appreciated.
Thanks,
DAN
|
|
|
|
|
This does not seem to be a problem of Web service. Check the Database credentials. Is database set up properly?
Does the user have rights to read, write database.
Hope this helps.
All the best.
|
|
|
|
|
Hello,
Thanks for the reply, before I upload it to the hosting site detach my sql server database and I used to connect it using sql authentication. For the ms access database I think I set it up correctly. I tried commenting out the block of code using sql server but I still get an error. I tried the web service in my localhost and it works fine but when I tried to upload it I cant seem to make it work.
Below is the hosting site where I tried to upload my web service, I tried to follow it as on what they say for the connectionstring
http://www.aspspider.com/tips/Tip18.aspx[^]
Any help are kindly appreciated.
Thanks,
DAN
|
|
|
|
|
Hello,
I fix now the problem it seems that one causing the error is the bin file of my webservice. I notice that although I edit the code of my asmx file and even if its a working but if I did not re upload the the bin file of my webservice.The website still load the past code of my asmx rather than the new one.
Thanks everyone,
DAN
|
|
|
|
|
Check the connection string of the MDB file. Try to use Server.Mappath() .
|
|
|
|