15,796,102 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Python questions
View PHP questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by PleaseHelpCP (Top 37 by date)
PleaseHelpCP
2-Aug-13 5:50am
View
<html xmlns="http://www.w3.org/1999/xhtml">
<form name="myform">
<table cellpadding="0" cellspacing="0" width="800px">
<tr>
<td>
<input type="image" value="Submit">
</td>
</tr>
</table>
</form>
</html>
PleaseHelpCP
12-Jul-13 2:27am
View
thanks Naz_Firdouse for your solution. i have already tried with pagemethods. but its giving following error
The server method 'fncheck' failed with the following error: System.NullReferenceException-- Object reference not set to an instance of an object.
PleaseHelpCP
14-Jun-13 7:01am
View
i am not getting any error. it is not calling javascript.
PleaseHelpCP
14-Jun-13 6:39am
View
Deleted
i am not getting any error
PleaseHelpCP
14-Jun-13 5:40am
View
thanks Shafeequl for reply, but this solution isn't working
PleaseHelpCP
14-Jun-13 5:39am
View
thanks Adhikari Surendra1 for reply, but this solution isn't working
PleaseHelpCP
1-Jun-13 7:38am
View
i know thats why i asked can you help
PleaseHelpCP
1-Jun-13 6:10am
View
What if i use viewstate? can you help with reference link for viewstate?
PleaseHelpCP
31-May-13 6:43am
View
CheckBox cb = new CheckBox();
cb.ID = dvw["Value"].ToString();
cb.Text = dvw["Text"].ToString();
cb.ToolTip = dvw[ViewState["Name"].ToString()].ToString().Trim();
plhldFields.Controls.Add(cb);
PleaseHelpCP
31-May-13 6:36am
View
How? can you please explain in detail?
PleaseHelpCP
31-May-13 6:28am
View
<tr>
<td>
<span title="Sample Text"><input id="lvwFields_ctrl53_.Sample_Text" type="checkbox" name="lvwFields$ctrl53$.Sample_Text" /><label for="lvwFields_ctrl53_.Sample_Text">SampleText</label></span>
</td>
</tr>
PleaseHelpCP
31-May-13 6:26am
View
no. not getting c.Text. It shows title in <span> and creates label associated with that checkbox and shows text there
PleaseHelpCP
28-May-13 8:26am
View
thanks Mahesh Bailwal. its working fine.
PleaseHelpCP
28-May-13 5:43am
View
Deleted
protected void lvwFields_ItemDataBound(object sender, ListViewItemEventArgs e)
{
PlaceHolder plhldFields = (PlaceHolder)e.Item.FindControl("plhldFields");
ListViewDataItem item = (ListViewDataItem)e.Item;
DataRowView dvw = (DataRowView)item.DataItem;
CheckBox cb = new CheckBox();
cb.ID = dvw["Val"].ToString();
cb.Text = dvw["Txt"].ToString();
cb.ToolTip = dvw[ViewState["FieldName"].ToString()].ToString();
plhldFields.Controls.Add(cb);
showSubFields(plhldFields, dvw["fieldname"].ToString(), dvw["t"].ToString());
}
public void showSubFields(PlaceHolder ph, string strSubFldName, string strTableName)
{
//after executing dataset
HtmlTableRow tr = new HtmlTableRow();
HtmlTableCell tc = new HtmlTableCell();
CheckBox chk = new CheckBox();
HtmlGenericControl hgen = new HtmlGenericControl();
hgen.InnerHtml = " ";
chk.ID = dsSub.Tables[0].Rows[i]["SubVal"].ToString().Trim();
chk.Text = dsSub.Tables[0].Rows[i]["SubTxt"].ToString().Trim();
chk.ToolTip = dsSub.Tables[0].Rows[i]["disp"].ToString().Trim();
tc.Controls.Add(hgen);
tc.Controls.Add(chk);
tr.Controls.Add(tc);
tbl.Controls.Add(tr);
ph.Controls.Add(tbl);
}
there is a button on click of that i want to display checked values
protected void btnAdd_Click(object sender, EventArgs e)
{
foreach (ListViewDataItem item in lvwFields.Items)
{
PlaceHolder ph = (PlaceHolder)item.FindControl("plhldFields");
foreach (Control c in ph.Controls) //here i am getting countrols count 0
{
if (c is CheckBox)
{
}
}
}
}
PleaseHelpCP
7-May-13 6:53am
View
if i remove return function, how will i get value returned by it?
PleaseHelpCP
6-May-13 6:57am
View
i have div named "divCommon" inside update progress control.
<asp:UpdatePanel ID="updProd" runat="server" UpdateMode="Conditional">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
</table>
<asp:UpdateProgress ID="UpdateProgress" runat="server" AssociatedUpdatePanelID="updProd">
<ProgressTemplate>
<div id="divCommon" style="position:absolute;vertical-align:middle;text-align:center;">
<table border="1" cellpadding="0" cellspacing="0" width="120px" style="border:solid 1px #E96F00;background-color:White;height:30px;">
<tr>
<td align="center" nowrap="nowrap">
<img src="../images/loader.gif" alt="" /><span class="loadingtext">Loading...</span>
</td>
</tr>
</table>
</div>
</ProgressTemplate>
code inside javascript is as follows
if(opt=="A")
{
document.getElementById("divCommon").style.left="50px";
document.getElementById("divCommon").style.top="50px";
}
else
{
document.getElementById("divCommon").style.left="100px";
document.getElementById("divCommon").style.top="50px";
}
PleaseHelpCP
6-May-13 6:30am
View
tried from javascript but its not working. its not changing position of images inside div.
PleaseHelpCP
6-May-13 6:06am
View
Thanks Tadit Dash for your reply. I have already tried from code behind but did not get desired result. Will definitely try with javascript.
PleaseHelpCP
29-Apr-13 6:02am
View
thanks Oshtri Deka for your reply. Tried your solution but it shows message with checkbox. I want to dispaly only message. Is it possible?
PleaseHelpCP
21-Dec-12 1:39am
View
yes
PleaseHelpCP
14-Dec-12 5:46am
View
using ajax
$.ajax({ url: url, success: function(result)
result contains desired string
PleaseHelpCP
7-Dec-12 6:07am
View
i further have another doubt.
i am displaying string with special character which is having hyperlink. In querystring, i am passing same string (containing special characters) with another parameters. but it is not navigating.
PleaseHelpCP
7-Dec-12 5:06am
View
thanks a lot ashokmmrk.
PleaseHelpCP
7-Dec-12 4:28am
View
thanks ashokmmrk.
this worked for me. what if i want to display original string?
will replacing otherway work?
PleaseHelpCP
30-Oct-12 7:34am
View
i mean with + sign
PleaseHelpCP
30-Oct-12 7:33am
View
same.
PleaseHelpCP
30-Oct-12 7:04am
View
without encoding also its giving same result. so tried encoding.
PleaseHelpCP
30-Oct-12 6:59am
View
this solution isn't working
PleaseHelpCP
30-Oct-12 6:46am
View
but there is no & used anywhere. please correct me if i am wrong.
PleaseHelpCP
30-Oct-12 6:38am
View
is it to changes & to & or vise-versa?
PleaseHelpCP
30-Oct-12 6:26am
View
tried 2 ways.
1. pnam = Decode(Encode(request.querystring("pnam")))
Function Decode(sIn)
dim x, y, abfrom, abto
Decode="": ABFrom = ""
For x = 0 To 25: ABFrom = ABFrom & Chr(65 + x): Next
For x = 0 To 25: ABFrom = ABFrom & Chr(97 + x): Next
For x = 0 To 9: ABFrom = ABFrom & CStr(x): Next
abto = Mid(abfrom, 14, Len(abfrom) - 13) & Left(abfrom, 13)
For x=1 to Len(sin): y=InStr(abto, Mid(sin, x, 1))
If y = 0 then
Decode = Decode & Mid(sin, x, 1)
Else
Decode = Decode & Mid(abfrom, y, 1)
End If
Next
End Function
' USE: location.href="nextpage.asp?" & encode("sParm=" & sData)
Function Encode(sIn)
dim x, y, abfrom, abto
Encode="": ABFrom = ""
For x = 0 To 25: ABFrom = ABFrom & Chr(65 + x): Next
For x = 0 To 25: ABFrom = ABFrom & Chr(97 + x): Next
For x = 0 To 9: ABFrom = ABFrom & CStr(x): Next
abto = Mid(abfrom, 14, Len(abfrom) - 13) & Left(abfrom, 13)
For x=1 to Len(sin): y = InStr(abfrom, Mid(sin, x, 1))
If y = 0 Then
Encode = Encode & Mid(sin, x, 1)
Else
Encode = Encode & Mid(abto, y, 1)
End If
Next
End Function
and other is javascript replace
str.replace(str,"+","####")
PleaseHelpCP
30-Oct-12 6:19am
View
tried using replace function of javascript
PleaseHelpCP
30-Oct-12 6:06am
View
Tried this but not working. I am using frames. If i check page properties, i get correct url i.e. with encoded 2B. But if i try to retrieve using request.querystring, its not showing blank space.
PleaseHelpCP
29-Oct-12 9:24am
View
thank you ProgramFOX
PleaseHelpCP
10-Oct-12 5:22am
View
Exception ex = Server.GetLastError().GetBaseException();
string PageUrl = Request.Url.ToString();
ErrorFn.ShowErrorLog(ex.Message, ex.ToString(), Request.RawUrl.ToString());
i also have set to custom errors mode on and
<error statuscode="500" redirect="/ErrorPage.aspx"> in that
PleaseHelpCP
10-Oct-12 4:58am
View
thanks Mohd. Mukhtar. i have tried the same solution as yours, still its not working
PleaseHelpCP
14-May-12 3:10am
View
Thanks Sandeep Mewara
I have set NextPagetext & PreviousPageText properties.
My requirement is to show previous button (Inactive) also. It should be like
<< < 1 2 3 > >>
Thanks
Show More