|
Thank you. But I want to do it in a button click event.Is it possible?
I have to edit the question & answer and store it to the database.
Thanks in advance
|
|
|
|
|
It doesn't matter where you create it the first time, so long as it's recreated before page_load on postback.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Is this true: I can have 1 App_Code folder per asp.net application and multiple applications per website.
So, therefore I can have multiple App_Code folders on my website? For exmple:
Application1
/apps/debug/app/App_Code
Application2
/apps/app/App_Code
Will this work?
/\ |_ E X E GG
|
|
|
|
|
So long as you set them up as seperate web applications, I believe so.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I have created a ASP.net application. In which I have added js and html file. In js file, function written for runtime thumbnail image creation. That function is passed on html file. I want to show large image onclick the thumbnail image.
THANKS
|
|
|
|
|
Then your javascript should create a popup window or floating DIV which contains the full image, I guess.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
tulsulkar wrote: I want to show large image onclick the thumbnail image.
If you want to show large image in the same page or in popup then Christian Graus told appropriate solution. If you want it to display in other page like what wikipedia is doing, just link to large image file link. Browser will show full image there.
|
|
|
|
|
Hello All,
I am dynamically adding the columns and rows to the gridview control. It is getting populated correctly, my problem here is i am not getting the horizontal scroll bar within the gridview.
How to add horizontal scrol bar to the griedview control, so that it will not affect the other controls on the page.
Thanks in advance.
Bharath.S Ron
|
|
|
|
|
It seems Gridview won't support horizondal scrolling. You need to place gridview inside DIV element and apply styles for DIV to show scrollbar.
<DIV style="OVERFLOW: auto; WIDTH: YourWidth; HEIGHT: YourHeight">
If your gridview width exceeds specified width, it will show scrollbar. I Don't know cross browser compatibility of this method.
|
|
|
|
|
|
Hi all,
I m executing my project in ie6. some times i use to execute my project in ie7
Here my problem is:
i m getting images well and good when i run it on the ie6 (my images are stored in my project in one folder) and in ie7 i m not able to get the images on my aspx page even though if the images are there on my image folder.But some times the images will disply on ie7.
plz any one can help..
Regards,
dharani.
|
|
|
|
|
When designing website, follow only W3C standards. IE is having lot of proprietary methods and styles for rendering content. Have you tried your website in FireFox ? Ensure that you are using W3C recommended design standards instead of using IE stuff.
|
|
|
|
|
Hi!
Hope every one is fine, i am facing a problem in session management. I created a session and used it to store the login id and type of user. session goes fine and terminates when user logouts but after user logouts from site and then presses "BackSpace" button it redirects to the last page opened, but no action could be performed on that page. it should not happen because only authenticated users are allowed to view any page other than login page.
Can any body tell me how can i restrict any page of my site to be opened like this? i am new to web development so any kind of help is appriciated.
Thanks,
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
Affan Toor wrote: then presses "BackSpace" button it redirects to the last page opened, but no action could be performed on that page
You are seeing the cached version of page by browser. You can disable caching for pages and that could solve your problem.
|
|
|
|
|
Basically, all your pages should derive from a base page which checks if the user is logged in, and, if not, redirects to the login page.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
try this:
on login page:
protected void Page_Load(object sender, EventArgs e)
{
.........
//if the user is valid
Session.Add("user", user);
.......
}
on other page
protected void Page_Load(object sender, EventArgs e)
{
.......
if (Session["user"]==null)
Response.Redirect("login.aspx");
........
}
on logout
Session.Remove("user");
I hope that will help you.
|
|
|
|
|
clear the session on log out
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
Hi when i parse this query i ma getting sucesfull command...,
When i run the query gtting error like "Syntax error converting character string to smalldatetime data type"...,
Thsi is my procedure:
declare
@mthinc as tinyint,
@years as smallint,
@mth as varchar(50),
@yr as varchar(50)
set @mthinc=6
set @mth='@mthinc'
set @years=2007
set @yr='@years'
begin
select empid,max(edate) as edate from tblsalarydetails
where edate < @mth + '/01/' + @yr group by empid
end
I think to assign the tinyint & smallint value to varchar variable place i am getting error...,
How to solve that...,
Plz hlp me...,
Regards,
Magi
|
|
|
|
|
What does this following logic mean?
set @mth='@mthinc' & set @yr='@years'
Why r u assigning '@mthinc' to @mth variable?
Straightway assign the numeric value to @mth & @yr variable
Eg: @mth = '6' & @yr = '2007'
Make @mth & @yr variable as varchar
Regards,
Vipul Mehta
Sr. Software Engineer
Accenture Services Pvt Ltd
|
|
|
|
|
ya it will work...,
Thank u...,
Keep in touch,
Regards,
Magi
|
|
|
|
|
Is ur issue resolved?
Regards,
Vipul Mehta
Sr. Software Engineer
Accenture Services Pvt Ltd
|
|
|
|
|
Ya,
Thank u,
Regards,
Magi
|
|
|
|
|
I am using Infragistics and in my application i want to implement Ultraweb grid.
The problem i am currently facing is ..when i click a row in Ultra web grid i
want to populate all the values of the cells to the appropriate textboxes
given above it...
I am trying to do it since one week.. as i am new to Infragistics i need help...
Someone over there please help me...
Thanks in advance....
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
I've never used Infrigistics controls. Their site is the best place to talk to people who have.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi every body,
I just want to create a folder and i have to place any files (like excel,word documents) in that folder.
Can any body help me?
Nehru
|
|
|
|