|
Mohammad A Gdeisat wrote: Any ideas?
Yes. You are screwed. If you don't validate the user, you can't validate the user. The end.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Well I think no matter what you are not going to be able to stop very motivated repeat voters. Even major democractic elections using physical voting machines and verified official IDs still run into voter fraud and they've been doing it for years!
However there are probably measures you can take to stem fraud to a minimum. Your first task is to make sure scripts can't vote, only people...so definitely use a CAPTCHA. Also have the user enter an email address with a unique link embedded inside, so they need to check their email and click on a link to make the vote count. This wont stop people with multiple emails voting, but you could also look into doing some simple data mining after the vote takes place to notice any glaring issues...like if there are 10 votes in 10 minutes from the same IP.
Another critical note: whatever this voting system is going to elect, it better not be important! Because if it is, someone motivated enough will probably be able to crack, or at least bias, whatever system you have in place.
Good luck!
|
|
|
|
|
I want to generate a table at run time in a panel.I want 5 columns in each row.
here is code-
Table tbl = new Table();
tbl.Style.Add("text-align", "center");
foreach (DataRow dr in dt.Rows)
{
TableRow tr = new TableRow();
TableCell tc1 = new TableCell();
TableCell tc2 = new TableCell();
TableCell tc3 = new TableCell();
TableCell tc4 = new TableCell();
TableCell tc5 = new TableCell();
tc1.BackColor = Color.WhiteSmoke;
tc2.BackColor = Color.WhiteSmoke;
tc3.BackColor = Color.WhiteSmoke;
tc4.BackColor = Color.WhiteSmoke;
tc5.BackColor = Color.WhiteSmoke;
tc1.Width = 185;
tc2.Width = 185;
tc3.Width = 185;
tc4.Width = 185;
tc5.Width = 185;
//tc1.BorderWidth = 1;
//tc2.BorderWidth = 1;
//tc3.BorderWidth = 1;
//tc4.BorderWidth = 1;
//tc5.BorderWidth = 1;
tc1.Style.Add("text-align","center");
tc2.Style.Add("text-align","center");
tc3.Style.Add("text-align","center");
tc4.Style.Add("text-align","center");
tc5.Style.Add("text-align","center");
tr.Width = 926;
tr.Height = 23;
tr.BorderWidth = 1;
tr.Controls.Add(tc1);
tr.Controls.Add(tc2);
tr.Controls.Add(tc3);
tr.Controls.Add(tc4);
tr.Controls.Add(tc5);
//tc.Width = 110;
//tc.Height = 22;
//tc.Font.Size = 40;
tc1.Text = "Niraj jain";
//tr.Controls.Add(tc);
tbl.Controls.Add(tr);
}
Panel5.Controls.Add(tbl);
but this table is not generating inside the panel.It is below the panel.
plz help....
|
|
|
|
|
Any particular reason you're not using a gridview?
|
|
|
|
|
You have used Controls.Add method everywhere. Use
TableRow.Cells.Add([New Control]") method appropriately.
Ex:
tr.Cells.Add(tc1);
tb1.Rows.Add(tr);
I have tried it and its working
|
|
|
|
|
You can use GridView instead of creating your own. Compared to your own table gridview is a wise control.
|
|
|
|
|
Hello,
I am using Microsoft reports with reportviewer control of Microsoft for my website.
I have added one RLDC report file into my application and trying to open data sources from Report menu of VS designer. But I am getting following error :
---------------------------
Microsoft Visual Studio
---------------------------
Could not load file or assembly 'AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The system cannot find the file specified.
---------------------------
OK
---------------------------
Please help me out to solve this problem, also if I have put this question in wrong forum.
Regards,
Milind
|
|
|
|
|
I have web usercontrols + web controls inside the modalpopup extender
how to set tabindex for each and every control.
let me know the ans...
Regards,
Koti.K
|
|
|
|
|
Hi all,
Iam using a grid in my web application..
I want to move the row up if i Click the up button and move a row down in down button
How can i do using javascripts??i got the rowindex
var grid=igtbl_getGridById("grid");
var actrow=grid.getActiveRow();
var rowindex=actrow.getIndex();
using this rowindex how can i move the row to up or down..
can anyone suggest me?
if any other way also suggest me.
|
|
|
|
|
One Idea ...! Add a button in grid's footer row so that it will raise RowCommand Event.
From there try this,
if(e.CommandName.Equals("Button1"))
{
if(GridView1.SelectedIndex != -1 && GridView1.SelectedIndex < GridView1.Rows.Count )
{
GridView1.SelectedIndex = GridView1.SelectedIndex +1;
}
}
it will work
|
|
|
|
|
can i use the same code for infragistics grid?
|
|
|
|
|
i have the following controls dropdownlist1,dropdownlist2,textbox1,button1,button2,dropdownlist3
and
textbox2
i want to show the data of above controls into textbox2
through the corresponding controls event only
means
dropdownlist1_Selectedindexchanged,dropdownlist2_selectedindexchanged,textbox1_textchanged,button1_click,button2_click,dropdownlist3_selectedindexchanged.
how?
regards,
Koti.K
|
|
|
|
|
Make all event handlers call the same method, generate a string in this method and pass the string to the text property of textbox2
|
|
|
|
|
Thanks For Your Suggestion
Now it's ok.
Regards
Koti.K
|
|
|
|
|
Hi,
I am working with Visual Web Developer 2005(c#.net).
I want to pass more than 15 parameters to a function.
So,for clarity i wrote the function in multiple line using the operator "& _".
But,it doesn't work and i get an error message as 'The name '_' doesn't exist in the current context.
Can anybody help me in this?.
|
|
|
|
|
'& _' can be used only with VB.NET.
Use '+' to concatenate strings in C#
|
|
|
|
|
in vb.net there is no End of the line character ";" so if you want to break a single line into 2 you have to use "-". In C# we have ";", so we can split a line into 2.
Ex:
Response.Write
(
"Hi, Like this"
);
|
|
|
|
|
//you can use like this also
Response.Write("hi,"+path+"");
Padmanabhan
|
|
|
|
|
objIncidentBL.UpdateIncidentDetails(Convert.ToInt32(txtIncidentNo.ToString()),
txtApplicationName.ToString(),
txtIncidentType.ToString());
I have to pass 15 more parameters in this function.if i use '+' as below,i m getting an error message such as operator '+' cannot be applied to operand of type string.
objIncidentBL.UpdateIncidentDetails(Convert.ToInt32(txtIncidentNo.ToString()), +
txtApplicationName.ToString(), +
txtIncidentType.ToString());
Yazhini
|
|
|
|
|
LazhiniP is true.Remove "+" it will work fine.
|
|
|
|
|
No...if i remove '+' it gets compiled but i m throws a run-time error stating "input string is not in correct format".
Whether '+' operator doesn't work for parameter passing or in function definition?
Yazhini
|
|
|
|
|
if you think the problem is with "+"
Response.Write("First" + "Second"
+ "Third"
);
Try this
|
|
|
|
|
Hi all,
That was my First Article in Code Project. I have finished writing the content. Still my article showing PENDING. What to do next ?
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
there is one checkbox which indicated "Work in Progress - do not make public"
check whether u have selected that.
Padmanabhan
|
|
|
|
|
Hi,
That Check Box is not Checked. Should I check it now ?
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|