|
do like this:
Find the index where U have the record "NameInsured".
Using that swap the records(0 and index) using
grid.Rows[index].Cells[0],Cells[1],etc.
Regards,
Arun Kumar.A
|
|
|
|
|
hello coders!
im a bit of a newbie when it comes to web design, so hold on tight and bare with me!
i am developing a personal site using the free Portfolio starter kit from the MS Expression site
all working fine and dandy, but im trying to add the "lightbox" java script to the main project image.
on the lightbox site, it states that you activate the lightbox by adding
image #1
to a link tab, but the image has no link!
the current image code is as follows:-
<asp:image "="" id="FullSizeImage" runat="server" imageurl="<%# Eval("fullSizeImage") %>">
my site can be viewed at www.krisathi.co.uk
any help would be awesome
Cheers
|
|
|
|
|
sorry, code didnt come out!
you can activate the light box by adding:-
a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1
the current image code is as follows:-
div class="details_thumb_lg_frame">
div class="details_thumb_lg">
asp:Image " ID="FullSizeImage" runat="server" ImageUrl='<%# Eval("fullSizeImage") %>'>
|
|
|
|
|
Kris100 wrote: a href="images/image-1.jpg" rel="lightbox"
This is HTML
Kris100 wrote: asp:Image " ID="FullSizeImage" runat="server" ImageUrl='<%# Eval("fullSizeImage") %>'>
This is a server control which will generate HTML
a href="<%# Eval("fullSizeImage") %>" rel="lightbox" title="my caption">image #1
Seems to me to be the solution
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 wrote my custom provider for sitemappath using sqldatasource but there is a little problem at this point. first things first my page contains textbox (TextBox1), treeView (TreeView1) and Button(Button1) and if the users select a node then write something in the textbox and then press Button1, all data write database where the value of selected node in, the data can be written on the database but after postback the treeview isnt updated. i wrote Page.DataBind() but that method didnt work and wasnt still updated. if i stop temporary server in vs8 than start again tree view has been being updated. so what should i do to pass over this issue ?
Thanks and Regards..
|
|
|
|
|
|
|
so what should i do then ?
|
|
|
|
|
|
wow thats it thanks...
|
|
|
|
|
Hi.
I am having problems with printing. I want to print out an invoice, but I also want to be able to have order details on the same page. I don't know how to do it.
If some1 could provide me with samples on customized printing ( Asp.net C# web ), I would be soo thankful.
Plzz help me...
|
|
|
|
|
As you're doing ASP.NET, the browser does the printing, all you can do is format a page so that it's ready to be printed in the way you want it to.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 am a beginner in the area and have some questions regarding importing of data from another web page, and importing table from html to excel.
I guess vbscript is related to ASP, so I hope its ok to post here...
Anyway, I'll just describe my application:
Lets say this web site I need to download tables from is www.cnn.com
Inside this site lets say there are 10 links to internal pages, and in those pages there are the tables I need (besides many text that I don't).
I need to download all the tables from those internal pages to excel. I would like to have a macro button in excel that will create a new sheet with all that data.
I saw that if I just copy the html code between ..... and just rename it in a new word pad file X.xls, and open it, I get almost a nice table in excel (almost - somehow with no grids between the cells of the entire sheet - dont know why).
Knowing that I can run a script (vbscript) to look for the string "table" and than copy all the data until the string , My problems are:
1) I write a script, but how do I call to a different web site, so my script will run on it?
2) Lets complicate: I know only the link to the index page (www.cnn.com), from there I need my script to look for all the tables inside the internal pages. (or all the tables, starting with a very specific word), and each one is on a different web page (different link). (do I write a loop which look for "href .... "? but how do I run over an entire html file (insert all between .... into a string? - that's too long...? I know there is " InStr" , but I guess it won't work in this case.
3) I want to copy between until . Again, there is a lot of data between and string is a limited variable. How do I do that.
4) After fixing those two, how will I run my script from the excel (but this, I guess will be much easier)?
Thanks, I'll be thankful for any help.
Hanan.
|
|
|
|
|
Hey
Was just wondering if there is an application level event that gets fired when a user is authenticated.
Basically want i want to do is retrieve the user's ID from the aspnetdb.mdf and store it in a session variable when the user authenticates.
If any one has any better methods then feel free to point me in the right direction.
Thanks
Dan
|
|
|
|
|
Heres what I'm trying to do. In my "Extranet" Application I'm working on when a user logs in it hits the database and populates a Collection with the information I want to use about the user throughout their visit (and beyond). Instead of hitting the database each time I want a piece of the information I would like to take that Collection and write it to an XML document for retrieval later, is there a way to do this? I'm not finding many examples of this.
Last modified: 26mins after originally posted --
" In the next millennium there are two kinds of business, those on the Internet and those out of business"
Bill Gates
"Be nice to nerds. Chances are you'll end up working for one."
Bill Gates
"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates
|
|
|
|
|
I am creating a site, and wanted to instigate a basic landing page..
i thought perhaps i could use Response.Redirect to put a 5second delay on the transfer to index.aspx
any suggestions would be fantastic..
John
John Michael Kinsella
kinsellajohn@hotmail.com
|
|
|
|
|
If you want to delay something you will probably need to use:
System.Threading.Thread.Sleep(5000)
Hope that helps.
Ben
|
|
|
|
|
You should try to do the delay in the browser instead of on the server. As long as the request is blocked on the server, it will not answer to any other request from the browser.
The Javascript window.setTimeout method can be used to run code after a delay.
---
single minded; short sighted; long gone;
|
|
|
|
|
That is a great point. I am not sure why you would want to delay a redirect anyway.
Ben
|
|
|
|
|
Thanks for the suggestions guys..
basically i have just taken an asp.net exam and i am trying to put the skills to practical use. unfortunately i am not familiar with javascript but if you could give me more details i am more than willing to research.
thanks again for your responses..
John
John Michael Kinsella
kinsellajohn@hotmail.com
|
|
|
|
|
ASP.NET is a framework which generates HTML on the server. Javascript is the language that runs in your browser, and the language in which ASP.NET generates code to do anything that runs on the client ( such as validation ). Buy a javascript book and work through it, or look up some tutorials on the web.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
i have this error.
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +195
System.Web.UI.LosFormatter.Deserialize(String input) +60
[HttpException (0x80004005): Authentication of viewstate failed. 1) If this is a cluster, edit <machinekey> configuration so all servers use the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. 2) Viewstate can only be posted back to the same page. 3) The viewstate for this page might be corrupted.]
System.Web.UI.LosFormatter.Deserialize(String input) +116
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +101
[HttpException (0x80004005): Invalid_Viewstate
Client IP: 10.1.1.1
Port: 7332
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR 1.0.3705; FDM; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState: dDwtMTUwNTkzNDU1NDt0PDtsPGk8MT47PjtsPHQ8O2w8aTwxPjtpPDM+Oz47bDx0PDtsPGk8MTM+Oz47bDx0PHA8bDxWaXNpYmxlOz47bDxvPGY+Oz4+Ozs+Oz4+O3Q8O2w8aTwxPjtpPDM+O2k8NT47aTw3PjtpPDk+O2k8MTE+O2k8MTM+O2k8MTU+O2k8MTc+O2k8MTk+O2k8MjE+Oz47bDx0PHA8bDxjbGFzczs+O2w8Oz4+O2w8aTwxPjs+O2w8dDxwPGw8c3R5bGU7PjtsPDs+Pjs7Pjs+Pjt0PDtsPGk8MD47PjtsPHQ8cDxsPGNsYXNzOz47bDw7Pj47bDxpPDE+Oz47bDx0PHA8bDxzdHlsZTs+O2w8Oz4+Ozs+Oz4+Oz4+O3Q8cDxsPGNsYXNzOz47bDw7Pj47bDxpPDE+Oz47bDx0PHA8bDxzdHlsZTs+O2w8Oz4+Ozs+Oz4+O3Q8cDxsPGNsYXNzOz47bDw7Pj47bDxpPDE+Oz47bDx0PHA8bDxzdHlsZTs+O2w8Oz4+Ozs+Oz4+O3Q8cDxsPGNsYXNzOz47bDw7Pj47bDxpPDE+Oz47bDx0PHA8bDxzdHlsZTs+O2w8Oz4+Ozs+Oz4+O3Q8cDxsPGNsYXNzOz47bDw7Pj47bDxpPDE+Oz47bDx0PHA8bDxzdHlsZTs+O2w8Oz4+Ozs+Oz4+O3Q8cDxsPGNsYXNzOz47bDw7Pj47bDxpPDE+Oz47bDx0PHA8bDxzdHlsZTs+O2w8Oz4+Ozs+Oz4+O3Q8cDxsPGNsYXNzOz47bDw7Pj47bDxpPDE+Oz47bDx0PHA8bDxzdHlsZTs+O2w8Oz4+Ozs+Oz4+O3Q8cDxsPGNsYXNzOz47bDw7Pj47bDxpPDE+Oz47bDx0PHA8bDxzdHlsZTs+O2w8Oz4+Ozs+Oz4+O3Q8cDxsPGNsYXNzOz47bDw7Pj47bDxpPDE+Oz47bDx0PHA8bDxzdHlsZTs+O2w8Oz4+Ozs+Oz4+O3Q8cDxsPGNsYXNzOz47bDw7Pj47bDxpPDE+Oz47bDx0PHA8bDxzdHlsZTs+O2w8Oz4+Ozs+Oz4+Oz4+Oz4+Oz4+Oz6fIKNCi5/49OWp3yfsvosUA7kCqw==
Http-Referer: https://www.egypt.gov.eg/arabic/services/coc/COCService/commonpage/ReqStatus.aspx
Path: /arabic/services/coc/COCService/commonpage/ReqStatus.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +446
System.Web.UI.Page.LoadPageViewState() +18
System.Web.UI.Page.ProcessRequestMain() +447
|
|
|
|
|
Hello Friends I am trying to find a method to prevent the users from opening the page directly without opening the home page / login page.For ex: I have 5 forms/pages in asp.net.If i am trying to open the any one of the page without opening first/login page it simply open. What should i do to prevent it.But there is some session concept. I don't to how to incorporate in my application. I am expecting somebody help in this issue.
Thank You very much in advance.
V.Rajagopalan:
|
|
|
|
|
There R many ways of doing it.
Method 1: (Using Sessions)
in the page load event of login page
create a session variable like Session["isValid"]="Valid";
In the load event of the other pages,
check if the session variable isValid exists.
i.e.
if( Session["isValid"]==null)
Response.Redirect("Home.aspx");
Method 2: (Using forms authentication)
This is the most reliable one and widely used by the developers.
Regards,
Arun Kumar.A
|
|
|
|
|
hi,
umm what is the difference between server.transfer and response.redirect
in what situation we would rather use redirect than server and vice versa ?
Thanks...
Regards...
|
|
|
|