hi,
i want to apply alternate row colors to jqgrid.
For this i called function like this
jQuery1(document).ready(function() {
jQuery1("#list").jqGrid({
url: 'gridData.aspx?pgName=AdminHome',
datatype: "json",
id: "OrderId",
colNames: "Order Date", "Order Status"],
colModel: [{ name: 'OrderDate', index: 'OrderDate',...
Given url /Page.aspx?a=b&title=apples+%26+pears, Request.Url property returns /Page.aspx?a=b&title=apples+&+pears
Note that the url-encoded ampersand in the second key-value pair has been automatically decoded.
Other url-encoded reserved characters aren't being automatically decoded.
Is this behaviour correct?
EDIT: The issue is that ...
I have a button, which updates a value in the database. This value is used to determine what to draw on the page. Because of the page lifecycle though, the page redraws before the button click method is executed, meaning that any changes are not reflected until the page is reloaded again.
What's the best solution for this?
To clarify:
...
I had Datalist and I want to give item style when I click on it to show user the he select this item I did my code but when I selected item It didnot have any style
protected void DataList3_ItemDataBound(object sender, DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.Al...
I have created a dummy projet for testing collection and ICollection.I have a user class and wanted to create a collection.Example -
ICollection<User> users = new Collection<User>();
Collection<User> users = new Collection<User>();
Both code are working fine whether I use Collection or I collection.Now can anyone tell me what is diffe...
Can I know how to deallocate COM server object forcefully from C# .NET if particular condion fails or the object is partially constructed?
The problem is I am using that COM server using DCOM mechanism; in the worst case, when the object is not created fully and I am coming out of application since failure, the COM object is still in m...
If you were asked in an interview to describe the ASP.net lifecycle what would you answer?
What I have memorised so far is...
SILVERU or
Start
Initialization
Load
Validation
Postback Event Handling
Render
Unload
Would giving that list be enough of an answer?
I doubt it so if it is not enough then what would one have to say?
...
Hello,
i have the following method:
private DataTable getsortedtable(DataTable dt)
{
dt.DefaultView.Sort = "Name desc";
//I would need to return the datatable sorted.
}
My issue is that i cannot change the return type of this method and i have to return a DataTable but i would like return it sorted.
Are there any magic hidde...
Hi,
I am trying to implement multiple choice questions within my web application. I have datalist within a datalist. First datalist contains questions, second datalist contains choice, only one choice should be selectable at a time. I am using radio button. Even though I have set RadioButton.GroupName property, I can't make them selecta...
I am trying to call javascript from the page code behind on a button click using the following code.
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("<script language=\"javascript\">");
sb.Append("alert(\"Some Message\")");
sb.Append("</script>");
...
Is there any reason to migrate from MySql to SQL server 2008 if one's main concern is the blocking of SQL injection attacks?
Does Linq2Sql or EF provide additional protection?
...
I'm fairly new to web development.
Basically I'm using a HTML5 canvas to render content, and javascript functions which clear and render to the canvas.
I'm hoping to call a web service to get data that would affect content, which I believe is most easily done from C#, and was wondering how I could use this to periodically call a javasc...
I've searched for this, but maybe I'm using the wrong keywords.
I have a DataList containing an ImageButton whose ImageUrl property I want to set by combining it with a string returned from a codebehind file property and a database value.
I have a protected property in my codebehind called strPath.
I want to combine it with a database...
Has anyone used SQLite before with asp.net? Is there a SQLite Linq provider? Do you recommend something other than SQLite? Would like to hear your thoughts.
Will this work as the master database and then backup to a sql server 2005 db? Can you run a hybrid of the two?
...
Please I had code to send emails to user when register on our website I did the code but no message was sent and error appeared (failure sending email). Please anyone help me ASAP.
bool SendMail(string account, string password, string to, string subject, string message)
{
try
{
NetworkCredential loginInfo = new NetworkCr...
I am creating some sessions on successful login and I need to access them from my master page. How do I go about this?
public void showUser()
{
if (!string.IsNullOrEmpty(Session["User"].ToString()))
{
Response.Write(Session["User"].ToString());
}
else
{
Response.Write("Not Logged In");
}
}
...
Hi all...I am creating a new application..I created a login page successfully..Now I need to modify the login page ..Only 3 attempts only allowed for a user ..If the user wrongly enters the password more than 3 times(within 5 min) his account must be blocked..And error message must be shown as You cant access your page ..Please share you...
I wonder, why everybody hates ViewData so much?
I find it quite useful and convenient. I tell you why: typically every controller action has it's own ViewModel, so it's used only once and I find it very tedious to modify ViewData class every time I need to add extra portion of data to view (adding extra field to class usually leads to m...
Let's imaging there are 2 pages on the web site: quick and slow. Requests to slow page are executed for a 1 minute, request to quick 5 seconds.
Whole my development career I thought that if 1st started request is slow: he will do a (synchronous) call to DB... wait answer... If during this time request to quick page will be done, this re...
I want to do something like this
<%#(DataBinder.Eval(Container, "DataItem.Age").ToString()=="0")
?"n/a"
:"DataBinder.Eval(Container, "DataItem.Age")"%>
is it possible?
...