|
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() .
|
|
|
|
|
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 also for the server.mappath if was a great help to map the path of my files.
Thanks everyone,
DAN
|
|
|
|
|
Hi all,
I want to know what are the evens that automatically executed when page is loaded in asp.net.There are 7 such events. Listed,
1. Page Request
2. Start
3. Initialization
4. Load
5. Postback Event Loading
6. Rendering
7. Unload
So my question is what are the methods picked up here. I've listed what I know in the order of execution, with the event related with as a comment on the body of the method
protected void Page_Init(object sender, EventAgs e)
{
}
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Page_LoadComplete(object sender, EventArgs e)
{
}
I'm lost with mapping, controlling other events. Can anyone of you comment on this?
Thanks
I appreciate your help all the time...
CodingLover
|
|
|
|
|
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 ♫
|
|
|
|
|
My software does not have bugs.. It just develops random features.
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.
|
|
|
|
|
|
|
|
Hello CP. I have a question regarding table relationships in an Access 2007 database in combination with the DataGrid in ASP .NET 4.0 (C#). In Access I have two tables set up like this:
Table1 Columns: ID, ObjName, Phone
Table2 Columns: ID, TheTitle, Obj
The field "Obj" in Table 2 stores a value from Table 1. In Access, I have it set so that it stores Table1.ID as the Table2.Obj value. However, I set it to display Table1.ObjName rather than Table1.ID. This is what I wish to achieve in an ASP .NET DataGrid.
I have read up on the DataRelation object and I have Google'd quite a bit. I have had no luck in finding the solution that I need. I have my ASP .NET page running a basic SELECT query, selecting all records in Table2. All is well, except the third column in the DataGrid displays the "Obj" column's value (from Table1.ID) rather than displaying the "Table1.ObjName" associated with said Table1.ID. How would I go about doing this?
Would I be better off creating my own table-like layout and parsing each record? Or am I missing something? I am not asking for the "code that will solve my problem without me doing it myself". But some sort of related code example and/or pseudo code would be fine if possible.
Thanks CP.
|
|
|
|
|
Ok fairly simple setup, I have a ssrs report embedded in my application. I know how to use the top% and bottom% filter. But I would like to split it into thirds..
is there a way to do top33.33% bottom 33.33% and middle 33.33%? never mind why as that is another issue but is there any way to do this?
one list uses top 1/3, second list uses middle 1/3 and third list uses bottom 1/3. This can be split simply by Primary keys or any column that is unique as the order does not matter, simply that I get the split right. Am I blowing smoke and wasting my time? or can this be done.
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,
I have created a webapplication in c#.
I am having a treeview which is in the form of
t1
|_ t2
| |_t3
| |_t4
|
|_t5
|_t6
when i count the nodes i should get 3 that is t3,t4,t5 but i am getting t2,t3 and t5.
Can any one tell me how can i solve this.
Thanks in advance.
|
|
|
|
|
Try this :
private void button_Click(object sender, EventArgs e)
{
int count = CountTree(treeView1.Nodes);
MessageBox.Show(treeView1.Nodes.Count.ToString(), "Number of root nodes");
MessageBox.Show(count.ToString(), "Total number of nodes");
}
private int CountTree(TreeNodeCollection root)
{
int count = 0;
foreach (TreeNode n in root)
count += 1 + CountTree(n.Nodes);
return count;
}
Hope this helps.
All the best.
modified on Tuesday, August 23, 2011 6:19 AM
|
|
|
|
|
Hi
In popup window calling thr javascript menthod
window.showModalDialog("URL" ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;");
While clicking that populate some information those are made in Page_Load call back method at begin
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
After clocing the popup window , Once again Viewing the popup window its IsPostBack Properity return true value so doesnt populate some information to that page.
How check these on page_load ..
|
|
|
|
|
window.showModalDialog("URL" ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;");
You have quote mark before closing parenthesis; is that suppose to be there?
|
|
|
|
|
Hi,
Pass a random number every time with url, other wise it load page from cache.
for example
window.showModalDialog("abc.aspx?id=randID=" + Math.random() % 1000 ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;");
Thanks
Manoj
|
|
|
|