15,890,527 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 Visual Basic questions
View Python 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 codegeekalpha (Top 200 by date)
codegeekalpha
19-Mar-19 15:12pm
View
No. Line can start and end with different characters. However i am fetching raw_text from the XML API... There can be one raw_text attribute or there can be several. I want to display them in separate line
codegeekalpha
19-Mar-19 15:07pm
View
No.. It can be different every time..
codegeekalpha
4-Mar-17 20:48pm
View
can you please explain what you are trying to say
codegeekalpha
4-Mar-17 20:47pm
View
is it not possible with razor and C# only?
codegeekalpha
4-Mar-17 20:10pm
View
[RoutePrefix("api/ServiceA/GetBook")] I tried with this.. same results.. no change..
codegeekalpha
4-Mar-17 20:06pm
View
It is in s web project....
codegeekalpha
4-Mar-17 19:43pm
View
i did as you said ..
http://localhost:2280/1234
I am getting {"Id":1,"ISBN":"1234","Title":"Title 1","Publisher":null,"Author":"Farooq","Price":35000.00,"Source":"Book Store 2","PurchaseUrl":null}
and with this
http://localhost:2280/api/ServiceA/1234
i am getting null
codegeekalpha
4-Mar-17 19:20pm
View
Isbn is coming from database and i write it like 1234 which is its value in database and is of string type
codegeekalpha
4-Mar-17 17:22pm
View
if i use [route("api/serviceA/1234")] i get the results with uri localhost/1234
but i want resutls to be retrived on localhost/api/serviceA/1234
codegeekalpha
4-Mar-17 14:02pm
View
but I dont want a route prefix as api/serviceA. I want my URI to b localhost:2280/api/ServiceA/isbn.. Which is already defined in WebAPI config but with this i am getting error no resource found
codegeekalpha
3-Mar-17 21:48pm
View
yes execution time and memory usage by code block
codegeekalpha
3-Mar-17 21:47pm
View
yes execution time and memory usage by code block
codegeekalpha
2-Mar-17 6:54am
View
When you do things first time. Problems occur.. This is the forum to help ..anyways. thanks for the positive response it motivates me to figure it out myself.. and package Common.Logging.Log4Net1211
was missing
codegeekalpha
2-Mar-17 5:21am
View
Deleted
yes
codegeekalpha
28-Feb-17 21:34pm
View
my question is how to run bechmark in mvc application.. where to put this line var summary = BenchmarkRunner.Run<user>(); .. In console application it goes in main
codegeekalpha
28-Feb-17 21:32pm
View
can you explain what you are trying to say.. you just reference a link showing the results.
codegeekalpha
2-Feb-17 11:07am
View
I think the question i asked.. you did not understand...
codegeekalpha
10-Jan-17 9:08am
View
how can i check it?
codegeekalpha
5-Nov-16 10:36am
View
can you give example?
codegeekalpha
6-Sep-15 7:24am
View
it works. i can commit in repository. My university git is not fancy . I cant see my repository in University servers. Why is that.. I can commit using the Linux Terminal. But can not see my project in Personal university git website
codegeekalpha
25-Mar-14 16:03pm
View
i am using mysql
codegeekalpha
25-Mar-14 16:02pm
View
its a simple php query.
codegeekalpha
30-Mar-13 15:38pm
View
i have solved this problem.. actually dere is some firewall on my pc.. so its not working
codegeekalpha
4-Jul-12 14:29pm
View
can u give me some examples??
codegeekalpha
14-Mar-12 9:52am
View
thanks digimanus
codegeekalpha
14-Mar-12 9:45am
View
what is that??
codegeekalpha
14-Mar-12 9:42am
View
i want to get userName from login table.. ahh sorry but its user name in my origional database
codegeekalpha
14-Mar-12 9:38am
View
invalid colum name UserName
codegeekalpha
3-Mar-12 22:39pm
View
???????????????
codegeekalpha
3-Mar-12 22:39pm
View
i havn't get it? i did login coding using sessions... ???
codegeekalpha
26-Feb-12 20:15pm
View
nop its not working... same issues is also with this..
codegeekalpha
26-Feb-12 20:15pm
View
its not working. same problem...with that
codegeekalpha
25-Feb-12 3:40am
View
its now working...
codegeekalpha
20-Feb-12 5:50am
View
how can i put username passwords of both the types in one table.. they have different other attributes.
codegeekalpha
20-Feb-12 5:40am
View
how can i put username passwords of both the types in one table.. they have different other attributes.
codegeekalpha
13-Feb-12 19:07pm
View
sql ado.net
codegeekalpha
5-Feb-12 15:44pm
View
i treid this . but its not working fine.. i think there may b some other problem...
codegeekalpha
4-Jan-12 11:37am
View
no problem with that...
codegeekalpha
4-Jan-12 9:33am
View
i am testing this query in sqlserver. in code i am fetching date in dropdownlist from database and i am using where clause with dropdown list, question updated
codegeekalpha
3-Jan-12 0:52am
View
This is not the right way to do it.. You should better try to use sessions ora cookies..
codegeekalpha
31-Dec-11 6:24am
View
its not working
codegeekalpha
30-Dec-11 23:31pm
View
any coding example???
codegeekalpha
30-Dec-11 5:13am
View
why you pas request.querystring["less"] it should b request.querystring["id"]
codegeekalpha
30-Dec-11 3:37am
View
???
codegeekalpha
29-Dec-11 5:56am
View
can u pls put some more code so i can understand it...
codegeekalpha
29-Dec-11 5:55am
View
only one query at a time
codegeekalpha
29-Dec-11 0:02am
View
i am filling grid on the bases of price range..
first is for products with unitcost<5000 and other one is for price range between 5000 and 10000
codegeekalpha
28-Dec-11 23:56pm
View
i think you hav'nt understand my question..
codegeekalpha
28-Dec-11 21:26pm
View
what is that +i at the last of the query
codegeekalpha
28-Dec-11 20:15pm
View
please put some more code?
codegeekalpha
28-Dec-11 20:14pm
View
yeh
codegeekalpha
28-Dec-11 17:01pm
View
i haven't got that.. :(
codegeekalpha
28-Dec-11 11:15am
View
its not removing the first comma... but its removing its generating query like that Select * from Products where ProductID= ',3,4,5' AND UnitCost < 5000" which is wrong..
codegeekalpha
28-Dec-11 9:05am
View
no
codegeekalpha
28-Dec-11 0:58am
View
grid still remain empty.. still having the same problem
codegeekalpha
28-Dec-11 0:57am
View
still i am getting nothing in grid :(.
codegeekalpha
28-Dec-11 0:29am
View
???? how??
codegeekalpha
27-Dec-11 23:57pm
View
please check update solution.. i debug the code. id's are going to productcatalog.aspx page
codegeekalpha
27-Dec-11 22:48pm
View
please check i update the question
codegeekalpha
27-Dec-11 22:48pm
View
check updated question
codegeekalpha
27-Dec-11 21:57pm
View
on the obove solution that i have mentiioned..
when i debug i got this..
+ dr["ProductID"] 'dr["ProductID"]' threw an exception of type 'System.InvalidOperationException' object {System.InvalidOperationException}
codegeekalpha
27-Dec-11 21:41pm
View
if(proid == String.Empty)
{
proid = Convert.ToInt16( dr["ProductID"]); // i am getting error here cannot convert type short to int
}
codegeekalpha
26-Dec-11 13:48pm
View
this results nothing.. in productCatalog.aspx
codegeekalpha
26-Dec-11 12:04pm
View
its not working
codegeekalpha
26-Dec-11 6:43am
View
i will tell u .. after the implementation.. i am out of house now..
codegeekalpha
24-Dec-11 16:26pm
View
hello pls tell me.??
codegeekalpha
24-Dec-11 16:16pm
View
can u tell me how.. for gridview i wrote the code like this .. string query="Select CategoryID,CategoryName from Categories";
DataSet ds=obj.fillgrid(query);
GridView1.DataSource = ds.Tables[0];
GridView1.DataBind();
what i have to write for to have productid in linkbutton link button
codegeekalpha
24-Dec-11 16:09pm
View
protected void Page_Load(object sender, EventArgs e)
{
HyperLink1.NavigateUrl="~/ProductCatalog.aspx?ID=" +ProductID+ "";
} i have only this code.. do i need to get the data from database for <%# Eval("ProductID", "ProductCatalog.aspx?ID={0}") %>'>HyperLink
codegeekalpha
24-Dec-11 16:00pm
View
i put that in page load and getting productId is not found in current context
codegeekalpha
24-Dec-11 15:58pm
View
code behind me.. in C#? or in Aspx
codegeekalpha
24-Dec-11 15:43pm
View
hyperlink is not acting like a link.. its just a text i used this
<td align="center">
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("ProductID", "ProductCatalog.aspx?ID={0}") %>'>HyperLink
</td>
codegeekalpha
24-Dec-11 15:21pm
View
nothing happenend.. page is even not redirected to product catalog.aspx
codegeekalpha
24-Dec-11 13:03pm
View
u mean i shoud use Eval("ProductId) ??? what about the Link page
<asp:LinkButton ID="LinkButton4" PostBackUrl='<%# "~/ProductCatalog.aspx?PriceID="+Eval("UnitCost") %>' runat="server"><5000
what i have to do in it
codegeekalpha
24-Dec-11 12:46pm
View
improved.. check now.. its not more detailed...
codegeekalpha
24-Dec-11 12:35pm
View
i have a table in my data set...
i am not a very biggner...
codegeekalpha
24-Dec-11 12:23pm
View
yeh can't not fine table 0
codegeekalpha
24-Dec-11 12:01pm
View
how can i do it.. i am getting the price in querystring
codegeekalpha
24-Dec-11 11:54am
View
i am getting error object reference not set to instance of object
codegeekalpha
24-Dec-11 11:48am
View
this query has a errors.. syntax error.. can u figure out them
codegeekalpha
22-Dec-11 15:25pm
View
???
codegeekalpha
17-Dec-11 21:20pm
View
i haven't done anything.. because i don't know how to start..and where to start from.. i need examples to initiate it..
codegeekalpha
12-Dec-11 13:59pm
View
all are done on the same way as i did.. but still ajax not working fine. :(
codegeekalpha
12-Dec-11 13:00pm
View
The data is inserted now.. but the ajax functionality is still not working with Add product button
codegeekalpha
12-Dec-11 12:40pm
View
??
codegeekalpha
5-Dec-11 4:29am
View
5+
codegeekalpha
4-Dec-11 5:20am
View
my five too
codegeekalpha
3-Dec-11 15:50pm
View
i am not getting u.. if u give me code example than maybe i get u...
codegeekalpha
3-Dec-11 14:47pm
View
THIS IS MY PROBLEM.. I WANT SOME THING TO DISPLAY IF THAT HAPPENS..
codegeekalpha
3-Dec-11 10:31am
View
no this is the format which is used in my country.. 10/december/2011
codegeekalpha
3-Dec-11 10:30am
View
i am using string in sql server as well.. and i can't use date time picker in asp.net.. i am using ajax control tool kit..
codegeekalpha
3-Dec-11 5:14am
View
string query = "select SUM(price) from sale";
//String query = "Select * from emptable where emp_id='" + id + "'";
try
{
SqlDataAdapter dataAdapter = new SqlDataAdapter(query, connectionString);
DataSet ds = new DataSet();
dataAdapter.Fill(ds);
DataTable dt = ds.Tables[0];
foreach (DataRow dr in dt.Rows)
{
lblsale.Text = dr["price"].ToString();
//code for remaining text boxes
//txtbn.Text = dr["barrowername"].ToString();
//txtaddress.Text = dr["borroweraddress"].ToString();
//addresstb.Text = dr["address"].ToString();
}
//MessageBox.Show(" There
i am getting nothing??? i don't know y??
codegeekalpha
27-Nov-11 10:37am
View
oh dear.. thats not english grammer forum..
codegeekalpha
27-Nov-11 9:11am
View
Deleted
getting errors again
Msg 207, Level 16, State 1, Procedure insertUser, Line 11
Invalid column name 'UserName'.
Msg 207, Level 16, State 1, Procedure insertUser, Line 15
Invalid column name 'UserName'.
Msg 207, Level 16, State 1, Procedure insertUser, Line 15
Invalid column name 'FirstName'.
Msg 207, Level 16, State 1, Procedure insertUser, Line 15
Invalid column name 'LastName'.
Msg 207, Level 16, State 1, Procedure insertUser, Line 15
Invalid column name 'MobileNo'.
codegeekalpha
27-Nov-11 6:47am
View
i am getting incorrect syntax near @result
codegeekalpha
24-Nov-11 23:40pm
View
users table and orders table are 1 to many relationship and one userid have only one Customerid .. so ur guesss is wrong.. i think...
codegeekalpha
24-Nov-11 16:50pm
View
i am getting error subquries are not allowed only scalar functions are allowed
codegeekalpha
24-Nov-11 11:59am
View
String Username=user.Text; that is the line
codegeekalpha
24-Nov-11 9:16am
View
can u tell me how to do it?? give me coding example??
codegeekalpha
3-Nov-11 6:29am
View
i am coidng manually..
codegeekalpha
3-Nov-11 6:28am
View
still having a same problem
codegeekalpha
22-Oct-11 7:16am
View
i gave him +5
codegeekalpha
21-Oct-11 19:09pm
View
order by orderid desc
codegeekalpha
21-Oct-11 19:06pm
View
hmm got it..
codegeekalpha
18-Oct-11 18:44pm
View
thanks
codegeekalpha
17-Oct-11 8:56am
View
i did not downvote it...
codegeekalpha
16-Oct-11 14:42pm
View
now what i have to do??
codegeekalpha
13-Oct-11 7:25am
View
any other way to do it.??? because i also want to update a row
codegeekalpha
12-Oct-11 14:43pm
View
Deleted
This is not the answer.. You should post it in comments
codegeekalpha
9-Oct-11 19:36pm
View
i think my mobile device is not alowing to read its contents ( i.e messages.. )
i compile the code from the artical you have mentioned i am getting the same error for getting messages from my mobile phone..but message sending is working fine..
codegeekalpha
8-Oct-11 15:00pm
View
public static string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" + Application.StartupPath + "\\patientsmanagement.mdb";
codegeekalpha
8-Oct-11 14:57pm
View
OK
codegeekalpha
7-Oct-11 9:50am
View
i didnot asked to get the values from two tables. i want more than one field to enter in a textbox form one attrible to the table...
codegeekalpha
7-Oct-11 9:45am
View
i am getting the same results , can't able to get two values in a textbox . still getting single value from db
codegeekalpha
7-Oct-11 8:39am
View
thx i figure out the problem.. i set textfield in multiline field..
codegeekalpha
7-Oct-11 8:30am
View
no syntax error
but not working..
codegeekalpha
7-Oct-11 8:29am
View
its still not working :(
codegeekalpha
7-Oct-11 5:19am
View
query is right.... and their is also data in the table field MedicineName. but my application is not fething the data..
i wrote a query for the table medicines having attributes MedicineName and DateAdded. iss that query is right??
codegeekalpha
7-Oct-11 4:36am
View
thx but now i am getting no error. but autocomplete functionality is not working...
codegeekalpha
6-Oct-11 4:23am
View
i just simple want to add customers payments of the for the whole year
codegeekalpha
5-Oct-11 8:07am
View
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[retriveUserPassword] @Email varchar(50)
as
begin
select Password from login where Email=@Email
end
codegeekalpha
4-Oct-11 19:13pm
View
now i am getting erroy can't fine report path
codegeekalpha
3-Oct-11 6:07am
View
is dere any framework issue???
codegeekalpha
3-Oct-11 6:07am
View
its included in my project...
codegeekalpha
29-Sep-11 15:20pm
View
i am not copying anyones
code. i just want to know the way to handle it...
if u don't know the answer y are u put it in soltion.. add a comment.. the answer u are giving is not related to my question
codegeekalpha
26-Sep-11 15:19pm
View
Deleted
how any example?
codegeekalpha
26-Sep-11 15:19pm
View
??
codegeekalpha
25-Sep-11 15:35pm
View
how can i do it with css
codegeekalpha
25-Sep-11 15:35pm
View
i want the alignment like
First name : Texbox
Last Name: Textbox
codegeekalpha
25-Sep-11 12:26pm
View
Deleted
how i am bad in css
and designing
codegeekalpha
25-Sep-11 10:46am
View
????
codegeekalpha
24-Sep-11 19:17pm
View
thx kanjolia gopal
codegeekalpha
24-Sep-11 17:09pm
View
i am getting this exception
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
codegeekalpha
24-Sep-11 17:09pm
View
i am using template field in productid.. can i use this with a template field???
item.ProductID = (int)GridView1.DataKeys[i].Value.
what is the alternate of that if i am using templatefield.
it think we use it in databound field.
codegeekalpha
23-Sep-11 16:14pm
View
i wrote it like this but getting error
codegeekalpha
23-Sep-11 16:14pm
View
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[AddToCart]
@CustomerID varchar(50),
@ProductID int,
@Quantity int,
@Count int
@Count=select count (*) from table where ProductID=@ProductID;
If(@Count==0)
AS
BEGIN
INSERT INTO ShoppingCart
(CustomerID,Quantity,ProductID)
VALUES(@CustomerID,@Quantity,@ProductID)
END
codegeekalpha
23-Sep-11 16:07pm
View
i want to do it using store procedures..
codegeekalpha
23-Sep-11 1:51am
View
i want to do it in desktop application....
codegeekalpha
20-Sep-11 23:49pm
View
???
codegeekalpha
20-Sep-11 15:14pm
View
opps thax.. i correct it ..but still getting the same error???
codegeekalpha
20-Sep-11 14:49pm
View
yeh u are right.. i figure it out and correct it..
codegeekalpha
20-Sep-11 12:38pm
View
yes murali..i think the problem is in e.commandargument part.. i upload the design part.. pls check it.. thankyou
codegeekalpha
17-Sep-11 13:15pm
View
ok
codegeekalpha
17-Sep-11 5:18am
View
yes it is correct..
codegeekalpha
17-Sep-11 4:36am
View
if i debut directly the login page.. if i put wrong password.. lbl shows me wrong password but if the password is correcct it says server error
codegeekalpha
17-Sep-11 4:26am
View
i put the code of web config in the question pls check it..
codegeekalpha
17-Sep-11 4:25am
View
Deleted
i put the fallwoing in web config file.
<authentication mode="Forms">
<forms loginUrl="login.aspx"
name=".ASPXAUTH"
protection="All"
timeout="90" slidingExpiration="true"></forms>
<authorization>
<allow users="*">
codegeekalpha
15-Sep-11 10:21am
View
what are u exactly trying to save..
codegeekalpha
14-Sep-11 16:28pm
View
yeh it helps me.. my five
codegeekalpha
13-Sep-11 18:35pm
View
i know how to joins the table.. u are not exactly understanding the question.
cutomerid=@value..
that @value is the value i want to directly get it from the database. it is not in any asp.net control i mean in textbox e.t.c. i want it fromm database
codegeekalpha
13-Sep-11 18:16pm
View
yeh i want to get as u told.. but i want the @value to come from the database..
codegeekalpha
13-Sep-11 18:15pm
View
if the customerid is in another table.. than what i have to do ??
codegeekalpha
11-Sep-11 17:03pm
View
i have a textbox for wherer UserName= @UserName..
what i have to do for @RoleId . i don't want to specify the @roleid Textbox
codegeekalpha
9-Sep-11 12:49pm
View
i search some from google..but i think before using any tools its better to get suggetions from programmers
codegeekalpha
9-Sep-11 6:24am
View
thx.. for helping me out..
codegeekalpha
9-Sep-11 6:24am
View
yes i forgot.. thx u kschuler
codegeekalpha
8-Sep-11 15:45pm
View
to see if the record exits in db then don't insert.. otherwise insert record in db..
codegeekalpha
8-Sep-11 11:22am
View
can u pls help me
codegeekalpha
8-Sep-11 10:38am
View
i did filling data in grid many time. but did n't see such error before..
codegeekalpha
8-Sep-11 10:36am
View
how to get rid of this problem??
codegeekalpha
8-Sep-11 10:21am
View
mean???
codegeekalpha
8-Sep-11 8:35am
View
i used count (*)
now its saying all the time that record exist..
codegeekalpha
8-Sep-11 8:34am
View
i used count * . now its saying all the time that record exits..
codegeekalpha
8-Sep-11 8:31am
View
thx negendrathecoder
my five for u...
codegeekalpha
8-Sep-11 8:30am
View
ok. thx.. five vote for u...
codegeekalpha
8-Sep-11 8:27am
View
i did not downvote it... i gave it five now..
codegeekalpha
8-Sep-11 7:59am
View
can u pls help me to correct it??
codegeekalpha
8-Sep-11 7:58am
View
not working for me..
codegeekalpha
8-Sep-11 7:52am
View
its not same.. look at the code..
codegeekalpha
6-Sep-11 17:48pm
View
by the way i wrote custome user managment.. all the answer are not of my match..i am managing users in my own way .. on the bases of my own coding and my owning database. not use asp administer website to controls my roles not using aspnet db ..
codegeekalpha
6-Sep-11 17:48pm
View
by the way i wrote custome user managment.. all the answer are not of my match..i am managing users in my own way .. on the bases of my own coding and my owning database. not use asp administer website to controls my roles not using aspnet db ..
codegeekalpha
6-Sep-11 17:48pm
View
by the way i wrote custome user managment.. all the answer are not of my match..i am managing users in my own way .. on the bases of my own coding and my owning database. not use asp administer website to controls my roles not using aspnet db ..
codegeekalpha
6-Sep-11 17:46pm
View
i am not using asp built in user managament
i have my own database for user management.. i am managing roles myself.. i want to do it in a custom way.. with my own custome coding..
codegeekalpha
6-Sep-11 17:45pm
View
?
codegeekalpha
6-Sep-11 17:45pm
View
i am not using buldin user controls.. and i have my own database.. i can't use membership class..
codegeekalpha
6-Sep-11 17:41pm
View
i am not using asp bultin controls for usermanagement..
codegeekalpha
4-Sep-11 10:47am
View
Deleted
its not working .. i made changes as u said ..
codegeekalpha
3-Sep-11 20:29pm
View
thx thiyagarajan
codegeekalpha
3-Sep-11 20:13pm
View
how can i create a setup for my .net application??
codegeekalpha
3-Sep-11 20:12pm
View
i really don't know.. anything that works for others
codegeekalpha
2-Sep-11 13:57pm
View
thanku fastevo it works for me..
codegeekalpha
2-Sep-11 7:35am
View
i put that drowdownlist code in pageload and its working fine.
codegeekalpha
2-Sep-11 7:30am
View
i added the code for dropdownlist in quetion just check it
codegeekalpha
2-Sep-11 7:30am
View
o added the code in question see it
codegeekalpha
2-Sep-11 6:50am
View
categoryid is the foreign key.. its not autoincrement..
codegeekalpha
2-Sep-11 6:38am
View
all codes are in my laptop
codegeekalpha
2-Sep-11 6:37am
View
actually i want to post all the code here and i will do it lator.. i am in office now and left my laptop at home. because using laptop here is not allowed.
codegeekalpha
2-Sep-11 6:11am
View
i split this query as
query1="insert into ESKProducts (categoryid) select categoryid from ESK_Categories where categoryname=dropdownlist1.Text;
query="insert into ESK_Products(CateogoryID,ProductName,ProductImage,UnitCost,Description) values('" + txtproname.Text + "','" + FileUpload1.FileName + "'," + txtproprice.Text + ",'" + txtprodesc.Text + "')
codegeekalpha
2-Sep-11 6:01am
View
i tried to split it in two quries but still having problems..
codegeekalpha
2-Sep-11 5:57am
View
???
codegeekalpha
2-Sep-11 5:51am
View
category name and cateogryid is on the table ESK_Categories. i am just taking the categoryname form the categoriestable (ESK_Categories) in database into dropdownlist. now i have the another table having productid, categoryid , parductimage ,unitcost, description.. i am selecting the value of categoryname from the dropdownlist. and in order to insert categoryid from the form the ESK_categories table. i use select in insert query as shown above
codegeekalpha
2-Sep-11 4:20am
View
can u pls help me how to do this.??
codegeekalpha
2-Sep-11 3:40am
View
categoryID is not autoincrement
i want category id to be taken from another table categories id and selection is done on the bases of category name.
and the rest of the values are inserted from the textboxes.
no how to pass categoryid in the values field of the insert command.
codegeekalpha
1-Sep-11 19:11pm
View
i am not getting u. digimanus
codegeekalpha
1-Sep-11 19:09pm
View
i get the error
not insertedSystem.Data.SqlClient.SqlException: The name "System.Web.UI.WebControls.TextBox" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Admin_Products.btnAdd_Click(Object sender, EventArgs e)
codegeekalpha
24-Aug-11 7:33am
View
i don't want to use visual studio tools
codegeekalpha
24-Aug-11 5:27am
View
where in navigateurl??
codegeekalpha
23-Aug-11 20:02pm
View
sir i have configured the datasouce thorugh coding..
codegeekalpha
17-Aug-11 15:49pm
View
i am not using loginuser controls..
codegeekalpha
14-Aug-11 21:52pm
View
Is it like this.. select userid, groupid from role where username=christian else insert userid,groupid in role where username=christian and rolename=admin
codegeekalpha
14-Aug-11 21:37pm
View
Can u give some example ??? thzx
Show More