|
to retrieve text from the uml class diagam and to estimate the size
|
|
|
|
|
Ok...? What part of writing this code are you having problems with? Post your code, and show us where the problem is.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hi!
1)I am very confused to get the concept of MVC (Model View Control).Could u tell me what is
this MVC Model is all about?
2 ) How to implements MVC Model to the apiaction? could u tell me the steps.
|
|
|
|
|
is Google[^] not working where you live? Any one of those links will tell you what you need to know.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
I want to develop an application, wher on each users login some data has to get displayed. But it should not be same for any two.
example let us assume I have 10 rows of data in database. i.e. d01, d02, d03,d04,d05.....etc. and there are 5 users u1, u2, u3, u4, u5.
when u1 logins data or d01 has to get display in his login. then when next user logins next row data has to get displayed.
If d06 is completed in one day, next day when the user logins it has to start with data of d07.
I am not getting any idea how to start with, any suggestions will be appreciated.
Thanks in advance
|
|
|
|
|
Hi n_gchaitra!
I think you have to store the last status of the data that has been displayed to particular user.
Proper table structure in DB may solve your problem.
Regards.
|
|
|
|
|
Thank you. But how?
Chaitra N
|
|
|
|
|
1st of all ur question is not well described from here,
n_gchaitra wrote: If d06 is completed in one day, next day when the user logins it has to start with data of d07.
But I think U need a something like LOGIN in which
Some user has a Id and logs in then he/she can see the details related to that particular id?
bu here u want something like a user can see two data Means d01,do6 for U1?Is it so?
Do u want to build like this?
Believe Yourself™ :->™
|
|
|
|
|
Hi Gandalf,
Thank you for the reply.
Actually it is not mandatory to have login. I thought having logins will be a good idea. Anyway i tell you what I want.
I have already have data in the database which have been stored to some other application. Now I want to do some process on the data. But when i open the application it should load the data aumatically. This I can do for the first time and for a single user. But the requirement is suppose when a user1 uses the application data in the first row has to be loaded and when next user uses it simultaneously second row has to be loaded. like wise if 20 users runs application in the same time or at different time data of 20 rows has to be loaded for the 20 users.
Chaitra N
|
|
|
|
|
hi all
can you plz provide some good links which helps me to store/retrieve the
image from sql server 2005
thank you
siri
|
|
|
|
|
Hi Sirisha!
First try to find articles. There are lots of articles about this topic.
Articles[^]
The above link give you many articles. You may find your required articles/methods from that.
Regards.
|
|
|
|
|
[^]http://aspalliance.com/articleViewer.aspx?aId=140
Why cant u go for Google Search. There are lot of examples provided .
VanithaVasu
|
|
|
|
|
I am trying to display the Image which i have retrieved from Sql .
The problem is i am not able to convert the bytes to image in my webform.
This is my Code.
SqlCommand scmd = new SqlCommand
("select mImage from MyTable where Title='"+ TextBox1.Text + "'", sqlConn);
sqlConn.Open();
Byte[] storedImage = (Byte[])scmd.ExecuteScalar();
Using this i have retrieved the image But how can i display it in the Image control.
Can anybody help me to solve this using C#.
VanithaVasu
|
|
|
|
|
Take a step back and think about how HTML works.
The browser gets the page from the server. The IMG tag in the page points to where the image data is located. The browser makes a seperate request to get the image.
You will need to implement another page (better still an ashx handler), which can write that byte[] out, and set the Response.ContentType to image/jpeg (whatever).
Also please have a google for "SQL Injection" and "Parameterized Queries", because as your code stands now, I can delete anything out your database by typing nasty things into TextBox1...
|
|
|
|
|
But in my application i am not going to ask user to type the image names and etc , and i am working in vs.net 2.0 with C#.
Actually my problem is i have to display different images in treenode of a treeview for that i have stored the details and the images in the sql and i have retrieved the image too.
But the thing is i am not able to display the images in my webform.
So is there any way to display the images.
VanithaVasu
|
|
|
|
|
iam writting the database connection string in appsettings of a weg.config file like this
< add key="my connection" value="Data Source=abcd;UID=ab1;Password=ab2;"/>
but this should not be visible to the user in the same way how this can be encrypted.
|
|
|
|
|
Hey,
u can try this link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
DataProtectionConfigurationProvider by using this the web.config appsettings are automatically converted to some code ..is this code is genrated same for all applications ....now where i have to write the encryptmethod of web.config and where i have to decript ...when i decript again i have to call encrypt....
|
|
|
|
|
Hey,
check it and implement it.
link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Imports System.Configuration
Imports System.Web.Configuration
sir even thoug iam importing these two namespaces but iam getting the errors
WebConfigurationManager.OpenWebConfiguration not declared error is comming wat the problem in it sir
|
|
|
|
|
Hi,
With the following code I am getting error that
at this line
int.parse(viewstate["0"]) +=1;
error:-
Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?)
if(!ispostback)
{
viewstate["index"]="0";
}
On Next Button event
if (viewstate["index"].ToString()=="0")
{
//Get question from arraylist with 0 index
int.parse(viewstate["0"]) +=1;
}
else
{
//Get question from arraylist with viewstate index number
string quest=arrlist[int.parse(viewstate["index"])]
//check if question is from last array index then disable next button
if(int.parse(viewstate["index"])==arrlist.count){
//disable next button}else{int.parse(viewstate["0"]) +=1;}
}
On Previous Button event
if (viewstate["index"].ToString()=="0")
{
//Get question from arraylist with 0 index
//disable previous button
int.parse(viewstate["0"]) +=1;
}
else
{
//Get question from arraylist with viewstate index number
string quest=arrlist[int.parse(viewstate["index"])]
int.parse(viewstate["0"]) -=1;
}
|
|
|
|
|
Hello Friends,
I want to get the ID(unique field in "GridView3") respectively i click on the "Select" button or link. Here i'm giving my code. Plz check and make me correct.
protected void GridView3_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
string str = GridView3.SelectedRow.Cells[1].Text;
lblMsg.Text = str.ToString();
OR
lblMsg.Text = GridView3.SelectedRow.RowIndex.ToString();
}
But it throw(s) an error like
Object reference not set to an instance of an object.
|
|
|
|
|
HI Knowledge!
Actually I m not getting what exactly ur problem lies.
Is label inside the Grid or Outside?
do ur Source has the Unique Id that u r use to bind the grid?
And yes About the Error :
This Error Generally Arises when There is Unavailability of a Control.
Believe Yourself™ :->™
|
|
|
|
|
This event doesn't give you any selected row,you have to select row of the gridview as
GridView3.SelectedIndex=e.NewSelectedIndex;
GridView3.datasource=place here datatable
GridView3.databind()
place ur code in the following event. I think your problem will be solved.
protected void GridView3_SelectedIndexChanged(object sender, EventArgs e)
{
string str = GridView3.SelectedRow.Cells[1].Text;
lblMsg.Text = str.ToString();
OR
lblMsg.Text = GridView3.SelectedRow.RowIndex.ToString();
}
|
|
|
|
|
Hi,
I have not a option for CreateTextFormatOptions of ExportOptions.
I am using Crystal Report 10 version. and I want to export report into Text file.
I want to formatting the text file using
ExportOptions.CreateTextFormatOptions.CharacterPerInch = 16
ExportOptions.CreateTextFormatOptions.LinePerPage = 5
but CreateTextFormatOptions is not a option for ExportOptions.
Is there any solution for this problem.
Thanks,
Arti Khachariya
modified on Saturday, February 9, 2008 3:53 AM
|
|
|
|