|
|
I have developed reorderlist in which i am adding items using checkbox list it works correctly when used on windows xp.but when we use it on windows 7
all selected items will not be added in reorder list eg when i select 10 items from checkbox list it adds only 7 item in reorder list.
|
|
|
|
|
If I have multiple kendo grids on the same page each loaded by ajax in its own partial view. How can I create a dependency between the 2 grids, so the 2nd grid won't load until the first grid has completed?
Can I use an ajax async callback, or and event to accomplish this?
|
|
|
|
|
set autoBind:false to the desired (second) Grid and then call the fetch() method of its dataSource in the dataBound event of the first Grid.
|
|
|
|
|
Actually I heard about this short time back. Is this only used to add path to our page? As user navigate through the website he/she gets the complete path?
Like:-Home/Groups/Friends/Gaurav/Reports and so on..
|
|
|
|
|
Yes. Typically it wil be displayed near the top of the page, under the main menu, poerhaps. And Ideally each item "Home", "Groups", "Friends" etc will be a link back to that section.
|
|
|
|
|
Perfect you have worked on Breadcrumbs I guess. thanks
I needed to know if I have a normal controller and action with a view. But all other controllers I have used are api controllers so from the jason data and binding them I have used breadcrumbs. But can I apply breadcrumbs to my normal controllers as the path data will not be available since no api is being called.
any idea on how to provide the breadcrumbs.Can you just brief me with how it is used?
|
|
|
|
|
I can't help you with that I'm afraid - I've never used MVC.
|
|
|
|
|
Ok thanks for your valuable time and response..
|
|
|
|
|
Hi all,
I am trying to run a query which can allow to output 'UploadDate' value only. This is what I currently have and i keep getting a -- Cannot implicitly convert type 'System.DateTime?' to 'API_09.database_BD'-- error, on the following code:
public database_BD GetDate()
{
var data = db.database_BD.Select(d => d.UploadDate)
.OrderByDescending(c => c)
.FirstOrDefault();
return data;
}
Database_BD Entity framework class:
public partial class database_BD
{
public Nullable<System.DateTime> UploadDate { get; set; }
public string uUsername { get; set; }
}
any suggestions and help would be most welcome.
|
|
|
|
|
Hello miss, Could you please specify the return type of
public -- database_BD GetDate()
|
|
|
|
|
If you only want to return the upload date, change the return type of your GetDate method to DateTime? and everything should work:
public DateTime? GetDate()
{
return db.database_BD.Select(d => d.UploadDate)
.OrderByDescending(c => c)
.FirstOrDefault();
}
If the return type needs to be database_BD , then you'll need to return that type:
public database_BD GetDate()
{
var data = db.database_BD.Select(d => d.UploadDate)
.OrderByDescending(c => c)
.FirstOrDefault();
return new database_BD { UploadDate = data };
}
If you want the full details of the latest record, then you'll need to change your query:
public database_BD GetDate()
{
return db.database_BD
.OrderByDescending(d => d.UploadDate)
.FirstOrDefault();
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Dear Richard,
Your first solution worked. I did not realize, i was missing something so silly. I appreciate your time and help.
Many thanks.
|
|
|
|
|
No problem - we've all had days like that!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi , I'm new to ASP.NET . I'm using visualstdio 2013 web express. I have created a Database and table in it. I have created a registration webform. In the web form if i click 'submit' button the corresponding value should be inserted in those tables and if i click preview the data should be displayed.
|
|
|
|
|
|
what have you tried so far? where you stuck? and what error you are getting?
|
|
|
|
|
i get an error when i click submit button
{"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"}
|
|
|
|
|
|
Check in your web.config if you have specified properly the connection strings.
And one thing are you using MVC?
|
|
|
|
|
nope. i just resolved that but got an syntax error in particular line
"int temp = Convert.ToInt32(com.ExecuteScalar().ToString());"
code
SqlConnection cn = new SqlConnection(ConfigurationManager.ConnectionStrings["userConnectionString"].ConnectionString);
cn.Open();
string sel = "select count(*) from Table where username = '" + username.Text + "'";
SqlCommand com = new SqlCommand(sel, cn);
int temp = Convert.ToInt32(com.ExecuteScalar().ToString());
if(temp==1)
{
Response.Write("User already exists..!!");
}
cn.Close();
|
|
|
|
|
oh! great..(y)
|
|
|
|
|
I got an error
An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code view details ---> {"Incorrect syntax near the keyword 'Table'."}
code:
SqlConnection cn = new SqlConnection(ConfigurationManager.ConnectionStrings["userConnectionString"].ConnectionString); cn.Open(); string sel = "select count(*) from Table where username = '" + username.Text + "'"; SqlCommand com = new SqlCommand(sel, cn); int temp = Convert.ToInt32(com.ExecuteScalar().ToString()); if(temp==1) { Response.Write("User already exists..!!"); }cn.Close();
|
|
|
|
|
One thing I would like to mention Hari is seldom use select * from .... always have a habit to write all the column names. Its a very good practice.
I guess use the name propertyfor the textbox from where you need the name and then write the name in the "--" that might work out. and from the error it seems you miss some Dll's assemblies..
please check using a debugger where exactly you are getting that exception.
thanks
|
|
|
|
|