|
|
thanks but i want add to flexgrid in mvc
flexgrid in mvc is not a server control.it is a html control...
|
|
|
|
|
Hello, I'm a web developer who has worked with PHP and I'm delving into the ASP.Net world. Now how do I remove all the default styling (the inline-css) from these web controls? I can't use !important everywhere, it just seems silly.
|
|
|
|
|
css like width is added when you assign a value to width,
really need to see an example first of what you want to remove.
|
|
|
|
|
what is the benifit of entity faramework
|
|
|
|
|
Please help me How to create web crawler. what are the main things that could build a web crawler.
|
|
|
|
|
Here is the code:
protected void cmdLogin_Click(object sender, EventArgs e)
{
Class1.con = CreateConnection();
string str = "SELECT Ad_Regid from Admin_Profile WHERE Ad_Regid LIKE @TempPasscode";
cmd = new SqlCommand(str, Class1.con);
cmd.Parameters.AddWithValue("@TempPasscode", txtcurrentpwd.Text.Trim());
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
if (dr[4].ToString() == txtcurrentpwd.Text)
{
cmd = new SqlCommand("_insertAdminLogin", Class1.con);
cmd.CommandType = System.Data.CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@AdminType", ddltype.SelectedItem.Text);
cmd.Parameters.AddWithValue("@AdminUsrname", txtuname.Text);
cmd.Parameters.AddWithValue("@AdminPwd", txtconfirmpwd.Text);
cmd.ExecuteNonQuery();
}
else
{
ClientScript.RegisterStartupScript(GetType(), "Warning", "javascript:alert('Temporary Password Does not Match!');", true);
}
}
Sp:
CREATE PROCEDURE [dbo].[_insertAdminLogin]
(
@AdminType VARCHAR(100),
@AdUsrname VARCHAR(12),
@AdminPwd varchar(12)
)
AS BEGIN
INSERT INTO dbo.AdminLogin (AdminType, AdminUsrname, AdminPwd)
VALUES (@AdminType, @AdUsrname, @AdminPwd)
END
}
|
|
|
|
|
Here is the code:
just check ur code this line if (dr[4].ToString() == txtcurrentpwd.Text)
dr[4].ToString() the index value 4 is correct or not.
protected void cmdLogin_Click(object sender, EventArgs e)
{
Class1.con = CreateConnection();
string str = "SELECT Ad_Regid from Admin_Profile WHERE Ad_Regid LIKE @TempPasscode";
cmd = new SqlCommand(str, Class1.con);
cmd.Parameters.AddWithValue("@TempPasscode", txtcurrentpwd.Text.Trim());
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
if (dr[4].ToString() == txtcurrentpwd.Text)
{
cmd = new SqlCommand("_insertAdminLogin", Class1.con);
cmd.CommandType = System.Data.CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@AdminType", ddltype.SelectedItem.Text);
cmd.Parameters.AddWithValue("@AdminUsrname", txtuname.Text);
cmd.Parameters.AddWithValue("@AdminPwd", txtconfirmpwd.Text);
cmd.ExecuteNonQuery();
}
else
{
ClientScript.RegisterStartupScript(GetType(), "Warning", "javascript:alert('Temporary Password Does not Match!');", true);
}
}
Sp:
CREATE PROCEDURE [dbo].[_insertAdminLogin]
(
@AdminType VARCHAR(100),
@AdUsrname VARCHAR(12),
@AdminPwd varchar(12)
)
AS BEGIN
INSERT INTO dbo.AdminLogin (AdminType, AdminUsrname, AdminPwd)
VALUES (@AdminType, @AdUsrname, @AdminPwd)
END
}
modified 9-Jul-13 6:41am.
|
|
|
|
|
I have created xml file with node element and child elelement. I have created asp.net application using VS2008 and am unable to write to that XML file. Its giving already another process is using. Access dinied.
How to do this.
If anybody knows please reply me.
Thanks in advance.
|
|
|
|
|
Do not post your question in different places.
|
|
|
|
|
This question has nothing to do with ASP.NET at all.
|
|
|
|
|
Which is the best data object caching technique in asp.net
among
1. cache class
2. objectcache class
3. enterprise caching block
or some other ?
|
|
|
|
|
Hello Everyone,
I am using asp:menu to build my web site
When i add a new page the menu is displayed vertical like
Mobile->HTC
but ,i want it this way
MOBILE
-------
Samgsun
Nokia
HTC
COMPUTERS
---------
Lenovev
Dell
i.e below my main menu ,it is appearing to the right side
How am i supposed to do it???
|
|
|
|
|
Hi,
my need is very simple, but I'm not able to discover a solution. My gridview has a fixed number of rows and columns and I'd like to change a cell background color when the user click on the cell, without postback.
I appreciate any help.
Thanks.
Michele
|
|
|
|
|
|
Many thanks Vani,
I appreciate your help but i need to change only the cell backcolor and not the complete row backcolor.
Michele
|
|
|
|
|
Hi,
I have a classic asp page and I need to embed a asp.net application. I created a frame for the .net app. My problem is that the .net app height always changes and I dont want 2 scroll bars. Any ideas will be greatly appreciated.
Thanks,
Martin
|
|
|
|
|
I using three textbox(txtName,txtmobile,txtremark)and two skinid for this textboxs(snTextBox,snTextBoxNumeric)If cursor focused in txtname or txtremark mean defaultbutton is working,while its in txtmobile mean defaultbutton is not working because skinid for that textbox is different.
|
|
|
|
|
Hi,
Iam using VS2010...It's my first project in ASP. I wish to design this menu on full screen like this codeproject...I checked by browsing in different sizes of screen this is displaying in full screen...
That CodeProject Logo Pad & Menu....displays in full screen...
So how to achieve this full screen...?
Thanks for the guidances..
Thanks & Regrads
Paramu
|
|
|
|
|
|
|
Guys;
I am developing an ajax control that has an svg element. I want to add graphics to this svg on certain ui events. I have tried both svg.innerHTML += elementHtml; , and svg.appendChild(element); . But both didn't display the desired graphic.
what should I do?
Help people,so poeple can help you.
|
|
|
|
|
The problem was in creating the element. I just used document.createElementNS() instead of document.createElement and it worked.
Help people,so poeple can help you.
|
|
|
|
|
I want to create a page in asp.net forms application where I can add product( with image upload), view product in grid(with asynchronous pagging sorting and filtering) and edit product by full aschronous mode using bootstrap theam or any good styling. But this is very hard for me to do everything without postack. I donot want to use any asp.net update panel or serversite controls , and if possible make the viewstate false as it slow-down my page. I search in google and got examples of MVC for this purpose. But for web forms application I donot get any helpful answear. Now I am doing this partially using jqwidgets, but I can't edit in this grid and for each product add I do postback.
So anyone please guide me to do this page full asynchronous in web form application.
Thanks, in advance
|
|
|
|
|
Sir;
I think you need to design your requests in the background like in Asynchronous File Upload[^]
Help people,so poeple can help you.
|
|
|
|